The general solution of the differential equation \(\displaystyle\frac{dy}{dx}-\frac{y}{x}=x^2\) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(y=\displaystyle\frac{x^3}{2}+Cx\), where C is a constant
The equation is linear, of the form \(\frac{dy}{dx} + Py = Q\), with
\( \displaystyle P = -\frac{1}{x}, \quad Q = x^2 \)
The integrating factor (taking x > 0):
\( \displaystyle \text{I.F.} = e^{\int P\,dx} = e^{-\log x} = \frac{1}{x} \)
The solution is \(y \times \text{I.F.} = \int Q \times \text{I.F.}\,dx + C\):
\( \displaystyle \frac{y}{x} = \int x^2 \cdot \frac{1}{x}\,dx + C \)
\( \displaystyle \frac{y}{x} = \frac{x^2}{2} + C \)
Multiplying by x:
\( \displaystyle y = \frac{x^3}{2} + Cx \)