Lecture 2.4: Solving first order inhomogeneous differential equations - - PowerPoint PPT Presentation

lecture 2 4 solving first order inhomogeneous
SMART_READER_LITE
LIVE PREVIEW

Lecture 2.4: Solving first order inhomogeneous differential equations - - PowerPoint PPT Presentation

Lecture 2.4: Solving first order inhomogeneous differential equations Matthew Macauley Department of Mathematical Sciences Clemson University http://www.math.clemson.edu/~macaule/ Math 2080, Differential Equations M. Macauley (Clemson)


slide-1
SLIDE 1

Lecture 2.4: Solving first order inhomogeneous differential equations

Matthew Macauley Department of Mathematical Sciences Clemson University http://www.math.clemson.edu/~macaule/ Math 2080, Differential Equations

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 1 / 9

slide-2
SLIDE 2

Linear differential equations

High school algebra

A linear equation has the form f (x) = ax + b.

Differential equations

A (1st order) linear differential equation has the form y ′ = a(t)y + f (t). A (1st order) homogeneous linear differential equation has the form y ′ = a(t)y.

Examples

y ′ = t2y + 5 y ′ = ty 2 + 5 y ′ = t sin y y ′ = y sin t y ′ = t3 + 2t2 + t + 1

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 2 / 9

slide-3
SLIDE 3

Solving homogeneous ODEs

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 3 / 9

slide-4
SLIDE 4

Method 1: Integrating factor

First steps

  • 1. Write the equation as y ′(t) − a(t)y(t) = f (t);
  • 2. Multiply both sides by e−
  • a(t) dt, the “integrating factor.”
  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 4 / 9

slide-5
SLIDE 5

A familiar example

Example 1

Solve y ′ = 2y + t using the integrating factor method.

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 5 / 9

slide-6
SLIDE 6

Some practice

Find the integrating factor

(a) y ′ + 4y = t2 (b) y ′ + (sin t)y = 1

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 6 / 9

slide-7
SLIDE 7

Some more practice

Find the integrating factor

(c) y ′ − 12t5y = t3 (d) y ′ + 1

t y = 1

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 7 / 9

slide-8
SLIDE 8

Method 2: Variation of parameters

Steps to solving y ′(t) + a(t)y(t) = f (t)

  • 1. Find the solution yh(t) to the the related “homogeneous equation”

y ′(t) + a(t)y(t) = 0.

  • 2. Assume the general solution is y(t) = v(t)yh(t), and plug this back to the ODE

and solve for v(t).

Remarks

This works “equally well” as the integrating factor (IF) method. Variation of parameters has a built-in “check-point” that IF does not. Variation of parameters can be used to solve 2nd order ODEs, whereas IF does not generalize.

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 8 / 9

slide-9
SLIDE 9

Method 2: Variation of parameters

Example

Solve the ODE y ′ = 2y + t using the variation of parameters method.

  • M. Macauley (Clemson)

Lecture 2.4: 1st order inhomogeneous ODEs Math 2080, ODEs 9 / 9