Differential Equations · Undergraduate
First-Order Linear Equations and Integrating Factors
Quick answer
A first-order linear differential equation has the form y′ + p(x)y = q(x). Most cannot be separated, but all can be solved the same way. Multiply both sides by the integrating factor μ(x) = e^∫p(x)dx. The left side then becomes the derivative of a single product, (μy)′, so integrating both sides and dividing by μ gives y. The general solution always has one constant, which an initial condition fixes.
What you'll learn
- Recognize a first-order linear equation and put it in standard form
- Find the integrating factor e^∫p dx
- Solve the equation by integrating (μy)′ = μq
- Use an initial condition to find the constant
An equation that will not separate
Separable equations let us move all the s to one side and all the s to the other. An equation such as
will separate, but will not: the right side is not a product of a function of and a function of . Both belong to a broad family, the first-order linear equations:
Every equation in this family can be solved by the same method.
The integrating factor
Multiply both sides by a function , still to be chosen:
Compare the left side with the product rule, . They match if , and that equation is separable: . With this integrating factor,
Why it works
The obstacle in is that and appear separately, so neither side can be integrated directly. The integrating factor is chosen precisely so that the two terms combine into one derivative, the derivative of . After that, solving is a single integration. The trick is the product rule read backward, the same idea as integration by parts.
Worked examples
Common mistakes
Practice problems
-
Solve .
Answer
Full solution
: , so .
-
Solve with .
Answer
Full solution
: , so and . Then .
-
Solve .
Answer
Full solution
. By parts, .
-
Solve .
Answer
Full solution
: , which integrates to .
-
Solve for .
Answer
Full solution
. Then , so .
-
Solve .
Answer
Full solution
, so .
-
Which of these are first-order linear: , , ?
Answer
The first and third
Full solution
and fit the form. has squared.
-
A student solves with . What went wrong?
Answer
The equation was not divided by first; the correct factor is .
Full solution
In standard form the coefficient of is , so and .
Frequently asked questions
What is a first-order linear differential equation?
One that can be written y′ + p(x)y = q(x), where p and q depend only on x. The unknown y and its derivative appear only to the first power and are not multiplied together.
What is an integrating factor?
The function μ(x) = e^∫p(x)dx. Multiplying the equation by it makes the left side the derivative of the product μy.
Why does the integrating factor work?
By the product rule, (μy)′ = μy′ + μ′y. Choosing μ with μ′ = pμ makes that exactly μ(y′ + py), the left side times μ.
Do I need a constant when finding the integrating factor?
No. Any one integrating factor works, so leave out the constant in ∫p dx. The constant that matters appears when you integrate μq.
What if the equation is not in standard form?
Divide by the coefficient of y′ first. For xy′ + 2y = 10x³, divide by x to get y′ + (2/x)y = 10x².