SlideShare a Scribd company logo
1 of 19
Download to read offline
St. John's University of Tanzania
MAT210 NUMERICAL ANALYSIS
2013/14 Semester II
DIFFERENTIAL EQUATIONS
Euler's Method
Kaw, Chapter 8.02
Some parts of this presentation are based on resources at
http://nm.MathForCollege.com, primarily
http://nm.mathforcollege.com/topics/ordinary_de.html
MAT210 2013/14 Sem II 2 of 19
● Applications of mathematics
●
Functions
– Interpolation
●
Find values and polynomials within an interval
●
Pass thru all points available (df=0)
– Regression
●
Confirm models, estimate parameters
●
Pass close to all points (df>0)
● Their Derivatives
● Their Integrals
Where we have been
Can use the interpolation
or regression functions
MAT210 2013/14 Sem II 3 of 19
Where we must go
● A main use of all these pieces are
differential equations
●
Models where things are changing
● Numerical methods for solving differential
equations is a broad field
●
Method's for 1st order ODEs, methods for higher
order ODEs, PDEs of various types
●
Boundary value problems
– Finite Difference, Elements or Volumes
– Spectral Methods and more
MAT210 2013/14 Sem II 4 of 19
Ordinary Differential Equations
● That is as far as we go
●
Just to get a taste for future study
● Topics
● 1st order ODE
– Euler's Method
– Runga-Kutta Methods
● Higher order Initial Value
● Higher order Boundary Value
– Shooting Method versus Finite Differences
MAT210 2013/14 Sem II 5 of 19
Euler's Method
● Numerical technique to solve
● Simply moving along the slope in small
steps to reach the destination point
●
Simple to derive from Taylor Series
dy
dx
= f (x , y) , y(0)=y0
MAT210 2013/14 Sem II 6 of 19
Example 1
MAT210 2013/14 Sem II 7 of 19
Example 2
MAT210 2013/14 Sem II 8 of 19
Graphical Interpretation
MAT210 2013/14 Sem II 9 of 19
Move on down the line
Slope=
Rise
Run
=
dy
dx
dy
dx
=
y1
−y0
x1
−x0
= f (x0,
y0
)
y1
=y0
+ f (x0,
y0
)(x1
−x0
)
This simply continus from 0 to 1 to 2 to ... i+1
yi+1
=yi
+ f (xi
, yi
)h , where xi+1
=xi
+h
MAT210 2013/14 Sem II 10 of 19
Example 3
MAT210 2013/14 Sem II 11 of 19
MAT210 2013/14 Sem II 12 of 19
MAT210 2013/14 Sem II 13 of 19
Is the solution plausible?
● End temperature < Ambient temperature
●
Violates laws governing heat transfer
● As usual
●
Look beyond the calculations with an
understanding of the system at hand
MAT210 2013/14 Sem II 14 of 19
MAT210 2013/14 Sem II 15 of 19
Consider the Convergence
MAT210 2013/14 Sem II 16 of 19
Consider the Error
MAT210 2013/14 Sem II 17 of 19
Understanding the Error
●
For each step, true error is O(h2)
●
Step size halved, True error quartered
●
Results are different
●
Step size gets halved, True error halved
●
Why?
●
O(h2) is the local truncation error, i.e.
– Error from one point to the next
●
Global truncation error is proportional only to the
step size because
Error propagates from one point to another
MAT210 2013/14 Sem II 18 of 19
Local versus global error
MAT210 2013/14 Sem II 19 of 19
Options
● Either
●
Accept the limitation of Euler or
● Go out further with the Taylor Series to
improve the error at each step
– Runga-Kutta does just that
●
Note that all these methods have at their
heart the Taylor series expansion and the
related numerical derivatives
● Plus some creativity...

More Related Content

Similar to MAT210/DiffEq/ODE/Euler 2013-14

exactnondifferentialequation-150802123533-lva1-app6892.pptx
exactnondifferentialequation-150802123533-lva1-app6892.pptxexactnondifferentialequation-150802123533-lva1-app6892.pptx
exactnondifferentialequation-150802123533-lva1-app6892.pptx
MasoudIbrahim3
 

Similar to MAT210/DiffEq/ODE/Euler 2013-14 (20)

MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14
 
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
Numerical Solution Of Delay Differential Equations Using The Adomian Decompos...
 
LDP_Notes_2015.pdf
LDP_Notes_2015.pdfLDP_Notes_2015.pdf
LDP_Notes_2015.pdf
 
Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2Slides econometrics-2018-graduate-2
Slides econometrics-2018-graduate-2
 
1.0 introduction to managerial economics
1.0 introduction to managerial economics1.0 introduction to managerial economics
1.0 introduction to managerial economics
 
SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2
 
MAT210/Integration/Romberg 2013-14
MAT210/Integration/Romberg 2013-14MAT210/Integration/Romberg 2013-14
MAT210/Integration/Romberg 2013-14
 
A semi analytic method for solving nonlinear partial differential equations
A semi analytic method for solving nonlinear partial differential equationsA semi analytic method for solving nonlinear partial differential equations
A semi analytic method for solving nonlinear partial differential equations
 
SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2
 
SJUT/MAT210/Interpolation/Splines 2013-14S2
SJUT/MAT210/Interpolation/Splines 2013-14S2SJUT/MAT210/Interpolation/Splines 2013-14S2
SJUT/MAT210/Interpolation/Splines 2013-14S2
 
