The integrating factor of the differential equation \(\displaystyle\frac{dy}{dx}+y\tan x = \sec x\) is:
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(\sec x\)
The equation is linear, of the form \(\frac{dy}{dx} + Py = Q\) with \(P = \tan x\). Its integrating factor is \(e^{\int P\,dx}\).
\( \displaystyle \int\tan x\,dx = \log\left|\sec x\right| \)
\( \displaystyle \text{I.F.} = e^{\log\left|\sec x\right|} = \sec x \)
Why the other options are incorrect
Option (1) \(e^{\cos x}\) — Incorrect. The power of e must be \(\int\tan x\,dx = \log|\sec x|\), not cos x.
Option (3) \(e^{\sec x}\) — Incorrect. The power of e is \(\log|\sec x|\), not sec x; and \(e^{\log|\sec x|}\) simplifies to sec x.
Option (4) \(\cos x\) — Incorrect. \(\int\tan x\,dx = -\log|\cos x|\); dropping the minus sign gives \(e^{\log|\cos x|} = \cos x\).