The solution of the differential equation \(x\displaystyle\frac{dy}{dx}+2y=x^2\) is: (C is constant of integration)
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(x^2y=\displaystyle\frac{x^4}{4}+C\)
Dividing by x puts the equation in the linear form \(\frac{dy}{dx} + Py = Q\):
\( \displaystyle \frac{dy}{dx} + \frac{2}{x}\,y = x \)
Here \(P = \frac{2}{x}\) and Q = x. The integrating factor:
\( \displaystyle \text{I.F.} = e^{\int \frac{2}{x}dx} \)
\(= e^{2\log x} = x^2\)
The solution is \(y \times \text{I.F.} = \int Q \times \text{I.F.}\,dx\):
\( \displaystyle x^2y = \int x \cdot x^2\,dx \)
\( \displaystyle x^2y = \frac{x^4}{4} + C \)
NCERT (2026-27 edition):
Linear Differential Equations
