QlarIITy

MathematicsJEE Main 2021 · 16 MarchSingle correct

If y=y(x)y = y(x) is the solution of the differential equation dydx+(tan⁡x)y=sin⁡x,0≤x≤π3\frac{dy}{dx} + (\tan x)y = \sin x, 0 \leq x \leq \frac{\pi}{3}, with y(0)=0y(0) = 0, then y(π4)y\left(\frac{\pi}{4}\right) is equal to

  1. Option A: 14log⁡e2\frac{1}{4}\log_e 2
  2. Option B: (122)log⁡e2\left(\frac{1}{2\sqrt{2}}\right)\log_e 2
  3. Option C: log⁡e2\log_e 2
  4. Option D: 12log⁡e2\frac{1}{2}\log_e 2
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. With the secant as integrating factor, a sine on the right becomes a tangent.

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=tan⁡xP = \tan x, so ∫Pdx=log⁡esec⁡x\int Pdx = \log_e\sec x and the integrating factor is sec⁡x\sec x. Then (ysec⁡x)′=sin⁡xsec⁡x=tan⁡x\left(y\sec x\right)^{\prime} = \sin x\sec x = \tan x.

Approach. Integrate, fit the constant and evaluate.

  1. Step 1: The solution

    Integrating, ysec⁡x=log⁡esec⁡x+Cy\sec x = \log_e\sec x + C, and y(0)=0y(0) = 0 gives C=0C = 0. So y=cos⁡xlog⁡esec⁡xy = \cos x\log_e\sec x.

  2. Step 2: The value

    At x=π4x = \dfrac{\pi}{4}, y=12log⁡e2y = \dfrac{1}{\sqrt{2}}\log_e\sqrt{2}, and since log⁡e2=12log⁡e2\log_e\sqrt{2} = \dfrac{1}{2}\log_e 2, this is 122log⁡e2\dfrac{1}{2\sqrt{2}}\log_e 2.

Answer. (B) (122)log⁡e2\left(\dfrac{1}{2\sqrt{2}}\right)\log_e 2

Sanity check. The value is about 0.245, small and positive, as expected for a solution that starts at 0 and has the slope sin⁡x≥0\sin x \geq 0 while yy is small.

Why the other options are wrong

  • (A) This would need the factor cos⁡π4\cos\dfrac{\pi}{4} to be 12\dfrac{1}{2}, but it is 12\dfrac{1}{\sqrt{2}}.
  • (C) This leaves out both the factor cos⁡π4\cos\dfrac{\pi}{4} and the 12\dfrac{1}{2} from log⁡e2\log_e\sqrt{2}.
  • (D) This is log⁡e2\log_e\sqrt{2} alone, without the factor cos⁡π4=12\cos\dfrac{\pi}{4} = \dfrac{1}{\sqrt{2}}.

Key takeaway

The trap. The logarithm of a square root is half the logarithm.

How toppers think. They write the solution as a product of the cosine and a logarithm before substituting.

Remember. ∫tan⁡xdx=log⁡esec⁡x+C\int\tan xdx = \log_e\sec x + C

More on Linear Differential Equations