First-Order Linear ODE
Problem
Solve dy/dx + 2y = 6 and show the solution approaching the equilibrium y = 3.
Explanation
What is a first-order linear ODE?
An equation is first-order linear in when it can be written in the standard form where and depend on only (not on ). "Linear" means and appear to the first power and never multiply each other.
The given equation is already in standard form with the constants and .
When and are constants, the solution has a clean structure: where the equilibrium (steady state) is . Every solution relaxes to the equilibrium if .
Step-by-step solution (the integrating factor way)
Step 1 — Integrating factor.
Multiply both sides by . The left side collapses into a single derivative:
So the equation becomes
Step 2 — Integrate both sides.
Step 3 — Solve for .
Divide through by :
Interpretation — equilibrium + decay
The solution has two pieces:
- Particular / steady-state piece: . This is the equilibrium — the value where :
- Transient piece: . This dies off exponentially (because ). The time scale for decay is .
Any initial condition simply picks how far above or below you start, and then the solution relaxes back to .
Initial value problem
If , then
Quick checks:
- ✓
- As , , so . ✓
Verification
Compute from :
Plug into :
Why the equilibrium is
At equilibrium , so the ODE reduces to → . Whenever and is constant, you can read off the steady state immediately.
Where this shape appears in applications
- Newton's law of cooling: → temperature relaxes exponentially to the ambient temperature.
- RC circuits: → capacitor voltage relaxes to the source voltage.
- Drug clearance: (infusion rate ) → drug concentration stabilizes at .
- Bank interest with steady withdrawals, terminal velocity under air drag, and many other "approach to a steady state" problems all have this form.
Common mistakes
- Forgetting to divide by the coefficient of before reading off . If the equation is , divide first: .
- Using the wrong integrating factor for non-constant . The rule is , with no extra constant.
- Forgetting the . Linear ODEs have a one-parameter family of solutions; is how you match the initial condition.
- Confusing with the initial condition. They are different: is determined by the ODE alone, the initial condition is extra data that picks out one curve.
Try it in the visualization
Drag the initial value above and below the equilibrium line , and watch every curve relax back to the equilibrium with the same time constant. Increase the coefficient to see the decay become faster.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.