RankRizz
JEE MAIN 2022 · 26 JUN S2+4 / −1MEDIUMTRANSCRIBED

JEE Main 2022 Mathematics question — Linear first-order differential equations

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

SOLUTION

We need to solve xdydx+2y=xexx\frac{dy}{dx} + 2y = xe^x with y(1)=0y(1) = 0, then find the local maximum of z(x)=x2y(x)−exz(x) = x^2y(x) - e^x.

First, we rewrite the differential equation as dydx+2xy=ex\frac{dy}{dx} + \frac{2}{x}y = e^x and identify the integrating factor as μ=e∫2xdx=x2\mu = e^{\int \frac{2}{x}dx} = x^2.

Next, multiplying through by this integrating factor gives ddx(x2y)=x2ex\frac{d}{dx}(x^2 y) = x^2 e^x, and integrating both sides yields x2y=∫x2ex dx=x2ex−2xex+2ex+C=ex(x2−2x+2)+Cx^2 y = \int x^2 e^x\,dx = x^2 e^x - 2xe^x + 2e^x + C = e^x(x^2 - 2x + 2) + C.

Now applying the initial condition y(1)=0y(1) = 0 leads to 1⋅0=e1(1−2+2)+C  ⟹  0=e+C  ⟹  C=−e1\cdot 0 = e^1(1 - 2 + 2) + C \implies 0 = e + C \implies C = -e, so that x2y=ex(x2−2x+2)−ex^2 y = e^x(x^2 - 2x + 2) - e.

Since z(x)=x2y−exz(x) = x^2 y - e^x, substituting the expression for x2yx^2 y gives z(x)=ex(x2−2x+2)−e−ex=ex(x2−2x+1)−e=ex(x−1)2−ez(x) = e^x(x^2 - 2x + 2) - e - e^x = e^x(x^2 - 2x + 1) - e = e^x(x-1)^2 - e.

Next, differentiating yields z′(x)=ex(x−1)2+ex⋅2(x−1)=ex(x−1)[(x−1)+2]=ex(x−1)(x+1)z'(x) = e^x(x-1)^2 + e^x \cdot 2(x-1) = e^x(x-1)[(x-1) + 2] = e^x(x-1)(x+1), so the critical points are x=1x = 1 and x=−1x = -1.

Performing a sign analysis of z′(x)=ex(x−1)(x+1)z'(x) = e^x(x-1)(x+1) shows that for x<−1x < -1 both factors (x−1)(x-1) and (x+1)(x+1) are negative, yielding z′>0z' > 0, while for −1<x<1-1 < x < 1 the factor (x−1)(x-1) is negative and (x+1)(x+1) is positive, giving z′<0z' < 0. Therefore, x=−1x = -1 is a local maximum.

Finally, evaluating at this point gives z(−1)=e−1(−1−1)2−e=4e−ez(-1) = e^{-1}(-1-1)^2 - e = \frac{4}{e} - e. Hence the correct answer is Option D: 4e−e\dfrac{4}{e} - e.

Tagged Linear first-order differential equations. Machine-assigned, so read it as a strong shortlist rather than a verdict.

TopicLinear first-order differential equations
TypeMultiple choice