Nonlinear Equations I
Nonlinear Equations I
Nonlinear Equations I
or
f (a) < 0 and f (b) > 0.
Nonlinear Equations I 3/17
Theorem
Suppose that α ∈ R, that β ∈ R and that α < β. Suppose that f is a
function that is real-valued and continuous on [α, β] and that
f (α)f (β) < 0. Then there exists at least one p ∈ (α, β) for which
f (p) = 0.
or
f (β) < 0 < f (α).
Consequently, since f is also continuous on [α, β], by the Intermediate
Value Theorem there exists at least one p ∈ (α, β) for which f (p) = 0.
Nonlinear Equations I 5/17
Problem 1
Use the bisection method to find the approximations p1 , p2 and p3 to the
zero of f that lies in the interval [1, 2] for f given by
f (x) = x3 + x2 − 2x − 2, where pn is the approximation obtained after
performing n iterations of the bisection method, starting from the initial
interval [1, 2].
We first compute that f (1) = −2 < 0 and f (2) = 6 > 0. We present the
results in a table:
n an bn pn f (pn )
1 1 2 1.5 >0
2 1 1.5 1.25 < 0
3 1.25 1.5 1.375
Nonlinear Equations I 7/17
∣f (pn )∣ < ,
∣pn+1 − pn ∣ <
or
∣pn+1 − pn ∣
<
∣pn+1 ∣
for some tolerance .
We could also stop once a quantity that provides a bound on the error is
less than some tolerance.
Nonlinear Equations I 8/17
b−a
∣p − pn ∣ ≤
2n
for at least one p ∈ [a, b] satisfying f (p) = 0.
∣p − pn ∣ ≤ max ∣x − pn ∣
x∈[an ,bn ]
= max {∣an − pn ∣, ∣bn − pn ∣}
1 1
= max {∣an − (an + bn )∣ , ∣bn − (an + bn )∣}
2 2
1
= ∣ (bn − an )∣
2
1
= (bn − an )
2
1b−a
=
2 2n−1
1
since bi − ai = (bi−1 − ai−1 ) for all integers i such that 2 ≤ i ≤ n with
2
a1 = a and b1 = b.
Nonlinear Equations I 10/17
Corollary
Suppose that a ∈ R, that b ∈ R and that a < b. Suppose that f is a
function that is real-valued and continuous on [a, b] and that
f (a)f (b) < 0. Let pn be the approximation to a zero of f obtained after
performing n iterations of the bisection method, starting from the initial
interval [a, b]. Then the sequence {pn }∞
n=1 converges to a zero p ∈ [a, b]
of f .
Nonlinear Equations I 12/17
Proof Given any > 0, there exists a positive integer N () such that
b−a
< for all integers n ≥ N ().
2n
Consequently, since
b−a
∣p − pn ∣ ≤ for all integers n ≥ 1,
2n
given any > 0, there exists a positive integer N () such that
Now,
2−n ≤ 10−4
⇔ log10 (2−n ) ≤ −4
⇔ −n log10 (2) ≤ −4
4
⇔ n≥ .
log10 (2)
4
Moreover, = 13.287 . . . and so ∣p − pn ∣ ≤ 10−4 if at least 14
log10 (2)
iterations are performed.
Nonlinear Equations I 16/17
Problem 3
Perform iterations of the bisection method, starting from the initial
interval [−1, 1], to find approximations to the zero of f that lies in the
interval [−1, 1] for f given by f (x) = (x − 0.1)(x − 2). Stop performing
iterations once the error bound for the bisection method guarantees that
the absolute error in the latest approximation is no greater than 0.1.
We first compute that f (−1) > 0 and f (1) < 0. We present the results in
a table where pn is the approximation obtained after performing n
iterations of the bisection method:
b1 − a1
n an bn pn f (pn ) ∣0.1 − pn ∣
2n
1 −1 1 0 >0 0.1 1
2 0 1 0.5 <0 0.4 0.5
3 0 0.5 0.25 <0 0.15 0.25
4 0 0.25 0.125 <0 0.025 0.125
5 0 0.125 0.0625 >0 0.0375 0.0625
Nonlinear Equations I 17/17
References
Burden, Faires & Burden, Numerical Analysis, 10E
Section 2.1