MCQMediumJEE 2023Linear Differential Equations

JEE Mathematics 2023 Question with Solution

Let y=y(x)y = y(x) be the solution of the differential equation

xlogexdydx+y=x2logex,(x>1).x \log_e x \frac{dy}{dx} + y = x^2 \log_e x, \quad (x > 1).

If y(2)=2y(2) = 2, then y(e)y(e) is equal to:

  • A

    4+e24\frac{4 + e^2}{4}

  • B

    1+e24\frac{1 + e^2}{4}

  • C

    2+e22\frac{2 + e^2}{2}

  • D

    1+e22\frac{1 + e^2}{2}

Answer

Correct answer:A

Step-by-step solution

Standard Method

Given:

xlogexdydx+y=x2logex,x>1x \log_e x \frac{dy}{dx} + y = x^2 \log_e x, \quad x > 1

and y(2)=2y(2) = 2.

Find: y(e)y(e) and the correct option.

Rewrite the differential equation as

dydx+1xlogexy=x\frac{dy}{dx} + \frac{1}{x \log_e x} y = x

This is a linear differential equation of the form

dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x)

where

P(x)=1xlogex,Q(x)=xP(x) = \frac{1}{x \log_e x}, \qquad Q(x) = x

The integrating factor is

I.F.=eP(x)dx=e1xlogexdx\text{I.F.} = e^{\int P(x) \, dx} = e^{\int \frac{1}{x \log_e x} \, dx}

Let

u=logexu = \log_e x

so that

du=1xdxdu = \frac{1}{x} \, dx

Then

1xlogexdx=1udu=logeu=loge(logex)\int \frac{1}{x \log_e x} \, dx = \int \frac{1}{u} \, du = \log_e u = \log_e(\log_e x)

Hence

I.F.=eloge(logex)=logex\text{I.F.} = e^{\log_e(\log_e x)} = \log_e x

Multiplying the differential equation by logex\log_e x,

(logex)dydx+yx=xlogex(\log_e x) \frac{dy}{dx} + \frac{y}{x} = x \log_e x

Recognize the left-hand side as

ddx(ylogex)=xlogex\frac{d}{dx}(y \log_e x) = x \log_e x

Integrating both sides,

ylogex=xlogexdxy \log_e x = \int x \log_e x \, dx

Now use integration by parts for xlogexdx\int x \log_e x \, dx. Take

u=logex,dv=xdxu = \log_e x, \qquad dv = x \, dx

Then

du=1xdx,v=x22du = \frac{1}{x} \, dx, \qquad v = \frac{x^2}{2}

So,

xlogexdx=x22logexx221xdx=x22logexx24+C\int x \log_e x \, dx = \frac{x^2}{2} \log_e x - \int \frac{x^2}{2} \cdot \frac{1}{x} \, dx = \frac{x^2}{2} \log_e x - \frac{x^2}{4} + C

Therefore,

ylogex=x22logexx24+Cy \log_e x = \frac{x^2}{2} \log_e x - \frac{x^2}{4} + C

Divide by logex\log_e x:

y=x22x24logex+Clogexy = \frac{x^2}{2} - \frac{x^2}{4 \log_e x} + \frac{C}{\log_e x}

Use the initial condition y(2)=2y(2) = 2:

2=4244loge2+Cloge22 = \frac{4}{2} - \frac{4}{4 \log_e 2} + \frac{C}{\log_e 2}

so

2=21loge2+Cloge22 = 2 - \frac{1}{\log_e 2} + \frac{C}{\log_e 2}

Hence,

C=1C = 1

Thus,

y=x22x24logex+1logexy = \frac{x^2}{2} - \frac{x^2}{4 \log_e x} + \frac{1}{\log_e x}

Now evaluate at x=ex = e. Since logee=1\log_e e = 1,

y(e)=e22e24+1=e24+1=4+e24y(e) = \frac{e^2}{2} - \frac{e^2}{4} + 1 = \frac{e^2}{4} + 1 = \frac{4 + e^2}{4}

Therefore, the correct option is A.

The solution states "The Correct Option is D", but the worked calculation gives y(e)=4+e24y(e) = \frac{4 + e^2}{4}, which matches option A.

Why the integrating factor works

After rewriting the equation as

dydx+1xlogexy=x\frac{dy}{dx} + \frac{1}{x \log_e x} y = x

the coefficient of yy is 1xlogex\frac{1}{x \log_e x}, so the integrating factor is chosen to convert the left-hand side into a product derivative.

Because

ddx(logex)=1x\frac{d}{dx}(\log_e x) = \frac{1}{x}

and

ddx(ylogex)=(logex)dydx+yx\frac{d}{dx}(y \log_e x) = (\log_e x)\frac{dy}{dx} + \frac{y}{x}

multiplying by logex\log_e x creates exactly the derivative needed. That reduces the differential equation to a single integration step, followed by use of the initial condition.

Common mistakes

  • Taking the integrating factor incorrectly as xlogexx \log_e x or xx. This is wrong because the linear form is dydx+1xlogexy=x\frac{dy}{dx} + \frac{1}{x \log_e x}y = x, so the integrating factor must be based on 1xlogexdx\int \frac{1}{x \log_e x} \, dx. Always rewrite first in standard linear form before finding the integrating factor.

  • Missing the product derivative identity ddx(ylogex)=(logex)dydx+yx\frac{d}{dx}(y \log_e x) = (\log_e x)\frac{dy}{dx} + \frac{y}{x}. If this is not recognized, the transformed equation appears harder than it is. After multiplying by the integrating factor, always check whether the left-hand side is an exact derivative.

  • Making an error in integration by parts for xlogexdx\int x \log_e x \, dx, especially forgetting that v=x22v = \frac{x^2}{2}. This leads to the wrong constant term and hence the wrong final value of y(e)y(e). Compute u,dv,du,vu, dv, du, v carefully before substitution.

Practice more Linear Differential Equations questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions