The general solution of the differential equation \(x\displaystyle\frac{dy}{dx}+2y = x^2\), \(x \ne 0\) is:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(y=\displaystyle\frac{x^2}{4}+\frac{c}{x^2}\) (c is constant of integration)
Dividing by x gives a linear differential equation:
\( \displaystyle \frac{dy}{dx}+\frac{2}{x}\,y = x \)
The integrating factor is
\( \displaystyle e^{\int \frac{2}{x}\,dx} = e^{2\log|x|} = x^2 \)
Multiplying by \(x^2\), the left side becomes the derivative of \(x^2y\):
\( \displaystyle \frac{d}{dx}\left(x^2y\right) = x^3 \)
\( \displaystyle x^2y = \frac{x^4}{4}+c \)
\( \displaystyle y = \frac{x^2}{4}+\frac{c}{x^2} \)
NCERT (2026-27 edition):
Linear Differential Equations
