Differential equations - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

Differential equations

Description:

ODEs show up everywhere in engineering. dynamics (Newton's 2nd law) ... New value=old value slope*step size. or. Slope is generally a function of x, hence y(x) ... – PowerPoint PPT presentation

Number of Views:61
Avg rating:3.0/5.0
Slides: 20
Provided by: tonyc7
Category:

less

Transcript and Presenter's Notes

Title: Differential equations


1
Differential equations There are ordinary
differential equations - functions of one
variable And there are partial differential
equations - functions of multiple variables
2
Order of differential equations 1st order 2nd
order etc.
3
Can always turn a higher order ode into a set of
1st order odes Example
Let
then
So solutions to 1st order are important
4
Linear and nonlinear ODEs Linear No
multiplicative mixing of variables, no nonlinear
functions Nonlinear anything else
5
Sometimes can linearize Example for small angles
then
which is linear
6
  • ODEs show up everywhere in engineering
  • dynamics (Newtons 2nd law)
  • heat conduction (Fouriers law)
  • diffusion (Ficks law)

7
  • Were going to cover
  • Euler and Heun's methods
  • Runge-Kutta methods
  • Adaptive Runge-Kutta
  • Multistep methods
  • Adams-Bashforth-Moulton methods
  • Boundary value problems
  • Goal is to get y(x) from dy/dxf(x)

8
Runge Kutta methods - one step methods Idea is
that New valueold valueslopestep size or
Slope is generally a function of x, hence
y(x) Different methods differ in how to estimate
9
Eulers method Use differential equation to
estimate slope, by plugging in current values of
x and y Example let
Integrate from 1 to 7. Let h0.5. Initial
condition is y(1)1. Use f for
10
Begin at x1
11
  • Ok, not so great
  • Truncation errors
  • Round off errors
  • There is
  • local truncation error - error from application
    at a single step
  • propagated truncation error - previous errors
    carried forward
  • sum is Global truncation error

12
Eulers method uses Taylor series with only first
order terms Error is Neglect higher order terms
13
Example -
Local error at any x
See Excel sheet
14
Error can be reduced by smaller h - see Excel
sheet
15
Effect of reducing step size Error vs h
16
  • Improvements of Eulers method - Heuns method
  • derivative at beginning of interval is applied
    to entire interval
  • Heuns method uses average derivative for entire
    interval

17
Graph of function with slope arrows explaining
Heuns method
Average the slopes
18
  • Heuns method is a predictor-corrector method
  • predictor
  • corrector

19
Example of Heuns method - see Excel first few
iterations - yHeun(0)2 (given) y0yHeun(0)f(0)h
2-5000.5-248 yHeun(0.5)yHeun(0)(f(0)f(0.5))/
20.5 2(-500-245.5)/20.5-184
.375 y0yHeun(0.5)f(0.5)h yHeun(1)yHeun(0.5)(f
(0.5)f(1))/2h
Write a Comment
User Comments (0)
About PowerShow.com