Question
Question: How do you find the second derivative of \(y=\cos \left( {{x}^{2}} \right)\) ?...
How do you find the second derivative of y=cos(x2) ?
Solution
To solve the given equation, we need to get the first derivative by using Chain Rule,
\dfrac{d\left[ f\left\\{ g\left( x \right) \right\\} \right]}{dx}=f'\left\\{ g\left( x \right) \right\\}g'\left( x \right) .
Then to get a second derivative we need to use the Product Rule as well as the Chain Rule.
Product Rule - dxd[f(x)g(x)]=f(x)dxd[g(x)]+g(x)dxd[f(x)] .
Complete step by step answer:
Let us find the first derivative by using the Chain Rule, here f{g(x)} is cos(x2) and g(x) is x2 .
For simplicity, let us use x2=t .
⇒y′=dtdcostdxdt⇒y′=dtdcostdxdx2
Thus, the first derivative will be,
⇒y′=−sint(2x)
as, the derivative of cost will be sint and the derivative of x2 will be 2x by Power Rule.
Now, replace it with x2 wherever required. Thus we get,
⇒y′=−(2x)sinx2 .
Now, to get the second derivative of the equation given in the question we again need to differentiate the above expression of y’. For this, we will first apply Product Rule and then the Chain Rule. It will be as follows-
⇒dxd[−(2x)sinx2]=−2dxd[(x)sinx2]
as -2 is constant, we took it out of the derivative, now we will use the Product Rule dxd[f(x)g(x)]=f(x)dxd[g(x)]+g(x)dxd[f(x)] in which f(x)=x and g(x)=sinx2 for our question.
So, we will write as,
⇒y′′=−2[xdxd(sinx2)+sinx2dxdx]
which will give us,
⇒y′′=2[xcosx2(2x)+sinx2×1]
thus, finally giving us,
∴y′′=4x2cosx2+2sinx2
Therefore, the second derivative of the equation given in the question is y′′=4x2cosx2+2sinx2 .
Note:
Remember the derivatives of cosx, sinx and x2 . They are –sinx, cosx and 2x respectively. It is important to follow the order to first use the Product Rule and then the Chain Rule to get the second derivative from the first.