• 沒有找到結果。

Sol. Non-linear Fun.

N/A
N/A
Protected

Academic year: 2022

Share "Sol. Non-linear Fun."

Copied!
208
0
0

加載中.... (立即查看全文)

全文

(1)

Sol. Non-linear Fun.

1

Solutions of Non-linear Equations in One Variable

NTNU

Tsung-Min Hwang November 16, 2003

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(2)

Sol. Non-linear Fun.

2

1 – Preliminaries . . . 3

2 – Bisection Method . . . 6

3 – Newton’s Method . . . 12

3.1 – Derivation of Newton’s Method . . . 12

3.2 – Convergence Analysis . . . 16

3.3 – Examples . . . 24

4 – Quasi-Newton’s Method (Secant Method) . . . 27

4.1 – The Secant Method . . . 27

4.2 – Error Analysis of Secant Method . . . 31

5 – Fixed Point and Functional Iteration . . . 36

5.1 – Functional Iteration . . . 37

5.2 – Convergence Analysis . . . 43

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(3)

Sol. Non-linear Fun.

3

1 – Preliminaries

Definition 1 Let

{x

n

} → x

. We say that the rate of convergence is

1. linear if

a constant

0 < c < 1

and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|, ∀ n ≥ N;

2. superlinear if

∃ {c

n

}

,

c

n

→ 0

as

n → ∞

, and an integer

N > 0

such that

|x

n+1

− x

| ≤ c

n

|x

n

− x

|, ∀ n ≥ N,

or, equivalently,

n→∞

lim

|x

n+1

− x

|

|x

n

− x

| = 0;

3. quadratic if

a constant

c > 0

(not necessarily less than 1) and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|

2

, ∀ n ≥ N.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(4)

Sol. Non-linear Fun.

3

1 – Preliminaries

Definition 1 Let

{x

n

} → x

. We say that the rate of convergence is 1. linear if

a constant

0 < c < 1

and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|, ∀ n ≥ N;

2. superlinear if

∃ {c

n

}

,

c

n

→ 0

as

n → ∞

, and an integer

N > 0

such that

|x

n+1

− x

| ≤ c

n

|x

n

− x

|, ∀ n ≥ N,

or, equivalently,

n→∞

lim

|x

n+1

− x

|

|x

n

− x

| = 0;

3. quadratic if

a constant

c > 0

(not necessarily less than 1) and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|

2

, ∀ n ≥ N.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(5)

Sol. Non-linear Fun.

3

1 – Preliminaries

Definition 1 Let

{x

n

} → x

. We say that the rate of convergence is 1. linear if

a constant

0 < c < 1

and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|, ∀ n ≥ N;

2. superlinear if

∃ {c

n

}

,

c

n

→ 0

as

n → ∞

, and an integer

N > 0

such that

|x

n+1

− x

| ≤ c

n

|x

n

− x

|, ∀ n ≥ N,

or, equivalently,

n→∞

lim

|x

n+1

− x

|

|x

n

− x

| = 0;

3. quadratic if

a constant

c > 0

(not necessarily less than 1) and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|

2

, ∀ n ≥ N.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(6)

Sol. Non-linear Fun.

3

1 – Preliminaries

Definition 1 Let

{x

n

} → x

. We say that the rate of convergence is 1. linear if

a constant

0 < c < 1

and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|, ∀ n ≥ N;

2. superlinear if

∃ {c

n

}

,

c

n

→ 0

as

n → ∞

, and an integer

N > 0

such that

|x

n+1

− x

| ≤ c

n

|x

n

− x

|, ∀ n ≥ N,

or, equivalently,

n→∞

lim

|x

n+1

− x

|

|x

n

− x

| = 0;

3. quadratic if

a constant

c > 0

(not necessarily less than 1) and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|

2

, ∀ n ≥ N.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(7)

Sol. Non-linear Fun.

4

In general, if there are positive constants

c

and

α

and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|

α

, ∀ n ≥ N,

then we say the rate of convergence is of order

α

.

Definition 2 Suppose

n

} → 0

and

{x

n

} → x

. If

∃ c > 0

and an integer

N > 0

such that

|x

n

− x

| ≤ c|β

n

|, ∀ n ≥ N,

