Docsity

Solving Nonlinear Equations: Existence, Uniqueness, and the Bisection Method - Prof. James, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Jim Lambers
MAT 460/560
Fall Semester 2009-10
Lecture 8 Notes
These notes correspond to Section 2.1 in the text.
Nonlinear Equations
To this point, we have only considered the solution of linear equations. We now explore the much
more difficult problem of solving nonlinear equations of the form
f(x) = 0,
where f(x) : Rn→Rmcan be any known function. A solution xof such a nonlinear equation is
called a root of the equation, as well as a zero of the function f.
Existence and Uniqueness
For simplicity, we assume that the function f:Rn→Rmis continuous on the domain under
consideration. Then, each equation fi(x) = 0, i= 1, . . . , m, defines a hypersurface in Rm. The
solution of f(x) = 0 is the intersection of these hypersurfaces, if the intersection is not empty. It is
not hard to see that there can be a unique solution, infinitely many solutions, or no solution at all.
For a general equation f(x) = 0, it is not possible to characterize the conditions under which
a solution exists or is unique. However, in some situations, it is possible to determine existence
analytically. For example, in one dimension, the Intermediate Value Theorem implies that if a
continuous function f(x) satisfies f(a)≤0 and f(b)≥0 where a<b, then f(x) = 0 for some
x∈(a, b).
Similarly, it can be concluded that f(x) = 0 for some x∈(a, b) if the function (x−z)f(x)≥0
for x=aand x=b, where z∈(a, b). This condition can be generalized to higher dimensions. If
S⊂Rnis an open, bounded set, and (x−z)Tf(x)≥0 for all xon the boundary of Sand for some
z∈S, then f(x) = 0for some x∈S. Unfortunately, checking this condition can be difficult in
practice.
One useful result from calculus that can be used to establish existence and, in some sense,
uniqueness of a solution is the Inverse Function Theorem, which states that if the Jacobian of f
is nonsingular at a point x0, then fis invertible near x0and the equation f(x) = yhas a unique
solution for all ynear f(x0).
If the Jacobian of fat a point x0is singular, then fis said to be degenerate at x0. Suppose
that x0is a solution of f(x) = 0. Then, in one dimension, degeneracy means f0(x0) = 0, and we
say that x0is a double root of f(x). Similarly, if f(j)(x0) = 0 for j= 0, . . . , m −1, then x0is a root
1
pf3
pf4

Partial preview of the text

Download Solving Nonlinear Equations: Existence, Uniqueness, and the Bisection Method - Prof. James and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Jim Lambers MAT 460/ Fall Semester 2009- Lecture 8 Notes

These notes correspond to Section 2.1 in the text.

Nonlinear Equations

To this point, we have only considered the solution of linear equations. We now explore the much more difficult problem of solving nonlinear equations of the form

f (x) = 0 ,

where f (x) : Rn^ → Rm^ can be any known function. A solution x of such a nonlinear equation is called a root of the equation, as well as a zero of the function f.

Existence and Uniqueness

For simplicity, we assume that the function f : Rn^ → Rm^ is continuous on the domain under consideration. Then, each equation fi(x) = 0, i = 1,... , m, defines a hypersurface in Rm. The solution of f (x) = 0 is the intersection of these hypersurfaces, if the intersection is not empty. It is not hard to see that there can be a unique solution, infinitely many solutions, or no solution at all. For a general equation f (x) = 0 , it is not possible to characterize the conditions under which a solution exists or is unique. However, in some situations, it is possible to determine existence analytically. For example, in one dimension, the Intermediate Value Theorem implies that if a continuous function f (x) satisfies f (a) ≤ 0 and f (b) ≥ 0 where a < b, then f (x) = 0 for some x ∈ (a, b). Similarly, it can be concluded that f (x) = 0 for some x ∈ (a, b) if the function (x − z)f (x) ≥ 0 for x = a and x = b, where z ∈ (a, b). This condition can be generalized to higher dimensions. If S ⊂ Rn^ is an open, bounded set, and (x − z)T^ f (x) ≥ 0 for all x on the boundary of S and for some z ∈ S, then f (x) = 0 for some x ∈ S. Unfortunately, checking this condition can be difficult in practice. One useful result from calculus that can be used to establish existence and, in some sense, uniqueness of a solution is the Inverse Function Theorem, which states that if the Jacobian of f is nonsingular at a point x 0 , then f is invertible near x 0 and the equation f (x) = y has a unique solution for all y near f (x 0 ). If the Jacobian of f at a point x 0 is singular, then f is said to be degenerate at x 0. Suppose that x 0 is a solution of f (x) = 0. Then, in one dimension, degeneracy means f ′(x 0 ) = 0, and we say that x 0 is a double root of f (x). Similarly, if f (j)(x 0 ) = 0 for j = 0,... , m − 1, then x 0 is a root

of multiplicity m. We will see that degeneracy can cause difficulties when trying to solve nonlinear equations.

Sensitivity

Recall that the absolute condition number of a function f (x) is approximated by |f ′(x)|. In solving a nonlinear equation in one dimension, we are trying to solve an inverse problem, where the forward problem is the evaluation of f at x = 0. It follows that the condition number for solving f (x) = 0 is approximately 1/|f ′(x 0 )|, where x 0 is the solution. This discussion can be generalized to higher dimensions, where the condition number is measured using the norm of the Jacobian.

The Bisection Method

Suppose that f (x) is a continuous function that changes sign on the interval [a, b]. Then, by the Intermediate Value Theorem, f (x) = 0 for some x ∈ [a, b]. How can we find the solution, knowing that it lies in this interval? The method of bisection attempts to reduce the size of the interval in which a solution is known to exist. Suppose that we evaluate f (m), where m = (a + b)/2. If f (m) = 0, then we are done. Otherwise, f must change sign on the interval [a, m] or [m, b], since f (a) and f (b) have different signs. Therefore, we can cut the size of our search space in half, and continue this process until the interval of interest is sufficiently small, in which case we must be close to a solution. The following algorithm implements this approach.

Algorithm (Bisection) Let f be a continuous function on the interval [a, b] that changes sign on (a, b). The following algorithm computes an approximation p∗^ to a number p in (a, b) such that f (p) = 0.

for j = 1, 2 ,... do pj = (a + b)/ 2 if f (pj ) = 0 or b − a is sufficiently small then p∗^ = pj return p∗ end if f (a)f (pj ) < 0 then b = pj else a = pj end end

a b m = (a + b)/ 2 f (m)

  • 1 2 1.5 −
  • 1.5 2 1.75 0.
  • 1.5 1.75 1.625 0.
  • 1.5 1.625 1.5625 −
  • 1.5625 1.625 1.59375 −
  • 1.59375 1.625 1.609375 −
  • 1.609375 1.625 1.6171875 −
  • 1.6171875 1.625 1.62109325
  • 1.6171875 1.62109325 1.619140625
  • 1.6171875 1.619140625 1.6181640625
  • golden ratio. The correct solution, to ten decimal places, is 1.6180339887, which is the number known as the