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

1 回表示 (過去 30 日間)
Ahmed  Mujtaba
Ahmed Mujtaba 2022 年 12 月 3 日
編集済み: Sam Chak 2022 年 12 月 3 日
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.
  1 件のコメント
Ahmed  Mujtaba
Ahmed Mujtaba 2022 年 12 月 3 日
tried that but didnt work the ans should be
y/1-x-cos(y)
you can try if you get this ans please let me know

サインインしてコメントする。


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) = 
  1 件のコメント
Ahmed  Mujtaba
Ahmed Mujtaba 2022 年 12 月 3 日
tried that but didnt work the ans should be
y/1-x-cos(y)
you can try if you get this ans please let me know

サインインしてコメントする。


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 Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by