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

##### 1 Answer

#### 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

where in your case

- 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

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

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

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