Study guide
6.4 Nonhomogeneous Linear ODEs: Undetermined Coefficients and Variation of Parameters
GRE Subject Test: Mathematics Exam
Track your progress as you read
Finished sections get a check mark.
1 Chapter 1: Single-Variable Differential Calculus
1.1 Limits, Continuity, and Epsilon-Delta Definitions 1.2 Differentiation Rules, Implicit & Inverse Differentiation 1.3 Mean Value Theorem, Rolle's Theorem, and Function Extrema 1.4 L'Hôpital's Rule, Curve Sketching, and Optimization 1.5 Functions, Graphs, Transformations, and Inverses 1.6 Trigonometric Functions, Identities, and Equations 1.7 Coordinate Geometry, Lines, Circles, and Conics 1.8 Parametric and Polar Curves
2 Chapter 2: Single-Variable Integral Calculus
2.1 Riemann Sums and the Fundamental Theorem of Calculus 2.2 Advanced Integration Techniques 2.3 Geometric Applications: Areas, Volumes, and Arc Length 2.4 Improper Integrals and Convergence Criteria
3 Chapter 3: Sequences, Infinite Series & Power Series
3.1 Sequences, Monotonicity, and Limits 3.2 Infinite Series and Convergence Tests 3.3 Power Series, Radius and Interval of Convergence 3.4 Taylor and Maclaurin Series with Error Bounds
4 Chapter 4: Multivariable Differential Calculus
4.1 Multivariable Functions, Limits, and Partial Derivatives 4.2 Directional Derivatives, Gradients, and Tangent Planes 4.3 Multivariable Chain Rule and Implicit Differentiation 4.4 Multivariable Extrema, Hessian Matrix, and Lagrange Multipliers
5 Chapter 5: Multivariable Integration & Vector Calculus
5.1 Multiple Integrals in Cylindrical and Spherical Coordinates 5.2 Change of Variables and the Jacobian Determinant 5.3 Vector Fields, Line Integrals, and Green's Theorem 5.4 Surface Integrals, Stokes' Theorem, and the Divergence Theorem
6 Chapter 6: Ordinary Differential Equations
6.1 First-Order ODEs: Separable, Linear, and Exact Equations 6.2 Special First-Order ODEs: Homogeneous, Bernoulli, and Orthogonal Trajectories 6.3 Second-Order Linear Homogeneous ODEs with Constant Coefficients 6.4 Nonhomogeneous Linear ODEs: Undetermined Coefficients and Variation of Parameters
7 Chapter 7: Elementary Algebra & Number Theory
7.1 Elementary Algebra, Polynomials, Roots, and Factorization 7.2 Divisibility, Primes, and the Euclidean Algorithm 7.3 Modular Arithmetic, Chinese Remainder Theorem, and Euler's Totient
8 Chapter 8: Linear Algebra: Vector Spaces & Transformations
8.1 Vector Spaces, Subspaces, Span, and Linear Independence 8.2 Basis, Dimension, and Coordinate Representations 8.3 Linear Transformations, Kernel, Range, and the Rank-Nullity Theorem 8.4 Matrix Representations of Transformations and Change of Basis
9 Chapter 9: Linear Algebra: Matrices, Determinants & Spectral Theory
9.1 Systems of Linear Equations, Matrix Rank, and Row Reduction 9.2 Determinants, Matrix Inverses, and Cramer's Rule 9.3 Eigenvalues, Eigenvectors, and Diagonalization 9.4 Inner Product Spaces, Gram-Schmidt, and the Spectral Theorem
10 Chapter 10: Abstract Algebra: Groups, Rings & Fields
10.1 Groups, Subgroups, and Permutations 10.2 Cosets, Lagrange's Theorem, Normal Subgroups, and Homomorphisms 10.3 Rings, Ideals, Modules, Polynomial Rings, and Fields
11 Chapter 11: Introductory Real Analysis
11.1 The Real Field and Metric Space Topology 11.2 Compactness, Completeness, and Connectedness in R^n 11.3 Continuity, Uniform Continuity, and Value Theorems 11.4 Sequences and Series of Functions: Pointwise and Uniform Convergence
12 Chapter 12: Complex Analysis
12.1 Complex Numbers and Analytic Functions 12.2 Contour Integration and Cauchy's Theorems 12.3 Laurent Series, Singularities, and the Residue Theorem
13 Chapter 13: Topology, Geometry & Numerical Analysis
13.1 Topological Spaces, Open/Closed Sets, and Bases 13.2 Euclidean Geometry, Similarity, Circles, and Transformations 13.3 Numerical Analysis: Error, Root Finding, Interpolation, and Quadrature
14 Chapter 14: Probability, Statistics & Discrete Mathematics
14.1 Logic, Set Theory, Algorithms, and Combinatorics 14.2 Graph Theory: Trees, Cycles, Paths, and Planarity 14.3 Probability Spaces, Conditional Probability, and Bayes' Theorem 14.4 Random Variables, Expected Value, Variance, and Common Distributions
6.4 Nonhomogeneous Linear ODEs: Undetermined Coefficients and Variation of Parameters
Key Takeaways Explain This Topic AI
The general solution to a nonhomogeneous linear ODE L [ y ] = g ( x ) L[y] = g(x) L [ y ] = g ( x ) is y ( x ) = y h ( x ) + y p ( x ) y(x) = y_h(x) + y_p(x) y ( x ) = y h ( x ) + y p ( x ) , where y h y_h y h is the general complementary solution to L [ y ] = 0 L[y] = 0 L [ y ] = 0 and y p y_p y p is any particular solution.
The method of undetermined coefficients constructs particular trial solutions for polynomial, exponential, and sinusoidal forcing terms; if any term in the trial solution duplicates a term in y h y_h y h , it must be multiplied by x s x^s x s , where s s s is the multiplicity of the corresponding characteristic root.
The method of variation of parameters applies to any continuous forcing function g ( x ) g(x) g ( x ) , yielding y p ( x ) = − y 1 ( x ) ∫ y 2 ( x ) g ( x ) W ( x ) d x + y 2 ( x ) ∫ y 1 ( x ) g ( x ) W ( x ) d x y_p(x) = -y_1(x) \int \frac{y_2(x) g(x)}{W(x)}\,dx + y_2(x) \int \frac{y_1(x) g(x)}{W(x)}\,dx y p ( x ) = − y 1 ( x ) ∫ W ( x ) y 2 ( x ) g ( x ) d x + y 2 ( x ) ∫ W ( x ) y 1 ( x ) g ( x ) d x , provided the ODE is in standard form with leading coefficient 1.
In harmonic oscillators m x ′ ′ + b x ′ + k x = F 0 cos ( ω t ) m x'' + b x' + k x = F_0 \cos(\omega t) m x ′′ + b x ′ + k x = F 0 cos ( ω t ) , pure resonance occurs when damping b = 0 b = 0 b = 0 and the driving frequency matches the natural frequency ω = ω 0 = k / m \omega = \omega_0 = \sqrt{k/m} ω = ω 0 = k / m , producing an unbounded response x p ( t ) ∝ t sin ( ω 0 t ) x_p(t) \propto t \sin(\omega_0 t) x p ( t ) ∝ t sin ( ω 0 t ) .
Last updated: September 2026
6.4 Nonhomogeneous Linear ODEs: Undetermined Coefficients and Variation of Parameters
Nonhomogeneous linear differential equations appear frequently on the GRE Mathematics Subject Test in both theoretical contexts and physical applications. Candidates must master two distinct techniques for finding particular solutions: the algebraic Method of Undetermined Coefficients (with its critical multiplication rule) and the universal Method of Variation of Parameters.
Structure of the General Solution
Consider the second-order nonhomogeneous linear differential equation: L [ y ] = y ′ ′ + P ( x ) y ′ + Q ( x ) y = g ( x ) L[y] = y'' + P(x) y' + Q(x) y = g(x) L [ y ] = y ′′ + P ( x ) y ′ + Q ( x ) y = g ( x )
where P ( x ) P(x) P ( x ) , Q ( x ) Q(x) Q ( x ) , and g ( x ) g(x) g ( x ) are continuous on an interval I I I .
Complementary (Homogeneous) Solution : The solution to the corresponding homogeneous equation L [ y ] = 0 L[y] = 0 L [ y ] = 0 is y h ( x ) = c 1 y 1 ( x ) + c 2 y 2 ( x ) y_h(x) = c_1 y_1(x) + c_2 y_2(x) y h ( x ) = c 1 y 1 ( x ) + c 2 y 2 ( x ) , where {y_1, y_2} is a fundamental set of solutions.
Particular Solution : Any single function y p ( x ) y_p(x) y p ( x ) that satisfies L [ y p ] = g ( x ) L[y_p] = g(x) L [ y p ] = g ( x ) .
Structure Theorem : If y ( x ) y(x) y ( x ) is any solution to L [ y ] = g ( x ) L[y] = g(x) L [ y ] = g ( x ) , then L [ y − y p ] = L [ y ] − L [ y p ] = g ( x ) − g ( x ) = 0 L[y - y_p] = L[y] - L[y_p] = g(x) - g(x) = 0 L [ y − y p ] = L [ y ] − L [ y p ] = g ( x ) − g ( x ) = 0 . Therefore, y − y p y - y_p y − y p must be a complementary solution y h y_h y h , establishing: y ( x ) = y h ( x ) + y p ( x ) = c 1 y 1 ( x ) + c 2 y 2 ( x ) + y p ( x ) y(x) = y_h(x) + y_p(x) = c_1 y_1(x) + c_2 y_2(x) + y_p(x) y ( x ) = y h ( x ) + y p ( x ) = c 1 y 1 ( x ) + c 2 y 2 ( x ) + y p ( x )
Superposition of Forcing Terms : If g ( x ) = g 1 ( x ) + g 2 ( x ) g(x) = g_1(x) + g_2(x) g ( x ) = g 1 ( x ) + g 2 ( x ) , and y p 1 , y p 2 y_{p1}, y_{p2} y p 1 , y p 2 satisfy L [ y p 1 ] = g 1 L[y_{p1}] = g_1 L [ y p 1 ] = g 1 and L [ y p 2 ] = g 2 L[y_{p2}] = g_2 L [ y p 2 ] = g 2 , then y p = y p 1 + y p 2 y_p = y_{p1} + y_{p2} y p = y p 1 + y p 2 satisfies L [ y p ] = g 1 + g 2 L[y_p] = g_1 + g_2 L [ y p ] = g 1 + g 2 .
Method of Undetermined Coefficients
The Method of Undetermined Coefficients applies to linear differential equations with constant coefficients : a y ′ ′ + b y ′ + c y = g ( x ) a y'' + b y' + c y = g(x) a y ′′ + b y ′ + cy = g ( x )
where the forcing function g ( x ) g(x) g ( x ) is a linear combination of polynomials, exponentials, sines, and cosines.
Standard Trial Forms
Forcing Term g ( x ) g(x) g ( x ) Basic Trial Form for y p ( x ) y_p(x) y p ( x )
Polynomial P m ( x ) = a m x m + ⋯ + a 0 P_m(x) = a_m x^m + \dots + a_0 P m ( x ) = a m x m + ⋯ + a 0 A m x m + A m − 1 x m − 1 + ⋯ + A 0 A_m x^m + A_{m-1} x^{m-1} + \dots + A_0 A m x m + A m − 1 x m − 1 + ⋯ + A 0
Exponential e α x e^{\alpha x} e αx A e α x A e^{\alpha x} A e αx
Sinusoid cos ( β x ) \cos(\beta x) cos ( β x ) or sin ( β x ) \sin(\beta x) sin ( β x ) A cos ( β x ) + B sin ( β x ) A \cos(\beta x) + B \sin(\beta x) A cos ( β x ) + B sin ( β x )
Product P m ( x ) e α x P_m(x) e^{\alpha x} P m ( x ) e αx ( A m x m + ⋯ + A 0 ) e α x (A_m x^m + \dots + A_0) e^{\alpha x} ( A m x m + ⋯ + A 0 ) e αx
Product e α x cos ( β x ) e^{\alpha x}\cos(\beta x) e αx cos ( β x ) or e α x sin ( β x ) e^{\alpha x}\sin(\beta x) e αx sin ( β x ) e α x [ A cos ( β x ) + B sin ( β x ) ] e^{\alpha x}[A \cos(\beta x) + B \sin(\beta x)] e αx [ A cos ( β x ) + B sin ( β x )]
Combination P m ( x ) e α x cos ( β x ) P_m(x) e^{\alpha x} \cos(\beta x) P m ( x ) e αx cos ( β x ) e α x [ ( A m x m + … ) cos ( β x ) + ( B m x m + … ) sin ( β x ) ] e^{\alpha x}[(A_m x^m + \dots) \cos(\beta x) + (B_m x^m + \dots) \sin(\beta x)] e αx [( A m x m + … ) cos ( β x ) + ( B m x m + … ) sin ( β x )]
The Multiplication Rule
If any term in the basic trial form duplicates a solution to the homogeneous equation a y ′ ′ + b y ′ + c y = 0 a y'' + b y' + c y = 0 a y ′′ + b y ′ + cy = 0 , the entire trial form associated with that root must be multiplied by x s x^s x s : y p ( x ) = x s ⋅ [ basic trial form ] y_p(x) = x^s \cdot [\text{basic trial form}] y p ( x ) = x s ⋅ [ basic trial form ]
where s s s is the smallest non-negative integer ( s = 0 , 1 , s = 0, 1, s = 0 , 1 , or 2 2 2 ) such that no term in y p ( x ) y_p(x) y p ( x ) is a solution to the homogeneous equation.
Equivalently, s s s is the algebraic multiplicity of the forcing frequency α + i β \alpha + i\beta α + i β as a root of the characteristic equation a r 2 + b r + c = 0 a r^2 + b r + c = 0 a r 2 + b r + c = 0 .
Method of Variation of Parameters
Variation of Parameters is a universal technique that works for any continuous forcing function g ( x ) g(x) g ( x ) —including non-elementary terms such as tan x \tan x tan x , sec x \sec x sec x , ln x \ln x ln x , or 1 1 + e x \frac{1}{1 + e^x} 1 + e x 1 —and applies to equations with variable coefficients.
Derivation and Formulas
Given the standard form equation with leading coefficient 1: y ′ ′ + P ( x ) y ′ + Q ( x ) y = g ( x ) y'' + P(x) y' + Q(x) y = g(x) y ′′ + P ( x ) y ′ + Q ( x ) y = g ( x )
Let {y_1, y_2} be a fundamental set of solutions to the homogeneous equation with Wronskian W ( x ) = y 1 y 2 ′ − y 1 ′ y 2 ≠ 0 W(x) = y_1 y_2' - y_1' y_2 \neq 0 W ( x ) = y 1 y 2 ′ − y 1 ′ y 2 = 0 .
We replace the constants c 1 , c 2 c_1, c_2 c 1 , c 2 with functions u 1 ( x ) , u 2 ( x ) u_1(x), u_2(x) u 1 ( x ) , u 2 ( x ) : y p ( x ) = u 1 ( x ) y 1 ( x ) + u 2 ( x ) y 2 ( x ) y_p(x) = u_1(x) y_1(x) + u_2(x) y_2(x) y p ( x ) = u 1 ( x ) y 1 ( x ) + u 2 ( x ) y 2 ( x )
Imposing the standard auxiliary condition u 1 ′ y 1 + u 2 ′ y 2 = 0 u_1' y_1 + u_2' y_2 = 0 u 1 ′ y 1 + u 2 ′ y 2 = 0 , differentiating, and substituting into the ODE yields the system: ( y 1 y 2 y 1 ′ y 2 ′ ) ( u 1 ′ u 2 ′ ) = ( 0 g ( x ) ) \begin{pmatrix} y_1 & y_2 \\ y_1' & y_2' \end{pmatrix} \begin{pmatrix} u_1' \\ u_2' \end{pmatrix} = \begin{pmatrix} 0 \\ g(x) \end{pmatrix} ( y 1 y 1 ′ y 2 y 2 ′ ) ( u 1 ′ u 2 ′ ) = ( 0 g ( x ) )
Applying Cramer's rule yields the derivatives of the parameter functions: ν 1 ′ ( x ) = − y 2 ( x ) g ( x ) W ( x ) , u 2 ′ ( x ) = y 1 ( x ) g ( x ) W ( x ) \nu_1'(x) = -\frac{y_2(x) g(x)}{W(x)}, \quad u_2'(x) = \frac{y_1(x) g(x)}{W(x)} ν 1 ′ ( x ) = − W ( x ) y 2 ( x ) g ( x ) , u 2 ′ ( x ) = W ( x ) y 1 ( x ) g ( x )
Integrating gives the particular solution formula: y p ( x ) = − y 1 ( x ) ∫ y 2 ( x ) g ( x ) W ( x ) d x + y 2 ( x ) ∫ y 1 ( x ) g ( x ) W ( x ) d x y_p(x) = -y_1(x) \int \frac{y_2(x) g(x)}{W(x)}\,dx + y_2(x) \int \frac{y_1(x) g(x)}{W(x)}\,dx y p ( x ) = − y 1 ( x ) ∫ W ( x ) y 2 ( x ) g ( x ) d x + y 2 ( x ) ∫ W ( x ) y 1 ( x ) g ( x ) d x
Harmonic Oscillators: Free, Damped, and Forced Motion
The physical model for a damped mechanical oscillator or series RLC circuit is: m x ′ ′ + b x ′ + k x = F ( t ) m x'' + b x' + k x = F(t) m x ′′ + b x ′ + k x = F ( t )
where m > 0 m > 0 m > 0 is mass, b ≥ 0 b \ge 0 b ≥ 0 is the damping coefficient, and k > 0 k > 0 k > 0 is the spring stiffness constant.
Damping Regimes ( F ( t ) = 0 F(t) = 0 F ( t ) = 0 )
The characteristic equation is m r 2 + b r + k = 0 m r^2 + b r + k = 0 m r 2 + b r + k = 0 with discriminant Δ = b 2 − 4 m k \Delta = b^2 - 4mk Δ = b 2 − 4 mk :
Overdamped ( b 2 − 4 m k > 0 b^2 - 4mk > 0 b 2 − 4 mk > 0 ) : Two distinct negative real roots r 1 , r 2 < 0 r_1, r_2 < 0 r 1 , r 2 < 0 . Motion decays exponentially to equilibrium without oscillating.
Critically Damped ( b 2 − 4 m k = 0 b^2 - 4mk = 0 b 2 − 4 mk = 0 ) : Repeated negative real root r = − b 2 m r = -\frac{b}{2m} r = − 2 m b . Represents the quasi-monotonic decay that returns to equilibrium most rapidly without oscillating ( x ( t ) = ( c 1 + c 2 t ) e r t x(t) = (c_1 + c_2 t)e^{r t} x ( t ) = ( c 1 + c 2 t ) e r t ).
Underdamped ( b 2 − 4 m k < 0 b^2 - 4mk < 0 b 2 − 4 mk < 0 ) : Complex roots − γ ± i ω d -\gamma \pm i\omega_d − γ ± i ω d , where γ = b 2 m \gamma = \frac{b}{2m} γ = 2 m b is the damping factor and ω d = ω 0 2 − γ 2 \omega_d = \sqrt{\omega_0^2 - \gamma^2} ω d = ω 0 2 − γ 2 is the quasi-frequency (with ω 0 = k / m \omega_0 = \sqrt{k/m} ω 0 = k / m ). Motion consists of exponentially decaying oscillations: x ( t ) = A e − γ t cos ( ω d t − ϕ ) x(t) = A e^{-\gamma t} \cos(\omega_d t - \phi) x ( t ) = A e − γ t cos ( ω d t − ϕ ) .
Resonance in Driven Undamped Systems
Consider an undamped oscillator driven by a sinusoidal force: x ′ ′ + ω 0 2 x = F 0 cos ( ω t ) x'' + \omega_0^2 x = F_0 \cos(\omega t) x ′′ + ω 0 2 x = F 0 cos ( ω t )
Non-Resonant Driving ( ω ≠ ω 0 \omega \neq \omega_0 ω = ω 0 ) : Undetermined coefficients yields a bounded particular solution: x p ( t ) = F 0 ω 0 2 − ω 2 cos ( ω t ) x_p(t) = \frac{F_0}{\omega_0^2 - \omega^2} \cos(\omega t) x p ( t ) = ω 0 2 − ω 2 F 0 cos ( ω t )
Pure Resonance ( ω = ω 0 \omega = \omega_0 ω = ω 0 ) : The driving frequency matches the natural frequency. By the multiplication rule ( s = 1 s = 1 s = 1 ), the trial form is x p ( t ) = t ( A cos ( ω 0 t ) + B sin ( ω 0 t ) ) x_p(t) = t(A \cos(\omega_0 t) + B \sin(\omega_0 t)) x p ( t ) = t ( A cos ( ω 0 t ) + B sin ( ω 0 t )) . Substituting yields: x p ( t ) = F 0 2 ω 0 t sin ( ω 0 t ) x_p(t) = \frac{F_0}{2\omega_0} t \sin(\omega_0 t) x p ( t ) = 2 ω 0 F 0 t sin ( ω 0 t ) The amplitude F 0 t 2 ω 0 \frac{F_0 t}{2\omega_0} 2 ω 0 F 0 t grows linearly without bound as t → ∞ t \to \infty t → ∞ , demonstrating mechanical resonance.
- Step-by-Step Worked Problems
- Problem 1: Variation of Parameters with a Tangent Forcing Term
Find the general solution to y ′ ′ + y = tan x y'' + y = \tan x y ′′ + y = tan x on the interval ( − π / 2 , π / 2 ) (-\pi/2, \pi/2) ( − π /2 , π /2 ) .
Solution :
Solve the homogeneous equation: r 2 + 1 = 0 ⟹ y 1 = cos x r^2 + 1 = 0 \implies y_1 = \cos x r 2 + 1 = 0 ⟹ y 1 = cos x , y 2 = sin x y_2 = \sin x y 2 = sin x .
Compute the Wronskian: W ( y 1 , y 2 ) = ( cos x ) ( cos x ) − ( − sin x ) ( sin x ) = cos 2 x + sin 2 x = 1 W(y_1, y_2) = (\cos x)(\cos x) - (-\sin x)(\sin x) = \cos^2 x + \sin^2 x = 1 W ( y 1 , y 2 ) = ( cos x ) ( cos x ) − ( − sin x ) ( sin x ) = cos 2 x + sin 2 x = 1
The forcing term is g ( x ) = tan x g(x) = \tan x g ( x ) = tan x . Set up integrals for u 1 u_1 u 1 and u 2 u_2 u 2 : u 1 ′ ( x ) = − sin x tan x 1 = − sin 2 x cos x = − 1 − cos 2 x cos x = cos x − sec x u_1'(x) = -\frac{\sin x \tan x}{1} = -\frac{\sin^2 x}{\cos x} = -\frac{1 - \cos^2 x}{\cos x} = \cos x - \sec x u 1 ′ ( x ) = − 1 sin x tan x = − cos x sin 2 x = − cos x 1 − cos 2 x = cos x − sec x u 1 ( x ) = ∫ ( cos x − sec x ) d x = sin x − ln ∣ sec x + tan x ∣ u_1(x) = \int (\cos x - \sec x)\,dx = \sin x - \ln|\sec x + \tan x| u 1 ( x ) = ∫ ( cos x − sec x ) d x = sin x − ln ∣ sec x + tan x ∣ u 2 ′ ( x ) = cos x tan x 1 = sin x ⟹ u 2 ( x ) = − cos x u_2'(x) = \frac{\cos x \tan x}{1} = \sin x \implies u_2(x) = -\cos x u 2 ′ ( x ) = 1 cos x tan x = sin x ⟹ u 2 ( x ) = − cos x
Assemble the particular solution: y p ( x ) = u 1 y 1 + u 2 y 2 = ( sin x − ln ∣ sec x + tan x ∣ ) cos x + ( − cos x ) sin x = − cos x ln ∣ sec x + tan x ∣ y_p(x) = u_1 y_1 + u_2 y_2 = (\sin x - \ln|\sec x + \tan x|)\cos x + (-\cos x)\sin x = -\cos x \ln|\sec x + \tan x| y p ( x ) = u 1 y 1 + u 2 y 2 = ( sin x − ln ∣ sec x + tan x ∣ ) cos x + ( − cos x ) sin x = − cos x ln ∣ sec x + tan x ∣
The general solution is y ( x ) = c 1 cos x + c 2 sin x − cos x ln ∣ sec x + tan x ∣ y(x) = c_1 \cos x + c_2 \sin x - \cos x \ln|\sec x + \tan x| y ( x ) = c 1 cos x + c 2 sin x − cos x ln ∣ sec x + tan x ∣ .
Problem 2: Undetermined Coefficients with Resonance
Find a particular solution to y ′ ′ + 4 y = 6 sin ( 2 x ) + 8 e 2 x y'' + 4y = 6 \sin(2x) + 8 e^{2x} y ′′ + 4 y = 6 sin ( 2 x ) + 8 e 2 x .
Solution :
Solve homogeneous equation: r 2 + 4 = 0 ⟹ r = ± 2 i r^2 + 4 = 0 \implies r = \pm 2i r 2 + 4 = 0 ⟹ r = ± 2 i . Homogeneous basis: { cos ( 2 x ) , sin ( 2 x ) } \{\cos(2x), \sin(2x)\} { cos ( 2 x ) , sin ( 2 x )} .
Decompose g ( x ) = g 1 ( x ) + g 2 ( x ) g(x) = g_1(x) + g_2(x) g ( x ) = g 1 ( x ) + g 2 ( x ) where g 1 = 6 sin ( 2 x ) g_1 = 6\sin(2x) g 1 = 6 sin ( 2 x ) and g 2 = 8 e 2 x g_2 = 8e^{2x} g 2 = 8 e 2 x .
For g 1 ( x ) g_1(x) g 1 ( x ) : The driving frequency 2 i 2i 2 i matches the characteristic root with multiplicity s = 1 s = 1 s = 1 . The trial form is: y p 1 ( x ) = x ( A cos ( 2 x ) + B sin ( 2 x ) ) y_{p1}(x) = x(A \cos(2x) + B \sin(2x)) y p 1 ( x ) = x ( A cos ( 2 x ) + B sin ( 2 x )) Computing derivatives: y p 1 ′ ′ + 4 y p 1 = − 4 A sin ( 2 x ) + 4 B cos ( 2 x ) = 6 sin ( 2 x ) y_{p1}'' + 4 y_{p1} = -4A \sin(2x) + 4B \cos(2x) = 6 \sin(2x) y p 1 ′′ + 4 y p 1 = − 4 A sin ( 2 x ) + 4 B cos ( 2 x ) = 6 sin ( 2 x ) Equating coefficients: − 4 A = 6 ⟹ A = − 3 2 -4A = 6 \implies A = -\frac{3}{2} − 4 A = 6 ⟹ A = − 2 3 , and 4 B = 0 ⟹ B = 0 4B = 0 \implies B = 0 4 B = 0 ⟹ B = 0 . Thus y p 1 = − 3 2 x cos ( 2 x ) y_{p1} = -\frac{3}{2} x \cos(2x) y p 1 = − 2 3 x cos ( 2 x ) .
For g 2 ( x ) g_2(x) g 2 ( x ) : The exponent r = 2 r = 2 r = 2 is not a characteristic root ( s = 0 s = 0 s = 0 ). Trial form: y p 2 = C e 2 x y_{p2} = C e^{2x} y p 2 = C e 2 x . y p 2 ′ ′ + 4 y p 2 = 4 C e 2 x + 4 C e 2 x = 8 C e 2 x = 8 e 2 x ⟹ C = 1 y_{p2}'' + 4 y_{p2} = 4 C e^{2x} + 4 C e^{2x} = 8 C e^{2x} = 8 e^{2x} \implies C = 1 y p 2 ′′ + 4 y p 2 = 4 C e 2 x + 4 C e 2 x = 8 C e 2 x = 8 e 2 x ⟹ C = 1 Thus y p 2 = e 2 x y_{p2} = e^{2x} y p 2 = e 2 x .
Combine to get y p ( x ) = − 3 2 x cos ( 2 x ) + e 2 x y_p(x) = -\frac{3}{2} x \cos(2x) + e^{2x} y p ( x ) = − 2 3 x cos ( 2 x ) + e 2 x .
GRE Exam Traps & Pitfalls
Trap 1: Leading Coefficient Omission in Variation of Parameters The variation of parameters formulas u 1 ′ = − y 2 g / W u_1' = -y_2 g/W u 1 ′ = − y 2 g / W and u 2 ′ = y 1 g / W u_2' = y_1 g/W u 2 ′ = y 1 g / W strictly assume the standard form y ′ ′ + P y ′ + Q y = g ( x ) y'' + P y' + Q y = g(x) y ′′ + P y ′ + Q y = g ( x ) . If the equation is presented as a y ′ ′ + b y ′ + c y = f ( x ) a y'' + b y' + c y = f(x) a y ′′ + b y ′ + cy = f ( x ) , you must use g ( x ) = f ( x ) / a g(x) = f(x)/a g ( x ) = f ( x ) / a . Failing to divide by a a a overestimates the particular solution by a factor of a a a .
Trap 2: Incomplete Trial Form for Sinusoidal Forcing When g ( x ) = sin ( β x ) g(x) = \sin(\beta x) g ( x ) = sin ( β x ) , students often propose y p = A sin ( β x ) y_p = A \sin(\beta x) y p = A sin ( β x ) . Because the first derivative produces cos ( β x ) \cos(\beta x) cos ( β x ) , the trial form must contain both sine and cosine terms: y p = A cos ( β x ) + B sin ( β x ) y_p = A \cos(\beta x) + B \sin(\beta x) y p = A cos ( β x ) + B sin ( β x ) .
Trap 3: Multiplying Only the Duplicated Sub-Term by x s x^s x s If g ( x ) = ( 2 x + 1 ) e 2 x g(x) = (2x + 1)e^{2x} g ( x ) = ( 2 x + 1 ) e 2 x and e 2 x e^{2x} e 2 x belongs to y h y_h y h , the entire polynomial block must be multiplied by x x x : y p = x ( A x + B ) e 2 x = ( A x 2 + B x ) e 2 x y_p = x(Ax + B)e^{2x} = (Ax^2 + Bx)e^{2x} y p = x ( A x + B ) e 2 x = ( A x 2 + B x ) e 2 x , not A x 2 e 2 x + B e 2 x Ax^2 e^{2x} + B e^{2x} A x 2 e 2 x + B e 2 x .