The differential equation \(x\displaystyle\frac{dy}{dx}-y=x^2\) has the general solution:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(y=x^2+cx\), where c is a constant.
Dividing by x puts the equation in the linear form \(\frac{dy}{dx}+Py = Q\):
\(\displaystyle \frac{dy}{dx}-\frac{1}{x}\,y = x\)
Here \(P = -\frac{1}{x}\), \(Q = x\). The integrating factor is
\(\displaystyle \text{I.F.} = e^{\int -\frac{1}{x}dx} = e^{-\log x} = \frac{1}{x}\)
Multiplying by the I.F.:
\(\displaystyle \frac{d}{dx}\left(\frac{y}{x}\right) = x\cdot\frac{1}{x} = 1\)
\(\displaystyle \frac{y}{x} = x+c\)
\(y = x^2+cx\)