Variation of Parameters for Second-Order Equations
Quick answer
Undetermined coefficients works only for forcing terms like polynomials, exponentials, sines and cosines. Variation of parameters works for any continuous forcing g(t). Starting from two homogeneous solutions y₁ and y₂, look for y_p = u₁y₁ + u₂y₂ with functions u₁ and u₂ in place of constants. Two conditions give u₁′ = −y₂g/W and u₂′ = y₁g/W, where W = y₁y₂′ − y₁′y₂ is the Wronskian. Integrating gives the particular solution.
What you'll learn
Compute the Wronskian of two solutions
Find a particular solution by variation of parameters
Solve equations with forcing like sec t or eᵗ/t
Choose between undetermined coefficients and variation of parameters
Undetermined coefficients guesses
the form of a particular solution, which works only when the forcing is a
polynomial, exponential, sine or cosine. For y′′+y=sect there is no good
guess. Variation of parameters handles any continuous forcing.
For y′′+p(t)y′+q(t)y=g(t), let y1 and y2 solve the homogeneous equation,
and let W=y1y2′−y1′y2 be their Wronskian. Look for
yp=u1(t)y1+u2(t)y2
with functions in place of the constants c1 and c2. The result is
Two unknown functions need two conditions. Differentiating yp gives
u1y1′+u2y2′+(u1′y1+u2′y2). Choose the first condition to make the bracket
zero:
u1′y1+u2′y2=0
Then yp′′ has only first derivatives of u1 and u2. Substituting into the
equation, every term with u1 or u2 alone cancels, because y1 and y2 solve
the homogeneous equation, leaving
u1′y1′+u2′y2′=g
These are two linear equations in u1′ and u2′, and Cramer’s rule
solves them with denominator W. The Wronskian is nonzero because y1 and y2
are independent.