then we say

{x

n

}

converges to

x

with rate of convergence

O(β

n

)

, and write

x

n

= x

+ O(β

n

)

.

Example 1 Compare the convergence behavior of

{x

n

}

and

{y

n

}

, where

x

n

= n + 1

n

2

,

and

y

n

= n + 3 n

3

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(8)

Sol. Non-linear Fun.

4

In general, if there are positive constants

c

and

α

and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|

α

, ∀ n ≥ N,

then we say the rate of convergence is of order

α

.

Definition 2 Suppose

n

} → 0

and

{x

n

} → x

. If

∃ c > 0

and an integer

N > 0

such that

|x

n

− x

| ≤ c|β

n

|, ∀ n ≥ N,

then we say

{x

n

}

converges to

x

with rate of convergence

O(β

n

)

, and write

x

n

= x

+ O(β

n

)

.

Example 1 Compare the convergence behavior of

{x

n

}

and

{y

n

}

, where

x

n

= n + 1

n

2

,

and

y

n

= n + 3 n

3

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(9)

Sol. Non-linear Fun.

4

In general, if there are positive constants

c

and

α

and an integer

N > 0

such that

|x

n+1

− x

| ≤ c|x

n

− x

|

α

, ∀ n ≥ N,

then we say the rate of convergence is of order

α

.

Definition 2 Suppose

n

} → 0

and

{x

n

} → x

. If

∃ c > 0

and an integer

N > 0

such that

|x

n

− x

| ≤ c|β

n

|, ∀ n ≥ N,

then we say

{x

n

}

converges to

x

with rate of convergence

O(β

n

)

, and write

x

n

= x

+ O(β

n

)

.

Example 1 Compare the convergence behavior of

{x

n

}

and

{y

n

}

, where

x

n

= n + 1

n

2

,

and

y

n

= n + 3 n

3

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(10)

Sol. Non-linear Fun.

5

Solution: Note that both

n→∞

lim x

n

= 0

and

lim

n→∞

y

n

= 0.

Let

α

n

=

n1 and

β

n

=

n12. Then

|x

n

− 0| = n + 1

n

2

≤ n + n

n

2

= 2

n = 2α

n

,

|y

n

− 0| = n + 3

n

3

≤ n + 3n

n

3

= 4

n

2

= 4β

n

.

Hence

x

n

= 0 + O  1 n



and

y

n

= 0 + O  1 n

2

 .

This shows that

{y

n

}

converges to 0 much faster than

{x

n

}

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(11)

Sol. Non-linear Fun.

5

Solution: Note that both

n→∞

lim x

n

= 0

and

lim

n→∞

y

n

= 0.

Let

α

n

=

n1 and

β

n

=

n12.

Then

|x

n

− 0| = n + 1

n

2

≤ n + n

n

2

= 2

n = 2α

n

,

|y

n

− 0| = n + 3

n

3

≤ n + 3n

n

3

= 4

n

2

= 4β

n

.

Hence

x

n

= 0 + O  1 n



and

y

n

= 0 + O  1 n

2

 .

This shows that

{y

n

}

converges to 0 much faster than

{x

n

}

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(12)

Sol. Non-linear Fun.

5

Solution: Note that both

n→∞

lim x

n

= 0

and

lim

n→∞

y

n

= 0.

Let

α

n

=

n1 and

β

n

=

n12. Then

|x

n

− 0| = n + 1

n

2

≤ n + n

n

2

= 2

n = 2α

n

,

|y

n

− 0| = n + 3

n

3

≤ n + 3n

n

3

= 4

n

2

= 4β

n

.

Hence

x

n

= 0 + O  1 n



and

y

n

= 0 + O  1 n

2

 .

This shows that

{y

n

}

converges to 0 much faster than

{x

n

}

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(13)

Sol. Non-linear Fun.

5

Solution: Note that both

n→∞

lim x

n

= 0

and

lim

n→∞

y

n

= 0.

Let

α

n

=

n1 and

β

n

=

n12. Then

|x

n

− 0| = n + 1

n

2

≤ n + n

n

2

= 2

n = 2α

n

,

|y

n

− 0| = n + 3

n

3

≤ n + 3n

n

3

= 4

n

2

