Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.

Slides:



Advertisements
Similar presentations
Chapter 6 Differential Equations
Advertisements

Computational Modeling for Engineering MECN 6040
Ordinary Differential Equations
Numerical Computation
Chapter 7 Numerical Differentiation and Integration
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Chapter 18 Interpolation The Islamic University of Gaza
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 4 Roots of Equations
First-Order Differential Equations
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
Numerical Integration CSE245 Lecture Notes. Content Introduction Linear Multistep Formulae Local Error and The Order of Integration Time Domain Solution.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
Chapter 16 Integration 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.
PART 7 Ordinary Differential Equations ODEs
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Introduction and Analysis of Error Pertemuan 1
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Integration of 3-body encounter. Figure taken from
6. Introduction to Spectral method. Finite difference method – approximate a function locally using lower order interpolating polynomials. Spectral method.
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
Boundary Value Problems l Up to this point we have solved differential equations that have all of their initial conditions specified. l There is another.
Scientific Computing Multi-Step and Predictor-Corrector Methods.
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
FINDING A POLYNOMIAL PASSING THROUGH A POINT. Review: the Linear Factorization Theorem If where n > 1 and a n ≠ 0 then Where c 1, c 2, … c n are complex.
Chapter 3- Model Fitting. Three Tasks When Analyzing Data: 1.Fit a model type to the data. 2.Choose the most appropriate model from the ones that have.
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,
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
Dr. Mujahed AlDhaifallah ( Term 342)
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
10.1 Definition of differential equation, its order, degree,
Ordinary Differential Equations
ACSL, POSTECH1 MATLAB 입문 CHAPTER 8 Numerical Calculus and Differential Equations.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Runge Kutta schemes Taylor series method Numeric solutions of ordinary differential equations.
1 Week 11 Numerical methods for ODEs 1.The basics: finite differences, meshes 2.The Euler method.
EEE 431 Computational Methods in Electrodynamics
Ordinary Differential Equations
DIFFERENTIAL EQUATIONS
Part 7 - Chapter 25.
Ordinary Differential Equations
Class Notes 18: Numerical Methods (1/2)
Chapter 23.
Class Notes 9: Power Series (1/3)
Chapter 27.
Chapter 26.
Part 7 - Chapter 25.
Numerical Integration:
6.5 Taylor Series Linearization
Write Polynomial Functions and Models
Numerical Analysis Lecture 37.
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 2.
College Algebra Chapter 6 Matrices and Determinants and Applications
Presentation transcript:

Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005

Differential Equations Equations where the dependent variable appears as well as one or more of its derivatives. The highest derivative present determines the order of differential equation. The highest power of the dependent variable or its derivative sets the degree of the differential equation.

Differential Equations Y’-Y=0 (1 st order) Y’(t)-Y(t)=exp(t) (1 st order) Y’(t)-Y(t)=t 2 (1 st order) Y’’+Y’-2Y=0 (2 nd order) Y’’’+Y’’-2Y=0 (3 rd order) Y’+Y 2 =0 ( 2 nd degree, 1 st order) Y’’(t)+(Y’(t)-Y(t)) 2 =t ( 2 nd degree, 2 nd order)

Differential Equations Higher order equations can be reduced to a system of first order equations.

Differential Equations When solving differential equations, the final answer has a constant of integration in it. If all the constants of integrations are specified at the same place, they are then called initial values and the solution is called initial value problem. If the initial values are not given at the same place and are specified at different locations, then the solution to the problem is called boundary value problem.

Solution to Differential Equations Start the solution at the value of the independent variable for which the solution is equal to initial values. Proceed step by step by changing the independent variable and obtaining solution across the required range. Since most methods use local polynomial approximation methods, stability becomes an issue.

One Step Methods Picard’s Method

Example Use Picard iteration to find the solution of

Example

The exact solution is:

Runge-Kutta The method doesn’t rely on polynomial approximation. Solution can be presented by a finite taylor series of the form:

Runge-kutta

Runge-Kutta

Error Estimate If solution is monotonically increasing, then the error is increasing as well due to truncation. In oscillatory solutions, the truncation error introduces a phase shift. The general accuracy can not be arbitrarily increased by decreasing the step size. While it will reduce the truncation error, it will increase the effects of round-off error.

Error Estimation

Example

Predictor-Corrector Method By using the solution at n points, we can fit an (n-1) degree polynomial. The predictor part extrapolates the solution over some finite range h based on the information at prior points and inherently unstable. The corrector part makes correction at the end of the interval based on some prior information.

Predictor-Corrector Method

Systems of Differential Equations

In vector form: Where consists of elements which are functions of dependent variables y i,n and x n. A set of basis solutions is simply a set of solutions, which are linearly independent. Consider a set of m linear first order differential equations where k values of the dependent variables are specified at x 0 and (m-k) values corresponding to the remaining dependent variables are specified at x n.

Systems of Differential Equations solve (m-k) initial value problems starting at x 0 and specifying (m-k) independent, sets of missing initial values so that the initial value problems are uniquely determined. Let us denote the missing set of initial values at x 0 by

The columns of are just the individual vectors Matix A will have to be diagonal to always produce So one can choose So the missing initial values will be

Systems of Differential Equations

Integral Equations Equations can be written where the dependent variable appears under an integral as well as alone. Such equations are the analogue of the differential equations and are called integral equations. It is often possible to turn a differential equation into an integral equation which may make the problem easier to numerically solve.

Integral Equations

The parameter K(x,t) appearing in the integrand is known as the kernel of the integral equation. Its form is crucial in determining the nature of the solution. Certainly one can have homogeneous or inhomogeneous integral equations depending on whether or not F(x) is zero. Of the two classes, the Fredholm are generally easier to solve.

Integral Equations