QlarIITy

MathematicsJEE Main 2021 · 25 JulySingle correct

Let y=y(x)y = y(x) be the solution of the differential equationxdy=(y+x3cos⁡x)dxxdy = (y + x^3\cos x)dxwith y(π)=0y(\pi) = 0, then y(π2)y\left(\frac{\pi}{2}\right) is equal to:

  1. Option A: π24+π2\frac{\pi^2}{4} + \frac{\pi}{2}
  2. Option B: π22+π4\frac{\pi^2}{2} + \frac{\pi}{4}
  3. Option C: π22−π4\frac{\pi^2}{2} - \frac{\pi}{4}
  4. Option D: π24−π2\frac{\pi^2}{4} - \frac{\pi}{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. The combination x dy minus y dx, over the square of x, is the differential of y over x.

Concept refresher. The quotient rule read backwards:

d(yx)=xdy−ydxx2d\left(\dfrac{y}{x}\right) = \dfrac{xdy - ydx}{x^2}

so an equation that contains xdy−ydxxdy - ydx is divided by x2x^2.

Picture the situation. The equation is xdy−ydx=x3cos⁡xdxxdy - ydx = x^3\cos xdx. Dividing by x2x^2 and using the refresher gives d(yx)=xcos⁡xdxd\left(\dfrac{y}{x}\right) = x\cos xdx.

Approach. Integrate by parts, fit the constant, and evaluate.

  1. Step 1: Integrating

    Integrating the right side by parts, with xx as the part to differentiate, gives

    ∫xcos⁡xdx=xsin⁡x−∫sin⁡xdx=xsin⁡x+cos⁡x\begin{aligned} \int x\cos xdx &= x\sin x - \int\sin xdx \\[4pt] &= x\sin x + \cos x \end{aligned}

    So yx=xsin⁡x+cos⁡x+C\dfrac{y}{x} = x\sin x + \cos x + C.

  2. Step 2: The constant

    At x=πx = \pi, y=0y = 0, sin⁡π=0\sin\pi = 0 and cos⁡π=−1\cos\pi = -1, so 0=−1+C0 = -1 + C and C=1C = 1.

  3. Step 3: The value

    Putting x=π2x = \dfrac{\pi}{2} gives yx=π2+0+1\dfrac{y}{x} = \dfrac{\pi}{2} + 0 + 1, and multiplying by xx gives y=π2(π2+1)=π24+π2y = \dfrac{\pi}{2}\left(\dfrac{\pi}{2} + 1\right) = \dfrac{\pi^2}{4} + \dfrac{\pi}{2}.

Answer. (A) π24+π2\dfrac{\pi^2}{4} + \dfrac{\pi}{2}

Sanity check. The value is about 4.04. Near x=πx = \pi the slope yx+x2cos⁡x\dfrac{y}{x} + x^2\cos x is negative, since the cosine is close to −1-1, so yy falls to 0 at π\pi from positive values.

Why the other options are wrong

  • (B) This has the two denominators interchanged: the term x2sin⁡xx^2\sin x gives π24\dfrac{\pi^2}{4} and the constant gives π2\dfrac{\pi}{2}.
  • (C) This has the denominators interchanged and the constant taken as −1-1; the condition gives C=+1C = +1.
  • (D) This takes the constant as −1-1, but 0=−1+C0 = -1 + C at x=πx = \pi gives C=1C = 1.

Key takeaway

The trap. The cosine of pi is minus 1, which makes the constant plus 1.

How toppers think. They recognise the exact form at sight and avoid the general linear method.

Remember. ∫xcos⁡xdx\int x\cos xdx is xsin⁡x+cos⁡x+Cx\sin x + \cos x + C

More on Linear Differential Equations