which is multiplied to both sides of the first order linear differential equation.
This is one of the few cases when the +C does not matter, as it would results multiplying both sides by eC, which does not affect the calculus.
e∫P(x)dx(dxdy+P(x)y)=Q(x)e∫P(x)dx
Comparing the left side to product rule, it is very conveniently
dxd(ye∫P(x)dx)=Q(x)e∫P(x)dx
This can be solved with integrating both sides then divide by the integrating factor.
Yes, you may have noticed that this requires two steps of integration, once for the integrating factor, and once to solve the differential equation.
Practice
Example: (May 2018 HL Paper 3 Calculus #5) Consider the differential equation
xdxdy−y=xp+1
where x∈R,x=0 and p is a positive integer, p>1. Given y=−1 when x=1, solve for y as a function of x.
We first need to get it in the desired form
dxdy+yx−1=xp−1+x1
The integrating factor is e∫x−1dx
The purpose of ∫x1dx=ln∣x∣+C is to keep the domain to all x=0. Integrating factor is we multiply by it then divide by it later, so it does not change the domain and we do not need the absolute values.