Solveeit Logo

Question

Question: The maximum value of \[f\left( x \right) = 2\sin x + \cos 2x\] , \[0 \leqslant x \leqslant \dfrac{\p...

The maximum value of f(x)=2sinx+cos2xf\left( x \right) = 2\sin x + \cos 2x , 0xπ20 \leqslant x \leqslant \dfrac{\pi }{2} occurs at x is
(1) 0\left( 1 \right){\text{ }}0
(2) π6\left( 2 \right){\text{ }}\dfrac{\pi }{6}
(3) π2\left( 3 \right){\text{ }}\dfrac{\pi }{2}
(4)\left( 4 \right) None of these

Explanation

Solution

Hint : First differentiate the given function. Then let the first derivative equal to zero and find the critical numbers. Then find the second derivative of the given function and put those critical numbers in the second derivative. If the second derivative of the function is less than zero then the function is maximum at that value of x.

Complete step-by-step answer :
The value of the function at a maximum point is called the maximum value of the function.
It is given that f(x)=2sinx+cos2xf\left( x \right) = 2\sin x + \cos 2x .On differentiating it with respect to x we get
f(x)=2cosx2sin2x\Rightarrow f'\left( x \right) = 2\cos x - 2\sin 2x ---------- (i)
Now let f(x)=0f'\left( x \right) = 0 to find critical numbers. So,
2cosx2sin2x=0\Rightarrow 2\cos x - 2\sin 2x = 0
We know that sin2x=2sinxcosx\sin 2x = 2\sin x\cos x .Therefore by putting this value in the above equation we get
2cosx2(2sinxcosx)=0\Rightarrow 2\cos x - 2\left( {2\sin x\cos x} \right) = 0
On multiplying we get
2cosx4sinxcosx=0\Rightarrow 2\cos x - 4\sin x\cos x = 0
By taking 2cosx2\cos x common from the above equation we get
2cosx(12sinx)=0\Rightarrow 2\cos x\left( {1 - 2\sin x} \right) = 0
From here we have 2cosx=02\cos x = 0 and 12sinx=01 - 2\sin x = 0 .On further solving the equation 2cosx=02\cos x = 0 we get
cosx=0\Rightarrow \cos x = 0
We know that cosπ2=0\cos \dfrac{\pi }{2} = 0 .Therefore,
cosx=cosπ2\Rightarrow \cos x = \cos \dfrac{\pi }{2}
From the above equation we get the value of x=π2x = \dfrac{\pi }{2}
On further solving the equation 12sinx=01 - 2\sin x = 0 we get
2sinx=1\Rightarrow 2\sin x = 1
sinx=12\Rightarrow \sin x = \dfrac{1}{2}
We know that sinπ6=12\sin \dfrac{\pi }{6} = \dfrac{1}{2} .Therefore the above equation becomes
sinx=sinπ6\Rightarrow \sin x = \sin \dfrac{\pi }{6}
sin on both sides will cancel out each other and we get
x=π6x = \dfrac{\pi }{6}
Hence, the required critical values are x=π2x = \dfrac{\pi }{2} and x=π6x = \dfrac{\pi }{6}
Now to find the second derivative of the function, differentiate equation (i) with respect to x
f(x)=2sinx4cos2xf''\left( x \right) = - 2\sin x - 4\cos 2x
Now apply here the values of x that we find
At x=π2x = \dfrac{\pi }{2} ,
f(π2)=2sinπ24cos2(π2)\Rightarrow f''\left( {\dfrac{\pi }{2}} \right) = - 2\sin \dfrac{\pi }{2} - 4\cos 2\left( {\dfrac{\pi }{2}} \right)
f(π2)=2sinπ24cosπ\Rightarrow f''\left( {\dfrac{\pi }{2}} \right) = - 2\sin \dfrac{\pi }{2} - 4\cos \pi
The value of sinπ2\sin \dfrac{\pi }{2} is 11 and the value of cosπ\cos \pi is 1 - 1 .Therefore,
f(π2)=24(1)\Rightarrow f''\left( {\dfrac{\pi }{2}} \right) = - 2 - 4\left( { - 1} \right)
f(π2)=2+4\Rightarrow f''\left( {\dfrac{\pi }{2}} \right) = - 2 + 4
f(π2)=2\Rightarrow f''\left( {\dfrac{\pi }{2}} \right) = 2 which is 0 \geqslant 0 that is function is minimum
At x=π6x = \dfrac{\pi }{6} ,
f(π6)=2sinπ64cos2(π6)\Rightarrow f''\left( {\dfrac{\pi }{6}} \right) = - 2\sin \dfrac{\pi }{6} - 4\cos 2\left( {\dfrac{\pi }{6}} \right)
f(π6)=2sinπ64cosπ3\Rightarrow f''\left( {\dfrac{\pi }{6}} \right) = - 2\sin \dfrac{\pi }{6} - 4\cos \dfrac{\pi }{3}
Value of sinπ6\sin \dfrac{\pi }{6} is 12\dfrac{1}{2} and the value of cosπ3\cos \dfrac{\pi }{3} is 12\dfrac{1}{2} .Therefore,
f(π6)=2(12)4(12)\Rightarrow f''\left( {\dfrac{\pi }{6}} \right) = - 2\left( {\dfrac{1}{2}} \right) - 4\left( {\dfrac{1}{2}} \right)
On further solving we get
f(π6)=12\Rightarrow f''\left( {\dfrac{\pi }{6}} \right) = - 1 - 2
f(π6)=3\Rightarrow f''\left( {\dfrac{\pi }{6}} \right) = - 3 which is 0 \leqslant 0 that is here the function is maximum
Thus, the function is maximum at x=π6x = \dfrac{\pi }{6} .
Hence, the correct option is (2) π6\left( 2 \right){\text{ }}\dfrac{\pi }{6}
So, the correct answer is “Option 2”.

Note : Remember that the function f(x) is maximum when f’’(x) is less than zero and the function f(x) is minimum when f’’(x) is greater than zero. Remember the formula of Sin2x that we used in the solution. Keep in mind the trigonometric values at every angle or radian because it is important and is used in various questions.