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

1 次查看(过去 30 天)
Hi! I want to calculate the derivative below in matlab
Have anyone any idea?

采纳的回答

madhan ravi
madhan ravi 2020-5-31
编辑:madhan ravi 2020-5-31
syms u x
subs(diff(u^2 - 1), u, cos(x))

更多回答(1 个)

Alan Stevens
Alan Stevens 2020-5-31
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)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by