= 4β

n

.

Hence

x

n

= 0 + O  1 n



and

y

n

= 0 + O  1 n

2

 .

This shows that

{y

n

}

converges to 0 much faster than

{x

n

}

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(14)

Sol. Non-linear Fun.

5

Solution: Note that both

n→∞

lim x

n

= 0

and

lim

n→∞

y

n

= 0.

Let

α

n

=

n1 and

β

n

=

n12. Then

|x

n

− 0| = n + 1

n

2

≤ n + n

n

2

= 2

n = 2α

n

,

|y

n

− 0| = n + 3

n

3

≤ n + 3n

n

3

= 4

n

2

= 4β

n

.

Hence

x

n

= 0 + O  1 n



and

y

n

= 0 + O  1 n

2

 .

This shows that

{y

n

}

converges to 0 much faster than

{x

n

}

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(15)

Sol. Non-linear Fun.

6

2 – Bisection Method

Idea: if

f (x) ∈ C[a, b]

and

f (a)f (b) < 0

, then

∃ c ∈ (a, b)

such that

f (c) = 0

.

Algorithm 1 (Bisection Method) Given

f (x)

defined on

(a, b)

, the maximal number of iterations

M

, and stop criteria

δ

and

ε

, this algorithm tries to locate one root of

f (x)

.

compute

u = f (a)

,

v = f (b)

, and

e = b − a

.

if

sign(u) = sign(v)

, then stop for

k = 1, 2, . . . , M

do

e = e/2

,

c = a + e

,

w = f (c)

.

if

|e| < δ

or

|w| < ε

, then stop if

sign(w) 6= sign(u)

then

b = c

,

v = w

.

else

a = c

,

u = w

end if end for

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(16)

Sol. Non-linear Fun.

7

Let

{c

n

}

be the sequence of numbers produced. The algorithm should stop if one of the following conditions is satisfied.

1. the iteration number

k > M

,

2.

|c

k

− c

k−1

| < δ

, or

3.

|f(c

k

)| < ε

.

Let

[a

0

, b

0

], [a

1

, b

1

], . . .

denote the successive intervals produced by the bisection algorithm. Then

a = a

0

≤ a

1

≤ a

2

≤ · · · ≤ b

0

= b

⇒ {a

n

}

and

{b

n

}

are bounded.

⇒ lim

n→∞

a

n and

lim

n→∞

b

n exist.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(17)

Sol. Non-linear Fun.

7

Let

{c

n

}

be the sequence of numbers produced. The algorithm should stop if one of the following conditions is satisfied.

1. the iteration number

k > M

,

2.

|c

k

− c

k−1

| < δ

, or

3.

|f(c

k

)| < ε

.

Let

[a

0

, b

0

], [a

1

, b

1

], . . .

denote the successive intervals produced by the bisection algorithm.

Then

a = a

0

≤ a

1

≤ a

2

≤ · · · ≤ b

0

= b

⇒ {a

n

}

and

{b

n

}

are bounded.

⇒ lim

n→∞

a

n and

lim

n→∞

b

n exist.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(18)

Sol. Non-linear Fun.

7

Let

{c

n

}

be the sequence of numbers produced. The algorithm should stop if one of the following conditions is satisfied.

1. the iteration number

k > M

,

2.

|c

k

− c

k−1

| < δ

, or

3.

|f(c

k

)| < ε

.

Let

[a

0

, b

0

], [a

1

, b

1

], . . .

denote the successive intervals produced by the bisection algorithm. Then

a = a

0

≤ a

1

≤ a

2

≤ · · · ≤ b

0

= b

⇒ {a

n

}

and

{b

n

}

are bounded.

⇒ lim

n→∞

a

n and

lim

n→∞

b

n exist.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(19)

Sol. Non-linear Fun.

7

Let

{c

n

}

be the sequence of numbers produced. The algorithm should stop if one of the following conditions is satisfied.

1. the iteration number

k > M

,

2.

|c

k

− c

k−1

| < δ

, or

3.

|f(c

k

)| < ε

.

Let

[a

0

, b

0

], [a

1

, b

1

], . . .

denote the successive intervals produced by the bisection algorithm. Then

a = a

0

≤ a

1

≤ a

2

