Jump to content

User:Jim.belk/Draft: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. In the method, a "guess" is made as to the appropriate form of the solution, and then the values of the coefficients of determined by solving a system of linear equations. The method of undetermined coefficients is closely related to the annihilator method, and can be viewed as a simple case of the method of variation of parameters. A similar method is sometimes used to find solutions to recurrence relations.

Examples

[edit]

Example with one coefficient

[edit]

Suppose we wish to find a solution to the following linear inhomogeneous differential equation:

y′−y=e3x.

Because the inhomogeneous part is e3x, we guess (correctly) that the equation has a solution of the form

y=Ae3x

for some constant A. Substituting this guess into the original equation yields:

3Ae3x−Ae3x=e3x2Ae3x=e3x2A=1A=12.

Therefore, one solution to the differential equation above is given by

y=12e3x.

The general solution is a sum of this particular solution with a general solution to the associated homogeneous equation (see the article on linear differential equations).

Example with three coefficients

[edit]

Suppose we wish to find a solution to the equation

y″+3y′+2y=2x2+3x.

Because the inhomogeneous part is a quadratic polynomial, we guess (correctly) that the equation has a solution of the form

y=Ax2+Bx+C

for some constants A, B, and C. Substituting this guess into the original equation yields

(2A)+3(2Ax+B)+2(Ax2+Bx+C)=2x2+3x

or

(2A)x2+(6A+2B)x+(2A+3B+2C)=2x2+3x.

Setting the coefficients of x2, the coefficients of x, and the constant terms equal gives the following system of linear equations:

2A=26A+2B=32A+3B+2C=0.

Solving yields A = 1, B = –3/2, and C = 5/4. Therefore, one solution to the differential equation above is given by

y=x2−32x+54.

Guessing the form

[edit]

The first step in the method of undetermined coefficients is to guess the form of the particular solution. This guess is usually based on the inhomogeneous part of the equation:

Inhomogeneous partGuesserxAerxcos⁡kx or sin⁡kxAcos⁡kx+Bsin⁡kxerxcos⁡kx or erxsin⁡kxAerxcos⁡kx+Berxsin⁡kxxnAnxn+An−1xn−1+⋯+A1x+A0xnerxAnxnerx+An−1xn−1erx+⋯+A0erxxncos⁡kxAnxncos⁡kx+⋯+A0cos⁡kx+Bnxnsin⁡kx+⋯+B0sin⁡kx

Sometimes the guess listed above does not work, in which case it is necessary to multiply by a power of x. For example, one might guess that the equation

y″−4y=e2x

has a solution of the form

y=Ae2x.

However, this is not correct, as can be seen by substituting this guess into the equation:

4Ae2x−4Ae2x=e2x.

The correct guess is

y=Axe2x,

which yields the solution

y=14xe2x.

The annihilator method explains this phenomenon, and can be used to determine the correct guess in a wide variety of situations.

Relation to vector spaces

[edit]

In linear algebra, the method of undetermined coefficients can be viewed as a simple application of function spaces and differential operators. Given an equation such as

y″+3y′−5y=x3ex+2xex,

let V be a vector space that contains the inhomogeneous part and which is closed under differentiation:

V=Span{x3ex,x2ex,xex,ex}.

This allows us to write a matrix for the differentiation operator:

ddx[x3ex]=x3ex+3x2exddx[x2ex]=x2ex+2xexddx[xex]=xex+exddx[ex]=exsoD=[1300012000110001]

We can now rewrite the differential equation as a matrix equation:

(D2+3D−5)𝐲=[1020]
spanned by the functions x3ex, x2ex, xex, and ex.

Examples

[edit]

(1)

[edit]

Find a particular solution of the equation

y″+y=tcos⁡t

The right side t cos t has the form

Pneαtcos⁡βt

with n=1, α=0, and β=1.

Since α + iβ = i is a simple root of the characteristic equation

λ2+1=0

we should try a particular solution of the form

yp=t[F1(t)eαtcos⁡βt+G1(t)eαtsin⁡βt]
      =t[F1(t)cos⁡t+G1(t)sin⁡t]
      =t[(A0t+A1)cos⁡t+(B0t+B1)sin⁡t]
      =(A0t2+A1t)cos⁡t+(B0t2+B1t)sin⁡t

Substituting yp into the differential equation, we have the identity

tcos⁡t=yp″+yp

             =[(A0t2+A1t)cos⁡t+(B0t2+B1t)sin⁡t]″
                       +[(A0t2+A1t)cos⁡t+(B0t2+B1t)sin⁡t]

             =[2A0cos⁡t+2(2A0t+A1)(−sin⁡t)+(A0t2+A1t)(−cos⁡t)]
                       +[2B0sin⁡t+2(2B0t+B1)cos⁡t+(B0t2+B1t)(−sin⁡t)]
                       +[(A0t2+A1t)cos⁡t+(B0t2+B1t)sin⁡t]

             =[4B0t+(2A0+2B1)]cos⁡t+[−4A0t+(−2A1+2B0)]sin⁡t

Comparing both sides, we have

                                 4B0               =1
    2A0                             +2B1=0
−4A0                                           =0
             −2A1+2B0              =0

which has the solution A0 = 0, A1 = 1/4, B0 = 1/4, B1 = 0. We then have a particular solution

yp=14tcos⁡t+14t2sin⁡t

(2)

[edit]

Consider the following linear inhomogeneous differential equation:

dydx=y+ex

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:

ddx(Axex)=Axex+ex
Axex+Aex=Axex+ex
A=1

So, the general solution to this differential equation is thus:

y=c1ex+xex