Skip to content
Published on

Engineering Math Series 4: Second-Order Linear ODEs

Authors

Engineering Math Series 4: Second-Order Linear ODEs

While first-order differential equations dealt with "the rate of change of the current state," second-order differential equations handle systems that include acceleration or curvature. That is why they frequently appear when describing phenomena with inertia, such as vibration, circuits, and mechanical systems.

Standard Form

The most basic second-order linear differential equation is

ay+by+cy=g(x)ay'' + by' + cy = g(x)

where aa, bb, cc are constants and g(x)g(x) is the external input. Looking first at the homogeneous equation without external input,

ay+by+cy=0ay'' + by' + cy = 0

Why Think of Exponential Functions First

For constant-coefficient linear equations, substituting y=erxy = e^{rx} maintains the form under differentiation. This leads to

ar2+br+c=0ar^2 + br + c = 0

which is the characteristic equation, and the structure of the solution is determined by the roots of this quadratic equation.

Three Basic Cases

Two distinct real roots

If the roots are r1r_1 and r2r_2, then

y=C1er1x+C2er2xy = C_1 e^{r_1x} + C_2 e^{r_2x}

Repeated root

If the root rr is repeated, then

y=(C1+C2x)erxy = (C_1 + C_2 x)e^{rx}

Complex conjugate roots

If the roots are α±iβ\alpha \pm i\beta, then

y=eαx(C1cosβx+C2sinβx)y = e^{\alpha x}\left(C_1 \cos \beta x + C_2 \sin \beta x\right)

This last form is precisely what connects to damped oscillation.

Worked Example

Consider the following problem.

y3y+2y=0y'' - 3y' + 2y = 0

The characteristic equation is

r23r+2=0r^2 - 3r + 2 = 0

which factors as

(r1)(r2)=0(r-1)(r-2) = 0

so the roots are r=1r=1 and r=2r=2. Therefore the general solution is

y=C1ex+C2e2xy = C_1 e^x + C_2 e^{2x}

If the initial conditions are

y(0)=1,y(0)=0y(0)=1, \quad y'(0)=0

then

C1+C2=1C_1 + C_2 = 1

C1+2C2=0C_1 + 2C_2 = 0

Solving gives

C1=2,C2=1C_1 = 2, \quad C_2 = -1

so

y=2exe2xy = 2e^x - e^{2x}

Engineering Applications

The natural response of a mass-spring-damper system is typically written as

mx+cx+kx=0m x'' + c x' + kx = 0

where

  • mm is the mass
  • cc is the damping coefficient
  • kk is the spring constant

In circuits, the same structure appears as

Lq+Rq+1Cq=0Lq'' + Rq' + \frac{1}{C}q = 0

in an RLC circuit. In other words, mechanical systems and electrical systems share the same mathematical structure.

How to Interpret the Solution

In engineering mathematics, you must always read the behavior after finding the solution.

  • Positive real roots in the exponential mean divergence
  • Negative real roots mean decay
  • Complex roots mean oscillation
  • Complex roots with negative real part mean damped oscillation

In other words, the equations ultimately serve as tools that tell you about the stability and response speed of the system.

Common Mistakes

Writing the solution incorrectly after solving the characteristic equation

The solution forms for repeated roots and complex roots are different. If you mechanically write the general solution after only finding the roots, mistakes are easy.

Being careless with differentiation when applying initial conditions

If you do not compute yy' accurately and just try to match the constants, errors arise. It is safer to first organize the general solution and then differentiate carefully.

Not reading the meaning of the solution

In engineering problems, whether the solution diverges, decays, or oscillates is the key point. It is important to develop the habit of not skipping system analysis after completing the calculation.

One-Line Summary

Second-order linear ODEs are tools for reading the form of the natural response through the roots of the characteristic equation.

Next Post Preview

In the next post, we will connect second-order equations to real physical systems and examine how damping, forced oscillation, and resonance arise.

References

  • Erwin Kreyszig, Advanced Engineering Mathematics, 10th Edition
  • Steven H. Strogatz, Nonlinear Dynamics and Chaos
  • MIT OpenCourseWare, Vibrations and Waves materials