Push a swing at regular intervals and its motion is no longer set only by the swing itself. The equation gains a right side, a prescribed input that you choose, while the motion it produces is the unknown. All the work on homogeneous equations still counts. You only need one solution that answers the input, and everything else comes from the homogeneous equation you already know how to solve.
Key terms
Forcing and the linear operator
Definition A second-order linear equation in standard form is
where , and are given functions on an interval . Write for every twice differentiable on . The operator is linear, so for all constants . The given function is the forcing term. The equation is homogeneous when on and nonhomogeneous otherwise.
In plain words The operator is a machine that takes a candidate function and returns the forcing it would need. Solving means finding the functions that the machine sends to the prescribed input .
Example For and the candidate the machine returns
So solves , but it does not solve .
Coefficient continuity assumptions
Definition Existence and uniqueness theorem. Suppose , and are continuous on an open interval and lies in . Then for any real numbers and the problem
has exactly one solution, and that solution exists on all of . An equation written as must first be divided by , which is allowed only on an interval where . Then , and .
In plain words The theorem works on intervals where the coefficients and the forcing are continuous, and only after the equation is in standard form. Points where the leading coefficient vanishes split the line into separate intervals, and a solution formula is claimed only on one of them.
Example The equation has leading coefficient , which is zero at . In standard form it reads
with coefficients continuous on and on . An initial condition at gives a unique solution on , and the theorem says nothing past .
Complementary and particular solutions
Definition Let , and be continuous on an open interval , and let and be solutions of on with Wronskian on . Any single solution of on is called a particular solution. The general solution of the homogeneous equation,
is called the complementary solution. Theorem. Every solution of on has the form
for exactly one pair of constants . The proof is one line. If solves , then , so is a homogeneous solution.
In plain words The particular solution answers the forcing. The complementary part adds nothing to the forcing, because sends it to zero, so it is free to adjust the solution to the initial conditions.
Example For the constant works, since . The homogeneous equation has and , so every solution on is
Check the roles with the operator. Applying to gives and applying it to gives , so their sum is sent to exactly , whatever and are.
Undetermined coefficients
Definition The method applies to with real constants , , , when is a sum of terms of the form
where is a polynomial of degree and , are real constants. For one such term, try
where and are polynomials of degree with unknown coefficients, and is the multiplicity of as a root of the characteristic equation , with when it is not a root. So is , or , and is possible only when . Both and are needed even when contains only a cosine or only a sine. Substitute and match coefficients. For a sum of such terms, find a particular solution for each term and add them, which is allowed because is linear.
In plain words Derivatives of polynomials, exponentials, sines and cosines stay in the same family, so a trial of the same shape as the forcing can be tuned to fit it exactly. When the trial simply copies the shape of .
Example Take . The characteristic roots are and , and is not one of them, so and the trial is . Substituting gives
Matching coefficients gives , then , then , so . With exponential forcing the same idea is even quicker. For the trial gives , so .
Resonance adjustments
Definition When the forcing contains or and is a root of the characteristic equation, the unadjusted trial contains homogeneous solutions, which sends to , so no choice of coefficients can match . Multiplying the trial by , with the multiplicity of the root as above, removes every homogeneous solution from the trial and the method then succeeds. Always compare the trial with before substituting.
In plain words If the input already has the shape of a natural response, the plain guess is invisible to the equation. Multiply by , or by for a double root, to get a guess the equation can see.
Example For the characteristic equation has the simple root . The trial gives , so use . Its derivatives are
and substituting gives . So and . The same rule handles a double root and a sinusoid.
| Equation | Root to check | Particular solution |
|---|---|---|
| is double | ||
| is simple |
In the second row the oscillation has amplitude , which grows without bound. This is resonance.
Variation of parameters
Definition Let , and be continuous on an open interval , and let , be solutions of on with Wronskian
Look for and impose . Substituting into the equation then leaves . Solving this linear system with Cramer’s rule gives
and any antiderivatives , on give a particular solution
The formula needs the equation in standard form with leading coefficient , and it works for any continuous , also with variable coefficients.
In plain words Take the homogeneous solution and let its constants vary with . The extra condition keeps the second derivative simple, and the Wronskian being nonzero guarantees you can always solve for and .
Example Solve on , where is continuous. Use and with . Then and . Since on , take and . This gives
Undetermined coefficients cannot reach this answer, because is not of the allowed form.
Variable coefficient forcing
Definition For on an open interval where and all four functions are continuous, the forcing that enters variation of parameters is , not . The homogeneous solutions , must be known separately, and the result is valid only on that interval.
In plain words Divide by the leading coefficient before you use the formula. Forgetting this is the most common error with variable coefficients.
Example Take on . The functions and solve the homogeneous equation, as direct substitution shows, and there. The standard form has . Then
so , and
Check it in the original equation. The left side becomes , as required. Using instead of would have produced a wrong answer.
Check yourself
- Find a particular solution of .
Show the answer
The root of is simple, so try . Substituting gives , so and .
- Solve with and .
Show the answer
A particular solution is , so . The condition gives , and gives . The solution is for all .
- Use variation of parameters to find a particular solution of on .
Show the answer
Here , and . Then and , so and , which needs . This gives . The term is a homogeneous solution and may be dropped, so also works.