The integrating factor of the differential equation \(x\displaystyle\frac{dy}{dx}+2y =x^2\) is:
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → \(x^2\)
Dividing by x puts the equation in the standard linear form \(\frac{dy}{dx} + Py = Q\):
\( \displaystyle \frac{dy}{dx} + \frac{2}{x}\,y = x \)
So \(P = \frac{2}{x}\), and the integrating factor is
\( \displaystyle e^{\int P\,dx} = e^{\int \frac{2}{x}dx} = e^{2\log x} = x^2 \)
Why the other options are incorrect
Option (2) \(2x\) — Incorrect. The integrating factor is \(e^{2\log x} = x^2\), not 2x.
Option (3) \(e^{2x}\) — Incorrect. It takes P = 2 without first dividing the equation by x.
Option (4) \(e^x\) — Incorrect. It would need P = 1; here \(P = \frac{2}{x}\).