Solveeit Logo

Question

Question: What is the second derivative of \(f\left( x \right)=\sin \left( {{x}^{2}} \right)\)?...

What is the second derivative of f(x)=sin(x2)f\left( x \right)=\sin \left( {{x}^{2}} \right)?

Explanation

Solution

In this problem we need to calculate the second derivative of the given function that means we need to derive the given function two times with respect to the variable xx. First, we will derive the given function with respect to the variable xx and simplify the equation by using the differentiation formulas ddx(f(g(x)))=f(g(x))×g(x)\dfrac{d}{dx}\left( f\left( g\left( x \right) \right) \right)={{f}^{'}}\left( g\left( x \right) \right)\times {{g}^{'}}\left( x \right), ddx(sinx)=cosx\dfrac{d}{dx}\left( \sin x \right)=\cos x, ddx(x2)=2x\dfrac{d}{dx}\left( {{x}^{2}} \right)=2x. By applying these formulas, we will get the value of f(x){{f}^{'}}\left( x \right) which is one time derivative of the given function. But we need to calculate the second derivative, so we will again derive the value f(x){{f}^{'}}\left( x \right) with respect to xx. Here we will use the chain rule which is given by ddx(uv)=uv+vu\dfrac{d}{dx}\left( uv \right)=u{{v}^{'}}+v{{u}^{'}}, some other differentiation formulas to simplify the equation.

Complete step-by-step answer:
Given function is f(x)=sin(x2)f\left( x \right)=\sin \left( {{x}^{2}} \right).
Differentiating the above function with respect to xx, then we will get
f(x)=ddx(sin(x2)){{f}^{'}}\left( x \right)=\dfrac{d}{dx}\left( \sin \left( {{x}^{2}} \right) \right)
Applying the differentiation formulas ddx(f(g(x)))=f(g(x))×g(x)\dfrac{d}{dx}\left( f\left( g\left( x \right) \right) \right)={{f}^{'}}\left( g\left( x \right) \right)\times {{g}^{'}}\left( x \right), ddx(sinx)=cosx\dfrac{d}{dx}\left( \sin x \right)=\cos x, ddx(x2)=2x\dfrac{d}{dx}\left( {{x}^{2}} \right)=2x in the above equation, then we will get
f(x)=cos(x2)×2x f(x)=2xcos(x2) \begin{aligned} & {{f}^{'}}\left( x \right)=\cos \left( {{x}^{2}} \right)\times 2x \\\ & \Rightarrow {{f}^{'}}\left( x \right)=2x\cos \left( {{x}^{2}} \right) \\\ \end{aligned}
From the above equation we have the value of f(x){{f}^{'}}\left( x \right). Which is our one-time derivative of the given function. But we need to calculate the second derivative of the function. So, we are going to differentiate the value of f(x){{f}^{'}}\left( x \right) with respect to xx, then we will have
f(x)=ddx(2xcos(x2)){{f}^{''}}\left( x \right)=\dfrac{d}{dx}\left( 2x\cos \left( {{x}^{2}} \right) \right)
Here 22 which is in multiplication is a constant, so we can differentiate a constant in multiplication. So, take out the constant from the differentiation, then we will get
f(x)=2ddx(xcos(x2)){{f}^{''}}\left( x \right)=2\dfrac{d}{dx}\left( x\cos \left( {{x}^{2}} \right) \right)
Using the chain rule of the differentiation which is ddx(uv)=uv+vu\dfrac{d}{dx}\left( uv \right)=u{{v}^{'}}+v{{u}^{'}}, then we will have
f(x)=2[xddx(cos(x2))+cos(x2)×ddx(x)]{{f}^{''}}\left( x \right)=2\left[ x\dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right)+\cos \left( {{x}^{2}} \right)\times \dfrac{d}{dx}\left( x \right) \right]
We know the value of ddx(x)=1\dfrac{d}{dx}\left( x \right)=1. Substituting this value in the above equation, then we will get
f(x)=2[x×ddx(cos(x2))+cos(x2)]{{f}^{''}}\left( x \right)=2\left[ x\times \dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right)+\cos \left( {{x}^{2}} \right) \right]
Considering the value ddx(cos(x2))\dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right) separately and using the formula ddx(f(g(x)))=f(g(x))×g(x)\dfrac{d}{dx}\left( f\left( g\left( x \right) \right) \right)={{f}^{'}}\left( g\left( x \right) \right)\times {{g}^{'}}\left( x \right) in the value, then we will get
ddx(cos(x2))=ddx(cos(x2))×ddx(x2)\dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right)=\dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right)\times \dfrac{d}{dx}\left( {{x}^{2}} \right)
We know that ddx(cosx)=sinx\dfrac{d}{dx}\left( \cos x \right)=-\sin x, ddx(x2)=2x\dfrac{d}{dx}\left( {{x}^{2}} \right)=2x. Substituting these values in the above equation, then we will have
ddx(cos(x2))=sin(x2)×2x ddx(cos(x2))=2xsin(x2) \begin{aligned} & \dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right)=-\sin \left( {{x}^{2}} \right)\times 2x \\\ & \Rightarrow \dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right)=-2x\sin \left( {{x}^{2}} \right) \\\ \end{aligned}
Now substituting the value of ddx(cos(x2))\dfrac{d}{dx}\left( \cos \left( {{x}^{2}} \right) \right) in the value of f(x){{f}^{''}}\left( x \right), then we will get
f(x)=2[x(2xsin(x2))+cos(x2)] f(x)=2[2x2sin(x2)+cos(x2)] f(x)=4x2sin(x2)+2cos(x2) \begin{aligned} & {{f}^{''}}\left( x \right)=2\left[ x\left( -2x\sin \left( {{x}^{2}} \right) \right)+\cos \left( {{x}^{2}} \right) \right] \\\ & \Rightarrow {{f}^{''}}\left( x \right)=2\left[ -2{{x}^{2}}\sin \left( {{x}^{2}} \right)+\cos \left( {{x}^{2}} \right) \right] \\\ & \Rightarrow {{f}^{''}}\left( x \right)=-4{{x}^{2}}\sin \left( {{x}^{2}} \right)+2\cos \left( {{x}^{2}} \right) \\\ \end{aligned}

Hence the second derivative of the given function f(x)=sin(x2)f\left( x \right)=\sin \left( {{x}^{2}} \right) is f(x)=4x2sin(x2)+2cos(x2){{f}^{''}}\left( x \right)=-4{{x}^{2}}\sin \left( {{x}^{2}} \right)+2\cos \left( {{x}^{2}} \right).

Note: We can also solve this problem by using another method which is substitution method. We will use the substitution u=x2u={{x}^{2}} and calculate the value of f(x){{f}^{'}}\left( x \right) in terms of uu. Again, we will differentiate the value of f(x){{f}^{'}}\left( x \right) and calculate it in terms of uu. In the final step again use the substitution u=x2u={{x}^{2}} for the required result.