Integrating Factor
Method
Master the technique for solving first-order linear ODEs by multiplying through with a carefully chosen function.
What is a First-Order Linear ODE?
A first-order linear ordinary differential equation has the standard form:
$$ \frac{dy}{dx} + P(x)\,y = Q(x) $$
The Big Idea
The left side of \( \frac{dy}{dx} + P(x)\,y = Q(x) \) almost looks like the derivative of a product, but not quite. If we could find a function \( \mu(x) \) to multiply both sides so that the left side becomes an exact product derivative, we could integrate directly.
Why It Works: The Product Rule
Recall the product rule:
$$ \frac{d}{dx}\big[\mu(x)\,y\big] = \mu(x)\,\frac{dy}{dx} + \mu'(x)\,y $$
Compare with our goal after multiplying by \( \mu \):
$$ \mu(x)\,\frac{dy}{dx} + \mu(x)\,P(x)\,y $$
Deriving \( \mu(x) \)
From \( \mu'(x) = \mu(x)\,P(x) \), separate and integrate:
$$ \frac{d\mu}{\mu} = P(x)\,dx \quad\Longrightarrow\quad \ln|\mu| = \int P(x)\,dx $$
$$ \boxed{\;\mu(x) = e^{\int P(x)\,dx}\;} $$
The Core Formula
After multiplying through and integrating both sides, the general solution is:
$$ y = \frac{1}{\mu(x)}\!\left[\int \mu(x)\,Q(x)\,dx + C\right] $$
where \( \mu(x) = e^{\int P(x)\,dx} \).
Integrating Factor vs. Separation of Variables
| Integrating Factor | Separation of Variables | |
|---|---|---|
| Form | \( y' + P(x)\,y = Q(x) \) | \( g(y)\,dy = f(x)\,dx \) |
| Works when | ODE is linear in \( y \) | Variables can be separated |
| Key step | Multiply by \( \mu(x) \) | Move all \( y \) terms to one side |
| Limitation | First-order linear only | Not all ODEs are separable |
How to Apply the Method
Example 1: Simple Case
Solve: \( \dfrac{dy}{dx} + 2y = 6 \)
Visualizing \( y = 3 + Ce^{-2x} \)
Example 2: Variable Coefficient
Solve: \( \dfrac{dy}{dx} + \dfrac{1}{x}\,y = x^2 \), \( x > 0 \)
Example 3: Initial Value Problem
Solve: \( \dfrac{dy}{dx} - 3y = e^{5x} \), \(\; y(0) = 2 \)
When Does It Apply?
The integrating factor method works on every first-order linear ODE. Watch for equations that look nonlinear but can be rearranged:
Divide by \( x \) to get standard form.
The \( y^2 \) makes this a Riccati equation.
Common Integrating Factors
| \( P(x) \) | \( \int P(x)\,dx \) | \( \mu(x) \) |
|---|---|---|
| \( a \) (constant) | \( ax \) | \( e^{ax} \) |
| \( \frac{n}{x} \) | \( n\ln|x| \) | \( |x|^n \) |
| \( \frac{1}{x+a} \) | \( \ln|x+a| \) | \( |x+a| \) |
| \( \sec^2 x \) | \( \tan x \) | \( e^{\tan x} \) |
| \( -\sin x \) | \( \cos x \) | \( e^{\cos x} \) |
Common Mistakes
Question 1 of 5
What is the integrating factor for \( \dfrac{dy}{dx} + 4y = e^x \)?
Question 2 of 5
For the ODE \( \dfrac{dy}{dx} - \dfrac{2}{x}\,y = x^3 \), what is \( \mu(x) \)?
Question 3 of 5
Solve \( y' + y = 2 \) with \( y(0) = 0 \). What is \( y(x) \)?
Question 4 of 5
Which ODE cannot be solved by the integrating factor method?
Question 5 of 5
After multiplying by the integrating factor, the left side of the ODE becomes: