Undetermined Coefficients
When the right side isn't zero, the answer comes in two pieces: , what the system does on its own, plus one solution that produces the right side . When is made of polynomials, exponentials, sines and cosines, has the same shape as .
What the symbols mean
- Complementary solution
The general solution of the homogeneous equation (right side 0), from the characteristic equation.
- Particular solution
Any one solution of the full equation, right side g(t) included.
Explanation
Undetermined coefficients is simply a guess-and-check way to find how a system responds to an outside push. The name says it: you guess the shape of the answer with some numbers left blank (coefficients you haven't determined yet), and the equation fills them in. All we're really saying here is that the system's motion is what it would do on its own plus its reaction to the push. In , the pieces are (the system's own natural motion, which you already know how to find) and (one response that matches the push exactly). The new work is only , and for the common kinds of pushes you can basically guess it. It looks like a lot of new machinery, but it's two simple parts added together; bear with it.
Now what? Take a look at the equation we've been working with:
It looks just like the equations we solved with the characteristic equation, except the right side isn't zero anymore. It's some function , so the equation is nonhomogeneous. For a spring, is an outside force pushing on it; we'll see what that does to the motion later in this unit.
The old trick doesn't work by itself here. Plugging in gives , and no choice of turns that into a like or .
Solve it in two parts: . The usual way is to split the answer in two. is the solution we already know how to get from the characteristic equation. , the particular solution, is any one function that solves the full equation, right side included. Put them together and the left side becomes
Think about why that works. was built to make the left side ; that was the whole point of the characteristic equation. So when you plug in , the part contributes nothing, and has to supply all of on its own. is just . That's also our hint for finding : if has to come out as exactly , it makes sense that should look like to begin with.
It works in reverse too: if is any solution, then makes the left side , so it's one of the homogeneous solutions. Every solution is , nothing more.
For example, take . A constant does the job: gives . The homogeneous equation has , so every solution is
Picture a spring: is the motion it makes on its own, and is its response to the outside push . There's an animation further down that shows the two adding up to the real motion.
Finding : guess something shaped like . When the right side is built from polynomials, exponentials, sines and cosines, or products of these like , guess a of the same shape with unknown coefficients. Substitute it and match like terms: the equation decides the coefficients, which is where the name undetermined coefficients comes from.
| Guess | |
|---|---|
| polynomial of degree | , every power down to the constant |
| , , or both | , always both |
| a product, like | the product of the guesses: |
| a sum, like | the sum of the separate guesses |
The duplication rule. If a term of your guess already appears in , it solves the homogeneous equation, so substituting it gives , never . Multiply the guess by , or by when the root is repeated, until nothing overlaps .
A common mistake. In , it's tempting to think is a root because it's sitting in the exponent on the right. It isn't. The roots only ever come from the characteristic equation, here , which gives and . The right side tells you the shape of the guess; the characteristic equation tells you whether that guess collides with .
The recipe:
- Find from the characteristic equation.
- Write the guess for from the table, then fix any overlap with .
- Substitute, match the coefficients of like terms, and solve for the unknowns.
- Write , then apply initial conditions to the whole thing, not to alone.
Why only these kinds of ? Substituting a guess takes its first and second derivatives. The method works when those derivatives stay inside a short list of functions, so finitely many unknown coefficients can match . Polynomials, exponentials, sines and cosines are exactly the functions whose derivatives never leave their family: , , , and products of them stay products of the same kinds. Now try : its derivatives are , a new kind of term every time, so no finite guess can ever close up. For forcing like , or there's variation of parameters, the next lesson.
See it
Worked examples
Find a particular solution of .
- 1
The forcing is an exponential, so guess . The characteristic roots are and , so isn't part of and the guess is safe to use.
Find a particular solution of .
- 1
A polynomial of degree 1 times , so guess . The roots of are , so is built from and , and doesn't collide with either.
Find a particular solution of .
- 1
The natural guess is already in , so it would give . Multiply by : guess .
Finish the example from above: solve with and .
- 1
The general solution is , with included.
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find a particular solution of .
Find a particular solution of .
Find a particular solution of .
Find a particular solution of .
What is the correct guess for ?
Why can't undetermined coefficients handle ?
A kg mass hangs on a spring with stiffness N/m and no damping. A motor pushes on it with force newtons. It starts at rest at its equilibrium position. Find its position in meters.
Use undetermined coefficients to find one solution of .
Find a particular solution of .
Solve with and .
Find a particular solution of .
Find the most general solution of . Use and for the constants.
Which guess for fits ?
Which guess for fits ?
Solve with and .
Solve with and .
Find the most general solution of . Use and for the constants.
Find the most general solution of . Use and for the constants.
The hardest one here. Get it, and you've got this lesson.
Solve with and .
Where it's used
Forced vibration problems in engineering, a bridge pushed by periodic wind or a circuit driven by an AC voltage, are solved with exactly these guesses. The particular solution is the steady response engineers design for; the complementary part is the transient that dies away.