White H House of Math logo on multicolored square

Learning Tools

Curriculum

Curriculum

Curriculum

Log in

Homogeneous Second Order Differential Equations with Constant Coefficients

A differential equation is homogeneous if the constant term is 0. A linear, homogeneous second order differential equation with constant coefficients can be written in the form

y″ ⁡ + by′ + cy = 0

By guessing the solution y = erx, you get the characteristic equation

r2 + br + c = 0

Two Real Solutions

When the characteristic equation has two solutions (r1 and r2), the general solution is:

y = C1er1x + C 2er2x

Example 1

Solve the differential equation y″ ⁡ + y′ − y = 0

The characteristic equation is

r2 + r − 1 = 0 (r + 2)(r − 1) = 0

That gives you the solutions r1 = 1 and r2 = −2. Enter them into the general formula and get

y(x) = C1ex + C 2e−2x

One Real Solution

When the characteristic equation has one solution r1 = r2, the general solution can be written as

y = C1erx + C 2xerx

Example 2

Solve the differential equation y″ ⁡ + 2y′ + y = 0

The characteristic equation is

r2 + 2r + 1 = 0 (r + 1)(r + 1) = 0

This gives you the solution r = r1 = r2 = 1. Enter r into the formula for the general solution and get

y(x) = C1ex + C 2xex

Two Complex Solutions

When r1 and r2 are complex numbers, the general solution can be written as

y = eAx(C 1 sin ⁡ Bx + C2 cos ⁡ Bx)

where r1 = A + Bi and r2 = A − Bi. Recall that i = −1.

Example 3

Solve the differential equation y″ ⁡ − 2y′ + y = 0

Use the characteristic equation. It is

r2 − 2r + 5 = 0

That gives you

r = 2 ±4 − 4 ⋅ 1 ⋅ 5 2 = 2 ±−16 2 = 2 ± 4i 2 = 1 ± 2i

Now you get A = 1 and B = 2. Enter these into the formula for the general solution and you’ll get

y(x) = ex(C 1 sin ⁡ (2x) + C2 cos ⁡ (2x))

It’s useful to know these formulas by heart!