Inhomogeneous Second-Order ODE
Definition
The inhomogeneous linear second-order ODE:
where is the inhomogeneous (forcing) term.
Intuition
Linearity guarantees that the total response equals the free (homogeneous) response plus a forced (particular) response. The homogeneous part encodes the system’s natural behaviour; the particular part encodes how the system responds to the specific input . Discontinuous or impulsive forcing terms are most cleanly handled by converting to an algebraic problem via the Laplace transform.
Formal Description
Three-step solution method
- Solve the associated homogeneous ODE for two independent solutions , , and form
- Find a particular solution satisfying the full inhomogeneous ODE. When are constants and is a polynomial, exponential, sine, or cosine, an undetermined-coefficients ansatz works.
- Write the general solution and apply the initial conditions to determine .
Linearity guarantees solves the ODE:
Discontinuous inhomogeneous term
For an inhomogeneous term involving the Heaviside step function, e.g.\ , the Laplace transform method is most efficient.
Example. Solve , .
Taking the Laplace transform:
Setting , the solution is
Impulsive inhomogeneous term
For a Dirac delta forcing , the Laplace transform gives .
Example. Solve , .
Note: is continuous at but is not — impulsive forcing produces a velocity discontinuity.
Key Results
- The general solution is always a sum of the homogeneous and a particular solution.
- Laplace transforms are the preferred method for discontinuous or impulsive forcing terms.
- Impulsive forcing causes a jump in the first derivative but not in itself.
Applications
- Driven mechanical oscillators (springs with periodic or impulsive forcing).
- Electrical circuits with switched or pulsed voltage sources.
- Any control-theory system with a specified input signal .
Trade-offs
- The undetermined-coefficients method is only systematic when is a polynomial, exponential, sine, or cosine (or products thereof); variation of parameters is needed otherwise.
- For piecewise or impulsive , the Laplace method is far more efficient but requires facility with partial fractions and the transform table.
- Initial conditions are applied to the full solution , not to alone — a common source of error.