0% found this document useful (0 votes)
6 views

2. Ders

The document discusses methods for finding roots of equations, focusing on the Bisection Method and Fixed-Point Iteration. It explains the Bisection Method's process for narrowing down intervals to find roots and provides examples and theorems related to convergence and error bounds. Additionally, it covers the existence and uniqueness of fixed points in functions and demonstrates how to apply these concepts in practical scenarios.

Uploaded by

Ali Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

2. Ders

The document discusses methods for finding roots of equations, focusing on the Bisection Method and Fixed-Point Iteration. It explains the Bisection Method's process for narrowing down intervals to find roots and provides examples and theorems related to convergence and error bounds. Additionally, it covers the existence and uniqueness of fixed points in functions and demonstrates how to apply these concepts in practical scenarios.

Uploaded by

Ali Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

1 Solutions of Equations in One Variable

We will consider the problem of determining roots of equations (or zeros of


functions). Some equations are rather simple. For example

3x + 7 = 0

Many equations, however, are nonlinear:

x3 + 4x2 − 10 = 0

How can we decide whether or not such an equation possesses a solution in the
set of real numbers, and how can we find a solution?

1.1 Bisection Method

Suppose f is a continuous function defined on the interval [a, b], with f (a)f (b) <
0. The Intermediate Value Theorem implies that a number p exists in (a, b) with
f (p) = 0.
Set a1 = a and b1 = b, and let p1 be the midpoint of [a, b]; that is,
a1 + b1
p1 =
2
(i) If f (p1 ) = 0, then we have located a solution p of f (x) = 0 and the
iteration stops.
(ii) Else, we define the new interval (a2 , b2 ) by

(a1 , p1 ) if f (p1 )f (b1 ) > 0
(a2 , b2 ) =
(p1 , b1 ) if f (p1 )f (b1 ) < 0
and repeat this procedure.

Example: Show that f (x) = x3 + 4x2 − 10 = 0 has a root in [1, 2], and use
the Bisection method with three iterations to determine an approximation to
the root.

1
Solution:
(i) f (x) = x3 + 4x2 − 10 is a continuous function on [1, 2]
(ii) f (1) = −5 < 0 and f (2) = 14 > 0. So, the Intermediate Value Theorem
ensures that there is at least one solution of f (x) = 0 on (1, 2)

First iteration:
1+2
a1 = 1 and b1 = 2 ⇒ p1 = = 1.5 and f (1.5) = 2.375 > 0
2
We have f (1)f (1.5) < 0, this means that new interval [1, 1.5].

Second iteration:
1 + 1.5
a2 = 1 and b2 = 1.5 ⇒ p2 = = 1.25 and f (1.25) = −1.796 < 0
2
We have f (1.25)f (1.5) < 0, this means that new interval [1.25, 1.5].

Third iteration:
1.25 + 1.5
a3 = 1.25 and b3 = 1.5 ⇒ p3 = = 1.375 and f (1.375) = 0.16211 > 0
2
Therefore, after three iterations p3 = 1.375 approximates the root p.

(Note: The correct value of p is p = 1.3652 )

NOTE: The Bisection method is slow to converge however it always con-


verges to a solution.

Theorem: Suppose that f ∈ C[a, b] and f (a)f (b) < 0. The Bisection

method generates a sequence {pn }n=1 approximating a zero p of f with
b−a
|pn − p| ≤ , n≥1
2n

Proof : For each n ≥ 1, we have


b−a
bn − an = and p ∈ (an , bn )
2n−1
an +bn
Since pn = 2 and an − p < 0 for all n ≥ 1,

a n + bn
|pn − p| = −p
2
bn − an bn − an
= an + −p ≤
2 2
b−a
=
2n

2
(Explanation for bn − an = 2b−a
n−1 : When n = 1: a1 = a, b1 = b ⇒ b1 − a1 =

b − a = b−a
20 , When n = 2: if a a+b a+b b−a
2 = a, b2 = 2 ⇒ b2 − a2 = 2 − a = 21 , if
a+b a+b b−a
a2 = 2 , b2 = b ⇒ b2 − a2 = b − 2 = 21 , etc.)

NOTE: Theorem gives only a bound for approximation error.

Example: Determine the number of iterations necessary to solve f (x) =


x3 + 4x2 − 10 = 0 with accuracy 10−3 in [1, 2].

Solution:
b−a 1
|pN − p| ≤ = N < 10−3
2N 2
We have
3
2−N < 10−3 ⇒ −N log 2 < −3 ⇒ N > ≈ 9.96
log10 2

Hence, ten iterations will ensure an approximation accurate to within 10−3 .

1.2 Fixed-Point Iteration


In this section we consider the connection between the fixed-point problems and
the root-finding problems. The idea of the fixed point iteration methods is to
first reformulate a equation to an equivalent fixed point problem:

f (x) = 0 ⇔ x = g(x)

and then to use the iteration: with an initial guess p0 chosen, compute a se-
quence
pn = g(pn−1 ), n≥1
in the hope that pn → p, where p is the actual solution (root) of the equation
f (x) = 0.

Definition: The number p is a fixed point for a given function g if g(p) = p

3
Example: Determine any fixed points of the function g(x) = x2 − x − 3.

