Differentiation with respect to a function

I have a function and I wan to differentiate the same with respect to cos(x).
for example:
f = ((cos(x))^2 -1)^n
f has to be differentiated with respect to cos(x).
I want to obtain the answer in terms of cosine function only as in the next step I have to differentiate the result with respect to x.

1 Comment

Depending on which Matlab version you're using, maybe the following can be of use to you: http://www.mathworks.com/help/symbolic/diff.html

Sign in to comment.

Asked:

on 25 May 2016

Answered:

on 25 May 2016

Community Treasure Hunt

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

Start Hunting!