Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151

Slides:



Advertisements
Similar presentations
Differential Equations Brannan Copyright © 2010 by John Wiley & Sons, Inc. All rights reserved. Chapter 08: Series Solutions of Second Order Linear Equations.
Advertisements

Interpolation A standard idea in interpolation now is to find a polynomial pn(x) of degree n (or less) that assumes the given values; thus (1) We call.
Algebraic, transcendental (i.e., involving trigonometric and exponential functions), ordinary differential equations, or partial differential equations...
Parabolic Partial Differential Equations
Linear Systems of Equations
NUMERICAL DIFFERENTIATION AND INTEGRATION
Chapter 7 Numerical Differentiation and Integration
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Lecture 18 - Numerical Differentiation
Curve-Fitting Polynomial Interpolation
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
1 Chapter 3 INTERPOLATION. 2 WHAT IS INTERPOLATION? Given (x 0,y 0 ), (x 1,y 1 ), …, (x n,y n ), finding the value of ‘y’ at a value of ‘x’ in ( x 0,
Differential Equations and Boundary Value Problems
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Finite Element Method.
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
Elliptic PDEs and the Finite Difference Method
Numerical Methods.
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
1 Section 5.3 Linear Systems of Equations. 2 THREE EQUATIONS WITH THREE VARIABLES Consider the linear system of three equations below with three unknowns.
Boyce/DiPrima 9 th ed, Ch 11.3: Non- Homogeneous Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Numerical Analysis Lecture 28. Chapter 7 Numerical Differentiation and Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
MAT 322: LINEAR ALGEBRA.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
CHAPTER 3 NUMERICAL METHODS
EEE 431 Computational Methods in Electrodynamics
A PART Ordinary Differential Equations (ODEs) Part A p1.
ECE 3301 General Electrical Engineering
Today's Contents Review Elliptic expansion parallelogram.
Chapter 7 Numerical Differentiation and Integration
Transfer Functions Chapter 4
Spring Dr. Jehad Al Dallal
Numerical Methods and Analysis
CHAPTER 2: DC Circuit Analysis and AC Circuit Analysis
Numerical Analysis Lecture 25.
Numerical Analysis Lecture12.
Chapter 18.
Chapter 22.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Analysis Lecture 27.
Chapter 18.
Numerical Analysis Lecture 45.
Chapter 27.
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Numerical Analysis Lecture 23.
Numerical differentiation
5.1 Power Series Method Section 5.1 p1.
Numerical Analysis Lecture 26.
Numerical Analysis Lecture13.
Numerical Analysis Lecture 19.
Fourier Analysis Lecture-8 Additional chapters of mathematics
Numerical Analysis Lecture10.
Numerical Computation and Optimization
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Analysis Lecture 21.
Numerical Analysis Lecture11.
PARTIAL DIFFERENTIAL EQUATIONS
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Chapter 2 A Survey of Simple Methods and Tools
Numerical Analysis Lecture 24.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Ax = b Methods for Solution of the System of Equations (ReCap):
Presentation transcript:

Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151

We can divide our syllabus in following four major sections: Method of solution of system of equations Solution of Non-linear Simultaneous Equations (Newton-Raphson Method) Tridiagonal system of equations (Thomas algorithm)

2. Numerical Integration Evaluation of Double & Triple Integrals (a) Constant Limit (b) Variable Limit Simpson’s Rule & Trapezoidal Rule

3. Methods of Interpolation Newton’s F/W and B/W formula Gauss’s F/W and B/W formula Bessel’s Formula Stirling Formula Lagrange’s Interpolation Formula Newton’s Divided Difference Formula

4. Numerical Solution of Differential Equations O.D.E. P.D.E. First Order & Higher Order Ordinary Diffe. Eqs. Initial Value & Boundary Value Problems Laplace & Poisson Equations Heat Conduction Wave Equations

Solution of Non-linear Simultaneous Equations (Newton-Raphson Method)

This Method is extension of N-R Method for Non-Linear Equation Method for Simultaneous equations: Suppose we are given the following Simultaneous equations …(1) Why simultaneous..?

We consider that be the first approximation And be the real roots It means, we must have : ….(2)

Now we expand the relation, we had in eq Now we expand the relation, we had in eq. (2) Using Taylor Series Expansion (3) (similarly for ) Now since h and k are very small, we can neglect the terms containing (or )and higher order terms…

Now, eq.(2), eq.(3) and assumption suggests ..(4b)

Or simply: …5(a) ..5(b) Let us say

Cramer’s Rule for or the solution of a system of linear equation

We have from Eqs. 5(a) & 5(b) Or in matrix form

Now let us call And hence we can have (from Cramer’s rule)

This gives the next approximation, as Using these values we can proceed further for next approximation (better value) This completes the method.

Solve the given simultaneous equations (up to two iterations)

Q.2

Solution of Q.2

And hence we have the second approximation as We repeat the process for next approximation

Tridiagonal system of equations (Thomas algorithm)

[Upper Triangular & Lower Triangular Matrices] In applications, many times we can have system of equations which gives a coefficient matrix of special structure, majority of zeros .  Sparse matrices  [Upper Triangular & Lower Triangular Matrices] What, If we have a matrix such that except the principal diagonal and its upper and lower diagonal, all the elements are zero….???

Such a matrix is called TRIDIAGONAL MATRIX

Something which looks like…….

Tridiagonal Systems aij=0 if |i-j| > 1 Tridiagonal Systems: The non-zero elements are in the main diagonal, super diagonal and subdiagonal. aij=0 if |i-j| > 1 CISE301_Topic3

Tridiagonal System of Equations Mathematically…. An  n×n  matrix A is called a tridiagonal matrix if     whenever  The system of equations which gives rise to a tridiagonal coefficient matrix is called ….. Tridiagonal System of Equations

A tridiagonal system for n unknowns may be written as …(1) B.V.P. with second order ODE, Heat conduction equations…. Generate equations like (1)

Now if we put i = 1, 2…n in eq. (1), we get. 2(a). 2(b). 2(c) …

Which in matrix form can be written as

Thomas algorithm (named after L. H Thomas algorithm (named after L. H. Thomas), is a simplified form of Gauss elimination method Suppose we have a system like And we have to find all the unknowns…

It means first we shall get and then by back substitution, we will get Then Thomas Algo. Gives the values of unknown in the order last to first..

Where and

Q.1 Solve the following system of equations

In matrix form CISE301_Topic3

Numerical Integration Section: 2 Finite Difference Interpolation Numerical Integration

Let we have ..(1) which is tabulated for equally spaced values.. Finite Differences Let we have ..(1) which is tabulated for equally spaced values..

And returns the following values It means

Then we can define the following Differences Forward Difference DELTA Backward Difference Nabla Central Difference delta (lower case)

Forward Difference First Forward Difference We define the FORWARD DIFFERENCE OPERATOR, denoted by   as The expression   gives the FIRST FORWARD DIFFERENCE of  and the operator   is called the FIRST FORWARD DIFFERENCE OPERATOR. 

Notation (First Forward Differences)

Second Forward Differences are given by

And hence in general the pth Forward Diff. ..(2)

Forward Difference Table

Forward Diff. Terms

Backward differences are defined and denoted by following

Following the concept of Forward Diff Following the concept of Forward Diff. Make a table for Backward Difference up to 5th Difference

Central Differences The central Diff. operator is defined by the following relation Define second third and other central differences And make a central diff. table

Write the forward Diff. table if…

Other operators Shift Operator E Average Operator

Shift Operator is the operation of increasing of argument x by h and hence defined by The inverse shift operator is defined by

We have defined the following Differences Forward Difference DELTA Backward Difference Nabla Central Difference delta Shift Operator E Average Operator

Relations among the operators

Proof of (i)

Interpolation Suppose we have following values for y=f(x)

Interpolation is the technique of estimating the value of a function for any intermediate value of the independent variable The process of computing the value of the function outside the range is called Extrapolation

Interpolation Equal spaced Unequal Differences Forward Interpolation Newton’s Divided Diff. (Newton’s Fwd. Int.) Backward Interpolation Lagrange’s Interpolation (Newton’s Bwd. Int.) Central Diff. Interpolation Gauss Forward Gauss Backward Stirling Formula Bessel’s Formula Everett’s Formula

Newton’s Forward Interpolation Suppose the function is tabulated for equally spaced values.. And it takes the following values

Suppose we have to calculate f(x) at x=x0+ph (p is any real number), then we have Now we expand the term by Binomial theorem

Newton’s Forward Interpolation Formula The above blue colored equation (1) is Newton’s Forward Interpolation Formula Because it contains y0 and forward differences of y0

Example Estimate f (3.17)from the data using Newton Forward Interpolation. x: 3.1 3.2 3.3 3.4 3.5 f(x): 0 0.6 1.0 1.2 1.3

Solution

Solution

Newton’s Backward Interpolation Suppose the function is tabulated for equally spaced values.. And it takes the following values

Suppose we have to calculate f(x) at x=xn+ph (p is any real number, may be -ve), then we have Now we expand the term by Binomial theorem

NEWTON GREGORY BACKWARD INTERPOLATION FORMULA

Example Estimate f(42) from the following data using newton backward interpolation. x: 20 25 30 35 40 45 f(x): 354 332 291 260 231 204

Solution Here xn = 45, h = 5, x = 42 and p = - 0.6

Solution

Central Difference Formula Gauss Forward Gauss Backward Stirling Formula Bessel’s Formula Everett’s Formula

If y=f(x) is any function, which takes values and returns corresponding values Then the difference table can be written as

Central Difference table Table-1

1. GAUSS FORWARD INTERPOLATION FORMULA OR …..(A)

Derivation of Gauss Fwd. Int. Formula We have Newton’s Forward Int. Formula We have following relations (from table)

Note: Gauss forward formula contains odd differences just below the central line and even differences on the central line Formula is useful to interpolate the value of y for 0<p<1, measured forwardly

Example Find f(30) from the following table values using Gauss forward difference formula: x: 21 25 29 33 37 F(x): 18.4708 17.8144 17.1070 16.3432 15.5154

Solution f (30) = 16.9217

2. Gauss Backward interpolation formula Again starting with Newton’s Forward Int. Formula

this is Gauss Backward Formula Also we can have And similarly other differences.. Putting these values we finally get this is Gauss Backward Formula

Note: Gauss Backward formula contains odd differences just above the central line and even differences on the central line Formula is useful to interpolate the value of y for p lying between -1 & 0

Example Estimate cos 51 42' by Gauss backward interpolation from the following data: x: 50 51 52 53 54 cos x: 0.6428 0.6293 0.6157 0.6018 0.5878

Solution

Solution P(51.7) = 0.6198

3. STIRLING’S FORMULA This formula gives the average of the values obtained by Gauss forward and backward interpolation formulae. For using this formula we should have – ½ < p< ½. We can get very good estimates if - ¼ < p < ¼. The formula is:

Stirling Formula (Derivation) [Mean of Gauss Fwd. & Gauss Bkwd] Eq. (3) is Stirling Formula

Note: Stirling Formula contains means of odd differences just above and below the central line and even differences on central line

Example Using Sterling Formula estimate f (1.63) from the following table: x: 1.50 1.60 1.70 1.80 1.90 f(x):17.609 20.412 23.045 25.527 27.875 Solution X0 = 1.60, x = 1.63, h = 0.1

Solution Difference table

4. BESSELS’ INTERPOLATION FORMULA We have Gauss Fwd. Interpolation Formula as Now we use following relations

We get the following Bessel’s Formula

BESSELS’ INTERPOLATION FORMULA/other way This formula involves means of even difference on and below the central line and odd difference below the line. The formula is

BESSELS’ INTERPOLATION FORMULA Note When p = 1/2 , the terms containing odd differences vanish. Then we get the formula in a more simple form:

Example Use Bessels’ Formula to find (46.24)1/3 from the following table of x1/3.

Solution x0 = 45, x = 46.24, h = 4 p = 0.31 Difference table is: Applying Bessels’ formula, we get (46.24)1/3 = 3.5893

5. Laplace-Everett’s Formula Gauss’s forward interpolation formula is We eliminate the odd differences in above equation by using the relations

And then to change the terms with negative sign, putting , we obtain This is known as Laplace-Everett’s formula.

Choice of an interpolation formula The following rules will be found useful: To find a tabulated value near the beginning of the table, use Newton’s forward formula. To find a value near the end of the table, use Newton’s backward formula. To find an interpolated value near the centre of the table, use either Stirling’s or Bessel’s or Everett’s formula.

Choice of central difference If interpolation is required for p lying between and , prefer Stirling’s formula. If interpolation is desired for p lying between and , use Bessel’s or Everett’s formula. Gauss’s Backward interpolation formula is used to interpolate the value of “y” for a negative value of p lying between -1 and 0.

Gauss’s forward interpolation formula is used to interpolate the value of “y” for p (0<p<1) measured forwardly from the origin.

Bessel’s and Everett’s central difference interpolation formula can be obtained by each other by suitable rearrangements.