MATH 308 Lecture 14

From Notes
Jump to navigation Jump to search

« previous | Monday, February 18, 2013 | next »

Lecture Notes


Non-Homogeneous Equations

y″−3y′+2y=1

yh=c1e2x+c2ex is solution to homogeneous problem y″−3y′+2y=0

Let's look for a constant function solution to the nonhomogeneous function: y(t)=12

Guess particular solution yp=12+yh by looking at original diff EQ.

y″−3y′+2y=yh″−3yh′+2yh+1=0+1

The general solution to the non-homogeneous function is y=12+c1e2x+c2ex

Exercise 2

y″−5y′+6y=ex

Corresponding homogeneous function is y″−5y′+6y=0, and solution is yh=c1e2x+c2e3x.

We'll guess the particular solution is a constant undetermined coefficient multiplied into ex:

Cex−5Cex+6Cex=exC=12

So yp=12ex is a particular solution to the non-homogeneous differential equation.

Combining the general solution to the homogeneous equation, we get

y=12ex+c1e2x+c2e3x

Exercie 3

y″−4y′+3y=ex

General solution to y″−4y′+3y=0 is yh=c1ex+c2e3x

Possible particular solution is of form y=Cex, so

Cex−4Cex+3Cex=ex0=ex

Bad guess. This isn't surprising since c1ex is a solution to the homogeneous differential equation, so of course it will equal 0.

Note: To make good guesses for equations of form y″+Ay′+By=eCx, multiply it by x so that x has a degree one greater than the homogeneous solution

Let's try y=Cxex.

2Cex+Cxex−4Cex−4Cxex+3Cxex=ex−2Cex=exC=−12

So y=−12xex is a particular solution to the non-homogeneous differential equation.

The general solution is y=−12xex+c1ex+c2e3x

Exercise 5

y″−3y′+2y=2x+3

Solution to homogeneous differential equation is yh=c1e2x+c2ex

Particular solution yp is a polynomial function of degree 1: yp=ax+b since the RHS is a polynomial of degree 1.

yp=ax+byp′=ayp″=0y″−3y′+2y=0−3a+2ax+2b=2x+32a=22b=6

So our particular solution is yp=x+3


Exercise 6

Find a particular solution to y″−3y′+2y=20sin⁡(2x)

Solution to homogeneous function is yh=c1e2x+c2ex

Try particular solution yp=Asin⁡2x+Bcos⁡2x

yp=Asin⁡2x+Bcos⁡2xyp′=2Acos⁡2x−2Bsin⁡2xyp″=−4Asin⁡2x−2Bcos⁡2xy″−3y+2y=−4Asin⁡2x−2Bcos⁡x−6Acos⁡2x+6Bsin⁡x+2Asin⁡2x+2Bcos⁡2x=20sin⁡2x(−4A+6B+2A)sin⁡2x+(−4B−6A+2B)cos⁡2x=20sin⁡2x

We're left with the system of equations

{−2A+6B=20−2B+6A=0

We find that A=−1 and B=3.

Therefore our general solution to the nonhomogeneous equation is y=−sin⁡2x+3cos⁡2x+c1e2x+c2ex


Making Good Guesses

Given a linear second order differential operator with constant coefficients

ay″+by′+cy=g(x)

We have the following cases for g(x):

Exponentials

g(x)=eαx

A particular solution to the differential equation is in the form

y=kxseαx
  • s=0 if eαx is not a solution to the corresponding homogeneous problem.
  • s=1 if eαx is a solution to the corresponding homogeneous problem.
  • s=2 if eαx and xeαx are solutions to the corresponding homogeneous problem.

Polynomials

g(x)=Pn(x)=∑j=0nαjxj=αnxn+αn−1xn−1+…+α1x+α0

Where Pn is a polynomial function of degree n, then a particular solution is in the form y=xspn(x) where

  • pn is a polynomial function of degree n
  • s=1 if the constant functions are solutions to the corresponding homogeneous differential equation
  • s=0 otherwise.

Trigonometric

g(x)=pcos⁡αx+qsin⁡αx

A particular solution is in the form

y=xs(Acos⁡αx+Bsin⁡αx)
  • s=1 if cos⁡αx is solution to the homogeneous solution
  • s=0 otherwise.