Skip to content
Section 3.2 · General solutions of linear equations

One particular solution. A whole family.

y″ − 4y = 12   y = yc + yp

Adjust the two constants in the homogeneous solution. Add one particular solution, point by point, and watch every resulting curve satisfy the same nonhomogeneous equation.

yc = c₁e2x + c₂e−2x
yₚ = −3

Switch yₚ and watch the total curve stay in place while c₁ adjusts.

Add yₚ at each x

The vertical arrow adds the value of yₚ to yc at the selected x.

Check the equation

Apply L[u] = u″ − 4u at x = 0.00.

Values of each curve and its left side in the differential equation.
Curve uu(x)L[u](x)
yc
yp
y

L[yc + yp] = 0 + 12 = 12

Changing c₁ and c₂ changes the curve. The homogeneous part contributes zero to the left side.

The plotted window is −0.8 ≤ x ≤ 0.8. Sliders show a bounded sample; c₁ and c₂ can be any real numbers in the general solution.

Three linked curves show the complementary homogeneous solution, a particular solution, and their pointwise sum. A vertical arrow at the selected x adds the particular value to the complementary value. Sliders and the equation table provide keyboard-accessible inspection. Switching the particular solution compensates the complementary coefficient and preserves the entire total curve.

Why does this describe every solution?

Let Y be any solution of Y″ − 4Y = 12, and let yₚ be one particular solution. Subtract their equations:

L[Y − yₚ] = 12 − 12 = 0.

Thus Y − yₚ is a homogeneous solution. Since e2x and e−2x form a fundamental set, Y − yₚ = c₁e2x + c₂e−2x. Every nonhomogeneous solution is therefore yc + yp.

More generally, for a normalized linear equation of order n with continuous coefficients and forcing on an open interval I, choose a fundamental set y₁, …, yₙ of homogeneous solutions and one particular solution yₚ on I. The general solution is y = c₁y₁ + ⋯ + cₙyₙ + yₚ.

Why is the particular solution not unique?

The difference between −3 + e2x and −3 is the homogeneous solution e2x. Switching to the second choice gives the identity

c₁e2x + c₂e−2x − 3 = (c₁ − 1)e2x + c₂e−2x + (−3 + e2x).

The decomposition changes, while the total solution and its initial conditions stay fixed. With unrestricted coefficients, both choices describe exactly the same family.

A sum of two nonhomogeneous solutions generally has L[Y₁ + Y₂] = 24. Their difference has L[Y₁ − Y₂] = 0 and solves the associated homogeneous equation.