Integrating factor of the differential equation \(x\displaystyle\frac{dy}{dx}-y=3x^2\) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\displaystyle\frac{1}{x}\)
Dividing by x puts the equation in the standard linear form \(\frac{dy}{dx} + Py = Q\):
\( \displaystyle \frac{dy}{dx} - \frac{1}{x}\,y = 3x \)
\( \displaystyle P = -\frac{1}{x} \)
The integrating factor is \(e^{\int P\,dx}\):
\( \displaystyle \int P\,dx = -\int\frac{1}{x}\,dx = -\log x \)
\( \displaystyle \text{I.F.} = e^{-\log x} = e^{\log x^{-1}} = \frac{1}{x} \)
Why the other options are incorrect
Option (1) \(-x\) — Incorrect. \(e^{-\log x}\) equals \(\frac{1}{x}\), not \(-x\).
Option (3) \(-\log x\) — Incorrect. This is \(\int P\,dx\) itself; the integrating factor is e raised to this power.
Option (4) \(e^{-x}\) — Incorrect. It would be the integrating factor only if P were −1; here \(P = -\frac{1}{x}\).