Methods for Ordinary Differential Equations
Learning objectives
- Solve first-order separable ODEs by separating variables and integrating
- Solve first-order linear ODEs using the integrating factor
- Solve second-order linear constant-coefficient ODEs via the characteristic equation
- Read the qualitative behavior (decay, growth, oscillation) from the characteristic roots
You will not solve every ODE by hand, but the three or four techniques in this section cover everything that turns up in mechanics, circuits, population dynamics, and elementary chemistry. Separable equations let you integrate when the variables decouple. The integrating factor turns first-order linear into a pure derivative you can integrate back. And for second-order linear constant-coefficient equations, the characteristic polynomial reduces the entire problem to root-finding: real distinct roots give exponentials, complex roots give oscillations, repeated roots produce a polynomial factor. Once you know which technique to deploy, the algebra is mechanical.
First-order separable
An ODE is separable if it has the form . Solve by separating and integrating both sides:
Solve algebraically for if possible. Example: separates to , integrates to , exponentiates to .
First-order linear: the integrating factor
A first-order linear ODE has the form . The integrating factor is chosen so that multiplying through gives
\dfrac{d}{dx}\bigl[\mu(x) y\bigr] = \mu(x) q(x)
The left side is a pure derivative; integrate and solve for . Example: . Here , so . Multiplying gives , integrate to , so .
Second-order linear constant-coefficient: characteristic equation
For with constant, substitute . The factor never vanishes, so the equation reduces to the characteristic equation:
The three cases of the quadratic:
- Two distinct real roots : general solution . Each root contributes an exponential; sign of the root determines decay or growth.
- Repeated real root : general solution . The factor of is forced because two independent solutions are needed.
- Complex conjugate roots : general solution . The real part controls the envelope (decay if negative, growth if positive); the imaginary part is the angular frequency of oscillation.
Plot solutions of for different initial conditions. The characteristic roots are , so solutions are
Nonhomogeneous equations: superposition
For , the general solution is , where is the general solution of the homogeneous equation and is any particular solution. Find by the method of undetermined coefficients (when is a polynomial, exponential, or sinusoid, guess a similar form, substitute, match) or by variation of parameters (more general but more work).
- RLC circuits: The voltage across a capacitor in a series RLC circuit driven by a battery satisfies , a second-order linear constant-coefficient ODE. Complex characteristic roots underdamped (ringing) response; real distinct overdamped (slow decay); repeated critically damped (fastest decay without ringing).
- Mechanical oscillators: A mass on a spring with damping satisfies . The same three cases (overdamped, critically damped, underdamped) appear, the math is identical to the RLC circuit; the engineering vocabulary just changes.
- Newton's law of cooling: is first-order linear. Integrating factor recovers the exponential decay toward room temperature, the basis for forensic time-of-death estimates.
- Population growth: The Malthusian model is separable; the logistic model is also separable (but nonlinear), giving the famous S-shaped growth curve.
Pause and think: If both characteristic roots are real and negative, what does the solution do as ? What if one is negative and one is positive?
Try it
- Solve the separable ODE with .
- Solve the first-order linear ODE on using an integrating factor. (Hint: .)
- Find the general solution of .
- Find the general solution of . Identify the angular frequency and period of the resulting oscillation.
- The characteristic equation of has a repeated root. Write the general solution and verify by substituting .
A trap to watch for
The method of undetermined coefficients fails when the guessed already happens to solve the homogeneous equation, the substitution gives , which is a contradiction unless . The fix is to multiply the guess by (or if the root is repeated) before substituting. For example, when solving , the guess fails because is already a homogeneous solution; instead try and match coefficients.
What you now know
You can solve any first-order separable ODE, any first-order linear ODE, and any second-order linear constant-coefficient ODE (homogeneous or with simple forcing). You can read off the qualitative behavior, decay, growth, oscillation, directly from the characteristic roots. The next sections leave ODEs for the three canonical PDEs and the differential operators that govern them, beginning with the Laplacian and its harmonic-function solutions.
Mark section complete →
References
- Garrity, T. (2002). All the Mathematics You Missed: But Need to Know for Graduate School. Cambridge University Press, ch. 14.
- Boyce, W. E., DiPrima, R. C. (2017). Elementary Differential Equations (11th ed.). Wiley, ch. 2-3.
- Hartman, P. (2002). Ordinary Differential Equations (2nd ed.). SIAM, ch. 4 (linear systems).
- Tenenbaum, M., Pollard, H. (1985). Ordinary Differential Equations. Dover, ch. 11 (constant coefficients).
- Coddington, E. A. (1989). An Introduction to Ordinary Differential Equations. Dover, ch. 2.