MATH 308 Lecture 15

From Notes
Jump to navigation Jump to search

« previous | Wednesday, February 20, 2013 | next »

Lecture Notes


Remark for section 3.5

How would we go about solving y3y+2y=20sin2x+2x+3+ex?

yh=c1e2x+c2ex

Particular Solution yp=Asin2x+Bcos2x+ax+b+Cxex


Section 3.6: Variation of Parameters

Find solution to yy2y=e3x

Homogeneous solution is yh=c1ex+c2e2x

What about non-constant coefficients; i.e. what if the constants were actually functions of x:

y=c1(x)y1+c2(x)y2

There are infinitely many possibilities for c1 and c2, so we impose a restriction to limit the number of possibilities:

c1y1+c2y2=0


Using the above examples, we let y1=ex and y2=e2x:

y=c1ex+c2e2xy=c1exc1ex+c2e2x+2c2e2x=(c1ex+c2e2x)c1ex+2c2e2x=c1ex+2c2e2xy=c1exc1ex+2c2e2x+4c2e2x

Simplification: We were able to simplify y with the restriction c1ex+c2e2x=0.

Now we can plug our functions into the differential equation:

e3x=yy2y=(c1exc1ex+2c2e2x+4c2e2x)(c1ex+2c2e2x)2(c1ex+c2e2x)=c1exc1ex+2c2e2x+4c2e2x+c1ex2c2e2x2c1ex2c2e2x=c1ex+2c2e2x

Use restriction as second equation in system:

{c1ex+2c2e2x=e3xc1ex+c2e2x=0

We solve for c1 and c2:

c1=13e4xc2=13exc1=112e4x+Ac2=13ex+B

So general solution to original differential equation yy2y=e3x is:

y=(112e4x+A)ex+(13ex+B)e2x=(112e3x+13e3x)+Aex+Be2x=14e3x+Aex+Be2x

Method for Solving Second Order ODEs

To determine a particular solution to y+p(x)y+q(x)y=g(x)

Find y1 and y2 for corresponding homogeneous equation y+p(x)y+q(x)y=0

Solve the following system for c1(x) and c2(x)

{c1y1+c2y2=0c1y1+c2y2=g(x)

or

c1(x)=x0xy2(s)g(s)W(y1,y2)(s)dsc2(x)=x0xy1(s)g(s)W(y1,y2)(s)ds

A particular solution will be

yp(x)=c1(x)y1(x)+c2(x)y2(x)


Exercise 7

Find general solution to y+y=0

Solution to homogeneous equation is y=c1cosx+c2sinx, where y1=cosx and y2=sinx.

W(y1,y2)=cos2(x)+sin2(x)=1

Plug in to equations for c1 and c2

c1(x)=sinx1sinxdx=x+Ac2(x)=cosx1sinxdx=ln(sinx)+B

General solution is

y=(x+A)cosx+(ln(sinx)+B)sinx=xcosx+Acosx+ln(sinx)sinx+Bsinx