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.
Given the ODE P(D)y = f(x), find another differential operator A(D) such that A(D)f(x) = 0. This operator is called the annihilator, and thus the method of undetermined coefficients is also known as the annihilator method. Applying A(D) to both sides of the ODE gives a homogeneous ODE for which we find a solution basis as before. Then the original nonhomogeneous ODE is used to construct a system of equations restricting the coefficients of the linear combinations to satisfy the ODE.
Undetermined coefficients is not as general as variation of parameters in the sense that an annihilator does not always exist.
Contents |
[edit] Example
Consider the following linear inhomogeneous differential equation:
The analogous homogeneous problem is
which has the following easy-to-find 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 inhomogeneous 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
[edit] (3)
Given y'' − 4y' + 5y = sin(kx), P(D) = D2 − 4D + 5. The simplest annihilator of sin(kx) is A(D) = D2 + k2. The zeros of A(z)P(z) are {2 + i,2 − i,ik, − ik}, so the solution basis of A(D)P(D) is {y1,y2,y3,y4} = {e(2 + i)x,e(2 − i)x,eikx,e − ikx}.
Setting y = c1y1 + c2y2 + c3y3 + c4y4 we find
-
sin(kx) = P(D)y = P(D)(c1y1 + c2y + c3y3 + c4y4) = c1P(D)y1 + c2P(D)y2 + c3P(D)y3 + c4P(D)y4 = 0 + 0 + c3( − k2 − 4ik + 5)y3 + c4( − k2 + 4ik + 5)y4 = c3( − k2 − 4ik + 5)(cos(kx) + isin(kx)) + c4( − k2 + 4ik + 5)(cos(kx) − isin(kx))
giving the system
- i = (k2 + 4ik − 5)c3 + ( − k2 + 4ik + 5)c4
- 0 = (k2 + 4ik − 5)c3 + (k2 − 4ik − 5)c4
which has solutions
- ,
giving the solution set