How do you differentiate #f(x)=cos(sqrt(3+e^(x^2)))# using the chain rule?

1 Answer
Nov 10, 2015

#- (x\ e^{x^2}\ sin(sqrt(3+e^{x^2})))/(sqrt(3+e^{x^2}))#

Explanation:

The chain rule tells you that to differentiate a composite function, you derive the outer function only, and then multiply for the derivative of what's inside, iterating the process if necessary.

So, we have the cosine of a square root of an exponential. This means that we will derive the outer cosine and multiply by the derivative of the root.
Again, the derivative of the root will be the derivative of the outer root multiplied by the derivative of the exponential.
Finally, the derivative of the exponential will be the derivative of the outer exponential, multiplied by the derivative of the exponent.

In formulas, we have

#d/dx f(g(h(a(x))) =#

# f'(g(h(a(x))) * g'(h(a(x))) * h'(a(x)) * a'(x)#

where in your case #f(x)=cos(x)#, #g(x)=sqrt(x)#, #h(x)=3+e^x#, #a(x)=x^2#

  • So, since #d/dx cos(x)=-sin(x)#, the first derivative will be #-sin(sqrt(3+e^{x^2}))#, and this is #f'(g(h(a(x)))#

Let's multiply for the derivative of what's inside:

  • Since d/dx sqrt(x)=1/(2sqrt(x)), we have

#1/(2sqrt(3+e^{x^2}))#, and this is #g'(h(a(x)))#

Let's multiply for the derivative of what's inside:

  • Since d/dx 3+e^x=e^x, we have

#e^{x^2}#, and this is #h'(a(x))#

Let's multiply for the derivative of what's inside:

  • Since d/dx x^2=2x, we have #a'(x)=2x#.

Now multiply all the pieces to get

#-sin(sqrt(3+e^{x^2})) * 1/(cancel(2)sqrt(3+e^{x^2})) * e^{x^2} * cancel(2)x#