Solveeit Logo

Question

Question: Find the \({n^{th}}\) derivative of \({\cos ^2}x\)...

Find the nth{n^{th}} derivative of cos2x{\cos ^2}x

Explanation

Solution

This is a calculus problem, involving the use of trigonometric functions and their properties. We can solve this using the pattern recognition method wherein we will be differentiating the given function successively first. Afterwards, we can substitute values and solve problems.

Complete answer: The first order derivative is as follows:
y1=ddx(cos2x){y_1} = \dfrac{d}{{dx}}\left( {{{\cos }^2}x} \right)
We know cos(2x)=2cos2x1\cos \left( {2x} \right) = 2{\cos ^2}x - 1
Thus, cos2x=1+cos(2x)2{\cos ^2}x = \dfrac{{1 + \cos \left( {2x} \right)}}{2}
Substituting this value,
y1=ddx(1+cos2x2) y1=12ddx(1)+12(cos2x)  {y_1} = \dfrac{d}{{dx}}\left( {\dfrac{{1 + \cos 2x}}{2}} \right) \\\ {y_1} = \dfrac{1}{2}\dfrac{d}{{dx}}\left( 1 \right) + \dfrac{1}{2}\left( {\cos 2x} \right) \\\
Now, let 2x=u2x = u and substitute this value in the above equation:
y1=0+12ddu(cosu)ddx(2x) y1=sin2x  {y_1} = 0 + \dfrac{1}{2}\dfrac{d}{{du}}\left( {\cos u} \right)\dfrac{d}{{dx}}\left( {2x} \right) \\\ {y_1} = - \sin 2x \\\
Since we now have an initial function of cosine, let us do the conversion.
We know that sinx=sin(x) - \sin x = \sin \left( { - x} \right)
And sinx=cos(π2x)\sin x = \cos \left( {\dfrac{\pi }{2} - x} \right)
Therefore,
y1=sin(2x) y1=cos(π2+2x)  {y_1} = \sin \left( { - 2x} \right) \\\ {y_1} = \cos \left( {\dfrac{\pi }{2} + 2x} \right) \\\
Let us go for the second derivative now:
y1=ddxcos(π2+2x){y_1} = \dfrac{d}{{dx}}\cos \left( {\dfrac{\pi }{2} + 2x} \right)
Let us assume that π2+2x=v\dfrac{\pi }{2} + 2x = v
Therefore,
y2=ddvcosvddx(π2+2x) y2=ddvcosv[ddx(π2)+ddx2x] y2=sin(π2+2x)[0+2] y2=2sin(π2+2x) y2=2sin([π2+2x])  {y_2} = \dfrac{d}{{dv}}\cos v\dfrac{d}{{dx}}\left( {\dfrac{\pi }{2} + 2x} \right) \\\ {y_2} = \dfrac{d}{{dv}}\cos v\left[ {\dfrac{d}{{dx}}\left( {\dfrac{\pi }{2}} \right) + \dfrac{d}{{dx}}2x} \right] \\\ {y_2} = - \sin \left( {\dfrac{\pi }{2} + 2x} \right)\left[ {0 + 2} \right] \\\ {y_2} = - 2\sin \left( {\dfrac{\pi }{2} + 2x} \right) \\\ {y_2} = 2\sin \left( { - \left[ {\dfrac{\pi }{2} + 2x} \right]} \right) \\\
We now convert the functions into cosines again:
y2=2cos(π2+π2+2x) y2=2cos(2π2+2x)  {y_2} = 2\cos \left( {\dfrac{\pi }{2} + \dfrac{\pi }{2} + 2x} \right) \\\ {y_2} = 2\cos \left( {\dfrac{{2\pi }}{2} + 2x} \right) \\\
We here notice a pattern:
yn=ncos(nπ2+2x){y_n} = n\cos \left( {\dfrac{{n\pi }}{2} + 2x} \right)
This is the nth{n^{th}} derivative of the given function.
Hence, the nth{n^{th}} derivative of cos2x{\cos ^2}x is ncos(nπ2+2x)n\cos \left( {\dfrac{{n\pi }}{2} + 2x} \right)

Note:
This is a very simple problem where you have to take the derivative of the given function again and again and notice the pattern and then generalise it in the context of nn . You can compute the third, fourth, fifth and so on derivatives also to verify the answer. However you need not show more than two or three derivatives as it will consume a lot of time.