Numerical Analysis – Differential Equation

Slides:



Advertisements
Similar presentations
Ordinary Differential Equations
Advertisements

Chapter 6 Differential Equations
Computational Methods in Physics PHYS 3437
Ordinary Differential Equations
Numerical Uncertainty Assessment Reference: P.J. Roache, Verification and Validation in Computational Science and Engineering, Hermosa Press, Albuquerque.
1cs542g-term Notes  Even if you’re not registered (not handing in assignment 1) send me an to be added to a class list.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
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.
CSE245: Computer-Aided Circuit Simulation and Verification Lecture Note 5 Numerical Integration Spring 2010 Prof. Chung-Kuan Cheng 1.
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
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.
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
NUMERICAL SOLUTION 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
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
1 Chapter 6 Numerical Methods for Ordinary Differential Equations.
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
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Erin Catto Blizzard Entertainment Numerical Integration.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Math 3120 Differential Equations with Boundary Value Problems Chapter 2: First-Order Differential Equations Section 2-6: A Numerical Method.
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
Computational Method in Chemical Engineering (TKK-2109)
Modelling & Simulation of Chemical Engineering Systems Department of Chemical Engineering King Saud University 501 هعم : تمثيل الأنظمة الهندسية على الحاسب.
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.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Introduction to the Runge-Kutta algorithm for approximating derivatives PHYS 361 Spring, 2011.
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,
Chapter 5. Ordinary Differential Equation
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)
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
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.
Numerical Analysis – Data Fitting Hanyang University Jong-Il Park.
CISE301_Topic8L71 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Solving Ordinary Differential Equations
CALCULUS REVIEW BME 3510 C PO-WEI CHEN 8/19/2014.
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
Ordinary Differential Equations
Part 7 - Chapter 25.
Scientific Computing Lab
Ordinary Differential Equations
CSE245: Computer-Aided Circuit Simulation and Verification
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)
Part 7 - Chapter 25.
CSE245: Computer-Aided Circuit Simulation and Verification
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.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
MATH 175: Numerical Analysis II
Differential equations
Numerical Analysis – Solving Nonlinear Equations
Presentation transcript:

Numerical Analysis – Differential Equation Hanyang University Jong-Il Park

Differential Equation

Solving Differential Equation Ordinary D.E. Partial D.E. Linear eg. Nonlinear eg. Initial value problem Boundary value problem Usually no closed-form solution linearization numerical solution

Discretization in solving D.E. Errors in Numerical Approach Discretization error Stability error y Exact sol. t Grid Points

Errors Total error truncation round-off increase as as trade-off

Local error & global error The error at the given step if it is assumed that all the previous results are all exact Global error The true, or accumulated, error

Useful concepts(I) Useful concepts in discretization Consistency Order Convergence

Useful concepts(II) stability Consistent Converge stable unstable

Stability Stability condition eg. Exact sol. Euler method Amplification factor For stability

Implicit vs. Explicit Method eg. = f Explicit : Implicit : h large y y ye h small h increase explicit t implicit t “conditionally stable” “stable”

Modification to solve D.E. Modified Differential Eq. Diff. eq. Discretization Modified D.E. Discretization by Euler method <Consistency check> <Order>

Initial Value Problem: Concept

Initial value problem Initial Value Problem Simultaneous D.E. High-order D.E.

Well-posed condition

Taylor series method(I) Truncation error

Requiring complicated Taylor series method(II) High order differentiation Implementation Complicated computation <Type 1> <Type 2> .... y t More computation accuracy y Requiring complicated source codes t Less computation accuracy

Euler method(I) Euler Method Talyor series expansion at to y .... ....

Euler method(II) Error Eg. y’ =-2x3+12x2-20x+8.5, y(0)=1

Euler method(III) Generalizing the relationship Error Analysis Euler’s approx. truncation error Error Analysis Accumulated truncation error ; 1st order

Eg. Euler method

Modified Euler method: Heun’s method Modified Euler’s Method Why a modification? error modify Predictor Average slope Corrector

Heun’s method with iteration significant improvement

Error analysis Error Analysis Taylor series Total error truncation 3rd order ; 2nd order method ※ Significant improvement over Euler’s method!

Eg. Euler vs. Modified Euler Euler Method improvement

Runge-Kutta method Runge-Kutta Method The idea Simple computation very accurate The idea where

Second-order Runge-Kutta method ① Taylor series expansion ② ③ ④ ③→① Equating ② and ④

Modified Euler - revisited set P2 P1  Modified Euler method Modified Euler method is a kind of 2nd-order Runge-Kutta method.

Other 2nd order Runge-Kutta methods Midpoint method Ralston’s method

Comparison: 2nd order R-K method

Comparison: 2nd order R-K method Eg. y’ =-2x3+12x2-20x+8.5, y(0)=1

4-th order Runge-Kutta methods Fourth-order Runge-Kutta Taylor series expansion to 4-th order accurate short, straight, easy to use P4 P3 P1 P2 ※ significant improvement over modified Euler’s method

Runge-Kutta method

Eg. 4-th order R-K method Significant improvement

Discussion Better!

Comparison (5th order)