Question
(JEE Main 2023 PYQ — paraphrased) Solve the differential equation:
dxdy+x2y=x2,y(1)=1
Solution — Step by Step
This is a first-order linear ODE in standard form dxdy+P(x)y=Q(x) with P(x)=2/x and Q(x)=x2.
Integrating factor:
μ(x)=e∫Pdx=e∫2/xdx=e2lnx=x2
Multiply both sides by x2:
x2dxdy+2xy=x4
The left side is dxd(x2y) — that’s the magic of the integrating factor.
dxd(x2y)=x4
Integrate both sides:
x2y=5x5+C
Apply y(1)=1: 1⋅1=1/5+C⟹C=4/5.
y=5x3+5x24
The solution is y=5x3+5x24.
Why This Works
The integrating factor turns a linear ODE into a perfect derivative. Multiplying by μ(x)=e∫Pdx ensures the left-hand side becomes dxd(μy), after which we just integrate.
This is the standard recipe for any first-order linear ODE. The hard step is identifying that the equation is linear in y — meaning y and dy/dx appear only to the first power, with no products like ydxdy.
If the equation has y and dxdy multiplied together, it’s not linear — try variable separation, substitution, or recognize it as a Bernoulli equation. JEE Main usually keeps to linear or separable; JEE Advanced may throw Bernoulli or homogeneous.
Alternative Method
Variation of parameters: write y=uv where v is chosen to kill one term. Set v′+(2/x)v=0, giving v=1/x2. Then u′⋅v=x2⟹u′=x4⟹u=x5/5+C. So y=(x5/5+C)/x2=x3/5+C/x2. Same answer.
Common Mistake
Students compute the integrating factor as e2x instead of x2, forgetting that ∫2/xdx=2lnx, not 2x. Read the integral carefully — it’s P(x)=2/x, not P(x)=2.