• No results found

A Slide Show Demonstrating Newton s Method

N/A
N/A
Protected

Academic year: 2021

Share "A Slide Show Demonstrating Newton s Method"

Copied!
15
0
0

Loading.... (view fulltext now)

Full text

(1)

The AcroTEX Web Site, 1999

The AcroTEX Web Site, 1999

A Slide Show

A Slide Show

Demonstrating

Demonstrating

Newton’s Method

Newton’s Method

D. P. Story

D. P. Story

The Department of Mathematics

The Department of Mathematics

and Computer Science

and Computer Science

The Universityof Akron, Akron, OH

The Universityof Akron, Akron, OH

(2)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

(3)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

Make an initial guess: x0.

(4)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

Make an initial guess: x0.

Now go up to the curve.

(5)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

Make an initial guess: x0.

Now go up to the curve.

Draw the tangent line. Its equation is

(6)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

x1

Make an initial guess: x0.

Now go up to the curve.

Draw the tangent line. Its equation is

y =f(x0) +f(x0)(x−x0).

Let x1 be in x-intercept of

(7)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

x1

Make an initial guess: x0.

Now go up to the curve.

Draw the tangent line. Its equation is

y =f(x0) +f(x0)(x−x0).

Let x1 be in x-intercept of

this tangent line.

This intercept is given by the formula: x1 =x0 ff((xx0) 0).

(8)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

x1

x2

Make an initial guess: x0.

Now go up to the curve.

Draw the tangent line. Its equation is

y =f(x0) +f(x0)(x−x0).

Let x1 be in x-intercept of

this tangent line.

This intercept is given by the formula: x1 =x0 ff((xx0) 0).

(9)

1. Newton’s Method

Problem: Given an equation f(x) = 0, solve for x numerically.

x0

x1

x2

Make an initial guess: x0.

Now go up to the curve.

Draw the tangent line. Its equation is

y =f(x0) +f(x0)(x−x0).

Let x1 be in x-intercept of

this tangent line.

This intercept is given by the formula: x1 =x0 ff((xx0) 0).

Now repeat using x1 as the initial guess.

The intercept x2 is given by: x2 =x1 ff((xx1) 1).

(10)

2. Commentary

The initial guess, x0, was close to the true root. From the picture,

Frame 5, it appears our next estimate x1,

x1 =x0 ff((xx0) 0)

is a little closer to the unknown root than x0 was.

The next “iterate”, x2, calculated from the formula

x2 =x1 ff((xx1) 1)

is closer still to the unknown root, see Frame 7.

The process continues: Given that an estimate xn has already been

calculated, the equation of the tangent line is calculated:

(11)

Section 2: Commentary

The x-intercept is then calculated,

f(xn) +f(xn)(x−xn) = 0 = x=xn− ff((xxn) n)

This intercept is labeledxn+1 and represents our next estimate of the

unknown root.

xn+1 =xn− ff((xnxn)) (1)

The initial guess x0, and the Newton Iteration formula, equation (1),

together form an algorithm or a procedure of estimating the value of the root to the equation f(x) = 0.

(12)

3. Examples

Example 3.1. Find the positive root of the equation x2 = 2.

Solution: The function is f(x) =x22.

Step 1: Compute derivative,f(x) = 2x.

Step 2: Construct the iteration formula:

xn+1 =xn− ff((xxn) n) =xn− x2 n−2 2xn = x2 n+ 2 2xn

Thus, for this problem, the iteration formula is

xn+1 = x 2

n+ 2

2xn

This, together with an initial guess of x0 = 1.5 yields the following

(13)

Section 3: Examples

Step 3: Construct a table of estimates.

Initial guess of x0 = 1.5 and iteration formula of xn+1 = x 2 n+ 2 2xn . Newton’s Method f(x) =x22, x 0 = 1.5 n xn f(xn) 0 1.50000000 0.25000000 1 1.41666667 0.00694445 2 1.41421568 0.00000600 3 1.41421356 0.00000000 4 1.41421356 0.00000000

Thus, the positive root to the equation x22 = 0 is x1.4142135 ,

(14)

Section 3: Examples

Example 3.2. Find a solution to the equation x3 = x+ 1 that is

near x0 = 1.5.

Solution: The function isf(x) =x3x1. The functionf isalways

defined to make the given equation equivalent to an equation of the form f(x) = 0. (We just take everything on the right-hand side of the given equation to the left-hand side. The left-hand side is now an expression defining f(x).

Step 1: Differentiate f(x) = 3x21.

Step 2: Construct the Newton iteration formula:

xn+1 =xn− ff((xxn) n) =xn− x3 n−xn−1 3x2 n−1

The iteration formula is

xn+1 =xn− x

3

n−xn−1

3x2

(15)

Section 3: Examples

Step 3: Construct the table of estimates. Newton’s Method f(x) =x3x1, x 0 = 1.5 n xn f(xn) 0 1.50000000 0.87500000 1 1.34782608 0.10058217 2 1.32520039 0.00205836 3 1.32471817 0.00000092 4 1.32471795 0.00000000 5 1.32471795 0.00000000

Thus, the solution to the equationx3 =x+ 1 that is “near” x

0 = 1.5

is x≈1.32471795 .

Example 3.2.

AcroTEX: http://www.math.uakron.edu/˜dpstory/acrotex.html

References

Related documents

Companies. When determining the amount of subsidy, take into account as a positive factor the company’s commitment to long-term energy conservation and improvement of energy

Pour parler des problèmes de prédiction évoqués dans le domaine de l’ARS, nous utilisons l’analyse de suivie pour modéliser les différents phénomènes de changements que

In effective stress calculation for a pipe at road (Table 403.3.1-1 B31.4-20012), longitudinal expansion stress, longitudinal and circumferential hoop stresses resulting from

Prikaz prosječne godišnje incidencije prijavljenih zaraznih bolesti u dječjim vrtićima „Dubrovnik“ na 1000 djece za razdoblje 2009.-2013.. Prikaz zaraznih bolesti prijavljenih

R W Risk of failure of electrical and electronic sys- tems as a result of surges caused by direct lightning strikes to utility lines entering the building or structure.. If

Huron-Superior CDSB Huron-Superior Catholic Dsb Night School Huron-Superior CDSB Huron-Superior Catholic Dsb Summer School Huron-Superior CDSB Mount St Joseph College School -

Drawing on concepts from postcolonial theory and using data from our ethnographic fieldwork, we explore the experiences and responses of one Indian vendor organization to asymmetries

Národní archiv České republiky [National Archives of the Czech Republic, hereafter NA], Fond Československá ústřední rada železniční [Czechoslovak Central Railway Council],