QlarIITy

MathematicsJEE Main 2022 · 26 JuneSingle correct

If y=y(x)y = y(x) is the solution of the differential equationxdydx+2y=xex,y(1)=0x\frac{dy}{dx} + 2y = xe^x, y(1) = 0then the local maximum value of the functionz(x)=x2y(x)−ex,x∈Rz(x) = x^2y(x) - e^x, x \in Ris

  1. Option A: 1−e1 - e
  2. Option B: 0
  3. Option C: 12\frac{1}{2}
  4. Option D: 4e−e\frac{4}{e} - e
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. When the quantity asked for contains the solution times the integrating factor, that product is used directly.

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. Multiplying xdydx+2y=xexx\dfrac{dy}{dx} + 2y = xe^x by xx gives (x2y)′=x2ex\left(x^2y\right)^{\prime} = x^2e^x, the same as using the integrating factor x2x^2 of the refresher. The function z=x2y−exz = x^2y - e^x needs only the product x2yx^2y.

The graph of z against x: it rises slowly from the dashed line z = −e on the far left to a local maximum at x = −1, falls to its lowest point on the dashed line at x = 1, and then rises steeply.

Approach. Find the product, build the function z, and locate its local maximum.

  1. Step 1: The product

    Integrating by parts twice, x2y=(x2−2x+2)ex+Cx^2y = (x^2 - 2x + 2)e^x + C, and y(1)=0y(1) = 0 gives 0=e+C0 = e + C, so C=−eC = -e. So

    z=(x2−2x+2)ex−e−ex=(x−1)2ex−e\begin{aligned} z &= (x^2 - 2x + 2)e^x - e - e^x \\[4pt] &= (x - 1)^2e^x - e \end{aligned}

    and

    z′=(2(x−1)+(x−1)2)ex=(x−1)(x+1)ex\begin{aligned} z^{\prime} &= \left(2(x - 1) + (x - 1)^2\right)e^x \\[4pt] &= (x - 1)(x + 1)e^x \end{aligned}
  2. Step 2: The local maximum

    The derivative changes from positive to negative at x=−1x = -1, so that is the local maximum, and z(−1)=4e−ez(-1) = \dfrac{4}{e} - e.

Answer. (D) 4e−e\dfrac{4}{e} - e

Sanity check. At the other stationary point, x=1x = 1, the derivative changes from negative to positive and z=−ez = -e, the least value; 4e−e\dfrac{4}{e} - e, about −1.25-1.25, is above it, as a local maximum must be.

Why the other options are wrong

  • (A) The value 1−e1 - e is z(0)z(0), where the derivative is −1-1, so it is not a stationary value.
  • (B) The value 0 is not taken at either stationary point; there zz is 4e−e\dfrac{4}{e} - e and −e-e.
  • (C) The value 12\dfrac{1}{2} is positive, but the local maximum 4e−e\dfrac{4}{e} - e is about −1.25-1.25.

Key takeaway

The trap. There are two stationary points, and the sign change decides which is the maximum.

How toppers think. They factorise the new function into a perfect square times the exponential before differentiating.

Remember. ((x−1)2ex)′=(x2−1)ex\left((x - 1)^2e^x\right)^{\prime} = (x^2 - 1)e^x

More on Linear Differential Equations