Linear First-Order Equations
A linear first-order differential equation is the workhorse of applied mathematics. Whenever a quantity changes at a rate that depends linearly on its current value plus some outside forcing — salt dissolving in a stirred tank, current building up in a circuit, a bank balance earning interest while you make deposits — the model that falls out is . What makes this class so beloved is that we have a completely reliable recipe, the integrating-factor method, that solves every equation of this form. No guessing, no luck: multiply by the right function and the left side collapses into a single derivative you can integrate directly.
This page teaches you not just to turn the crank, but to understand why the trick works, where it came from, and how to bend real problems into the shape it needs.
Learning Objectives
- Recognize when a first-order equation is linear and put it in the standard form .
- Derive and apply the integrating factor .
- Solve initial-value problems and interpret the transient and steady-state parts of a solution.
- Model and solve mixing (tank) problems and RL/RC electrical circuits.
- Distinguish linear equations from separable, Bernoulli, and exact equations.
Quick Answer
A linear first-order ODE has the standard form , where and depend only on (never on or powers of ). To solve it, compute the integrating factor and multiply the whole equation by it. The left side then becomes exactly , so integrating both sides gives . Divide by to get . The arbitrary constant is pinned down by an initial condition. This single method handles mixing problems, electrical circuits, cooling, and many growth models.
Where It Came From
By the late 1600s, Newton and Leibniz had given the world calculus, and mathematicians immediately began writing differential equations to describe motion, heat, and mechanics. But writing an equation is not solving it, and early solutions were a patchwork of clever, one-off substitutions. The pressing need was a general, reusable method for the equations that kept reappearing in physics.
The Bernoulli family drove much of this. In 1695 Jakob Bernoulli posed what we now call the Bernoulli equation, , and his brother Johann Bernoulli showed that a substitution reduces it to a linear equation — implicitly identifying the linear case as the fundamental, solvable core. Johann's insight was essentially that multiplying by a well-chosen factor made the equation integrable.
Leonhard Euler, Johann's student, then systematized the idea in the 1730s–1760s into the integrating factor as we teach it today: a function that turns a messy sum into a perfect derivative. Euler's genius was recognizing that the awkward combination is just provided — a condition that itself is a simple separable equation. This transformed a whole family of physically important equations from "solve by inspiration" into "solve by procedure," and it remains one of the first truly general techniques a student of differential equations learns. The motivation was never abstract: these were the equations of pendulums, resisted motion, and later electrical circuits, and industry and physics needed answers, not artistry.
The Standard Form and the Integrating Factor
An equation is linear in if and appear only to the first power, are not multiplied together, and are not inside any nonlinear function. The standard form is
Always divide through by the coefficient of first so that stands alone — a common source of errors is forgetting this and using the wrong .
Why an integrating factor exists. We want a multiplier so that
By the product rule, . Matching the two expressions forces , whose solution is
(We drop the constant of integration here because any single working suffices.) Once we multiply by this , the equation becomes , and integrating gives the master formula:
Worked Example 1
Solve with .
Here and . The integrating factor is
Multiply through: . The left side is , so
Therefore . Apply : , so . The solution is
Check: , and . Correct.
Worked Example 2 (variable coefficient)
Solve for .
First divide by to reach standard form: . So and
Multiply the standard-form equation by : . The left side is , so
using integration by parts. Hence
Transient and Steady State
Many solutions split into two meaningful pieces: a transient part that decays to zero and a steady-state part that persists. In Example 1, both terms decayed, but in forced problems with constant input, one term survives. This structure is central to engineering: it tells you the long-term behavior of a circuit or tank regardless of how it started, and the transient tells you how fast it settles. The constant (fixed by the initial condition) rides only on the transient part, which is why different starting states converge to the same steady state.
Real-World Applications
Mixing (tank) problems. A tank holds a solution; brine flows in, the well-stirred mixture flows out. If is the amount of dissolved substance, then
The rate out is (concentration in tank) × (outflow rate) , which is linear in — exactly .
Worked Example 3 (mixing)
A 100 L tank starts with pure water. Brine containing 2 g/L of salt flows in at 5 L/min, and the well-mixed solution drains at 5 L/min (so volume stays 100 L). Find the salt amount .
Rate in g/min. Rate out g/min. So
Integrating factor . Then , so , giving . With , :
The steady state is 200 g — which makes sense: 100 L at the inflow concentration of 2 g/L is exactly 200 g.
Electrical circuits. For an RL circuit with resistance , inductance , and voltage source , Kirchhoff's law gives , i.e. — linear first-order.
Worked Example 4 (RL circuit)
An RL circuit has H, , and a constant source V, with . Find .
Standard form: . Integrating factor . Then , so , giving . With , :
The steady-state current is A (Ohm's law), and the transient dies with time constant s.
Common Mistakes
-
Forgetting to normalize to standard form. If the equation is , students often read off instead of . Why wrong: the integrating-factor derivation assumes the coefficient of is exactly 1. Correction: always divide by that coefficient first, then read .
-
Adding a constant when computing . Writing and carrying around. Why wrong: it clutters the algebra and can hide sign errors; any nonzero constant multiple works, so we choose the simplest. Correction: take the constant of integration to be zero when finding . Keep the only for the final integration.
-
Dropping the at the end. After getting , forgetting to divide the whole right side (including ) by . Why wrong: the constant is also divided, so is generally a function of , not a constant — this is the transient term. Correction: solve for by dividing everything by .
Comparison and Connections
Linear first-order equations sit among several sibling techniques. Knowing which tool matches which equation saves enormous effort.
| Type | Form | Method |
|---|---|---|
| Linear | Integrating factor | |
| Separable | Separate variables, integrate | |
| Bernoulli | Substitute , then linear | |
| Exact | , | Find potential |
Note that a linear equation with (called homogeneous) is also separable — the two methods agree there. The Bernoulli equation, historically the parent of this whole story, reduces to the linear case, so mastering the linear method unlocks it too.
Practice Questions
Recall
State the standard form of a linear first-order ODE and write the formula for the integrating factor.
Answer: ; integrating factor .
Understanding
Explain why multiplying by makes the left side a single derivative.
Guidance: Because , the expression , which is exactly by the product rule.
Application
Solve , .
Answer: ; , so , giving . With : . So .
Analysis
In Worked Example 3, suppose the drain rate were only 4 L/min while inflow stayed 5 L/min. Why is the resulting equation no longer constant-coefficient, and what changes?
Guidance: The volume grows: . Rate out , so — still linear, but now varies, giving . The method still works; the coefficient is just no longer constant.
FAQ
Is linear? No. The term makes it nonlinear. Linear means and appear only to the first power and never multiplied together.
Can and be any functions? They can be any functions of alone. The method always formally works, but the integrals and may not have closed forms — then you leave the answer as an integral or evaluate numerically.
What if I can't do the final integral? Leave it in integral form: . This is still a complete, exact solution.
Why do circuits and tanks give the same kind of equation? Both describe a quantity whose rate of change is a constant input minus a term proportional to the current amount. That "proportional loss" is what produces the linear term and the exponential decay of the transient.
Does the integrating factor ever equal zero? No. Since is an exponential, it is always strictly positive, so dividing by it at the end is always safe.
Quick Revision
- Standard form: — divide out the coefficient of first.
- Integrating factor: (drop the constant here).
- After multiplying: , so .
- Solution: ; divide the too.
- Mixing: . RL circuit: .
- Steady state = long-term value; transient decays away.
Related Topics
Prerequisites
Related Topics
- Separable equations (a special case when )
- Bernoulli equations (reduce to linear via substitution)
Next Topics
- Second-order linear differential equations
- Systems of linear differential equations