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 y″−3y′+2y=20sin⁡2x+2x+3+ex?

yh=c1e2x+c2ex

Particular Solution yp=Asin⁡2x+Bcos⁡2x+ax+b+Cxex


Section 3.6: Variation of Parameters

Find solution to y″−y′−2y=e3x

Homogeneous solution is yh=c1e−x+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:

c1′y1+c2′y2=0


Using the above examples, we let y1=e−x and y2=e2x:

y=c1e−x+c2e2xy′=c1′e−x−c1e−x+c2′e2x+2c2e2x=(c1′e−x+c2′e2x)−c1e−x+2c2e2x=−c1e−x+2c2e2xy″=c1e−x−c1′e−x+2c2′e2x+4c2e2x

Simplification: We were able to simplify y′ with the restriction c1′e−x+c2′e2x=0.

Now we can plug our functions into the differential equation:

e3x=y″−y′−2y=(c1e−x−c1′e−x+2c2′e2x+4c2e2x)−(−c1e−x+2c2e2x)−2(c1e−x+c2e2x)=c1e−x−c1′e−x+2c2′e2x+4c2e2x+c1e−x−2c2e2x−2c1e−x−2c2e2x=−c1′e−x+2c2′e2x

Use restriction as second equation in system:

{−c1′e−x+2c2′e2x=e3xc1′e−x+c2′e2x=0

We solve for c1′ and c2′:

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

So general solution to original differential equation y″−y′−2y=e3x is:

y=(−112e4x+A)e−x+(13ex+B)e2x=(−112e3x+13e3x)+Ae−x+Be2x=14e3x+Ae−x+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)

{c1′y1+c2′y2=0c1′y1′+c2′y2′=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=c1cos⁡x+c2sin⁡x, where y1=cos⁡x and y2=sin⁡x.

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

Plug in to equations for c1 and c2

c1(x)=−∫sin⁡x1sin⁡xdx=−x+Ac2(x)=∫cos⁡x1sin⁡xdx=ln⁡(sin⁡x)+B

General solution is

y=(−x+A)cos⁡x+(ln⁡(sin⁡x)+B)sin⁡x=−xcos⁡x+Acos⁡x+ln⁡(sin⁡x)sin⁡x+Bsin⁡x