First-Order Differential Equations
What you will be able to do
Given a first-order ordinary differential equation, the learner can classify it as separable, linear or both, apply the corresponding method to obtain the general solution, use an initial condition to determine the constant, and verify the result by substitution.
Orientation
An equation whose unknown is a function
Every equation so far has constrained a number.
That shift matters because rates are how most quantitative laws are stated. "Grows at a rate proportional to its size", "cools at a rate proportional to the temperature difference", "the current adjusts until the voltage balances". Each is a sentence about a derivative, and writing it down produces a differential equation rather than an algebraic one.
The answer is a family rather than a single function, because knowing how fast something changes does not say where it started. The general solution carries an arbitrary constant, and an initial condition picks out one member.
Two methods handle the first-order cases. If the rate factors into an
Both reduce the problem to integration, so the techniques from that unit do the real work, and every answer can be verified by differentiating it back.
Why this matters
Why the answer is a family
Start from the simplest case:
That constant is not a loose end. The equation specifies the slope at every point and says nothing about height, so translating a solution vertically produces another solution. The family is the set of all those translates, and picking one requires information the equation does not contain.
An initial condition supplies it. Requiring
Why the general case is harder.
Separation is the move that breaks the circle. Dividing by
and now each side integrates in its own variable, giving
What separation costs. Dividing by
Why the second method exists.
Figure
A slope field with two solution curves through it
The grey segments are the slope field of
Two solution curves are drawn,
An initial condition selects one of them. Requiring
Definition
Why each method requires the form it does
Why separation needs a product
Testing for separability is therefore a question about factoring, not about difficulty:
Why the integrating factor is
which is itself a separable equation with solution
The constant of integration in
Why standard form matters.
Why the constant enters at integration. Writing
Why constant solutions can be lost. Separation divides by
Why verification is always available. A solution is a function making the equation an identity, so substituting it and differentiating settles the matter without reference to how it was found. For
Procedure
Classify, then solve
Step 1 — classify before solving. Look at the right-hand side of
| Class | Method | |
|---|---|---|
| factors as | separable | Step 2 |
| rearranges to | linear | Step 3 |
| both | either works | pick the easier |
| neither | outside this unit | — |
An equation can be both:
Step 2 — separate and integrate.
- Write
. - Note the roots of
before dividing. Each with is a constant solution. - Integrate both sides, adding one constant on the right.
- Solve for
, absorbing the constant into its final form, so that becomes . - Restore any constant solutions from step 2 that the general form does not already include.
Step 3 — integrating factor.
- Put it in standard form: divide until the coefficient of
is 1, giving . - Compute
, omitting the constant of integration. - Multiply through. The left side is now
; verify this if in doubt by differentiating the product. - Integrate:
. - Divide by
to isolate .
Step 4 — apply the initial condition. Only after the general solution is complete. Substitute
Applying the condition to an intermediate expression fixes the wrong constant.
Step 5 — verify. Differentiate the answer and substitute it into the original equation; it must reduce to an identity. Check the initial condition separately by evaluating at
This check is decisive and cheap. For
For a linear equation with constant coefficients, the solution splits into a steady state and a transient that decays. In
Worked example
Four equations, classified then solved
1. Separable:
Classify. The right side factors as
Note the constant solution.
Separate and integrate.
The constant entered at the integration and was absorbed as
Apply the condition.
Verify. Numerically
2. Separable:
The right side factors as
With
Verify.
3. Linear:
Classify. Already in standard form, with
Integrating factor.
Integrate and divide.
Apply the condition.
Verify.
Read it. The solution is a steady state 3 plus a transient
4. Linear but not separable:
Classify.
Integrating factor.
Integrate. The right side needs parts, with
so
Apply the condition.
Verify. At
This is the case that shows why two methods are needed: no amount of rearranging makes
Example
The equations that keep appearing
Radioactive decay, continuously compounded interest, unconstrained population growth and first-order chemical kinetics are all this equation.
Newton's law of cooling has this shape, with 3 replaced by the ambient temperature.
It has two constant solutions,
This is constrained population growth, where 1 is the carrying capacity.
The solution blows up as
Five of the six are separable and three are also linear. Equilibrium, carrying capacity and finite-time blow-up are visible in the solution rather than in the equation.
Theorem
Existence and uniqueness for first-order equations
Existence and uniqueness (Picard–Lindelöf). Consider the initial value problem
If
What each hypothesis supplies. Continuity alone gives existence; the condition on
Where uniqueness fails. Take
solves it, since ; also solves it, checked at , the derivative matches to five decimals, and it passes through .
Two different solutions through the same point. Nothing has gone wrong in either; the theorem simply does not apply.
Why "on some interval" is not a hedge. Existence is local, and a solution can cease to exist while the equation remains perfectly well behaved. For
The right-hand side
The linear case is better behaved. For
That is why
Why this matters for the methods. Separation and the integrating factor each produce a solution. The theorem is what licenses calling it the solution once an initial condition is imposed, and its failure cases are a reminder that the licence is conditional. When uniqueness fails, a method that returns one answer has not found them all.
Non-example
Answers and assumptions that fail
A solution is a function, not a number. Asked to solve
Attempting separation on a sum.
The test is factoring, not effort:
Computing
Adding the constant after solving for
Losing the constant solutions. For the logistic equation
The general solution
Assuming a solution exists for all
Assuming uniqueness.
Applying the initial condition too early. Substituting
Optional enrichment (1)
Application
Laws stated as rates
Radioactive decay and dating.
Newton's law of cooling.
Continuously compounded interest.
Constrained population growth. The logistic equation
The integration unit met this equation from the other side: its partial-fraction decomposition
Mixing problems. A tank with inflow and outflow gives
RC circuits.
Why so many phenomena share so few equations. "Proportional to the amount present" gives exponential behaviour; "proportional to the difference from equilibrium" gives approach to a steady state; "proportional to both the amount and the room left" gives the S-curve. Three sentences, three equations, and most first-order modelling is one of them.