Which function satisfies ? The natural guess fails for every constant , because the left side sends every multiple of to zero, and the next guess fails for the same reason. This lesson shows how to choose a trial function when the forcing is built from polynomials, exponentials, sines and cosines, how many factors of an overlap with the homogeneous solutions requires, and how an annihilator explains both rules. Throughout, is the independent variable, a prime means , and stands for the operator .
Key terms
Complementary and particular solutions
Definition Let be a linear equation of order on an open interval on which the leading coefficient never vanishes and the other coefficients and the forcing , divided by it, are continuous. The complementary solution is the general solution of the homogeneous equation ,
where is a fundamental set of solutions on and are arbitrary constants. A particular solution is any one function with on . Every solution of on equals for exactly one choice of the constants, because the difference of two solutions of the forced equation solves the homogeneous one. Initial conditions are imposed on the sum , never on alone. In this lesson the operator has constant coefficients,
with real numbers and , so every interval on which is continuous qualifies. Its characteristic polynomial is , and .
In plain words The complementary part is everything the equation allows with no input, and it carries all the free constants. The particular part is one response to the input. Two particular solutions differ by a member of the complementary family, so it does not matter which one you find.
Example For the characteristic polynomial is , so . The constant function is a particular solution, since its derivatives vanish and . To meet and , apply the data to . This gives and , so , and
Fitting the data to alone would give , and adding afterward would produce the constant function , which starts at the wrong height.
Method of undetermined coefficients
Definition The method of undetermined coefficients finds a particular solution of when has constant coefficients and is a finite linear combination of terms and , with a nonnegative integer, real and . Polynomials, exponentials, sines, cosines and their products are all of this kind, and so are their derivatives. The method has four steps.
- Find from the roots of the characteristic polynomial.
- Write a trial function with unknown coefficients for each forcing term, including the overlap correction described below.
- Substitute the trial into and equate the coefficients of each function and on the two sides.
- Solve the resulting linear system for the coefficients, then add and apply any initial data to the sum.
With the trial chosen by the rules of the next two cards, this linear system always has exactly one solution. The coefficients are fixed by the equation, unlike the constants in , which are fixed by initial data. The method does not cover forcing such as , or , whose derivatives do not stay inside the span of any finite set of functions, and it does not cover equations with variable coefficients. Those equations still have solutions, and variation of parameters finds them.
In plain words Guess the shape of the answer from the shape of the forcing, and let the equation decide the numbers. This works because differentiating a polynomial, an exponential, a sine or a cosine only produces more functions of the same kinds.
Example Take . The characteristic roots are and , neither of them , and the forcing is a quadratic, so try . With and ,
Matching this with gives , and , so , , and
Substituting back confirms it, since . The shorter trial fails, because its output would need and at the same time.
Trial function
Definition For a forcing term or with , the trial function is
where and have unknown coefficients and is the overlap multiplicity of the next card. For a term , the case , the trial is . Both polynomials contain every power from to , and the cosine and the sine both appear even when the forcing contains only one of them. Forcing terms with the same and share one trial, whose degree is the largest among them. Terms with different or get separate trials, and by superposition the particular solutions found for them are added. When the common cases look like this.
| Forcing term | Trial when |
|---|---|
In plain words The trial has to contain every function that differentiation can produce from the forcing. Differentiating lowers powers of and turns a cosine into a sine and a sine into a cosine, so the lower powers and the partner function belong in the trial from the start.
Example For the characteristic roots are , so neither nor overlaps with . The term gets the trial , and , so and . The term gets the trial , and , so . Adding the two pieces gives
The constant came out zero, but it still belonged in the trial, since nothing tells you in advance that it vanishes.
Overlap multiplicity
Definition For a forcing term with exponent and frequency , let . The overlap multiplicity is the multiplicity of as a root of the characteristic polynomial , with when . Because has real coefficients, the conjugate has the same multiplicity, so one value of serves for the cosine and the sine. The whole trial is multiplied by , and no lower powers are added back. The reason is the shift identity
which holds for every differentiable function , complex values allowed. Write with . The factors differentiate the polynomial factor times, so they send times any polynomial of degree less than to zero. The factor lifts the trial polynomial above that range, and the image under is then times a polynomial of the same degree as in the forcing.
In plain words If part of the trial already solves the homogeneous equation, the operator turns that part into zero, and no coefficient can make zero equal the forcing. Multiplying the trial by , where counts how often occurs as a root, moves it out of the complementary family. This is the algebra behind resonance.
Example Return to , now with and . Here , so has and . The trials and both lie in , and sends them to zero. The corrected trial works, because the two factors differentiate twice,
so and . The general solution is . The data give and , so and
The coefficient is fixed by the forcing. It is not a third free constant.
Annihilator method
Definition A nonzero constant-coefficient operator annihilates a function on an interval if there. The operator annihilates every polynomial of degree at most , the operator annihilates for , and the operator
annihilates and for . If , applying to both sides of shows that every solution also solves the homogeneous equation , whose characteristic polynomial is . The basis functions of this larger equation that are not already in the basis of form the trial function, with the overlap powers of built in. The larger equation is necessary but not sufficient, so the coefficients must still come from substituting into . No nonzero constant-coefficient operator annihilates or , which is why the method stops at the class of forcing described above.
In plain words Find an operator that wipes out the forcing and apply it to both sides. The result is a homogeneous equation that the characteristic roots already solve, its new solutions are the trial, and the original equation then fixes their coefficients.
Example For , the operator annihilates . Every solution therefore satisfies , whose solutions are . The new basis function is , which is the trial found above with . Substituting into the original equation gives , so . A function such as solves the larger equation, but sends it to , so it does not solve the original one.
Check yourself
- Find a particular solution of , and explain why the trial alone fails.
Show the answer
The characteristic roots are and , so are not roots and . Try . Then and , so
Matching with gives and , so , and
The trial alone gives , which would need and at once. The derivative of the sine produces a cosine, so the cosine has to be in the trial.
- Find a particular solution of .
Show the answer
The roots of are , and is a simple root, so . The uncorrected trial solves the homogeneous equation, and sends it to zero. Try with . The product rule gives , and , so , that is,
Matching with gives and , so
Its amplitude grows in proportion to , which is resonance.
- Use an annihilator to find the form of a particular solution of , then find the particular solution.
Show the answer
The characteristic polynomial is , so , and the root has multiplicity . The operator annihilates , so every solution satisfies , whose solutions are . The functions not already in are and , so the trial is , which is with . Then and , so
Matching with gives and , so
The naive trial lies in and gives zero, and even fails, because sends it to the constant .