Second-Order Linear Equations/Variation of Parameters

Lesson 3.4897 words

Variation of Parameters

Variation of parameters finds a particular solution of any nonhomogeneous linear equation from a fundamental set of the homogeneous one. Replacing the constants in the complementary solution by functions and imposing one convenient constraint reduces the problem to a two-by-two linear system whose solution is expressed through the Wronskian, giving an integral formula that works for forcing terms undetermined coefficients cannot touch.

╌╌╌╌

The undetermined-coefficients method is fast but narrow: it applies only when the forcing is a polynomial, exponential, sine, cosine, or a product of these, and only when the coefficients are constant. Forcing terms like , , or fall outside it entirely, because their derivatives do not close into a finite family, so no finite trial form exists. Variation of parameters removes that restriction. Given any fundamental set of the homogeneous equation, it produces a particular solution of the nonhomogeneous equation for an arbitrary continuous , as an explicit formula in two integrals. Those integrals must still be evaluated, which is not always possible in closed form.

Letting the constants vary

Start from the nonhomogeneous equation and its complementary solution,

where are a fundamental set of the homogeneous equation. The complementary solution has fixed constants . The method, originally Lagrange's, promotes those constants to functions and seeks a particular solution of the form

This is one function but two unknowns , so one extra condition can be imposed. Differentiating (V),

To keep the second derivative free of , impose one constraint, using the extra freedom:

With the constraint, , and differentiating again,

Substituting into the equation and grouping, the terms multiplying and are and , both zero because solve the homogeneous equation. What remains is

The derivation collapses a hard second-order problem into a linear two-by-two system for by spending one imposed constraint.

Solving the system with the Wronskian

The constraint and the balance equation form a linear system in the unknowns :

Its coefficient determinant is the Wronskian , which is nonzero because form a fundamental set. By Cramer's rule,

Division by is legitimate precisely because independence guarantees . Integrating gives , and (V) assembles the particular solution.

Cramer's rule on the two-by-two system delivers as Wronskian ratios; the forcing enters each numerator, the denominator is always .

Choosing a definite lower limit of integration converts this into a closed formula for a particular solution.

The formula has two structural consequences. It is written for an arbitrary , so it directly shows how the response depends on the forcing, and with the lower limit chosen as the initial point it produces the solution satisfying , automatically.

Trigonometric-quotient forcing

A quotient of trigonometric functions cannot be handled by undetermined coefficients, because its derivatives never close into a finite family.

No finite trial form could have produced the term, which is why undetermined coefficients does not apply to .

The tangent-forced solution lives only on the open interval where is continuous; the logarithmic term drives it to large negative values as nears either endpoint.
The variation-of-parameters pipeline for the worked example, from the fundamental set to the assembled particular solution.

A cosecant forcing is handled the same way, and the same fundamental set carries it through.

The response kernel

Choosing the lower limit of integration as the initial point turns the formula into the unique solution of the equation with zero initial data, , . Combining the two integrals under one sign,

The kernel depends only on the homogeneous solutions, not on the forcing. For constant-coefficient equations it depends on and only through the difference , so and the response is a convolution of the kernel with the input,

The response weights past input by the kernel : the weight is zero at the present instant and oscillates back over earlier times.

Reading as the input and as the output: the output at time is a weighted sum of the input over the entire interval up to , with the kernel supplying the weights. Once is known, every forcing is handled by a single integral, and the same structure reappears in the Laplace-transform treatment of convolution, where is the inverse transform of the transfer function.

Comparison of the two methods

Variation of parameters is universal but computational; undetermined coefficients is restricted but algebraic. The choice is usually clear from the forcing term and the coefficients.

Undetermined coefficientsVariation of parameters
Coefficientsconstant onlyany (given a fundamental set)
Forcing polynomial, exp, sin, cos, productsany continuous function
Work involvedsolve linear equations for constantsevaluate two integrals
Resonancehandled by multiplying trial by automatic, no special case
Fails when outside the trial familiesintegrals have no closed form

A practical rule: if fits the trial families and the coefficients are constant, undetermined coefficients is less work; otherwise variation of parameters is the method that applies. When both apply they give the same particular solution up to a complementary piece.

The operator viewpoint

There is also an operator formulation. Writing the equation with the differential operator , where are the characteristic roots, turns solving into inverting a product of first-order operators. Each factor is a first-order linear equation solved by an integrating factor, so the second-order problem unwinds as two successive first-order integrations. This operator method recovers the same integral structure as the variation-of-parameters formula.1

The formula extends to -th order with an Wronskian, and the same determinant construction underlies nonhomogeneous linear systems through the fundamental matrix.23

Footnotes

  1. Simmons, Differential Equations with Applications and Historical Notes, §19 The Method of Variation of Parameters; §23 Operator Methods: the variation construction and the factored-operator approach to nonhomogeneous constant-coefficient equations.
  2. Boyce, Elementary Differential Equations, §3.6 — Variation of Parameters: Lagrange's substitution , the constraint , the Wronskian formulas for , the general integral formula (Theorem 3.6.1), and the example.
  3. Boyce, Elementary Differential Equations, §4.4 — The Method of Variation of Parameters: the extension of the formula to -th order linear equations using the Wronskian and its cofactors.

╌╌ END ╌╌