How do you use the chain rule to differentiate #y=e^(cosx)#?

1 Answer
Nov 12, 2016

# dy/dx = -(sinx)e^cosx #

Explanation:

If you are studying maths, then you should learn the Chain Rule for Differentiation, and practice how to use it:

If # y=f(x) # then # f'(x)=dy/dx=dy/(du)(du)/dx #

I was taught to remember that the differential can be treated like a fraction and that the "#dx#'s" of a common variable will "cancel" (It is important to realise that #dy/dx# isn't a fraction but an operator that acts on a function, there is no such thing as "#dx#" or "#dy#" on its own!). The chain rule can also be expanded to further variables that "cancel", E.g.

# dy/dx = dy/(dv)(dv)/(du)(du)/dx # etc, or # (dy/dx = dy/color(red)cancel(dv)color(red)cancel(dv)/color(blue)cancel(du)color(blue)cancel(du)/dx) #

So with # y = e^cosx #, Then:

# { ("Let "u=cosx, => , (du)/dx=-sinx), ("Then "y=e^u, =>, dy/(du)=e^u ) :}#

Using # dy/dx=(e^u)(-sinx) # we get:

# dy/dx = (e^cosx)(-sinx) #
# :. dy/dx = -(sinx)e^cosx #