QMC: Operator Splitting Workshop, Sparse Non-Parametric Regression - Noah Sim...
QMC: Operator Splitting Workshop, Sparse Non-Parametric Regression - Noah Sim...QMC: Operator Splitting Workshop, Sparse Non-Parametric Regression - Noah Sim...
QMC: Operator Splitting Workshop, Sparse Non-Parametric Regression - Noah Sim...
 
dynamic programming complete by Mumtaz Ali (03154103173)
dynamic programming complete by Mumtaz Ali (03154103173)dynamic programming complete by Mumtaz Ali (03154103173)
dynamic programming complete by Mumtaz Ali (03154103173)
 
HOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxHOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptx
 
optimal solution method of integro-differential equaitions under laplace tran...
optimal solution method of integro-differential equaitions under laplace tran...optimal solution method of integro-differential equaitions under laplace tran...
optimal solution method of integro-differential equaitions under laplace tran...
 
HOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxHOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptx
 
MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14
 
On the construction and comparison of an explicit iterative
On the construction and comparison of an explicit iterativeOn the construction and comparison of an explicit iterative
On the construction and comparison of an explicit iterative
 
SJUT/Mat210/Interpolation/Newton's Divided Difference 2013-14S2
SJUT/Mat210/Interpolation/Newton's Divided Difference  2013-14S2SJUT/Mat210/Interpolation/Newton's Divided Difference  2013-14S2
SJUT/Mat210/Interpolation/Newton's Divided Difference 2013-14S2
 
Lecture2a algorithm
Lecture2a algorithmLecture2a algorithm
Lecture2a algorithm
 
exactnondifferentialequation-150802123533-lva1-app6892.pptx
exactnondifferentialequation-150802123533-lva1-app6892.pptxexactnondifferentialequation-150802123533-lva1-app6892.pptx
exactnondifferentialequation-150802123533-lva1-app6892.pptx
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

MAT210/DiffEq/ODE/Euler 2013-14

  • 1. St. John's University of Tanzania MAT210 NUMERICAL ANALYSIS 2013/14 Semester II DIFFERENTIAL EQUATIONS Euler's Method Kaw, Chapter 8.02 Some parts of this presentation are based on resources at http://nm.MathForCollege.com, primarily http://nm.mathforcollege.com/topics/ordinary_de.html
  • 2. MAT210 2013/14 Sem II 2 of 19 ● Applications of mathematics ● Functions – Interpolation ● Find values and polynomials within an interval ● Pass thru all points available (df=0) – Regression ● Confirm models, estimate parameters ● Pass close to all points (df>0) ● Their Derivatives ● Their Integrals Where we have been Can use the interpolation or regression functions
  • 3. MAT210 2013/14 Sem II 3 of 19 Where we must go ● A main use of all these pieces are differential equations ● Models where things are changing ● Numerical methods for solving differential equations is a broad field ● Method's for 1st order ODEs, methods for higher order ODEs, PDEs of various types ● Boundary value problems – Finite Difference, Elements or Volumes – Spectral Methods and more
  • 4. MAT210 2013/14 Sem II 4 of 19 Ordinary Differential Equations ● That is as far as we go ● Just to get a taste for future study ● Topics ● 1st order ODE – Euler's Method – Runga-Kutta Methods ● Higher order Initial Value ● Higher order Boundary Value – Shooting Method versus Finite Differences
  • 5. MAT210 2013/14 Sem II 5 of 19 Euler's Method ● Numerical technique to solve ● Simply moving along the slope in small steps to reach the destination point ● Simple to derive from Taylor Series dy dx = f (x , y) , y(0)=y0
  • 6. MAT210 2013/14 Sem II 6 of 19 Example 1
  • 7. MAT210 2013/14 Sem II 7 of 19 Example 2
  • 8. MAT210 2013/14 Sem II 8 of 19 Graphical Interpretation
  • 9. MAT210 2013/14 Sem II 9 of 19 Move on down the line Slope= Rise Run = dy dx dy dx = y1 −y0 x1 −x0 = f (x0, y0 ) y1 =y0 + f (x0, y0 )(x1 −x0 ) This simply continus from 0 to 1 to 2 to ... i+1 yi+1 =yi + f (xi , yi )h , where xi+1 =xi +h
  • 10. MAT210 2013/14 Sem II 10 of 19 Example 3
  • 11. MAT210 2013/14 Sem II 11 of 19
  • 12. MAT210 2013/14 Sem II 12 of 19
  • 13. MAT210 2013/14 Sem II 13 of 19 Is the solution plausible? ● End temperature < Ambient temperature ● Violates laws governing heat transfer ● As usual ● Look beyond the calculations with an understanding of the system at hand
  • 14. MAT210 2013/14 Sem II 14 of 19
  • 15. MAT210 2013/14 Sem II 15 of 19 Consider the Convergence
  • 16. MAT210 2013/14 Sem II 16 of 19 Consider the Error
  • 17. MAT210 2013/14 Sem II 17 of 19 Understanding the Error ● For each step, true error is O(h2) ● Step size halved, True error quartered ● Results are different ● Step size gets halved, True error halved ● Why? ● O(h2) is the local truncation error, i.e. – Error from one point to the next ● Global truncation error is proportional only to the step size because Error propagates from one point to another
  • 18. MAT210 2013/14 Sem II 18 of 19 Local versus global error
  • 19. MAT210 2013/14 Sem II 19 of 19 Options ● Either ● Accept the limitation of Euler or ● Go out further with the Taylor Series to improve the error at each step – Runga-Kutta does just that ● Note that all these methods have at their heart the Taylor series expansion and the related numerical derivatives ● Plus some creativity...