Solveeit Logo

Question

Question: What is the maximum value of \(\sin \theta +\cos \theta \)?...

What is the maximum value of sinθ+cosθ\sin \theta +\cos \theta ?

Explanation

Solution

To find the maximum value of a given expression, take the derivative of sinθ+cosθ\sin \theta +\cos \theta and then equate it to 0 and then find the value of θ on simplification. Then substitute the value of θ in the given expression. The value after substituting the value of θ is the maximum value.

Complete step-by-step answer:
The trigonometric expression that we need to find the maximum value is:
sinθ+cosθ\sin \theta +\cos \theta
To find the maximum value of the above expression, we need to find the value of θ at which this expression attains maximum value.
For finding the maxima of the given expression, we are going to take the derivative of the given expression and then equate it to 0.
Let us assume,
sinθ+cosθ=f(θ)\sin \theta +\cos \theta =f\left( \theta \right)
Taking derivative on both the sides with respect to θ we get,
cosθsinθ=f(θ)\cos \theta -\sin \theta =f'\left( \theta \right)
We know that:
The derivative of sinθ\sin \theta with respect to θ is cosθ\cos \theta (dsinθdθ=cosθ)\left( \dfrac{d\sin \theta }{d\theta }=\cos \theta \right).
And the derivative of cosθ\cos \theta with respect to θ is sinθ-\sin \theta (dcosθdθ=sinθ)\left( \dfrac{d\cos \theta }{d\theta }=-\sin \theta \right).
Now, equating f’ (θ) to 0 we get,
cosθsinθ=0 cosθ=sinθ tanθ=1 \begin{aligned} & \cos \theta -\sin \theta =0 \\\ & \Rightarrow \cos \theta =\sin \theta \\\ & \Rightarrow \tan \theta =1 \\\ \end{aligned}
And we know that tan θ = 1 when θ=π4,5π4\theta =\dfrac{\pi }{4},\dfrac{5\pi }{4} in the interval of (0, 2π).
Now, to confirm whether the point that we have got is the point of maxima or minima we have to differentiate f’ (θ) again and then substitute the points in this double derivative of f (θ) and then see whether it is positive, negative or zero.
cosθsinθ=f(θ) f(θ)=sinθcosθ \begin{aligned} & \cos \theta -\sin \theta =f'\left( \theta \right) \\\ & \Rightarrow f''\left( \theta \right)=-\sin \theta -\cos \theta \\\ \end{aligned}
Now, substituting the value of θ=π4\theta =\dfrac{\pi }{4} in the above equation we get,
f(π4)=sinπ4cosπ4 f(π4)=(12+12)=22=2 \begin{aligned} & f''\left( \dfrac{\pi }{4} \right)=-\sin \dfrac{\pi }{4}-\cos \dfrac{\pi }{4} \\\ & \Rightarrow f''\left( \dfrac{\pi }{4} \right)=-\left( \dfrac{1}{\sqrt{2}}+\dfrac{1}{\sqrt{2}} \right)=-\dfrac{2}{\sqrt{2}}=-\sqrt{2} \\\ \end{aligned}
In the above double derivative, we have put the value of cosπ4,sinπ4\cos \dfrac{\pi }{4},\sin \dfrac{\pi }{4} as 12\dfrac{1}{\sqrt{2}} because we know that cosπ4=sinπ4=12\cos \dfrac{\pi }{4}=\sin \dfrac{\pi }{4}=\dfrac{1}{\sqrt{2}}
As you can see that f(θ)f''\left( \theta \right) at π4\dfrac{\pi }{4} is negative so this shows that at θ=π4\theta =\dfrac{\pi }{4} function f(θ)f\left( \theta \right) is attaining a maximum.
Similarly, we are going to check f(θ)f''\left( \theta \right) at 5π4\dfrac{5\pi }{4}.
f(5π4)=sin5π4cos5π4f''\left( \dfrac{5\pi }{4} \right)=-\sin \dfrac{5\pi }{4}-\cos \dfrac{5\pi }{4}……….Eq. (1)
We know that:
sin5π4=12 cos5π4=12 \begin{aligned} & \sin \dfrac{5\pi }{4}=-\dfrac{1}{\sqrt{2}} \\\ & \cos \dfrac{5\pi }{4}=-\dfrac{1}{\sqrt{2}} \\\ \end{aligned}
Substituting these values in eq. (1) we get,
f(5π4)=(sin5π4+cos5π4) f(5π4)=(1212) f(5π4)=22=2 \begin{aligned} & f''\left( \dfrac{5\pi }{4} \right)=-\left( \sin \dfrac{5\pi }{4}+\cos \dfrac{5\pi }{4} \right) \\\ & \Rightarrow f''\left( \dfrac{5\pi }{4} \right)=-\left( -\dfrac{1}{\sqrt{2}}-\dfrac{1}{\sqrt{2}} \right) \\\ & \Rightarrow f''\left( \dfrac{5\pi }{4} \right)=\dfrac{2}{\sqrt{2}}=\sqrt{2} \\\ \end{aligned}
From the above, we can see that f(θ)f''\left( \theta \right) at 5π4\dfrac{5\pi }{4} is positive which shows that at θ=5π4\theta =\dfrac{5\pi }{4} function f(θ)f\left( \theta \right) is attaining a minimum.
Hence, only at θ=π4\theta =\dfrac{\pi }{4} function f(θ)f\left( \theta \right) is attaining a maximum.
Now, substituting these values of θ in the given expression sinθ+cosθ\sin \theta +\cos \theta we get,
Whenθ=π4\theta =\dfrac{\pi }{4},
sinπ4+cosπ4 =12+12 =22=2 \begin{aligned} & \sin \dfrac{\pi }{4}+\cos \dfrac{\pi }{4} \\\ & =\dfrac{1}{\sqrt{2}}+\dfrac{1}{\sqrt{2}} \\\ & =\dfrac{2}{\sqrt{2}}=\sqrt{2} \\\ \end{aligned}
From the above, we have found the maximum value of sinθ+cosθ\sin \theta +\cos \theta as 2\sqrt{2} .

Note: While writing the solutions of tanθ=1\tan \theta =1, you might not consider 5π4\dfrac{5\pi }{4} as a solution and still you will get the correct answer because at x=5π4x=\dfrac{5\pi }{4}, the expression has the minimum value. This is a lucky problem that you are not getting the maximum value from other solutions but always consider all the principal solutions of a trigonometric expression which lie in the interval (0, 2π).