Ordinary Differential Equations
Initial-value problems, first-order methods, linear higher-order equations, forcing and resonance, and linear systems, with explicit checks for lost solutions, singular models, and uniqueness.
An ordinary differential equation constrains an unknown function of one independent variable and its derivatives. A formula is not a complete solution until its interval, regularity, initial data, and any excluded or singular solutions are accounted for.
A rate law turns a mechanism into a prediction #
An ODE says how the present state controls its instantaneous rate of change. The initial condition identifies the state now; solving the equation converts that local rate rule into a trajectory through time.
The cooling model assumes one uniform object temperature, constant room temperature, and a constant lumped cooling-rate coefficient. The same pattern—state, rate law, initial state, trajectory—appears in motion, circuits, mixing, population models, and feedback control, but every application brings its own assumptions.
Equations, solutions, and initial data #
A first-order equation in normal form is
An initial-value problem (IVP) adds .
A local existence-and-uniqueness theorem is a contract, not decoration. A common version says that if is continuous near and locally Lipschitz in there—for example, if is continuous—then a unique local solution passes through the initial point.
If continuity or the Lipschitz condition fails, three different outcomes are possible:
- no solution;
- one solution;
- multiple solutions.
The theorem gives sufficient conditions. Failure of its hypotheses does not, by itself, decide which outcome occurs.
For a normalized linear second-order IVP
continuity of on an interval containing gives a unique solution on that interval.
Separable equations and lost solutions #
If
then, where ,
The condition is load-bearing. Every root must be checked separately, because may be an equilibrium solution discarded by division.
A robust workflow is:
- list equilibrium solutions ;
- separate only on regions where ;
- integrate and keep absolute values where required;
- impose initial data;
- state the maximal interval before the solution reaches a singularity.
For the logistic equation , the sign of the right-hand side sends positive trajectories toward , while and are themselves constant solutions. They must be recorded before division by .
Nonuniqueness at a singular slope #
Consider the equation
The constant function satisfies the IVP. Separating variables divides by , so it cannot recover that solution. Moreover the right-hand side is not locally Lipschitz in at , and branch/domain restrictions matter. A nonconstant branch cannot be reported as the unique IVP solution.
Exact equations #
A differential form
is exact on a suitable domain if there is a potential with
Then the implicit solution is
On a simply connected domain with continuous first partial derivatives, is sufficient for exactness. On a domain with holes, equal cross-partials need not yield a global single-valued potential.
To construct , integrate with respect to :
then differentiate with respect to and solve for using .
First-order linear equations #
For
choose the integrating factor
Because ,
Hence
The method works on intervals where and are continuous. An integrating factor may have different expressions on disconnected intervals.
Worked example #
Solve
The integrating factor is
Therefore
Integration by parts gives
so
Substitution differentiates the product and recovers the original equation, which is the decisive check on the integrating-factor calculation.
Bernoulli equations #
A Bernoulli equation is
On an interval where , set . Since
multiplying the ODE by gives a linear equation:
Check separately when the original equation makes sense there. Describing as the case “” is not legitimate: infinity is not a value of the integration constant in the derived solution family.
Higher-order linear equations #
A linear equation has the form
After division by , existence and uniqueness are controlled on intervals where all normalized coefficients and are continuous.
For the homogeneous constant-coefficient equation
try . This produces the characteristic polynomial
The solution contributions are:
- real root of multiplicity :
- conjugate roots , each of multiplicity :
The number of linearly independent basis functions must equal the order of the equation.
Nonhomogeneous equations and superposition #
For a linear operator ,
the general solution is
where and .
This follows because
The forcing is not itself a solution; confusing the input with the response is a category error.
Variation of parameters finds for general forcing. Undetermined coefficients is faster for polynomial, exponential, sine, and cosine inputs, but only after accounting for resonance.
If the naive trial duplicates a homogeneous mode, multiply the trial by enough powers of to make it linearly independent. Resonance is therefore a linear-dependence problem, not a mysterious extra rule.
For an ideal undamped oscillator driven at its natural frequency, the resonant particular solution grows proportionally to . Real damping changes the response and must not be omitted when making physical claims.
Linear systems #
A constant system is
If , then
is a solution. Distinct eigenvectors generate independent modes.
A repeated eigenvalue does not automatically provide enough eigenvectors. If is defective, find a generalized eigenvector satisfying
A Jordan-chain pair of solutions is then
Writing four arbitrary constants for a two-dimensional repeated-root system is impossible: a first-order system has a two-dimensional solution space.
For nonhomogeneous systems
a fundamental matrix gives variation of constants:
Why eigenvectors matter: two coupled rooms #
Consider two thermal zones with equal effective heat capacities that exchange heat but, in this simplified model, lose no heat outdoors:
In matrix form,
The eigenvector has eigenvalue : equal temperatures do not change, and the average is conserved. The eigenvector has eigenvalue : a temperature difference decays exponentially.
If , , and , then
After ten minutes they are approximately and . Eigenvectors reveal two independent physical patterns—a conserved average and a decaying difference—that are hidden when the coupled equations are read one row at a time.
Models and singular initial conditions #
A differential equation inherits the validity limits of the physical law used to derive it. For example, a force law containing is undefined at . Algebraically finding a curve that approaches does not make an IVP posed at valid. The model must be reformulated or its domain restricted before applying an existence theorem.
Likewise, exponential decay in an circuit assumes fixed , a specified voltage input, and an ideal lumped model. State these assumptions before interpreting long-time behavior.
Verification checklist #
For every proposed ODE solution:
- substitute it into the original equation, not only a transformed equation;
- check all initial or boundary data;
- identify divisions and substitutions that may have removed solutions;
- state the interval and singular points;
- confirm that the number of arbitrary constants matches the order;
- for systems, verify eigenvectors or generalized eigenvectors directly;
- separate mathematical behavior from model assumptions.
Failure modes #
- Dividing by , , or another solution-dependent factor without checking its zeros.
- Writing a singular solution as a limiting “infinite constant.”
- Claiming uniqueness when the vector field is not locally Lipschitz at the initial point.
- Treating vertical curves as solutions of an equation posed for .
- Omitting absolute values introduced by logarithmic integration.
- Using a characteristic-root formula across a point where the leading coefficient vanishes.
- Forgetting the factor for repeated roots or resonance.
- Treating a repeated eigenvalue as if it automatically supplied a full eigenbasis.
- Reporting only a particular solution to a nonhomogeneous equation.
- Applying a physical ODE at an initial state where its own right-hand side is undefined.
Sources
- bookDifferential and Integral Calculus of Functions of Several Variables and Differential Equations: Lecture Notes and Practicumpdfnotes
- docsMIT 18.03SC Differential Equations Lecture Notes
- bookMIT ES.1803 Spring 2024 Topic Notes
- docsMIT 18.03SC Unit II: Second-Order Constant-Coefficient Linear Equations
- docsMIT 18.03SC Damped Harmonic Oscillators
- docsMIT 18.03 Notes and Exercises: Linear Systems
- bookOpenStax Calculus Volume 2 — Separable Equations and Newton's Law of Cooling