≤ · · · ≤ b

0

= b

⇒ {a

n

}

and

{b

n

}

are bounded.

⇒ lim

n→∞

a

n and

lim

n→∞

b

n exist.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(20)

Sol. Non-linear Fun.

7

Let

{c

n

}

be the sequence of numbers produced. The algorithm should stop if one of the following conditions is satisfied.

1. the iteration number

k > M

,

2.

|c

k

− c

k−1

| < δ

, or

3.

|f(c

k

)| < ε

.

Let

[a

0

, b

0

], [a

1

, b

1

], . . .

denote the successive intervals produced by the bisection algorithm. Then

a = a

0

≤ a

1

≤ a

2

≤ · · · ≤ b

0

= b

⇒ {a

n

}

and

{b

n

}

are bounded.

⇒ lim

n→∞

a

n and

lim

n→∞

b

n exist.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(21)

Sol. Non-linear Fun.

8

Since

b

1

− a

1

= 1

2 (b

0

− a

0

) b

2

− a

2

= 1

2 (b

1

− a

1

) = 1

4 (b

0

− a

0

)

.. .

b

n

− a

n

= 1

2

n

(b

0

− a

0

)

hence

n→∞

lim b

n

− lim

n→∞

a

n

= lim

n→∞

(b

n

− a

n

) = lim

n→∞

1

2

n

(b

0

− a

0

) = 0.

Therefore

n→∞

lim a

n

= lim

n→∞

b

n

≡ z.

Since

f

is a continuous function

n→∞

lim f (a

n

) = f ( lim

n→∞

a

n

) = f (z)

and

lim

n→∞

f (b

n

) = f ( lim

n→∞

b

n

) = f (z).

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(22)

Sol. Non-linear Fun.

8

Since

b

1

− a

1

= 1

2 (b

0

− a

0

) b

2

− a

2

= 1

2 (b

1

− a

1

) = 1

4 (b

0

− a

0

)

.. .

b

n

− a

n

= 1

2

n

(b

0

− a

0

)

hence

n→∞

lim b

n

− lim

n→∞

a

n

= lim

n→∞

(b

n

− a

n

) = lim

n→∞

1

2

n

(b

0

− a

0

) = 0.

Therefore

n→∞

lim a

n

= lim

n→∞

b

n

≡ z.

Since

f

is a continuous function

n→∞

lim f (a

n

) = f ( lim

n→∞

a

n

) = f (z)

and

lim

n→∞

f (b

n

) = f ( lim

n→∞

b

n

) = f (z).

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(23)

Sol. Non-linear Fun.

8

Since

b

1

− a

1

= 1

2 (b

0

− a

0

) b

2

− a

2

= 1

2 (b

1

− a

1

) = 1

4 (b

0

− a

0

)

.. .

b

n

− a

n

= 1

2

n

(b

0

− a

0

)

hence

n→∞

lim b

n

− lim

n→∞

a

n

= lim

n→∞

(b

n

− a

n

) = lim

n→∞

1

2

n

(b

0

− a

0

) = 0.

Therefore

n→∞

lim a

n

= lim

n→∞

b

n

≡ z.

Since

f

is a continuous function

n→∞

lim f (a

n

) = f ( lim

n→∞

a

n

) = f (z)

and

lim

n→∞

f (b

n

) = f ( lim

n→∞

b

n

) = f (z).

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(24)

Sol. Non-linear Fun.

8

Since

b

1

− a

1

= 1

2 (b

0

− a

0

) b

2

− a

2

= 1

2 (b

1

− a

1

) = 1

4 (b

0

− a

0

)

.. .

b

n

− a

n

= 1

2

n

(b

0

− a

0

)

hence

n→∞

lim b

n

− lim

n→∞

a

n

= lim

n→∞

(b

n

− a

n

) = lim

n→∞

1

2

n

(b

0

− a

0

) = 0.

Therefore

n→∞

lim a

n

= lim

n→∞

b

n

≡ z.

Since

f

is a continuous function

n→∞

lim f (a

n

) = f ( lim

n→∞

a

n

) = f (z)

and

lim

n→∞

f (b

n

) = f ( lim

n→∞

b

n

) = f (z).

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(25)

