Filter löschen
Filter löschen

How to calculate detivative of a function with respect to another function

1 Ansicht (letzte 30 Tage)
Hi! I want to calculate the derivative below in matlab
Have anyone any idea?

Akzeptierte Antwort

madhan ravi
madhan ravi am 31 Mai 2020
Bearbeitet: madhan ravi am 31 Mai 2020
syms u x
subs(diff(u^2 - 1), u, cos(x))

Weitere Antworten (1)

Alan Stevens
Alan Stevens am 31 Mai 2020
Surely you don't need to do this in Matlab!
Just set u = cos(x), so you have d/du(u^2 - 1) = 2u = 2cos(x)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by