Application of Derivatives: Tricky Questions Solved (5)

medium 2 min read

Question

Find the maximum value of f(x)=sinx+cosxf(x) = \sin x + \cos x on [0,2π][0, 2\pi].

Solution — Step by Step

f(x)=cosxsinx=0    tanx=1f'(x) = \cos x - \sin x = 0 \implies \tan x = 1

So x=π/4x = \pi/4 or x=5π/4x = 5\pi/4 in [0,2π][0, 2\pi].

f(x)=sinxcosxf''(x) = -\sin x - \cos x. At x=π/4x = \pi/4: f(π/4)=2<0    f''(\pi/4) = -\sqrt{2} < 0 \implies maximum. At x=5π/4x = 5\pi/4: f(5π/4)=+2>0    f''(5\pi/4) = +\sqrt{2} > 0 \implies minimum.

f(π/4)=sin(π/4)+cos(π/4)=12+12=2f(\pi/4) = \sin(\pi/4) + \cos(\pi/4) = \tfrac{1}{\sqrt{2}} + \tfrac{1}{\sqrt{2}} = \sqrt{2}

f(0)=1f(0) = 1, f(2π)=1f(2\pi) = 1. Both less than 2\sqrt{2}.

The maximum value is 2\sqrt{2}.

Why This Works

For a smooth function on a closed interval, the maximum is either at a critical point (where f=0f' = 0) or at an endpoint. We’ve checked both and confirmed the maximum is 2\sqrt{2} at x=π/4x = \pi/4.

The second derivative test classifies critical points: f<0f'' < 0 means concave down (local max), f>0f'' > 0 means concave up (local min). When f=0f'' = 0, the test is inconclusive and we go to higher derivatives or the first-derivative sign chart.

Alternative Method

Rewrite sinx+cosx=2sin(x+π/4)\sin x + \cos x = \sqrt{2}\sin(x + \pi/4). Maximum of sin\sin is 11, so the maximum of the expression is 2\sqrt{2}, achieved when x+π/4=π/2x + \pi/4 = \pi/2, i.e. x=π/4x = \pi/4. Two-line solution.

The identity asinx+bcosx=Rsin(x+α)a\sin x + b\cos x = R\sin(x + \alpha) where R=a2+b2R = \sqrt{a^2+b^2} is a JEE staple. Maximum is RR, minimum is R-R. No calculus needed.

Common Mistake

Forgetting to check endpoints. CBSE board questions on closed intervals always require checking f(a)f(a) and f(b)f(b). JEE Main 2024 had a 44-marker where the endpoint won, surprising students who had only used the second-derivative test.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next