Solution=

p = g(p) = p2 − p − 3 ⇒ p2 − 2p − 3 = (p + 1)(p − 3) ⇒ p = −1 and p = 3

Hence, g has two fixed points p = −1 and p = 3.

Theorem (Existence and Uniqueness of a Fixed Point)


(i) (Existence) If g ∈ C[a, b] and g(x) ∈ [a, b] for all x ∈ [a, b], then g has at
least one fixed point in [a, b]
(ii) (Uniqueness) If, in addition, g 0 (x) exists on (a, b) and a positive con-
stant k < 1 exists with

|g 0 (x)| ≤ k, for all x ∈ (a, b)

then there is exactly one fixed point in [a, b]

Proof :
(i) If g(a) = a or g(b) = b, then g has a fixed point at an endpoint. If not,
then g(a) > a and g(b) < b. The function h(x) = g(x) − x is continuous on
[a, b], with
h(a) = g(a) − a > 0 and h(b) = g(b) − b < 0
The Intermediate Value Theorem implies that there exists p ∈ (a, b) for which
h(p) = 0. This number p is a fixed point for g because

0 = h(p) = g(p) − p ⇒ g(p) = p.

(ii) Suppose, in addition, that |g 0 (x)| ≤ k < 1 and that p and q are both
fixed points in [a, b]. If p 6= q, then the Mean Value Theorem implies that a
number c exists between p and q, and hence in [a, b], with

g(p) − g(q)
= g 0 (c)
p−q
Thus
|p − q| = |g(p) − g(q)| = |g 0 (c)| |p − q| ≤ k |p − q| < |p − q|
which is a contradiction. Hence, p = q and the fixed point in [a, b] is unique.

Example: Show that g(x) = (x2 − 1)/3 has a unique fixed point on the
interval [−1, 1] .

Solution: Since g 0 (x) = 2x


3 , the function g is continuous and g 0 (x) exists
on [−1, 1].

4
Also, the maximum and minimum values of g(x) occur at x = −1, x = 0 and
x = 1.
1
g(0) = − and g(−1) = g(1) = 0
3
So, absolute maximum for g(x) on [−1, 1] occurs at ±1 and absolute minimum
for g(x) occurs at 0. Therefore g(x) ∈ [−1, 1].
Moreover,
2x 2
|g 0 (x)| = ≤ < 1 for all x ∈ (−1, 1)
3 3
So g satisfies all the hypotheses of Existence and Uniqueness Theorem and has
a unique fixed point in [−1, 1].

Theorem (Fixed-Point Theorem)


Let g ∈ C[a, b] be such that g(x) ∈ [a, b], for all x in [a, b]. Suppose, in
addition, that g 0 exists on (a, b) and that a constant 0 < k < 1 exists with

|g 0 (x)| ≤ k, for all x ∈ (a, b)

Then for any number p0 in [a, b], the sequence defined by

pn = g(pn−1 ), n≥1

converges to the unique fixed point p in [a, b].

Proof : Existence and Uniqueness Theorem implies that a unique point p



exists in [a, b] with g(p) = p. Since g maps [a, b] into itself, the sequence {pn }n=0
0
is defined for all n ≥ 0, and pn ∈ [a, b] for all n. Using the fact that |g (x)| ≤ k
and the Mean Value Theorem, we have, for each n,

|pn − p| = |g(pn−1 ) − g(p)| = |g 0 (c)| |pn−1 − p| ≤ k |pn−1 − p|

where c ∈ (a, b). Applying this inequality inductively gives

|pn − p| ≤ k |pn−1 − p| ≤ k 2 |pn−2 − p| ≤ ... ≤ k n |p0 − p|

Since 0 < k < 1, we have lim k n = 0 and


n→∞

lim |pn − p| ≤ lim k n |p0 − p| = 0


n→∞ n→∞


Hence {pn }n=0 converges to p.

x 1
Example : Let g(x) = 2 − 4x + 1. Evaluate p2 by using Fixed-Point method
with p0 = 1.
pn−1 1
Solution: We know that pn = g(pn−1 ) = 2 − 4pn−1 + 1, n ≥ 1.

5
For p0 = 1, we have
p0 1 1 1 5
p1 = g(p0 ) = − +1= − +1=
2 4p0 2 4 4
5 1 57
p2 = g(p1 ) = − + 1 =
8 5 40

Corollary: If g satisfies the hypotheses of Fixed-Point Theorem, then


bounds for the error involved in using pn to approximate p can be estimated by
either of the following two formulas:

|pn − p| ≤ k n max {p0 − a, b − p0 }

Example: Determine the number of iterations neccessary to solve x =


x
2
1
− 4x + 1, p0 = 1 with the error tolerance 10−5 in [1, 2].

Solution: For x ∈ [1, 2] , we have

1 1 1 1 3
|g 0 (x)| = + ≤ + =
2 4x2 2 4 4

Hence,
 N  N
3 3
|pN − p| ≤ max {1 − 1, 2 − 1} = < 10−5
4 4
From this inequality:
 
3 5
N log10 < −5 ⇒ N > ≈ 40.01
4 log10 4 − log10 3

Hence, 41 iterations will ensure an approximation accurate to within 10−5 .

You might also like