What you need to know
- The equation must be linear in \(y\) and its first derivative.
- Rearrange it into standard form before identifying \(P(x)\) and \(Q(x)\).
- The integrating factor converts the left side into one product-rule derivative.
- Use any initial condition only after obtaining the general solution.
Standard form
\[\boxed{\frac{dy}{dx}+P(x)y=Q(x)}\]
The integrating factor is
\[\boxed{\mu(x)=e^{\int P(x)\,dx}}\]
Multiplying the equation by \(\mu(x)\) gives
\[\boxed{\frac{d}{dx}\left(\mu(x)y\right)=\mu(x)Q(x)}\]