Second-Order Differential Equations
Building on the first-order equations of Chapter 9, this chapter develops second-order linear differential equations — how to solve them, and how they model the vibration of springs and the behavior of electric circuits. It closes with the power-series method for equations that resist solution in closed form.
This chapter is the engineering backbone of vibration and circuit analysis. If you only master one thing here, make it the auxiliary (characteristic) equation — every spring, shock absorber, and RLC circuit you'll ever analyze reduces to reading the roots of a quadratic. Memorize the three-case table in 17.1; you'll use it constantly in machine dynamics.
§ 17.1
Second-Order Linear Equations
A second-order linear differential equation relates a function, its first derivative, and its second derivative through coefficient functions of the independent variable. When the right-hand side is zero, the equation is homogeneous; otherwise it is nonhomogeneous.
Second-Order Linear Equation
An equation of the form \(P(x)\,y'' + Q(x)\,y' + R(x)\,y = G(x)\), where \(P,\,Q,\,R,\,G\) are continuous. It is called homogeneous when \(G(x)=0\) for all \(x\), and nonhomogeneous otherwise.
Linear Combinations of Solutions
If \(y_1\) and \(y_2\) are both solutions of the homogeneous equation, then for any constants \(c_1,\,c_2\), the combination
\[ y(x) = c_1 y_1(x) + c_2 y_2(x) \]is also a solution. (Verified by substituting and using linearity of differentiation.)
Linear Independence
Two solutions are linearly independent when neither is a constant multiple of the other. For example, \(x^2\) and \(5x^2\) are dependent, while \(e^x\) and \(xe^x\) are independent.
If \(y_1\) and \(y_2\) are linearly independent solutions of the homogeneous equation and \(P(x)\) is never zero, then the general solution is
\[ y(x) = c_1 y_1(x) + c_2 y_2(x). \]Knowing two independent particular solutions therefore gives every solution.
Constant-Coefficient Equations & the Auxiliary Equation
When the coefficients are constants, particular solutions can always be found. We seek a solution of the form \(y = e^{rx}\), since its derivatives are constant multiples of itself. Substituting into \(ay'' + by' + cy = 0\) and dividing by the never-zero factor \(e^{rx}\) yields an algebraic condition on \(r\).
Auxiliary (Characteristic) Equation
The algebraic equation obtained by replacing \(y''\to r^2\), \(y'\to r\), and \(y\to 1\). Its roots determine the form of the general solution.
Three cases follow from the sign of the discriminant \(b^2 - 4ac\).
| Case | Roots of \(ar^2+br+c=0\) | General Solution |
|---|---|---|
| I \(b^2-4ac>0\) | \(r_1,\,r_2\) real & distinct | \(y = c_1 e^{r_1 x} + c_2 e^{r_2 x}\) |
| II \(b^2-4ac=0\) | \(r_1 = r_2 = r\) (real, repeated) | \(y = c_1 e^{rx} + c_2 x e^{rx}\) |
| III \(b^2-4ac<0\) | complex \(\alpha \pm i\beta\) | \(y = e^{\alpha x}\!\left(c_1 \cos\beta x + c_2 \sin\beta x\right)\) |
Initial-Value & Boundary-Value Problems
Initial-Value Problem (IVP)
The differential equation together with conditions \(y(x_0)=y_0\) and \(y'(x_0)=y_1\) — both specified at the same point. Under continuity (with \(P(x_0)\neq 0\)), a unique solution is guaranteed.
Boundary-Value Problem (BVP)
The equation together with conditions \(y(x_0)=y_0\) and \(y(x_1)=y_1\) specified at two different points. Unlike an IVP, a BVP need not have a solution.
Watch the difference between IVPs and BVPs in design work: an IVP is "I know the position and velocity at the start" (a uniquely determined transient), while a BVP is "I know the deflection at both ends of a beam." BVPs can fail to have solutions — that's not a mistake in your algebra, it's the physics telling you the constraints are incompatible.
§ 17.2
Nonhomogeneous Linear Equations
Now we allow a nonzero forcing term \(G(x)\) on the right. The associated homogeneous equation (set \(G=0\)) is called the complementary equation.
Complementary Equation
For \(ay'' + by' + cy = G(x)\), the related homogeneous equation \(ay'' + by' + cy = 0\). Its general solution \(y_c\) is the backbone of the full solution.
The general solution of the nonhomogeneous equation is
\[ y(x) = y_p(x) + y_c(x), \]where \(y_p\) is any one particular solution and \(y_c\) is the general solution of the complementary equation.
Two methods produce a particular solution \(y_p\): undetermined coefficients (fast, but only for special forcing terms) and variation of parameters (general, but heavier).
The Method of Undetermined Coefficients
Core Idea
Guess a trial \(y_p\) of the same "type" as \(G(x)\) — a polynomial for a polynomial, \(Ae^{kx}\) for an exponential, \(A\cos kx + B\sin kx\) for sinusoids — then substitute and match coefficients.
The Method of Variation of Parameters
Core Idea
Replace the constants in \(y_c = c_1 y_1 + c_2 y_2\) with unknown functions \(u_1(x),\,u_2(x)\), seeking \(y_p = u_1 y_1 + u_2 y_2\). Imposing one simplifying condition reduces the work to a solvable \(2\times 2\) system.
Rule of thumb in practice: reach for undetermined coefficients first — it's quick and almost every standard forcing function (polynomials, exponentials, sines, cosines, and their products) fits it. Save variation of parameters for the messy right-hand sides like \(\tan x\), \(\sec x\), or \(1/(1+e^x)\) where no finite trial guess exists.
§ 17.3
Applications of Second-Order Equations
The same constant-coefficient equation models two physically different but mathematically identical systems: vibrating springs and series electric circuits.
Vibrating Springs
Hooke's Law
A spring stretched or compressed \(x\) units from its natural length exerts a restoring force proportional to \(x\): restoring force \(= -kx\), where \(k>0\) is the spring constant.
Damped Vibrations
Damping Force
A resisting force proportional to velocity and opposing motion: damping force \(= -c\,\dfrac{dx}{dt}\), where \(c>0\) is the damping constant (e.g. a shock absorber).
| Regime | Condition | Behavior |
|---|---|---|
| Overdamping | \(c^2 - 4mk > 0\) | Two negative real roots; decays to 0 with no oscillation. |
| Critical damping | \(c^2 - 4mk = 0\) | Repeated root; fastest non-oscillating return to equilibrium. |
| Underdamping | \(c^2 - 4mk < 0\) | Complex roots; oscillation inside a decaying envelope \(e^{-(c/2m)t}\). |
Forced Vibrations
Electric Circuits
Series RLC Circuit
A circuit with electromotive force \(E(t)\), resistor \(R\), inductor \(L\), and capacitor \(C\) in series. With charge \(Q(t)\) and current \(I = dQ/dt\), Kirchhoff's voltage law balances the three voltage drops against \(E(t)\).
The Spring–Circuit Analogy
| Spring System | Electric Circuit |
|---|---|
| \(x\) — displacement | \(Q\) — charge |
| \(dx/dt\) — velocity | \(I = dQ/dt\) — current |
| \(m\) — mass | \(L\) — inductance |
| \(c\) — damping constant | \(R\) — resistance |
| \(k\) — spring constant | \(1/C\) — elastance |
| \(F(t)\) — external force | \(E(t)\) — electromotive force |
This analogy is genuinely useful, not just a curiosity. If you understand how a shock absorber tunes damping in a suspension, you already understand how resistance shapes an RLC circuit's response — and vice versa. Electrical resonance and mechanical resonance are the same mathematics. The Tacoma Narrows bridge and a poorly tuned radio filter fail for the same reason.
§ 17.4
Series Solutions
Many equations — even simple-looking ones like \(y'' - 2xy' + y = 0\) — have no solution in terms of familiar functions. The power-series method assumes a solution as an infinite series, substitutes, and solves for the coefficients via a recursion relation.
Power-Series Method
Assume \(y = \sum_{n=0}^{\infty} c_n x^n\), differentiate term by term, substitute into the equation, and equate coefficients of each power of \(x\) to zero. This yields a recursion that determines later coefficients from earlier ones.
Recursion Relation
An equation expressing \(c_{n+2}\) in terms of \(c_n\). With the two free constants \(c_0\) and \(c_1\) (set by initial conditions), it generates all remaining coefficients.
Don't be intimidated when the series "doesn't simplify." That's normal and expected — most equations from real physics produce non-elementary solutions. The series is the answer. In engineering you'll usually truncate it to a few terms for a numerical approximation, or recognize it as a named special function (Bessel, Legendre, Airy) and look up its properties in a handbook.