Sol. Non-linear Fun.

9

Since

f (a

n

)f (b

n

) ≤ 0

.

⇒ lim

n→∞

f (a

n

)f (b

n

) = f

2

(z) ≤ 0

.

⇒ f(z) = 0

.

The limit of the sequences

{a

n

}

and

{b

n

}

is a zero of

f

in

[a, b]

.

Let

c

n

=

12

(a

n

+ b

n

)

. Then

|z − c

n

| =

lim

n→∞

a

n

− 1

2 (a

n

+ b

n

)

=

1 2

h lim

n→∞

a

n

− b

n

i

+ 1 2

h lim

n→∞

a

n

− a

n

i

≤ 1

2 max 

lim

n→∞

a

n

− b

n

,

lim

n→∞

a

n

− a

n

≤ 1

2 |b

n

− a

n

| = 1

2

n+1

|b

0

− a

0

|.

This proves the following theorem. Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(26)

Sol. Non-linear Fun.

9

Since

f (a

n

)f (b

n

) ≤ 0

.

⇒ lim

n→∞

f (a

n

)f (b

n

) = f

2

(z) ≤ 0

.

⇒ f(z) = 0

.

The limit of the sequences

{a

n

}

and

{b

n

}

is a zero of

f

in

[a, b]

.

Let

c

n

=

12

(a

n

+ b

n

)

. Then

|z − c

n

| =

lim

n→∞

a

n

− 1

2 (a

n

+ b

n

)

=

1 2

h lim

n→∞

a

n

− b

n

i

+ 1 2

h lim

n→∞

a

n

− a

n

i

≤ 1

2 max 

lim

n→∞

a

n

− b

n

,

lim

n→∞

a

n

− a

n

≤ 1

2 |b

n

− a

n

| = 1

2

n+1

|b

0

− a

0

|.

This proves the following theorem. Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(27)

Sol. Non-linear Fun.

9

Since

f (a

n

)f (b

n

) ≤ 0

.

⇒ lim

n→∞

f (a

n

)f (b

n

) = f

2

(z) ≤ 0

.

⇒ f(z) = 0

.

The limit of the sequences

{a

n

}

and

{b

n

}

is a zero of

f

in

[a, b]

.

Let

c

n

=

12

(a

n

+ b

n

)

. Then

|z − c

n

| =

lim

n→∞

a

n

− 1

2 (a

n

+ b

n

)

=

1 2

h lim

n→∞

a

n

− b

n

i

+ 1 2

h lim

n→∞

a

n

− a

n

i

≤ 1

2 max 

lim

n→∞

a

n

− b

n

,

lim

n→∞

a

n

− a

n

≤ 1

2 |b

n

− a

n

| = 1

2

n+1

|b

0

− a

0

|.

This proves the following theorem. Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(28)

Sol. Non-linear Fun.

9

Since

f (a

n

)f (b

n

) ≤ 0

.

⇒ lim

n→∞

f (a

n

)f (b

n

) = f

2

(z) ≤ 0

.

⇒ f(z) = 0

.

The limit of the sequences

{a

n

}

and

{b

n

}

is a zero of

f

in

[a, b]

.

Let

c

n

=

12

(a

n

+ b

n

)

. Then

|z − c

n

| =

lim

n→∞

a

n

− 1

2 (a

n

+ b

n

)

=

1 2

h lim

n→∞

a

n

− b

n

i

+ 1 2

h lim

n→∞

a

n

− a

n

i

≤ 1

2 max 

lim

n→∞

a

n

− b

n

,

lim

n→∞

a

n

− a

n

≤ 1

2 |b

n

− a

n

| = 1

2

n+1

|b

0

− a

0

|.

This proves the following theorem. Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(29)

Sol. Non-linear Fun.

9

Since

f (a

n

)f (b

n

) ≤ 0

.

⇒ lim

n→∞

f (a

n

)f (b

n

) = f

2

(z) ≤ 0

.

⇒ f(z) = 0

.

The limit of the sequences

{a

n

}

and

{b

n

}

is a zero of

f

in

[a, b]

.

Let

c

n

=

12

(a

n

+ b

n

)

.

Then

|z − c

n

| =

lim

n→∞

a

n

− 1

2 (a

n

+ b

n

)

