how to derivate an equation of x and y without taking any variable constant?

1 次查看(过去 30 天)
y-x*y-sin(y)==0
i tried many times but i cant get the required ans. d/dx on given equation without taking x or y constant.

回答(3 个)

John D'Errico
John D'Errico 2022-12-3
Specify that y is a function of x. You o so like this:
syms y(x)
Now you can differentiate that expression with respect to x. See the help for diff.

Torsten
Torsten 2022-12-3
You mean assuming y = y(x) ?
syms y(x)
f = y-x*y-sin(y) == 0;
df = diff(f,x)
df(x) = 

Sam Chak
Sam Chak 2022-12-3
编辑:Sam Chak 2022-12-3
It can be confusing because the math structure of y/1 - x - cos(y) is legitimately interpreted as .
Guess you probably want something like this.
syms y(x)
F = y - x*y - sin(y) == 0;
dF = diff(F, x)
dF(x) = 
DE = isolate(dF, diff(y, x))
DE = 

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by