QlarIITy

MathematicsJEE Main 2021 · 16 MarchSingle correct

If y=y(x)y = y(x) is the solution of the differential equation, dydx+2ytan⁡x=sin⁡x,y(π3)=0\frac{dy}{dx} + 2y\tan x = \sin x, y\left(\frac{\pi}{3}\right) = 0, then the maximum value of the function y(x)y(x) over RR is equal to :

  1. Option A: 8
  2. Option B: 12\frac{1}{2}
  3. Option C: −154-\frac{15}{4}
  4. Option D: 18\frac{1}{8}
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Over all real x the cosine fills the interval from minus 1 to 1, so the solution is maximised as a quadratic there.

Concept refresher. The linear equation y′+Py=Qy^{\prime} + Py = Q is solved by multiplying by the integrating factor e∫Pdxe^{\int Pdx}, which turns it into

(ye∫Pdx)′=Qe∫Pdx\left(ye^{\int Pdx}\right)^{\prime} = Qe^{\int Pdx}

Picture the situation. The equation is linear with P=2tan⁡xP = 2\tan x, so the integrating factor is sec⁡2x\sec^2 x and (ysec⁡2x)′=sin⁡xsec⁡2x=sec⁡xtan⁡x\left(y\sec^2 x\right)^{\prime} = \sin x\sec^2 x = \sec x\tan x.

Approach. Solve the equation, then maximise the quadratic in the cosine.

  1. Step 1: The solution

    Integrating, ysec⁡2x=sec⁡x+Cy\sec^2 x = \sec x + C, so y=cos⁡x+Ccos⁡2xy = \cos x + C\cos^2 x. The condition y(π3)=0y\left(\dfrac{\pi}{3}\right) = 0 gives 12+C4=0\dfrac{1}{2} + \dfrac{C}{4} = 0, so C=−2C = -2.

  2. Step 2: The greatest value

    With c=cos⁡xc = \cos x, which takes every value in [−1,1][-1, 1], y=c−2c2=18−2(c−14)2y = c - 2c^2 = \dfrac{1}{8} - 2\left(c - \dfrac{1}{4}\right)^2. The vertex c=14c = \dfrac{1}{4} lies in this range, so the maximum value is 18\dfrac{1}{8}.

Answer. (D) 18\dfrac{1}{8}

Sanity check. At the ends of the range, c=1c = 1 gives y=−1y = -1 and c=−1c = -1 gives y=−3y = -3, both below 18\dfrac{1}{8}.

Why the other options are wrong

  • (A) The value 8 is the reciprocal of the correct maximum; c−2c2c - 2c^2 never exceeds 18\dfrac{1}{8}.
  • (B) The value 12\dfrac{1}{2} is the cosine at which y=0y = 0, namely at x=π3x = \dfrac{\pi}{3}, not a value of yy.
  • (C) The value −154-\dfrac{15}{4} is negative, while yy is already 0 at x=π3x = \dfrac{\pi}{3}, so the maximum cannot be negative.

Key takeaway

The trap. The greatest value is at the vertex of the parabola, not at an end of the range.

How toppers think. They complete the square in the cosine and never differentiate in x.

Remember. y=cos⁡x−2cos⁡2xy = \cos x - 2\cos^2 x

More on Linear Differential Equations