=

1 2

h lim

n→∞

a

n

− b

n

i

+ 1 2

h lim

n→∞

a

n

− a

n

i

≤ 1

2 max 

lim

n→∞

a

n

− b

n

,

lim

n→∞

a

n

− a

n

≤ 1

2 |b

n

− a

n

| = 1

2

n+1

|b

0

− a

0

|.

This proves the following theorem. Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(30)

Sol. Non-linear Fun.

9

Since

f (a

n

)f (b

n

) ≤ 0

.

⇒ lim

n→∞

f (a

n

)f (b

n

) = f

2

(z) ≤ 0

.

⇒ f(z) = 0

.

The limit of the sequences

{a

n

}

and

{b

n

}

is a zero of

f

in

[a, b]

.

Let

c

n

=

12

(a

n

+ b

n

)

. Then

|z − c

n

| =

lim

n→∞

a

n

− 1

2 (a

n

+ b

n

)

=

1 2

h lim

n→∞

a

n

− b

n

i

+ 1 2

h lim

n→∞

a

n

− a

n

i

≤ 1

2 max 

lim

n→∞

a

n

− b

n

,

lim

n→∞

a

n

− a

n

≤ 1

2 |b

n

− a

n

| = 1

2

n+1

|b

0

− a

0

|.

This proves the following theorem. Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(31)

Sol. Non-linear Fun.

9

Since

f (a

n

)f (b

n

) ≤ 0

.

⇒ lim

n→∞

f (a

n

)f (b

n

) = f

2

(z) ≤ 0

.

⇒ f(z) = 0

.

The limit of the sequences

{a

n

}

and

{b

n

}

is a zero of

f

in

[a, b]

.

Let

c

n

=

12

(a

n

+ b

n

)

. Then

|z − c

n

| =

lim

n→∞

a

n

− 1

2 (a

n

+ b

n

)

=

1 2

h lim

n→∞

a

n

− b

n

i

+ 1 2

h lim

n→∞

a

n

− a

n

i

≤ 1

2 max 

lim

n→∞

a

n

− b

n

,

lim

n→∞

a

n

− a

n

≤ 1

2 |b

n

− a

n

| = 1

2

n+1

|b

0

− a

0

|.

This proves the following theorem.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(32)

Sol. Non-linear Fun.

10

Theorem 1 Let

{[a

n

, b

n

]}

denote the intervals produced by the bisection algorithm. Then

n→∞

lim a

n and

lim

n→∞

b

n exist, are equal, and represent a zero of

f (x)

. If

z = lim

n→∞

a

n

= lim

n→∞

b

n and

c

n

= 1

2 (a

n

+ b

n

),

then

|z − c

n

| ≤ 1

2

n+1

(b

0

− a

0

) .

Remarks 1

{c

n

}

converges to

z

with the rate of

O(2

n

)

.

Example 2 If bisection method starts with interval

[50, 75]

, then how many steps should be taken to compute a root with relative error that is less than

10

−12?

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(33)

Sol. Non-linear Fun.

10

Theorem 1 Let

{[a

n

, b

n

]}

denote the intervals produced by the bisection algorithm. Then

n→∞

lim a

n and

lim

n→∞

b

n exist, are equal, and represent a zero of

f (x)

. If

z = lim

n→∞

a

n

= lim

n→∞

b

n and

c

n

= 1

2 (a

n

+ b

n

),

then

|z − c

n

| ≤ 1

2

n+1

(b

0

− a

0

) .

Remarks 1

{c

n

}

converges to

z

with the rate of

O(2

n

)

.

Example 2 If bisection method starts with interval

[50, 75]

, then how many steps should be taken to compute a root with relative error that is less than

10

−12?

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(34)

Sol. Non-linear Fun.

10

Theorem 1 Let

{[a

n

, b

n

]}

denote the intervals produced by the bisection algorithm. Then

n→∞

lim a

n and

lim

n→∞

b

n exist, are equal, and represent a zero of

f (x)

. If

z = lim

n→∞

a

n

= lim

n→∞

b

n and

c

n

= 1

2 (a

n

+ b

n

),

then

|z − c

n

| ≤ 1

2

n+1

(b

0

− a

0

) .

