Non-Homogeneous Linear Equations: Undetermined Coefficients & Variation of Parameters
Complete theory of non-homogeneous linear differential equations: complementary and particular integrals, the method of undetermined coefficients, the modification rule, differential annihilator operators, and Lagrange's method of variation of parameters for arbitrary continuous forcing.
ยง7.1 Structure of the General Solution & Principle of Superposition
1. Theorem on the Non-Homogeneous Solution Structure
Let $L[y] = g(x)$ be an $n$-th order linear differential equation, and let $L[y] = 0$ be its associated homogeneous equation. If $y_p(x)$ is any particular solution of $L[y] = g(x)$, and $\{y_1, y_2, \dots, y_n\}$ is a fundamental solution set of $L[y] = 0$, then the complete general solution is:
where $y_c(x)$ is the complementary function and $y_p(x)$ is the particular integral.
2. Extended Superposition for Multiple Forcing Functions
If $g(x) = g_1(x) + g_2(x) + \dots + g_m(x)$, and $y_{p,i}(x)$ is a particular solution to $L[y] = g_i(x)$ for each $i = 1, \dots, m$, then by linearity of $L$:
Hence, the total particular solution is the sum $y_p(x) = \sum_{i=1}^m y_{p,i}(x)$.
ยง7.2 The Method of Undetermined Coefficients & The Annihilator Operator
1. Scope and Trial Forms for Undetermined Coefficients
The method of undetermined coefficients applies to constant-coefficient linear ODEs where the forcing function $g(x)$ is a linear combination of polynomials, exponentials, sines, and cosines:
| Forcing Term $g(x)$ | Trial Form for $y_p(x)$ (Basic) |
|---|---|
| Polynomial: $a_m x^m + \dots + a_0$ | $A_m x^m + A_{m-1} x^{m-1} + \dots + A_0$ |
| Exponential: $e^{\alpha x}$ | $A e^{\alpha x}$ |
| Harmonic: $\sin(\beta x)$ or $\cos(\beta x)$ | $A \cos(\beta x) + B \sin(\beta x)$ |
| Product: $x^m e^{\alpha x} \cos(\beta x)$ | $x^s e^{\alpha x} [(A_m x^m + \dots + A_0)\cos\beta x + (B_m x^m + \dots + B_0)\sin\beta x]$ |
2. The Modification Rule
The Modification Rule: If any term in the trial form of $y_p(x)$ is a solution of the associated homogeneous equation (i.e., appears in $y_c(x)$), that trial form must be multiplied by $x^s$, where $s$ is the smallest positive integer such that no term in $x^s y_p(x)$ belongs to $y_c(x)$. In other words, $s$ is the multiplicity of the root in the characteristic equation.
3. The Annihilator Operator Method
Let $D = \frac{d}{dx}$ denote the differential operator. An operator $A(D)$ is an annihilator for $g(x)$ if $A(D)[g(x)] \equiv 0$.
- $D^n$ annihilates $1, x, x^2, \dots, x^{n-1}$.
- $(D - \alpha)^n$ annihilates $e^{\alpha x}, x e^{\alpha x}, \dots, x^{n-1} e^{\alpha x}$.
- $[(D - \alpha)^2 + \beta^2]^n$ annihilates $x^k e^{\alpha x}\cos\beta x$ and $x^k e^{\alpha x}\sin\beta x$ for $k = 0, 1, \dots, n-1$.
If $L(D)[y] = g(x)$ and $A(D)[g] = 0$, applying $A(D)$ to both sides gives the higher-order homogeneous equation $A(D)L(D)[y] = 0$. Solving this homogeneous equation immediately reveals both $y_c(x)$ and the exact required trial form for $y_p(x)$.
ยง7.3 Lagrange's Method of Variation of Parameters
1. Motivation and Scope
The method of undetermined coefficients is restricted to polynomials, exponentials, and sinusoidal forcing. When $g(x)$ is any general continuous function (e.g., $\tan x, \sec x, \frac{1}{x}, \ln x$), Lagrange's Method of Variation of Parameters provides a universal, exact integral formula.
2. Rigorous Derivation for Second-Order Equations
Consider $y'' + P(x) y' + Q(x) y = g(x)$, with known complementary solution $y_c(x) = c_1 y_1(x) + c_2 y_2(x)$. We replace the constants $c_1, c_2$ with functions $u_1(x), u_2(x)$:
Differentiating with respect to $x$:
To avoid second derivatives of $u_1, u_2$, we impose Lagrange's first constraint:
Then $y_p' = u_1 y_1' + u_2 y_2'$, and differentiating again:
Substituting $y_p, y_p', y_p''$ into $y'' + P y' + Q y = g(x)$:
Since $y_1$ and $y_2$ satisfy the homogeneous equation, the bracketed terms vanish, leaving:
3. Solution via Cramer's Rule
Constraints 1 and 2 form a linear algebraic system for the derivatives $u_1'$ and $u_2'$:
The coefficient matrix determinant is precisely the Wronskian $W(y_1, y_2)(x)$. By Cramer's Rule:
Integrating $u_1'$ and $u_2'$ yields the universal particular integral:
Step-by-Step Solved Examination Problems
Comprehensive analytical derivations, multi-tier solutions (Foundational, Intermediate Exam, and Honors/Proof Challenge) with complete line-by-line verification.
Find the general solution of the differential equation:
Step 1: Solve the homogeneous equation
Characteristic equation: $r^2 - 4r + 4 = 0 \implies (r - 2)^2 = 0 \implies r = 2$ (double root).
Step 2: Determine trial form for $y_p(x)$
The basic trial form for $(x + 1)e^{2x}$ is $(A x + B) e^{2x}$.
However, both $e^{2x}$ and $x e^{2x}$ appear in $y_c(x)$ (multiplicity $s = 2$).
By the modification rule, we multiply by $x^2$:
Step 3: Differentiate and substitute
Let $u(x) = A x^3 + B x^2$, so $y_p = u e^{2x}$.
By Leibniz formula for $(D - 2)^2[u e^{2x}] = e^{2x} D^2[u] = e^{2x} u''$.
Thus $(D - 2)^2[y_p] = (6A x + 2B) e^{2x}$.
Equating to the RHS $(x + 1) e^{2x}$:
Step 4: Form the general solution
$y(x) = \left(c_1 + c_2 x + \frac{1}{2} x^2 + \frac{1}{6} x^3\right) e^{2x}$.
Solve the non-homogeneous differential equation:
using Lagrange's method of variation of parameters.
Step 1: Homogeneous complementary solution
$r^2 + 1 = 0 \implies r = \pm i$.
Step 2: Wronskian computation
Step 3: Compute $u_1(x)$ and $u_2(x)$
Here $g(x) = \sec x$.
Step 4: Formulate particular and general solution
$y(x) = c_1 \cos x + c_2 \sin x + \cos x \ln(\cos x) + x \sin x$ (for $|x| < \pi/2$).
Solve the non-homogeneous Cauchy-Euler differential equation:
Step 1: Homogeneous solution
Indicial equation: $m(m - 1) - 2m + 2 = 0 \implies m^2 - 3m + 2 = 0 \implies (m - 1)(m - 2) = 0$.
Step 2: Normalize the ODE to standard form
Divide by $x^2$:
Step 3: Wronskian computation
Step 4: Integrate parameter derivatives
Step 5: Formulate $y_p(x)$
Step 6: General solution
$y(x) = c_1 x + c_2 x^2 + \frac{1}{2} x^3 \ln x - \frac{3}{4} x^3$ (or absorb $-3x^3/4$ into $y_p$).