Method of undetermined coefficients
From Wikipedia, the free encyclopedia
In mathematics, the method of undetermined coefficients is an approach to finding a particular solution to certain inhomogeneous ordinary differential equations and recurrence relations. It is closely related to the annihilator method, but instead of using a particular kind of differential operator (the annihilator) in order to find the best possible form of the particular solution, a "guess" is made as to the appropriate form, which is then tested by differentiating the resulting equation. In this sense, the method of undetermined coefficients is less formal but more intuitive than the annihilator method.
Undetermined coefficients is not as general as variation of parameters, since it only works for differential equations that follow certain forms.
Contents |
[edit] Example
Consider the following linear inhomogeneous differential equation:
The analogous homogeneous problem is
which has the following general solution:
If we can find a particular solution to our original problem, we can add it to the above, and have the general solution to our original problem.
Based on the inhomogeneous part (e2x), we guess (correctly) that a particular solution is:
By substituting this function and its derivative into the differential equation, one can solve for A:
(If our guess above were not of the correct form, we would not have been able to solve for A.)
So, the general solution to this differential equation is thus:
[edit] Typical forms of the particular solution
After solving the homogeneous case for the complementary function, a particular solution based on the right hand side of the equation needs to be found. The sum of the complementary function and the particular solution then gives the general solution for y.
In order to find the particular solution, we need to 'guess' its form, with some coefficients left as variables to be solved for. Below is a table of some typical functions and the solution to guess for them.
Function of x | Form for y |
keax | Ceax |
kxn, n = 0,1,2,... | Knxn + Kn − 1xn − 1 + ... + K1x + K0 |
kcos(ax) or ksin(ax) | Kcos(ax) + Msin(ax) |
keaxcos(bx) or keaxsin(bx) | eax(Kcos(bx) + Msin(bx)) |
or |
If a term in the above particular solution for y appears in the homogeneous solution, it is necessary to multiply by a sufficiently large power of x in order to make the two solutions linearly independent. If the function of x is a sum of terms in the above table, the particular solution can be guessed using a sum of the corresponding terms for y.
[edit] Examples
[edit] (1)
Find a particular solution of the equation
The right side t cos t has the form
with n=1, α=0, and β=1.
Since α + iβ = i is a simple root of the characteristic equation
we should try a particular solution of the form
Substituting yp into the differential equation, we have the identity
Comparing both sides, we have
which has the solution A0 = 0, A1 = 1/4, B0 = 1/4, B1 = 0. We then have a particular solution
[edit] (2)
Consider the following linear nonhomogeneous differential equation:
This is like the first example above, except that the inhomogeneous part (ex) is not linearly independent to the general solution of the homogeneous part (c1ex); as a result, we have to multiply our guess by a sufficiently large power of x to make it linearly independent.
Here our guess becomes:
- yp = Axex
By substituting this function and its derivative into the differential equation, one can solve for A:
- Axex + Aex = Axex + ex
- A = 1
So, the general solution to this differential equation is thus:
- y = c1ex + xex