Chapter 2 A Survey of Simple Methods and Tools

Slides:



Advertisements
Similar presentations
5.1 Real Vector Spaces.
Advertisements

1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
1 Chapter 1 Introductory Concepts and Calculus Review.
MATH 685/ CSI 700/ OR 682 Lecture Notes
CISE301_Topic3KFUPM1 SE301: Numerical Methods Topic 3: Solution of Systems of Linear Equations Lectures 12-17: KFUPM Read Chapter 9 of the textbook.
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
10.1 Gaussian Elimination Method
Ordinary Differential Equations (ODEs)
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
19.5 Numeric Integration and Differentiation
Chapter 4 Numerical Differentiation and Integration 1/16 Given x 0, approximate f ’(x 0 ). h xfhxf xf h )()( lim)('    x0x0 x1x1 h x1x1 x0x0.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
Advanced Computer Graphics Spring 2014 K. H. Ko School of Mechatronics Gwangju Institute of Science and Technology.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Simpson Rule For Integration.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Illustration of FE algorithm on the example of 1D problem Problem: Stress and displacement analysis of a one-dimensional bar, loaded only by its own weight,
CHAPTER 3 NUMERICAL METHODS
Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,
Section 5.5 The Real Zeros of a Polynomial Function.
1 Chapter 7 Numerical Methods for the Solution of Systems of Equations.
 3.3 Hermite Interpolation Chapter 3 Interpolation and Polynomial Approximation -- Hermite Interpolation Find the osculating polynomial P(x) such that.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
Section 3.9 Linear Approximation and the Derivative.
Finite Element Method. History Application Consider the two point boundary value problem.
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Copyright © Cengage Learning. All rights reserved. 8 Matrices and Determinants.
1 Numerical Methods Solution of Systems of Linear Equations.
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Computational Methods CMSC/AMSC/MAPL 460 Polynomial Interpolation Ramani Duraiswami, Dept. of Computer Science.
TYPES OF SOLUTIONS SOLVING EQUATIONS
CHAPTER 3 NUMERICAL METHODS
TYPES OF SOLUTIONS SOLVING EQUATIONS
Chapter 7 Numerical Differentiation and Integration
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Chapter 22.
Numerical Analysis Lecture 27.
Chapter 10: Solving Linear Systems of Equations
Class Notes 18: Numerical Methods (1/2)
Class Notes 19: Numerical Methods (2/2)
RECORD. RECORD Gaussian Elimination: derived system back-substitution.
Solution of Equations by Iteration
Numerical Analysis Lecture 45.
CSE 245: Computer Aided Circuit Simulation and Verification
Chapter 27.
Chapter 2 Determinants Basil Hamed
Copyright © Cengage Learning. All rights reserved.
Chapter 26.
Numerical Analysis Lecture14.
Numerical Analysis Lecture 26.
Copyright © Cengage Learning. All rights reserved.
Numerical Analysis Lecture13.
The Fundamental Theorem of Calculus
5.3 Higher-Order Taylor Methods
Numerical Analysis Lecture 2.
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Ch5 Initial-Value Problems for ODE
Eigenvalues and Eigenvectors
Numerical Analysis Lecture11.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Chapter 4 Systems of Linear Equations; Matrices
Presentation transcript:

Chapter 2 A Survey of Simple Methods and Tools

2.1 Horner’s Rule and Nested Multiplication For example

Horner’s rule for polynomial evaluation 多項式最高次項的係數 多項式的係數

Horner’s rule for polynomial derivative evaluation Polynomial first derivative: For example:

Horner’s rule for polynomial derivative evaluation

A more efficient implementation of Horner’s rule If the intermediate values in the computation of p (x) are saved, then the subsequent computation of the derivative can be done more cheaply. Define So that Then and, in particular, Define Therefore Since 注意bk亦為x的函數

2.2 Difference Approximations to the Derivative—one-side difference The definition of the derivative: Taylor’s Theorem: So that we have Thus the error is roughly proportional to h. Can we do better?

2.2 Difference Approximations to the Derivative—centered difference Consider the two Taylor expansions:

Example 2.1

Further illustrate these differences in accuracy Let’s continue computing with the same example, but take more and smaller values of h. Let with the corresponding errors

Nearly 4 Error increase. why?

Rounding Error Let denote the function computation as actually done on the computer. Define as the error between the function as computed in infinite precision and as actually computed on the machine. The approximate derivative that we compute is constructed with , not f. Define

Rounding Error We have which we write as

Rounding Error

Nearly 4

2.3 Application: Euler’s Method for Initial Value Problems General form: One-side difference (Eq. 2.1) Euler’s method

Example 2.2

2.4 Linear Interpolation Given a set of nodes xk, if for all k, then we say the function p interpolates the function f at these nodes. Linear interpolation: using a straight line to approximate a given function For example: the equation of a straight line that passes through the two points

The accuracy of linear interpolation

Example 2.3 f (0.2) f (0.1)

Piecewise linear interpolation Example 4.2

2.5 Application: the trapezoid rule Define the integration of interest as I(f ):

Error analysis Apply the Integral Mean Value Theorem thus

The n-subinterval trapezoid rule

This theorem tells us: The numerical approximation will converge to the exact value How fast this convergence occurs h 2

Example 2.5

Example 2.6

The stability of the trapezoid rule We conclude that the trapezoid rule is a stable numerical method. In fact, almost all methods for numerically approximating integrals are stable.

2.6 Solution of tri-diagonal linear systems

If A is tri-diagonal, then For example:

Make a notational simplification: where Then the augmented matrix corresponding to the system is

Gaussian elimination The elimination step where The backward solution step

Example 2.7

After a single pass through the first loop: We cannot continue the process, for we would have to divide by zero in the next step. However, the solution of the system indeed exist:

Diagonal dominance for tri-diagonal matrices For example

2.7 Application: Simple Two-point Boundary Value Problems Two-point boundary value problem (BVP)

Use Taylor expansions similar to (2. 2) and (2 Use Taylor expansions similar to (2.2) and (2.3) (just take more terms) to derive an approximation to the second derivative, by adding them. Then we get This is a tri-diagonal system of linear equations.

In matrix-vector form It is diagonally dominant, so we can apply the algorithm developed in the precious section to produce solutions.

Example 2.8