Question
Question: How do you differentiate \(\cos \left( {{x}^{2}} \right)\)?...
How do you differentiate cos(x2)?
Solution
We first define the chain rule and how the differentiation of composite function works. We take differentiation of the main function with respect to the intermediate function and then take differentiation of the intermediate function with respect to x. We take multiplication of these two.
Complete step-by-step solution:
We differentiate the given function f(x)=cos(x2) with respect to x using the chain rule.
Here we have a composite function where the main function is g(x)=cosx and the other function is h(x)=x2.
We have goh(x)=g(x2)=cos(x2). We take this as ours f(x)=cos(x2).
We need to find the value of dxd[f(x)]=dxd[cos(x2)]. We know f(x)=goh(x).
Differentiating f(x)=goh(x), we get
dxd[f(x)]=dxd[goh(x)]=d[h(x)]d[goh(x)]×dxd[h(x)]=g′[h(x)]h′(x).
The above-mentioned rule is the chain rule.
The chain rule allows us to differentiate with respect to the function h(x) instead of x and after that, we need to take the differentiated form of h(x) with respect to x.
For the function f(x)=cos(x2), we take differentiation of f(x)=cos(x2) with respect to the function h(x)=x2 instead of x and after that we need to take the differentiated form of h(x)=x2 with respect to x.
We know that differentiation of g(x)=cosx is g′(x)=−sinx and differentiation of h(x)=x2 is h′(x)=2x. We apply the formula of dxd(xn)=nxn−1.