Ordinary Differential Equations/Nonhomogeneous second order equations:Method of undetermined coefficients

From testwiki
Revision as of 12:20, 9 September 2018 by imported>JackBot (Formatting, Special:UncategorizedPages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Consider a differencial equation of the form

y+p(t)y+q(t)y=g(t)

Clerarly, this is not homogeneous, as g(t)0.

So, to solve this, we first proceeed as normal, but assume that the equation is homogeneous; set g(t)=0for now. Then the first part of the solution pans like y(t)=c1er1t+c2er2t..

Now we need to find the particular integral. To do this, make an appropriate substitution that relates to what g(t) is. For instance, if g(t)=e2x, then take substitution Ae2x. As y and y are multiples of y in this case, you'll simply get a linear equation in A. Then just plug the value of A in the equation.

Hence the solution is

y = general solution + particular integral.

There is one important caveat which you should be aware though. In the previous example for instance, if the general solution already had e2x, the substitution cannot be Ae2x, as the particular integral cannot be equal to the general solution. In such cases, you need to take the substitution as Axe2x.

Example

Solve the differential equation

d2ydx2+2dydx+2y=4+e2x
Given that
y(0)=4,y(0)=1

Solution

Take y=emx. Then

(d2y)/(dx2)+2dy/dx+2y(m+1)2+1=0m+1=±im=1±i

Hence the general form of the equation becomes

y=ex(Pcosx+Qsinx) Now, the particular integral has to be found. To do so, we consider RHS: 4+2e2x. The substation then becomes A+Be2x. Then y=2Be2x and y=4Be2x. Then the equation reduces to 4B4B+2(A+Be2x)=4+2e2x2A+2Be2x=4+2e2x. Hence A=2,B=1. The equation is now

y=ex(Pcosx+Qsinx)+2+e2x

y(0)=4. Then 4=P+2+1P=1.
y(0)=1. Then ex(Pcosx+Qsinx)+ex(QcosxPsinx)2e2x=1=> QP2=1QP=1Q=2.

Hence the final equation is y=ex(cosx+2sinx)+2+e2x

Template:BookCat