numerical analysis. 3. solutions of equations in one variable

54
Free Powerpoint Templates Numerical Analysis Dr Houssem Bouchekara 3. Solutions of Equations in One Variable

Upload: oxxid

Post on 19-Jan-2016

27 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Numerical Analysis. 3. Solutions of Equations in One Variable

Free Powerpoint Templates

Numerical Analysis

Dr Houssem Bouchekara

3. Solutions of Equations in One Variable

Page 2: Numerical Analysis. 3. Solutions of Equations in One Variable
Page 3: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 4: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 5: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 6: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 7: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 8: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 9: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 10: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 11: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 12: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 13: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 14: Numerical Analysis. 3. Solutions of Equations in One Variable

Bisection Method

Page 15: Numerical Analysis. 3. Solutions of Equations in One Variable

Homework 1

Exercise 1

Exercise 2

Page 16: Numerical Analysis. 3. Solutions of Equations in One Variable

Fixed Point Iteration

Page 17: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 18: Numerical Analysis. 3. Solutions of Equations in One Variable

Fixed Point Iteration

Page 19: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Show that the function g(x) bellow has a unique fixed point on the interval [-1,1]

Page 20: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 21: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 22: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 23: Numerical Analysis. 3. Solutions of Equations in One Variable

Fixed Point Iteration

Page 24: Numerical Analysis. 3. Solutions of Equations in One Variable

Fixed Point Iteration

Page 25: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 26: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 27: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 28: Numerical Analysis. 3. Solutions of Equations in One Variable

Fixed Point Iteration

Page 29: Numerical Analysis. 3. Solutions of Equations in One Variable

Fixed Point Iteration

Page 30: Numerical Analysis. 3. Solutions of Equations in One Variable

Homework 2

Exercise 1

Page 31: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Newton's (or the Newton-Raphson) method is one of the most powerful and well-known numerical methods for

solving a root-finding problem.

There are many ways of introducing Newton's method:

1. If we only want an algorithm, we can consider the

technique graphically, as is often done in calculus.

2. Another possibility is to derive Newton's method as a

technique to obtain faster convergence than offered by

other types of functional iteration.

3. A third means of introducing Newton's method, is based

on Taylor polynomials.

Page 32: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Page 33: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Page 34: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Page 35: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Page 36: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Page 37: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

In fact, this is the functional iteration technique that was used to give the rapid

convergence we saw in part (e) of the fixed point iteration Example ..

Page 38: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Consider the function f(x)=cos(x) –x. Approximate a root of f using:

(a) A fixed point method

(b) Newton’s method

Page 39: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

A solution of this root finding problem is also a solution to the fixed point

problem g(x) = cos(x).

The graph in Figure 8 implies that a single fixed-point p lies in [0, /2].

Page 40: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 41: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Page 42: Numerical Analysis. 3. Solutions of Equations in One Variable

Newton's Method

Page 43: Numerical Analysis. 3. Solutions of Equations in One Variable

The Secant Method

Page 44: Numerical Analysis. 3. Solutions of Equations in One Variable

The Secant Method

Page 45: Numerical Analysis. 3. Solutions of Equations in One Variable

The Secant Method

Page 46: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 47: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 48: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 49: Numerical Analysis. 3. Solutions of Equations in One Variable

Modified Newton's method

Modified Newton's method

Newton's method

Page 50: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Find the root of the following function

(a)Using Newton's method.

(b)Using the modified Newton's method.

Page 51: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 52: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Find the root of the following function

(a)Using Newton's method.

(b)Using the modified Newton's method.

Page 53: Numerical Analysis. 3. Solutions of Equations in One Variable

Example

Page 54: Numerical Analysis. 3. Solutions of Equations in One Variable

Homework 3

Exercise 1

Exercise 2

Use Newton's method and the modified Newton-Raphson method

to find a solution accurate to within 10-5 to the problem