Mathwords logoMathwords

Homogeneous Constant Coefficient Equations — Formula & Example

A homogeneous constant coefficient equation is a linear differential equation whose coefficients are all fixed numbers and whose right-hand side is zero. You solve it by turning it into a polynomial equation in r and reading the solutions off the roots.

An nnth-order linear ODE of the form any(n)+an−1y(n−1)+⋯+a1y′+a0y=0a_n y^{(n)} + a_{n-1} y^{(n-1)} + \cdots + a_1 y' + a_0 y = 0, where a0,…,ana_0, \dots, a_n are real constants and an≠0a_n \neq 0. Substituting y=erxy = e^{rx} gives the characteristic equation anrn+⋯+a1r+a0=0a_n r^n + \cdots + a_1 r + a_0 = 0. Each root (counted with multiplicity) contributes one solution, and together these form a basis of nn linearly independent solutions for the general solution.

Key Formula

ay′′+by′+cy=0  ⟹  ar2+br+c=0,y={C1er1x+C2er2xr1≠r2 real(C1+C2x) erxrepeated root reαx(C1cos⁡βx+C2sin⁡βx)r=α±βiay'' + by' + cy = 0 \;\Longrightarrow\; ar^2 + br + c = 0, \qquad y = \begin{cases} C_1 e^{r_1 x} + C_2 e^{r_2 x} & r_1 \neq r_2 \text{ real} \\ (C_1 + C_2 x)\,e^{r x} & \text{repeated root } r \\ e^{\alpha x}\left(C_1 \cos \beta x + C_2 \sin \beta x\right) & r = \alpha \pm \beta i \end{cases}
Where:
  • a,b,ca, b, c = Real constant coefficients, with a≠0a \neq 0
  • rr = Root of the characteristic equation
  • α,β\alpha, \beta = Real and imaginary parts of a complex root pair, with β>0\beta > 0
  • C1,C2C_1, C_2 = Arbitrary constants, fixed by initial or boundary conditions

Worked Example

Problem: Solve the initial value problem y′′−6y′+9y=0y'' - 6y' + 9y = 0 with y(0)=1y(0) = 1 and y′(0)=5y'(0) = 5.
Step 1: Write the characteristic equation and factor it. The discriminant is (−6)2−4(1)(9)=0(-6)^2 - 4(1)(9) = 0, so there is one repeated real root.
r2−6r+9=(r−3)2=0  ⟹  r=3 (repeated)r^2 - 6r + 9 = (r - 3)^2 = 0 \;\Longrightarrow\; r = 3 \text{ (repeated)}
Step 2: Use the repeated-root case. The second solution is xe3xx e^{3x}, not a second copy of e3xe^{3x}.
y=(C1+C2x) e3xy = (C_1 + C_2 x)\,e^{3x}
Step 3: Apply the initial conditions. Setting x=0x = 0 gives y(0)=C1=1y(0) = C_1 = 1. Differentiating gives y′=C2e3x+3(C1+C2x)e3xy' = C_2 e^{3x} + 3(C_1 + C_2 x)e^{3x}, so y′(0)=C2+3C1y'(0) = C_2 + 3C_1. Setting this equal to 5 gives C2=2C_2 = 2.
C1=1,C2+3(1)=5  ⟹  C2=2C_1 = 1, \qquad C_2 + 3(1) = 5 \;\Longrightarrow\; C_2 = 2
Answer: y=(1+2x) e3xy = (1 + 2x)\,e^{3x}. With a repeated root there is no oscillation: the solution is an exponential multiplied by a linear factor.

Why It Matters

The damped spring equation my′′+by′+ky=0my'' + by' + ky = 0 and the series RLC circuit equation Lq′′+Rq′+q/C=0Lq'' + Rq' + q/C = 0 both belong to this class. The sign of the discriminant tells an engineer whether a car suspension or a circuit is overdamped, critically damped, or oscillating. The method also returns in a sophomore ODE course as the base step for undetermined coefficients and for systems of equations.

Common Mistakes

Mistake: Writing y=C1e3x+C2e3xy = C_1 e^{3x} + C_2 e^{3x} when the characteristic equation has the repeated root r=3r = 3.
Correction: Those two terms combine into a single term (C1+C2)e3x(C_1 + C_2)e^{3x}, so you have only one independent solution. For a repeated root, multiply the second solution by xx, as in the example above: y=C1e3x+C2xe3xy = C_1 e^{3x} + C_2 x e^{3x}.

Related Terms