How to calculate detivative of a function with respect to another function
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Laura Passalacqua
le 31 Mai 2020
Modifié(e) : madhan ravi
le 31 Mai 2020
Hi! I want to calculate the derivative below in matlab
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/306667/image.png)
Have anyone any idea?
0 commentaires
Réponse acceptée
madhan ravi
le 31 Mai 2020
Modifié(e) : madhan ravi
le 31 Mai 2020
syms u x
subs(diff(u^2 - 1), u, cos(x))
Plus de réponses (1)
Alan Stevens
le 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)
0 commentaires
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!