• Sonuç bulunamadı

Newton’s Method

N/A
N/A
Protected

Academic year: 2021

Share "Newton’s Method"

Copied!
7
0
0

Yükleniyor.... (view fulltext now)

Tam metin

(1)

Newton’s Method

x y

0

r

Assume we want to find a root of a complicated function like: f (x ) = x7−x + cos x

Often it is impossible to solve such equations! E.g. there are no formulas for solutions of polynomials of degree of ≥ 5.

(2)

Newton’s Method

x y 0 r x1 x2

Idea of Newton’s Method

I Take an approximation x1of the root (a rough guess).

I Compute the tangent L1at (x1,f (x1)).

I The tangent L1is close to the curve. . . so x -intercept of L1

will be close the the x -intercept of the function.

(3)

Newton’s Method

x y 0 r x1 x2 x3

We want to find an approximation of the root r of f (x ).

I Take an approximationx1of the root (a rough guess). I Compute the tangentL1at (x1,f (x1)).

I Find the x -interceptx2of the tangent L1. I Compute the tangentL2at (x2,f (x2)). I Find the x -interceptx3of the tangent L2. I . . . continue until approximation is good enough

(4)

Newton’s Method

x y 0 r x1 x2

How can we compute x2? The tangent at (x1,f (x1))is

y = f (x1) +f0(x1)(x − x1)

For the x -intercept x2of the tangent, we have:

0 = f (x1) +f0(x1)(x2−x1) =⇒ x2=x1− f (x1) f0(x

1)

(5)

Newton’s Method

Newton’s Method

Let f (x ) be a function, and x1and approximation of a root r .

We compute a sequence x2,x3,x4, . . .of approximations by

xn+1=xn−

f (xn)

f0(x n)

The hope is that x2,x3, . . .get closer and closer to the root r .

However, this does not always work.

Let x1=2. Find the 3rd approximation to the root of x2−1.

f0(x ) = 2x x2=x1− f (x1) f0(x 1) =2 − f (2) f0(2) =2 − 3 4 = 5 4 =1.25 x3=x2− f (x2) f0(x 2) = 5 4− f (54) f0(5 4) = 5 4 − 5 4 2 −1 10 4 = 41 40 =1.025 The sequence x1,x2,x3, . . .gets closer and closer to the root 1.

(6)

Newton’s Method

Newton’s Method

Let f (x ) be a function, and x1and approximation of a root r .

We compute a sequence x2,x3,x4, . . .of approximations by

xn+1=xn−

f (xn)

f0(x n)

The hope is that x2,x3, . . .get closer and closer to the root r . However, this does not always work.

Let x1=1. Find the 2nd approximation to the root of 3

√ x . f0(x ) = 1 33 √ x2 x2=1 − f (1) f0(1) =1 − 1 1 3  = −2 x y 0 r x1 x2

(7)

Newton’s Method

Newton’s Method

Let f (x ) be a function, and x1and approximation of a root r .

We compute a sequence x2,x3,x4, . . .of approximations by

xn+1=xn−

f (xn)

f0(x n)

The hope is that x2,x3, . . .get closer and closer to the root r . However, this does not always work.

For more complicated examples see

Referanslar

Benzer Belgeler

Ni and Leonard (2005) introduced the idea of using Markov chain Monte Carlo methods for sampling and imputing missing data [31], and then using the imputed data to estimate

Arriving at the conclusion that China’s own natural gas production is not enough to substitute its coal dependency this chapter has sought to reconsider

• In order to do the performance analysis and comparison of the proposed approach with the existing time domain approach in terms of achieved digital cancellation we first developed

6.3 Distance between center of sensitive area and the obfuscated point with circle around with radius of GPS error Pink Pinpoint: Sensitive trajectory point Green Pinpoint:

Response surface methodology (RSM) for instance is an effective way to bridge the information and expertise between the disciplines within the framework to complete an MDO

CPLEX was able to find only a few optimal solutions within 10800 seconds and none of the results found by the ALNS heuristic, with an average solution time of 6 seconds, for

In this study, the objective is to constitute a complete process model for multi-axis machining to predict first the cutting forces secondly the stable cutting

However, the energy based formalism which is commonly agreed to be a very powerful tool in modeling and controlling a wide class of dynamical nonlinear systems [Ortega 2001], can