Remarks 1

{c

n

}

converges to

z

with the rate of

O(2

n

)

.

Example 2 If bisection method starts with interval

[50, 75]

, then how many steps should be taken to compute a root with relative error that is less than

10

−12?

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(35)

Sol. Non-linear Fun.

11

Solution: Seek an

n

such that

|z − c

n

|

|z| ≤ 10

12

.

Since the bisection method starts with the interval

[50, 75]

, this implies that

z ≥ 50

, hence

it is sufficient to show

|z − c

n

|

|z| ≤ |z − c

n

|

50 ≤ 10

12

.

That is, we solve

2

(n+1)

(75 − 50) ≤ 50 × 10

12

for

n

, which gives

n ≥ 38

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(36)

Sol. Non-linear Fun.

11

Solution: Seek an

n

such that

|z − c

n

|

|z| ≤ 10

12

.

Since the bisection method starts with the interval

[50, 75]

, this implies that

z ≥ 50

,

hence it is sufficient to show

|z − c

n

|

|z| ≤ |z − c

n

|

50 ≤ 10

12

.

That is, we solve

2

(n+1)

(75 − 50) ≤ 50 × 10

12

for

n

, which gives

n ≥ 38

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(37)

Sol. Non-linear Fun.

11

Solution: Seek an

n

such that

|z − c

n

|

|z| ≤ 10

12

.

Since the bisection method starts with the interval

[50, 75]

, this implies that

z ≥ 50

, hence

it is sufficient to show

|z − c

n

|

|z| ≤ |z − c

n

|

50 ≤ 10

12

.

That is, we solve

2

(n+1)

(75 − 50) ≤ 50 × 10

12

for

n

, which gives

n ≥ 38

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(38)

Sol. Non-linear Fun.

11

Solution: Seek an

n

such that

|z − c

n

|

|z| ≤ 10

12

.

Since the bisection method starts with the interval

[50, 75]

, this implies that

z ≥ 50

, hence

it is sufficient to show

|z − c

n

|

|z| ≤ |z − c

n

|

50 ≤ 10

12

.

That is, we solve

2

(n+1)

(75 − 50) ≤ 50 × 10

12

for

n

, which gives

n ≥ 38

.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(39)

Sol. Non-linear Fun.

12

3 – Newton’s Method

3.1 – Derivation of Newton’s Method

Suppose that

f : R → R

and

f ∈ C

2

[a, b]

, i.e.,

f

00 exists and is continuous.

If

f (x

) = 0

and

x

= x + h

where

h

is small, then by Taylor’s theorem

0 = f (x

) = f (x + h) = f (x) + f

0

(x)h + 1

2 f

00

(x)h

2

+ 1

3! f

000

(x)h

3

+ · · ·

= f (x) + f

0

(x)h + O(h

2

).

Since

h

is small,

O(h

2

)

is negligible. It is reasonable to drop

O(h

2

)

terms. This implies

f (x) + f

0

(x)h ≈ 0

and

h ≈ − f (x)

f

0

(x) ,

if

f

0

(x) 6= 0.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(40)

Sol. Non-linear Fun.

12

3 – Newton’s Method

3.1 – Derivation of Newton’s Method

Suppose that

f : R → R

and

f ∈ C

2

[a, b]

, i.e.,

f

00 exists and is continuous. If

f (x

) = 0

and

x

= x + h

where

h

is small,

then by Taylor’s theorem

0 = f (x

) = f (x + h) = f (x) + f

0

(x)h + 1

2 f

00

(x)h

2

+ 1

3! f

000

(x)h

3

+ · · ·

= f (x) + f

0

(x)h + O(h

2

).

Since

h

is small,

O(h

2

)

is negligible. It is reasonable to drop

O(h

2

)

terms. This implies

f (x) + f

0

(x)h ≈ 0

and

h ≈ − f (x)

f

0

(x) ,

if

f

0

(x) 6= 0.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(41)

Sol. Non-linear Fun.

12

3 – Newton’s Method

3.1 – Derivation of Newton’s Method

Suppose that

f : R → R

and

f ∈ C

2

[a, b]

, i.e.,

f

00 exists and is continuous. If

f (x

) = 0

and

x

= x + h

where

h

