Today’s class Ordinary Differential Equations Runge-Kutta Methods

Slides:



Advertisements
Similar presentations
Ordinary Differential Equations
Advertisements

Chapter 6 Differential Equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Computational Methods in Physics PHYS 3437
Ordinary Differential Equations
Today’s class Romberg integration Gauss quadrature Numerical Methods
PART 7 Ordinary Differential Equations ODEs
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Ordinary Differential Equations Equations which are.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
11 September 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 10 – Ordinary Differential Equations 11 September am – 9.00 am.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Initial-Value Problems
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
8-1 Chapter 8 Differential Equations An equation that defines a relationship between an unknown function and one or more of its derivatives is referred.
Numerical Solutions of Ordinary Differential Equations
CISE301_Topic8L31 SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Differential Equations and Boundary Value Problems
CISE301_Topic8L1KFUPM1 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1.
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
CSE 330 : Numerical Methods Lecture 17: Solution of Ordinary Differential Equations (a) Euler’s Method (b) Runge-Kutta Method Dr. S. M. Lutful Kabir Visiting.
PART 7 Ordinary Differential Equations ODEs
Today’s class Boundary Value Problems Eigenvalue Problems
Today’s class Numerical Integration Newton-Cotes Numerical Methods
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Review Taylor Series and Error Analysis Roots of Equations
Computational Method in Chemical Engineering (TKK-2109)
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Integration of 3-body encounter. Figure taken from
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
Numerical Solutions of ODE
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Engineering Analysis – Computational Fluid Dynamics –
Today’s class Roots of equation Finish up incremental search
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Numerical Analysis – Differential Equation
Please remember: When you me, do it to Please type “numerical-15” at the beginning of the subject line Do not reply to my gmail,
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm
PHY 301: MATH AND NUM TECH Contents Chapter 10: Numerical Techniques I. Integration A.Intro B.Euler  Recall basic  Predictor-Corrector C. Runge-Kutta.
Dr. Mujahed AlDhaifallah ( Term 342)
Ordinary Differential Equations
1/14  5.2 Euler’s Method Compute the approximations of y(t) at a set of ( usually equally-spaced ) mesh points a = t 0 < t 1
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
This chapter is concerned with the problem in the form Chapter 6 focuses on how to find the numerical solutions of the given initial-value problems. Main.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
CISE301_Topic8L71 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
Ordinary Differential Equations
Part 7 - Chapter 25.
Ordinary Differential Equations
525602:Advanced Numerical Methods for ME
Class Notes 18: Numerical Methods (1/2)
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Class Notes 19: Numerical Methods (2/2)
Today’s class Multiple Variable Linear Regression
Part 7 - Chapter 25.
Numerical Analysis Lecture 37.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L2.
Numerical Analysis Lecture 38.
Numerical solution of first-order ordinary differential equations
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L6.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
Numerical Computation and Optimization
Differential equations
Sec 23: Runge–Kutta Methods
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L1 KFUPM.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Presentation transcript:

Today’s class Ordinary Differential Equations Runge-Kutta Methods Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Ordinary Differential Equations A differential equation is an equation made up of a function and derivatives of that function Example An ordinary differential equation (ODE) is a differential equation with only one independent variable Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Ordinary Differential Equations First-order - highest derivative in the ODE is a first derivative Second-order - highest derivative in the ODE is a second derivative Linear - ODE is of the following form Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Initial-Value & Boundary-Value Conditions IV Conditions All conditions are given at the same value of the independent variable BV Conditions Conditions are given at different value of the independent variables The numerical methods for solving Initial-value and boundary-value are different. Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Runge-Kutta Methods Focus on methods to solve first order ODE Euler’s Method Huen and Midpoint methods Classic 4th-order R-K method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Euler’s Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Euler’s Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Euler’s Method Example: True: h = 0.5 Numerical Methods Prof. Jinbo Bi Lecture 16 Prof. Jinbo Bi CSE, UConn

Euler’s Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Error Analysis Global truncation errors Local truncation - from application of Euler’s method over a single step Propagation truncation - from approximation produced during previous steps Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Error Analysis Start with Taylor Series expansion Local truncation error Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Error Analysis Global Truncation Error Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Euler’s Method Not very accurate Reducing the step size can improve accuracy but will also increase computation Can be useful for quick analysis (assuming large step size) Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Euler’s Method Improvements Higher order Taylor Series Heun’s Method Midpoint/Improved Polygon Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Higher order Taylor Series If f is a function of both the dependent and independent variables, you need to calculate the partial derivatives Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Heun’s Method Main drawback of Euler’s method is that it assumes that the derivative at the beginning of the interval is the same across the interval A better estimate involves looking at the derivatives at both ends of the interval and then averaging Heun method uses the average of the derivatives at the points (xi, yi) and (xi+1, yi+1) to compute yi+1. Since, the derivative at (xi+1, yi+1) is unknown, first to estimate yi+1, then using the average derivative to compute yi+1. Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Heun’s Method Local truncation error is O(h3) and global truncation error is O(h2) Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Heun’s Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Heun’s Method Can further use yi+1 to re-estimate the derivative at (xi+1, yi+1) and then obtain a better result. The iteration can go on until an accurate result is achieved Further iterations may not converge on the true answer but it will converge on a finite truncation error Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Heun’s Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Midpoint Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Midpoint Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Midpoint Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Runge-Kutta Methods Numerical Methods Prof. Jinbo Bi Lecture 16 CSE, UConn

The principles of Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

The principles of Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

The principles of Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

The principles of Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

The principles of Runge-Kutta Method Heun method Midpoint method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Third-order Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Classic 4th-order Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Classic 4th-order Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Classic 4th-order Runge-Kutta Method Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Comparison of Runge-Kutta Methods Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Systems of ODEs Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Higher-order ODE Numerical Methods Prof. Jinbo Bi Lecture 16 CSE, UConn

Systems of ODEs Must be careful in determining slopes Can use same higher-order Runge Kutta methods with systems of ODEs Must be careful in determining slopes First find slopes at the initial value (k1) Then slopes at the midpoints (k2) Then refine slopes at the midpoint (k3) Then find slopes at the endpoint (k4) Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Systems of ODEs Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Systems of ODEs Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn

Next class Ordinary Differential Equations Read Chapter 25, 26 Numerical Methods Lecture 16 Prof. Jinbo Bi CSE, UConn