Solving Non-Homogeneous Linear ODEs
You'll learn how to find the complete general solution to dy/dx + P(x)y = Q(x) using the integrating factor method.
The Core Idea
Once you've multiplied your ODE by the integrating factor μ(x) = e^(∫P(x)dx), the left side becomes the derivative of a product: d/dx[μ(x)y]. This transforms your equation into something you can integrate directly.
Starting with:
dy/dx + P(x)y = Q(x)
Multiply both sides by μ(x):
μ(x)dy/dx + μ(x)P(x)y = μ(x)Q(x)
The left side is exactly d/dx[μ(x)y], so:
d/dx[μ(x)y] = μ(x)Q(x)
Now integrate both sides with respect to x:
μ(x)y = ∫μ(x)Q(x)dx + C
Finally, solve for y:
y = (1/μ(x))[∫μ(x)Q(x)dx + C]
Think of It This Way
The integrating factor "packages" the messy left side into a single derivative. Once packaged, you simply unwrap it by integrating—like reversing a derivative you recognize.
The constant C from integration gives you the general solution, representing infinitely many solution curves. An initial condition would pin down one specific curve.
Example Pattern
For dy/dx + 2xy = x, you'd find μ(x) = e^(x²), then integrate e^(x²) · x on the right side, and divide by μ(x) at the end.
Key Takeaway: The integrating factor transforms dy/dx + P(x)y = Q(x) into d/dx[μy] = μQ, which you solve by integrating both sides and dividing by μ to get the general solution y = (1/μ)[∫μQ dx + C].