RankRizz
JEE MAIN 2020 · 04 SEP S1+4 / −1MEDIUMTRANSCRIBED

JEE Main 2020 Mathematics question — Variable separable equations

Let y=y(x)y = y(x) be the solution of the differential equation, xy′−y=x2(xcos⁡x+sin⁡x)xy' - y = x^2(x\cos x + \sin x), x>0x > 0. If y(π)=πy(\pi) = \pi, then y′′(π2)+y(π2)y''\left(\frac{\pi}{2}\right) + y\left(\frac{\pi}{2}\right) is equal to:

SOLUTION

We start from the given differential equation

x y′  −  y  =  x2(xcos⁡x+sin⁡x),x>0.x\,y' \;-\; y \;=\; x^{2}\bigl(x\cos x + \sin x\bigr), \qquad x > 0.

Because a factor of xx is multiplying y′y', we first divide the whole equation by xx (allowed since x>0x > 0) so that the derivative term stands alone:

y′  −  1x y  =  x2cos⁡x  +  xsin⁡x.y' \;-\; \frac{1}{x}\,y \;=\; x^{2}\cos x \;+\; x\sin x.

This is a first-order linear differential equation of the standard form

y′+P(x) y=Q(x),y' + P(x)\,y = Q(x),

with

P(x)=−1x,Q(x)=x2cos⁡x+xsin⁡x.P(x) = -\frac{1}{x}, \qquad Q(x) = x^{2}\cos x + x\sin x.

The integrating factor is obtained from the formula μ(x)=e∫P(x) dx.\mu(x)=e^{\int P(x)\,dx}. Hence

μ(x)=exp⁡ ⁣(∫−1x dx)=exp⁡(−ln⁡x)=x−1.\mu(x)=\exp\!\bigl(\int -\tfrac{1}{x}\,dx\bigr) =\exp(-\ln x)=x^{-1}.

Multiplying every term of the differential equation by this integrating factor x−1x^{-1} gives

x−1y′  −  x−2y  =  x−1 ⁣(x2cos⁡x+xsin⁡x)  =  xcos⁡x+sin⁡x.x^{-1}y' \;-\;x^{-2}y \;=\;x^{-1}\!\bigl(x^{2}\cos x + x\sin x\bigr) \;=\;x\cos x + \sin x.

By construction the left-hand side is the exact derivative of μ(x)y=x−1y\mu(x)y=x^{-1}y:

ddx ⁣(x−1y)  =  xcos⁡x+sin⁡x.\frac{d}{dx}\!\bigl(x^{-1}y\bigr) \;=\; x\cos x + \sin x.

We now integrate both sides with respect to xx:

x−1y  =  ∫(xcos⁡x+sin⁡x) dx+C.x^{-1}y \;=\; \int \bigl(x\cos x + \sin x\bigr)\,dx + C.

We evaluate the integral term by term.

First, for ∫xcos⁡x dx\displaystyle\int x\cos x\,dx we apply integration by parts:

Let u=x  ⇒  du=dx,u = x \;\Rightarrow\; du = dx,   and dv=cos⁡x dx  ⇒  v=sin⁡x.dv=\cos x\,dx \;\Rightarrow\; v=\sin x. Then

∫xcos⁡x dx=xsin⁡x− ⁣∫ ⁣sin⁡x dx=xsin⁡x+cos⁡x.\int x\cos x\,dx = x\sin x -\!\int\!\sin x\,dx = x\sin x + \cos x.

Second, ∫sin⁡x dx=−cos⁡x.\displaystyle\int \sin x\,dx = -\cos x.

Adding the two results, the sum of the integrals is simply

xsin⁡x+cos⁡x  +  (−cos⁡x)=xsin⁡x.x\sin x + \cos x \;+\;(-\cos x)=x\sin x.

Thus we have

x−1y=xsin⁡x+C.x^{-1}y = x\sin x + C.

Multiplying through by xx gives the explicit solution

y(x)=x2sin⁡x+Cx.y(x)=x^{2}\sin x + Cx.

We next use the initial condition y(π)=πy(\pi)=\pi to find the constant CC:

π=y(π)=π2sin⁡π+Cπ=0+Cπ,\pi = y(\pi)=\pi^{2}\sin\pi + C\pi = 0 + C\pi,

so C=1.C = 1. Substituting this back, our solution becomes

y(x)=x2sin⁡x+x.y(x)=x^{2}\sin x + x.

Now we need y′′ ⁣(π2)+y ⁣(π2).y''\!\bigl(\tfrac{\pi}{2}\bigr)+y\!\bigl(\tfrac{\pi}{2}\bigr). To do this we first differentiate y(x)y(x) twice.

The first derivative :

y′(x)=ddx(x2sin⁡x+x)=2xsin⁡x+x2cos⁡x+1.\begin{aligned} y'(x) &= \frac{d}{dx}\bigl(x^{2}\sin x + x\bigr) \\ &= 2x\sin x + x^{2}\cos x + 1. \end{aligned}

The second derivative :

y′′(x)=ddx(2xsin⁡x+x2cos⁡x+1)=2sin⁡x+2xcos⁡x+2xcos⁡x−x2sin⁡x=2sin⁡x+4xcos⁡x−x2sin⁡x.\begin{aligned} y''(x) &= \frac{d}{dx}\bigl(2x\sin x + x^{2}\cos x + 1\bigr) \\ &= 2\sin x + 2x\cos x + 2x\cos x - x^{2}\sin x \\ &= 2\sin x + 4x\cos x - x^{2}\sin x. \end{aligned}

We now evaluate these expressions at x=π2.x = \dfrac{\pi}{2}.

Noting that sin⁡ ⁣(π2)=1\sin\!\bigl(\tfrac{\pi}{2}\bigr)=1 and cos⁡ ⁣(π2)=0,\cos\!\bigl(\tfrac{\pi}{2}\bigr)=0, we have

y′′ ⁣(π2)=2⋅1  +  4⋅π2⋅0  −  (π2)2⋅1=2−π24.\begin{aligned} y''\!\bigl(\tfrac{\pi}{2}\bigr) &= 2\cdot 1 \;+\; 4\cdot \tfrac{\pi}{2}\cdot 0 \;-\;\bigl(\tfrac{\pi}{2}\bigr)^{2}\cdot 1 \\ &= 2 - \frac{\pi^{2}}{4}. \end{aligned}

Similarly,

y ⁣(π2)=(π2)2 ⁣⋅1  +  π2=π24+π2.\begin{aligned} y\!\bigl(\tfrac{\pi}{2}\bigr) &= \bigl(\tfrac{\pi}{2}\bigr)^{2}\!\cdot 1 \;+\;\tfrac{\pi}{2} = \frac{\pi^{2}}{4} + \frac{\pi}{2}. \end{aligned}

Adding these two values gives

y′′ ⁣(π2)+y ⁣(π2)=(2−π24)+(π24+π2)=2+π2.\begin{aligned} y''\!\bigl(\tfrac{\pi}{2}\bigr) + y\!\bigl(\tfrac{\pi}{2}\bigr) &= \Bigl(2 - \frac{\pi^{2}}{4}\Bigr) + \Bigl(\frac{\pi^{2}}{4} + \frac{\pi}{2}\Bigr) \\ &= 2 + \frac{\pi}{2}. \end{aligned}

Hence, the correct answer is Option A.

Tagged Variable separable equations. Machine-assigned, so read it as a strong shortlist rather than a verdict.

TopicVariable separable equations
TypeMultiple choice