1. What counts as a second-order ODE
A second-order ordinary differential equation is an equation involving an unknown function \(y(x)\) and its derivatives up to order two:
The order matters because it tells you how many independent initial conditions are typically needed to determine a solution.
Second-order ODEs show up naturally in:
Newtonian mechanics
vibration and wave models
electrical circuits
beam deflection and structural models
heat and diffusion problems after separation of variables
The central tasks are usually:
solve the equation exactly when possible
classify the motion or response
apply initial or boundary conditions
interpret the physical behavior
2. Classification and standard forms
Linear vs nonlinear
A second-order ODE is linear if it can be written as
where \(y\), \(y'\), and \(y''\) appear only to the first power and are not multiplied together.
It is nonlinear if, for example, it contains terms such as:
Homogeneous vs nonhomogeneous
The linear equation is homogeneous when
and nonhomogeneous when \(g(x) \neq 0\).
Common standard forms
General linear form
Normalized form
If \(a_2(x) \neq 0\), divide through by \(a_2(x)\):
This form is often best for theory and method selection.
Constant-coefficient form
with constants \(a \neq 0\), \(b\), and \(c\).
3. Existence, uniqueness, and IVPs
For the initial value problem
the existence and uniqueness theorem says that if \(f\) and its relevant partial derivatives are continuous near \((x_0, y_0, v_0)\), then a unique local solution exists.
For linear equations in normal form
continuity of \(p(x)\), \(q(x)\), and \(r(x)\) on an interval is enough to guarantee a unique solution for any specified pair of initial conditions in that interval.
Why two initial conditions?
Integrating a second-order equation effectively introduces two constants of integration. That is why you usually need:
to pin down one specific solution.
4. Homogeneous linear equations with constant coefficients
The foundational case is
Try a solution of the form \(y = e^{rx}\). Substitution gives the characteristic equation
The roots of this quadratic determine the solution form.
Case 1: two distinct real roots
If \(r_1 \neq r_2\), then
Case 2: repeated real root
If \(r_1 = r_2 = r\), then
The extra factor of \(x\) gives a second independent solution.
Case 3: complex conjugate roots
If
then
This is the most common form for oscillatory motion.
Example
Solve
Characteristic equation:
So
5. Forcing and particular solutions
For a nonhomogeneous linear equation
the general solution has the form
where:
\(y_h\) solves the homogeneous equation
\(y_p\) is any one particular solution of the full equation
The structure of \(g(x)\) usually determines the method.
Undetermined coefficients
Use this when \(g(x)\) is built from exponentials, polynomials, sines, cosines, or products of these.
Typical guesses:
| Forcing \(g(x)\) | Trial form for \(y_p\) |
|---|---|
| \(e^{ax}\) | \(Ae^{ax}\) |
| \(P_n(x)\) | polynomial of degree \(n\) |
| \(\sin bx\) or \(\cos bx\) | \(A\cos bx + B\sin bx\) |
| \(e^{ax}P_n(x)\) | \(e^{ax}\) times a polynomial of degree \(n\) |
| \(e^{ax}\sin bx\), \(e^{ax}\cos bx\) | \(e^{ax}(A\cos bx + B\sin bx)\) |
Resonance rule
If your trial solution duplicates part of \(y_h\), multiply the trial by \(x\) enough times to make it linearly independent.
Example of resonance
Solve
Since the homogeneous equation has characteristic \((r-1)^2 = 0\), the homogeneous solution already contains \(e^x\) and \(xe^x\). A correct trial is
because the repeated root forces two powers of \(x\).
Variation of parameters
Use this when undetermined coefficients is not convenient.
If \(y_1\) and \(y_2\) are independent solutions of the homogeneous equation
then a particular solution can be built as
where \(u_1\) and \(u_2\) are determined from a system involving the Wronskian.
6. Variable-coefficient special cases
Euler-Cauchy equations
The Euler-Cauchy, or equidimensional, form is
Try \(y = x^m\). Then:
Substitution gives the auxiliary equation
So the same root patterns appear as in constant-coefficient problems.
Reduction by substitution
Sometimes a change of variables converts a variable-coefficient equation into a constant-coefficient one. For Euler-Cauchy equations, the substitution
is a common route.
7. Reduction of order and variation of parameters
Reduction of order
If one nonzero solution \(y_1\) of the homogeneous equation is known, try
to reduce the order by one. After substitution, the equation for \(v\) is lower order and can often be integrated.
This is especially useful when:
one solution is obvious
the equation is linear but not constant-coefficient
you are given one solution and asked to find the general solution
Wronskian
The Wronskian of two functions \(y_1\) and \(y_2\) is
If \(W \neq 0\) on an interval, the functions are linearly independent there.
For
variation of parameters uses the Wronskian to build \(u_1\) and \(u_2\).
8. Initial and boundary value problems
Initial value problems
An IVP specifies values at a single point:
Steps:
Solve the differential equation.
Differentiate if needed.
Apply the initial conditions.
Solve for the constants.
Boundary value problems
A BVP specifies conditions at different points, for example:
These occur frequently in:
beam bending
heat conduction
vibrating strings
Sturm-Liouville problems
Boundary conditions can sometimes produce:
a unique solution
no solution
infinitely many solutions
depending on the forcing and the eigenstructure of the operator.
9. Mechanical applications
Many second-order ODEs come from Newton’s second law:
Mass-spring system
With no damping and no external forcing:
The solution is harmonic:
Damped vibration
With viscous damping:
Divide by \(m\):
where
Damping regimes
| Regime | Condition | Behavior |
|---|---|---|
| Underdamped | \(\zeta < 1\) | Oscillatory with decaying amplitude |
| Critically damped | \(\zeta = 1\) | Fastest return without oscillation |
| Overdamped | \(\zeta > 1\) | Non-oscillatory, slower return |
Interactive visual
Damped oscillator
Tweak damping and frequency to see how the oscillation fades and tightens over time.
Forced vibration
With external forcing \(F(t)\):
The solution is usually split into:
If \(F(t)\) is periodic, resonance and near-resonance can produce large response amplitudes.
10. Qualitative behavior
Even when an exact formula is available, it helps to understand the shape of the solution.
Stability of equilibrium
For the autonomous equation
equilibria correspond to constant solutions. Linearization near equilibrium often predicts local behavior.
Phase-plane viewpoint
Rewrite the second-order ODE as a first-order system:
Then:
This is useful for:
understanding oscillations
identifying spirals, nodes, and saddles
checking the effect of damping
Long-term behavior
For linear constant-coefficient equations, the real parts of the characteristic roots control growth or decay.
Negative real part: decay
Zero real part: sustained oscillation or neutral behavior
Positive real part: growth and instability
11. Problem-solving workflow
Put the equation in standard form.
Determine whether it is linear or nonlinear.
Identify whether it is homogeneous.
Check if coefficients are constant, Euler-Cauchy, or variable.
Solve the homogeneous equation first.
Choose a method for a particular solution if forcing is present.
Apply initial or boundary conditions.
Sanity-check the result against the original equation and the expected behavior.
Fast method selection
| Equation type | Best first method |
|---|---|
| Linear constant coefficients, homogeneous | Characteristic equation |
| Linear constant coefficients, polynomial/exponential/trig forcing | Undetermined coefficients |
| Linear variable coefficients with known solution | Reduction of order |
| General linear forcing | Variation of parameters |
| Euler-Cauchy | Power trial \(y=x^m\) |
| Physical mass-spring model | Characteristic equation with damping interpretation |
Common pitfalls
Forgetting two integration constants for a second-order homogeneous solution
Using an undetermined-coefficients guess that duplicates the homogeneous solution
Dropping the \(x\)-factor needed for repeated roots
Mixing up \(y'\) and \(y''\) when applying initial conditions
Applying a method that assumes constant coefficients to a variable-coefficient equation
Treating a boundary value problem like an initial value problem
12. Formula summary
Standard linear form
Normalized form
Constant-coefficient homogeneous equation
Characteristic equation:
Solution templates
Distinct real roots:
Repeated root:
Complex roots:
Euler-Cauchy trial
leading to
General linear solution
Wronskian
Mass-spring frequency
Damping ratio
Sources
Stewart, Calculus: Early Transcendentals
Lay, Linear Algebra and Its Applications
Rosen, Discrete Mathematics and Its Applications
Boyce and DiPrima, Elementary Differential Equations and Boundary Value Problems
Blitzstein and Hwang, Introduction to Probability