Sol. Non-linear Fun.
1Solutions of Non-linear Equations in One Variable
NTNU
Tsung-Min Hwang November 16, 2003
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
21 – 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
Sol. Non-linear Fun.
31 – Preliminaries
Definition 1 Let
{x
n} → x
∗. We say that the rate of convergence is1. linear if
∃
a constant0 < c < 1
and an integerN > 0
such that|x
n+1− x
∗| ≤ c|x
n− x
∗|, ∀ n ≥ N;
2. superlinear if
∃ {c
n}
,c
n→ 0
asn → ∞
, and an integerN > 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 constantc > 0
(not necessarily less than 1) and an integerN > 0
such that
|x
n+1− x
∗| ≤ c|x
n− x
∗|
2, ∀ n ≥ N.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
31 – Preliminaries
Definition 1 Let
{x
n} → x
∗. We say that the rate of convergence is 1. linear if∃
a constant0 < c < 1
and an integerN > 0
such that|x
n+1− x
∗| ≤ c|x
n− x
∗|, ∀ n ≥ N;
2. superlinear if
∃ {c
n}
,c
n→ 0
asn → ∞
, and an integerN > 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 constantc > 0
(not necessarily less than 1) and an integerN > 0
such that
|x
n+1− x
∗| ≤ c|x
n− x
∗|
2, ∀ n ≥ N.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
31 – Preliminaries
Definition 1 Let
{x
n} → x
∗. We say that the rate of convergence is 1. linear if∃
a constant0 < c < 1
and an integerN > 0
such that|x
n+1− x
∗| ≤ c|x
n− x
∗|, ∀ n ≥ N;
2. superlinear if
∃ {c
n}
,c
n→ 0
asn → ∞
, and an integerN > 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 constantc > 0
(not necessarily less than 1) and an integerN > 0
such that
|x
n+1− x
∗| ≤ c|x
n− x
∗|
2, ∀ n ≥ N.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
31 – Preliminaries
Definition 1 Let
{x
n} → x
∗. We say that the rate of convergence is 1. linear if∃
a constant0 < c < 1
and an integerN > 0
such that|x
n+1− x
∗| ≤ c|x
n− x
∗|, ∀ n ≥ N;
2. superlinear if
∃ {c
n}
,c
n→ 0
asn → ∞
, and an integerN > 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 constantc > 0
(not necessarily less than 1) and an integerN > 0
such that
|x
n+1− x
∗| ≤ c|x
n− x
∗|
2, ∀ n ≥ N.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
4In general, if there are positive constants
c
andα
and an integerN > 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 integerN > 0
such that
|x
n− x
∗| ≤ c|β
n|, ∀ n ≥ N,
then we say
{x
n}
converges tox
∗ with rate of convergenceO(β
n)
, and writex
n= x
∗+ O(β
n)
.Example 1 Compare the convergence behavior of
{x
n}
and{y
n}
, wherex
n= n + 1
n
2,
andy
n= n + 3 n
3.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
4In general, if there are positive constants
c
andα
and an integerN > 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 integerN > 0
such that
|x
n− x
∗| ≤ c|β
n|, ∀ n ≥ N,
then we say
{x
n}
converges tox
∗ with rate of convergenceO(β
n)
, and writex
n= x
∗+ O(β
n)
.Example 1 Compare the convergence behavior of
{x
n}
and{y
n}
, wherex
n= n + 1
n
2,
andy
n= n + 3 n
3.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
4In general, if there are positive constants
c
andα
and an integerN > 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 integerN > 0
such that
|x
n− x
∗| ≤ c|β
n|, ∀ n ≥ N,
then we say
{x
n}
converges tox
∗ with rate of convergenceO(β
n)
, and writex
n= x
∗+ O(β
n)
.Example 1 Compare the convergence behavior of
{x
n}
and{y
n}
, wherex
n= n + 1
n
2,
andy
n= n + 3 n
3.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
5Solution: Note that both
n→∞
lim x
n= 0
andlim
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
Sol. Non-linear Fun.
5Solution: Note that both
n→∞
lim x
n= 0
andlim
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
Sol. Non-linear Fun.
5Solution: Note that both
n→∞
lim x
n= 0
andlim
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
Sol. Non-linear Fun.
5Solution: Note that both
n→∞
lim x
n= 0
andlim
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
Sol. Non-linear Fun.
5Solution: Note that both
n→∞
lim x
n= 0
andlim
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
Sol. Non-linear Fun.
62 – Bisection Method
Idea: if
f (x) ∈ C[a, b]
andf (a)f (b) < 0
, then∃ c ∈ (a, b)
such thatf (c) = 0
.Algorithm 1 (Bisection Method) Given
f (x)
defined on(a, b)
, the maximal number of iterationsM
, and stop criteriaδ
andε
, this algorithm tries to locate one root off (x)
.compute
u = f (a)
,v = f (b)
, ande = b − a
.if
sign(u) = sign(v)
, then stop fork = 1, 2, . . . , M
doe = e/2
,c = a + e
,w = f (c)
.if
|e| < δ
or|w| < ε
, then stop ifsign(w) 6= sign(u)
thenb = c
,v = w
.else
a = c
,u = w
end if end for
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
7Let
{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| < δ
, or3.
|f(c
k)| < ε
.Let
[a
0, b
0], [a
1, b
1], . . .
denote the successive intervals produced by the bisection algorithm. Thena = a
0≤ a
1≤ a
2≤ · · · ≤ b
0= b
⇒ {a
n}
and{b
n}
are bounded.⇒ lim
n→∞
a
n andlim
n→∞
b
n exist.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
7Let
{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| < δ
, or3.
|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 andlim
n→∞
b
n exist.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
7Let
{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| < δ
, or3.
|f(c
k)| < ε
.Let
[a
0, b
0], [a
1, b
1], . . .
denote the successive intervals produced by the bisection algorithm. Thena = a
0≤ a
1≤ a
2≤ · · · ≤ b
0= b
⇒ {a
n}
and{b
n}
are bounded.⇒ lim
n→∞
a
n andlim
n→∞
b
n exist.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
7Let
{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| < δ
, or3.
|f(c
k)| < ε
.Let
[a
0, b
0], [a
1, b
1], . . .
denote the successive intervals produced by the bisection algorithm. Thena = a
0≤ a
1≤ a
2≤ · · · ≤ b
0= b
⇒ {a
n}
and{b
n}
are bounded.⇒ lim
n→∞
a
n andlim
n→∞
b
n exist.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
7Let
{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| < δ
, or3.
|f(c
k)| < ε
.Let
[a
0, b
0], [a
1, b
1], . . .
denote the successive intervals produced by the bisection algorithm. Thena = a
0≤ a
1≤ a
2≤ · · · ≤ b
0= b
⇒ {a
n}
and{b
n}
are bounded.⇒ lim
n→∞
a
n andlim
n→∞
b
n exist.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
8Since
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 functionn→∞
lim f (a
n) = f ( lim
n→∞
a
n) = f (z)
andlim
n→∞
f (b
n) = f ( lim
n→∞
b
n) = f (z).
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
8Since
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 functionn→∞
lim f (a
n) = f ( lim
n→∞
a
n) = f (z)
andlim
n→∞
f (b
n) = f ( lim
n→∞
b
n) = f (z).
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
8Since
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 functionn→∞
lim f (a
n) = f ( lim
n→∞
a
n) = f (z)
andlim
n→∞
f (b
n) = f ( lim
n→∞
b
n) = f (z).
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
8Since
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 functionn→∞
lim f (a
n) = f ( lim
n→∞
a
n) = f (z)
andlim
n→∞
f (b
n) = f ( lim
n→∞
b
n) = f (z).
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
9Since
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 off
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
ni
+ 1 2
h lim
n→∞
a
n− a
ni
≤ 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
Sol. Non-linear Fun.
9Since
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 off
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
ni
+ 1 2
h lim
n→∞
a
n− a
ni
≤ 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
Sol. Non-linear Fun.
9Since
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 off
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
ni
+ 1 2
h lim
n→∞
a
n− a
ni
≤ 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
Sol. Non-linear Fun.
9Since
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 off
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
ni
+ 1 2
h lim
n→∞
a
n− a
ni
≤ 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
Sol. Non-linear Fun.
9Since
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 off
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
ni
+ 1 2
h lim
n→∞
a
n− a
ni
≤ 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
Sol. Non-linear Fun.
9Since
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 off
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
ni
+ 1 2
h lim
n→∞
a
n− a
ni
≤ 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
Sol. Non-linear Fun.
9Since
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 off
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
ni
+ 1 2
h lim
n→∞
a
n− a
ni
≤ 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
Sol. Non-linear Fun.
10Theorem 1 Let
{[a
n, b
n]}
denote the intervals produced by the bisection algorithm. Thenn→∞
lim a
n andlim
n→∞
b
n exist, are equal, and represent a zero off (x)
. Ifz = lim
n→∞
a
n= lim
n→∞
b
n andc
n= 1
2 (a
n+ b
n),
then
|z − c
n| ≤ 1
2
n+1(b
0− a
0) .
Remarks 1
{c
n}
converges toz
with the rate ofO(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 than10
−12?Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
10Theorem 1 Let
{[a
n, b
n]}
denote the intervals produced by the bisection algorithm. Thenn→∞
lim a
n andlim
n→∞
b
n exist, are equal, and represent a zero off (x)
. Ifz = lim
n→∞
a
n= lim
n→∞
b
n andc
n= 1
2 (a
n+ b
n),
then
|z − c
n| ≤ 1
2
n+1(b
0− a
0) .
Remarks 1
{c
n}
converges toz
with the rate ofO(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 than10
−12?Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
10Theorem 1 Let
{[a
n, b
n]}
denote the intervals produced by the bisection algorithm. Thenn→∞
lim a
n andlim
n→∞
b
n exist, are equal, and represent a zero off (x)
. Ifz = lim
n→∞
a
n= lim
n→∞
b
n andc
n= 1
2 (a
n+ b
n),
then
|z − c
n| ≤ 1
2
n+1(b
0− a
0) .
Remarks 1
{c
n}
converges toz
with the rate ofO(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 than10
−12?Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
11Solution: Seek an
n
such that|z − c
n|
|z| ≤ 10
−12.
Since the bisection method starts with the interval
[50, 75]
, this implies thatz ≥ 50
, henceit 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
−12for
n
, which givesn ≥ 38
.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
11Solution: Seek an
n
such that|z − c
n|
|z| ≤ 10
−12.
Since the bisection method starts with the interval
[50, 75]
, this implies thatz ≥ 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
−12for
n
, which givesn ≥ 38
.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
11Solution: Seek an
n
such that|z − c
n|
|z| ≤ 10
−12.
Since the bisection method starts with the interval
[50, 75]
, this implies thatz ≥ 50
, henceit 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
−12for
n
, which givesn ≥ 38
.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
11Solution: Seek an
n
such that|z − c
n|
|z| ≤ 10
−12.
Since the bisection method starts with the interval
[50, 75]
, this implies thatz ≥ 50
, henceit 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
−12for
n
, which givesn ≥ 38
.Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
123 – Newton’s Method
3.1 – Derivation of Newton’s Method
Suppose that
f : R → R
andf ∈ C
2[a, b]
, i.e.,f
00 exists and is continuous.If
f (x
∗) = 0
andx
∗= x + h
whereh
is small, then by Taylor’s theorem0 = 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 dropO(h
2)
terms. This impliesf (x) + f
0(x)h ≈ 0
andh ≈ − f (x)
f
0(x) ,
iff
0(x) 6= 0.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
123 – Newton’s Method
3.1 – Derivation of Newton’s Method
Suppose that
f : R → R
andf ∈ C
2[a, b]
, i.e.,f
00 exists and is continuous. Iff (x
∗) = 0
andx
∗= x + h
whereh
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 dropO(h
2)
terms. This impliesf (x) + f
0(x)h ≈ 0
andh ≈ − f (x)
f
0(x) ,
iff
0(x) 6= 0.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
123 – Newton’s Method
3.1 – Derivation of Newton’s Method
Suppose that
f : R → R
andf ∈ C
2[a, b]
, i.e.,f
00 exists and is continuous. Iff (x
∗) = 0
andx
∗= x + h
whereh
is small, then by Taylor’s theorem0 = 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 dropO(h
2)
terms. This impliesf (x) + f
0(x)h ≈ 0
andh ≈ − f (x)
f
0(x) ,
iff
0(x) 6= 0.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
123 – Newton’s Method
3.1 – Derivation of Newton’s Method
Suppose that
f : R → R
andf ∈ C
2[a, b]
, i.e.,f
00 exists and is continuous. Iff (x
∗) = 0
andx
∗= x + h
whereh
is small, then by Taylor’s theorem0 = 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 impliesf (x) + f
0(x)h ≈ 0
andh ≈ − f (x)
f
0(x) ,
iff
0(x) 6= 0.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
123 – Newton’s Method
3.1 – Derivation of Newton’s Method
Suppose that
f : R → R
andf ∈ C
2[a, b]
, i.e.,f
00 exists and is continuous. Iff (x
∗) = 0
andx
∗= x + h
whereh
is small, then by Taylor’s theorem0 = 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 dropO(h
2)
terms.This implies
f (x) + f
0(x)h ≈ 0
andh ≈ − f (x)
f
0(x) ,
iff
0(x) 6= 0.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003
Sol. Non-linear Fun.
123 – Newton’s Method
3.1 – Derivation of Newton’s Method
Suppose that
f : R → R
andf ∈ C
2[a, b]
, i.e.,f
00 exists and is continuous. Iff (x
∗) = 0
andx
∗= x + h
whereh
is small, then by Taylor’s theorem0 = 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 dropO(h
2)
terms. This impliesf (x) + f
0(x)h ≈ 0
andh ≈ − f (x)
f
0(x) ,
iff
0(x) 6= 0.
Department of Mathematics – NTNU Tsung-Min Hwang November 16, 2003