Mathwords logoMathwords

Nonhomogeneous Linear Higher Order Equation — Formula & Example

A nonhomogeneous linear higher order equation is a linear differential equation of order two or more with an extra term on the right side that does not contain the unknown function. You solve it in two parts. First you solve the version with that term set to zero. Then you add one specific solution that produces the extra term.

An nth order linear ordinary differential equation an(x)y(n)+an−1(x)y(n−1)+⋯+a1(x)y′+a0(x)y=g(x)a_n(x)y^{(n)} + a_{n-1}(x)y^{(n-1)} + \cdots + a_1(x)y' + a_0(x)y = g(x), with n≥2n \ge 2 and an(x)≠0a_n(x) \neq 0 on an interval II, is nonhomogeneous when g(x)g(x) is not identically zero on II. If y1,…,yny_1, \dots, y_n are linearly independent solutions of the associated homogeneous equation and ypy_p is any one solution of the full equation, then every solution on II has the form y=c1y1+⋯+cnyn+ypy = c_1y_1 + \cdots + c_ny_n + y_p.

Key Formula

y=c1y1+c2y2+⋯+cnyn⏟yc+ypy = \underbrace{c_1y_1 + c_2y_2 + \cdots + c_ny_n}_{y_c} + y_p
Where:
  • ycy_c = Complementary solution: the general solution of the homogeneous equation, where g(x) is replaced by 0
  • y1,…,yny_1, \dots, y_n = n linearly independent solutions of the homogeneous equation
  • c1,…,cnc_1, \dots, c_n = Arbitrary constants, n of them for an equation of order n
  • ypy_p = Particular solution: any single function that satisfies the full equation with g(x)
  • nn = Order of the equation, the highest derivative present

Worked Example

Problem: Find the general solution of the third order equation y′′′−6y′′+11y′−6y=12e4xy''' - 6y'' + 11y' - 6y = 12e^{4x}.
Step 1: Solve the homogeneous equation y′′′−6y′′+11y′−6y=0y''' - 6y'' + 11y' - 6y = 0. Substituting y=erxy = e^{rx} gives the characteristic equation. Testing shows r=1r = 1 is a root, because 1−6+11−6=01 - 6 + 11 - 6 = 0. That root lets you factor the cubic.
r3−6r2+11r−6=(r−1)(r−2)(r−3)=0  ⟹  yc=C1ex+C2e2x+C3e3xr^3 - 6r^2 + 11r - 6 = (r-1)(r-2)(r-3) = 0 \implies y_c = C_1e^{x} + C_2e^{2x} + C_3e^{3x}
Step 2: Find a particular solution by undetermined coefficients. The forcing term is 12e4x12e^{4x}, and 44 is not a root, so try yp=Ae4xy_p = Ae^{4x}. Each derivative brings down a factor of 4.
(64−96+44−6)Ae4x=6Ae4x=12e4x  ⟹  A=2(64 - 96 + 44 - 6)Ae^{4x} = 6Ae^{4x} = 12e^{4x} \implies A = 2
Step 3: Add the complementary and particular solutions. The three constants match the order of the equation.
y=C1ex+C2e2x+C3e3x+2e4xy = C_1e^{x} + C_2e^{2x} + C_3e^{3x} + 2e^{4x}
Answer: y=C1ex+C2e2x+C3e3x+2e4xy = C_1e^{x} + C_2e^{2x} + C_3e^{3x} + 2e^{4x}, where C1,C2,C3C_1, C_2, C_3 are arbitrary constants.

Why It Matters

In a sophomore differential equations course and in engineering, g(x)g(x) represents an outside input. Examples include a motor driving a spring system or a voltage source in an RLC circuit. Civil engineers solve the fourth order nonhomogeneous equation EIy′′′′=w(x)EIy'''' = w(x) to find how far a beam bends under a distributed load w(x)w(x).

Common Mistakes

Mistake: Choosing a trial particular solution that already solves the homogeneous equation. An example is guessing yp=Ae2xy_p = Ae^{2x} for y′′′−6y′′+11y′−6y=e2xy''' - 6y'' + 11y' - 6y = e^{2x}.
Correction: Here r=2r = 2 is a characteristic root, so Ae2xAe^{2x} makes the left side 00, not e2xe^{2x}. Multiply the guess by xx to get yp=Axe2xy_p = Axe^{2x}. If the root is repeated kk times, multiply by xkx^k instead. Always compare your guess with ycy_c first.

Related Terms