UNIHIVE

Study Hub UNIPORT MTH 205

MTH 205 · Elementary Differential Equations

Non-homogeneous equations: undetermined coefficients

Complementary function plus particular integral, trial solutions for polynomials, exponentials and trigonometric terms, and the modification rule.

Our notes

2 min read

Structure of the solution

For ay″ + by′ + cy = g(x): y = y_c + y_p, where y_c (the complementary function) solves the homogeneous equation and y_p (a particular integral) is any one solution of the full equation.

Method of undetermined coefficients

Guess y_p of the same form as g(x), with unknown coefficients, then substitute.

g(x)Trial y_p
Polynomial of degree nGeneral polynomial of degree n
ke^(ax)Ae^(ax)
k cos βx or k sin βxA cos βx + B sin βx
e^(ax) × polynomial or trigProduct of the forms

Modification rule: if a term of the trial solution already appears in y_c, multiply the trial by x (or x² if needed).

Example 1. y″ − 3y′ + 2y = 4x.

  • y_c: r² − 3r + 2 = 0 → r = 1, 2 → y_c = C₁e^x + C₂e^(2x).
  • Try y_p = Ax + B: 0 − 3A + 2Ax + 2B = 4x → 2A = 4, −3A + 2B = 0 → A = 2, B = 3.
  • y = C₁e^x + C₂e^(2x) + 2x + 3. Check y_p: y″ = 0, y′ = 2: −6 + 2(2x + 3) = 4x ✓.

Example 2. y″ − 3y′ + 2y = e^(3x). Try Ae^(3x): (9 − 9 + 2)A = 1 → A = 1/2. y_p = ½e^(3x).

Example 3 (modification). y″ − 3y′ + 2y = e^x. Since e^x is in y_c, try y_p = Axe^x.

  • y_p′ = A(1 + x)e^x, y_p″ = A(2 + x)e^x.
  • A[(2 + x) − 3(1 + x) + 2x]e^x = A(−1)e^x = e^x → A = −1.
  • y_p = −xe^x. Check: (2 + x) − 3(1 + x) + 2x = −1, times −1 gives +1 ✓.

Example 4 (trig). y″ + y = 3 sin 2x. Try A cos 2x + B sin 2x: (−4 + 1)(A cos 2x + B sin 2x) = 3 sin 2x → A = 0, B = −1. y_p = −sin 2x.

Forced vibrations and resonance

m x″ + k x = F₀ cos(ωt). If the forcing frequency ω equals the natural frequency √(k/m), the modification rule gives y_p = t(...): the amplitude grows with time: resonance (why soldiers break step on bridges).

Superposition

If g = g₁ + g₂, find y_p for each part and add.

Exams usually ask: find the general solution of non-homogeneous equations with polynomial, exponential and trigonometric right sides; use the modification rule.

Common mistake: trying only A sin 2x for g = sin 2x when the equation has a y′ term. Include both cos and sin in the trial.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 205 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.