Numerical Calculations Part 5: Solving differential equations

Slides:



Advertisements
Similar presentations
Chapter 6 Differential Equations
Advertisements

MATLAB EXAMPLES Initial-value problems
Section Differentials Tangent Line Approximations A tangent line approximation is a process that involves using the tangent line to approximate a.
{ Semester Exam Review AP Calculus. Exam Topics Trig function derivatives.
HAMPIRAN NUMERIK SOLUSI PERSAMAAN DIFERENSIAL (lanjutan) Pertemuan 12 Matakuliah: METODE NUMERIK I Tahun: 2008.
Numeriska beräkningar i Naturvetenskap och Teknik 1. Numerical differentiation and quadrature Discrete differentiation and integration Trapezoidal and.
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
18 September 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 11 – Ordinary Differential Equations 18 September am – 9.00 am.
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.
Implicit Differentiation. Objectives Students will be able to Calculate derivative of function defined implicitly. Determine the slope of the tangent.
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
A) Find the velocity of the particle at t=8 seconds. a) Find the position of the particle at t=4 seconds. WARMUP.
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
Numerical Solution of Ordinary Differential Equation
Fin500J Topic 7Fall 2010 Olin Business School 1 Fin500J Mathematical Foundations in Finance Topic 7: Numerical Methods for Solving Ordinary Differential.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Application of Differential Applied Optimization Problems.
4.1 Implicit Differentiation Definition. We will say that a given equation in x and y defines the function f implicitly if the graph of y = f(x)
MECN 3500 Lecture 4 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
5/30/ Runge 4 th Order Method Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
11/17/ Shooting Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Solutions of ODE
Chapter 21 Exact Differential Equation Chapter 2 Exact Differential Equation.
1/19/ Runge 4 th Order Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
Notes Over 5.6 Quadratic Formula
Chapter 21 Exact Differential Equation Chapter 2 Exact Differential Equation.
Differential Equations MTH 242 Lecture # 05 Dr. Manshoor Ahmed.
2/28/ Runge 4 th Order Method Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
Solving Multi-Step Equations INTEGRATED MATHEMATICS.
Fundamental of Fortran Part 2 Dr.Entesar Ganash. 1. Program layout The general structure of a simple Fortran program is given as the following:
Numerical Calculation Part 1: Equations &Roots Dr.Entesar Ganash (Bisection's Method)
Numerical Integration Methods
CHAPTER 3 NUMERICAL METHODS
Some exercises Dr.Entesar Ganash.
Numerical Methods by Dr. Laila Fouad.
Section 15.5 The Chain Rule.
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)
Ch 8.6: Systems of First Order Equations
Class Notes 11.2 The Quadratic Formula.
The Quadratic Formula.
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Section 11.3 Euler’s Method
ORBITAL Trajectories!!! Made by Karol Sanchez
Aim: How do we use quadratic formula to solve equation?
Numerical Analysis Lecture 37.
Differential Equations
Persamaan Diferensial Biasa (Ordinary Differential Equation)
73 – Differential Equations and Natural Logarithms No Calculator
Numerical Analysis Lecture 38.
Numerical Integration Methods
Numerical solution of first-order ordinary differential equations
Use power series to solve the differential equation. y ' = 7xy
ECE 576 POWER SYSTEM DYNAMICS AND STABILITY
Solve the equation: 6 x - 2 = 7 x + 7 Select the correct answer.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L6.
Section 9.4 – Solving Differential Equations Symbolically
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
Numerical Computation and Optimization
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
MATH 2140 Numerical Methods
Trigonometric Equations
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L7 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.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L6 KFUPM.
Presentation transcript:

Numerical Calculations Part 5: Solving differential equations Dr.Entesar Ganash

First order differential equation The general first order differential equation is Initial condition Is given Example:

Rung-Kutta fourth-order formulae There are a variety of alogorithms, under the general name of Runge-Kutta. This can be used to integrate systems of ordinary differential equations In the first order differential equation: First, Let us see this http://www.youtube.com/watch?v=kUcc8vAgoQ0 The fourth- order Runge-Kutta estimate at is given by where

Second order differential equation The general second order differential equation is Initial conditions are given Example:

Rung-Kutta fourth-order formulae In the second order, we have where

Example Write a program to solve the following differential equation in . when use n=30 Solving program RKM implicit none integer::n,i ! No of parts, counter real ::y,dy,x,xn,h,exact real ::k1,k2,k3,k4 n=30 x=0.0 y=0.0 dy=1.0 xn=1.0 h=(xn-x)/n Exact=sin(x) print*,'-----------------------------------------------------------------' print*,' x', ' y', ' dy',' Exact' print*, x,y,dy,Exact

continue Solving DO I=1,n k1=h*f (x,y,dy) k2=h*f(x+h/2,y+h*dy/2+h*k1/8,dy+k1/2) k3=h*f(x+h/2,y+h*dy/2+h*k1/8,dy+k2/2) k4=h*f(x+h, y+h*dy+h*k3/2, dy+k3) x=x+h Exact=sin(x) y=y+h*(dy+(k1+k2+k3)/6) dy=dy+(k1+2.0*k2+2.0*k3+k4)/6 print*, x,y,dy,exact End do print*,'-----------------------------------------------------------------' CONTAINS REAL Function f(p,q,u) Real ::f, p,q,u f=-q End function f End program RKM continue Solving

The result:

References Hahn, B.D., 1994, Fortran 90 For Scientists and Engineers, Elsevier http://www.stewartcalculus.com/data/CALCULUS%20Concepts%20and%20Contexts/upfiles/3c3-AppsOf2ndOrders_Stu.pdf