is small, then by Taylor’s theorem

0 = f (x

) = f (x + h) = f (x) + f

0

(x)h + 1

2 f

00

(x)h

2

+ 1

3! f

000

(x)h

3

+ · · ·

= f (x) + f

0

(x)h + O(h

2

).

Since

h

is small,

O(h

2

)

is negligible. It is reasonable to drop

O(h

2

)

terms. This implies

f (x) + f

0

(x)h ≈ 0

and

h ≈ − f (x)

f

0

(x) ,

if

f

0

(x) 6= 0.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(42)

Sol. Non-linear Fun.

12

3 – Newton’s Method

3.1 – Derivation of Newton’s Method

Suppose that

f : R → R

and

f ∈ C

2

[a, b]

, i.e.,

f

00 exists and is continuous. If

f (x

) = 0

and

x

= x + h

where

h

is small, then by Taylor’s theorem

0 = f (x

) = f (x + h) = f (x) + f

0

(x)h + 1

2 f

00

(x)h

2

+ 1

3! f

000

(x)h

3

+ · · ·

= f (x) + f

0

(x)h + O(h

2

).

Since

h

is small,

O(h

2

)

is negligible.

It is reasonable to drop

O(h

2

)

terms. This implies

f (x) + f

0

(x)h ≈ 0

and

h ≈ − f (x)

f

0

(x) ,

if

f

0

(x) 6= 0.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(43)

Sol. Non-linear Fun.

12

3 – Newton’s Method

3.1 – Derivation of Newton’s Method

Suppose that

f : R → R

and

f ∈ C

2

[a, b]

, i.e.,

f

00 exists and is continuous. If

f (x

) = 0

and

x

= x + h

where

h

is small, then by Taylor’s theorem

0 = f (x

) = f (x + h) = f (x) + f

0

(x)h + 1

2 f

00

(x)h

2

+ 1

3! f

000

(x)h

3

+ · · ·

= f (x) + f

0

(x)h + O(h

2

).

Since

h

is small,

O(h

2

)

is negligible. It is reasonable to drop

O(h

2

)

terms.

This implies

f (x) + f

0

(x)h ≈ 0

and

h ≈ − f (x)

f

0

(x) ,

if

f

0

(x) 6= 0.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

(44)

Sol. Non-linear Fun.

12

3 – Newton’s Method

3.1 – Derivation of Newton’s Method

Suppose that

f : R → R

and

f ∈ C

2

[a, b]

, i.e.,

f

00 exists and is continuous. If

f (x

) = 0

and

x

= x + h

where

h

is small, then by Taylor’s theorem

0 = f (x

) = f (x + h) = f (x) + f

0

(x)h + 1

2 f

00

(x)h

2

+ 1

3! f

000

(x)h

3

+ · · ·

= f (x) + f

0

(x)h + O(h

2

).

Since

h

is small,

O(h

2

)

is negligible. It is reasonable to drop

O(h

2

)

terms. This implies

f (x) + f

0

(x)h ≈ 0

and

h ≈ − f (x)

f

0

(x) ,

if

f

0

(x) 6= 0.

Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003

參考文獻

相關文件

Take a time step on current grid to update cell averages of volume fractions at next time step (b) Interface reconstruction. Find new interface location based on volume

He proposed a fixed point algorithm and a gradient projection method with constant step size based on the dual formulation of total variation.. These two algorithms soon became

We propose two types of estimators of m(x) that improve the multivariate local linear regression estimator b m(x) in terms of reducing the asymptotic conditional variance while

Tsung-Min Hwang, Wei-Cheng Wang and Weichung Wang, Numerical schemes for three dimensional irregular shape quantum dots over curvilinear coordinate systems, accepted for publication

Then, we tested the influence of θ for the rate of convergence of Algorithm 4.1, by using this algorithm with α = 15 and four different θ to solve a test ex- ample generated as

We give some numerical results to illustrate that the first pass of Algorithm RRLU(r) fails but the second pass succeeds in revealing the nearly rank

Department of Mathematics – NTNU Tsung-Min Hwang November 30, 2003... Department of Mathematics – NTNU Tsung-Min Hwang November

Department of Mathematics – NTNU Tsung-Min Hwang December 8,