QlarIITy

MathematicsJEE Main 2022 · 26 JulySingle correct

Ifdydx+2ytan⁡x=sin⁡x,0<x<π2\frac{dy}{dx} + 2y\tan x = \sin x, 0 < x < \frac{\pi}{2}and y(π3)=0y\left(\frac{\pi}{3}\right) = 0, then the maximum value of y(x)y(x) is

  1. Option A: 18\frac{1}{8}
  2. Option B: 34\frac{3}{4}
  3. Option C: 14\frac{1}{4}
  4. Option D: 38\frac{3}{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. A solution that depends on x only through the cosine is maximised as a function of the cosine.

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. Once yy is known as a function of c=cos⁡xc = \cos x, its graph against cc is a parabola.

The parabola y = c − 2c² drawn against c from 0 to 1: it rises from the origin to its highest point at c = 1/4, where y = 1/8, crosses the c-axis at c = 1/2 and falls to −1 at c = 1.

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 (0,1)(0, 1) on the interval, y=c−2c2=18−2(c−14)2y = c - 2c^2 = \dfrac{1}{8} - 2\left(c - \dfrac{1}{4}\right)^2. So the greatest value is 18\dfrac{1}{8}, taken when cos⁡x=14\cos x = \dfrac{1}{4}.

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

Sanity check. At x=π3x = \dfrac{\pi}{3}, where c=12c = \dfrac{1}{2}, the solution is 0, and for slightly larger xx it is positive, so a small positive maximum is to be expected.

Why the other options are wrong

  • (B) The value 34\dfrac{3}{4} exceeds the top of the parabola c−2c2c - 2c^2, which is 18\dfrac{1}{8}.
  • (C) The value 14\dfrac{1}{4} is the cosine at which the maximum occurs, not the maximum itself.
  • (D) The value 38\dfrac{3}{8} comes from 14+18\dfrac{1}{4} + \dfrac{1}{8}; at the vertex the second term is subtracted.

Key takeaway

The trap. The vertex must lie inside the range of the cosine on the given interval, and here it does.

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

Remember. c−2c2=18−2(c−14)2c - 2c^2 = \dfrac{1}{8} - 2\left(c - \dfrac{1}{4}\right)^2

More on Linear Differential Equations