Second Order ODEs
Previously, we discussed first-order ordinary differential equations (ODEs), which involve the first derivative of an unknown function. In this section, we will explore second-order ODEs, which involve the second derivative of an unknown function. They are ubiquitous in physics, as Newton's second law is by definition a second-order ODE.
Table of Contents
Linear Second Order ODEs
A second-order ODE is an equation that relates a function
Constant Coefficients
We shall first consider the simplest case of a linear, homogeneous second-order ODE with constant coefficients:
In such an equation,
Dividing both sides by
This yields two solutions labeled
The ODE obeys the principle of superposition, meaning that if
-
Distinct Real Roots: If the roots are real and distinct, i.e.,
, then the general solution is given bywhere
and are constants determined by initial conditions. In a physical context, this corresponds to an overdamped harmonic oscillator, where the system returns to equilibrium without oscillating. -
Repeated Real Roots: If the roots are real and repeated, i.e.,
, then the general solution is given bywhere
and are constants determined by initial conditions. In a physical context, this corresponds to a critically damped harmonic oscillator, where the system returns to equilibrium as quickly as possible without oscillating. -
Complex Conjugate Roots: If the roots are complex conjugates, i.e.,
with and , then the general solution is given bywhere
and are constants determined by initial conditions. In a physical context, this corresponds to an underdamped harmonic oscillator, where the system oscillates with a gradually decreasing amplitude.
As expected, there are two independent constants for the second-order ODE, meaning that two boundary conditions are required to determine a unique solution. There are two types of these problems;
-
An initial value problem specifies the value of the function and its first derivative (i.e. velocity) at a specific point, usually
. For example, we might specify and . -
A boundary value problem specifies the value of the function at two different points, such as
and .
Nonhomogeneous Equations
Now suppose we have a nonhomogeneous equation, i.e.,
More concretely, given the nonhomogeneous equation
we first find the general solution
given by the methods described above. The solutions to the homogeneous equation form the complementary function.
To find a particular solution
In the method of variation of parameters, we use the homogeneous solution
Then, we can find a particular solution