Numerical Methods · Numerical Methods
Methods for Solving Nonlinear Equations
Explanation
The Basic Question — What Is a Root of a Function?
Many engineering and scientific problems reduce to the question: **for which does ?** The roots (solutions) are the values of that satisfy this equation.
Examples:
- Bridge resonance: (rewritten as )
- Chemical equilibrium: — leads to a polynomial of degree 2 or higher
- Compound interest: — solve for unknown
Linear equations have explicit formulas. Nonlinear ones generally do not. Hence we use iterative numerical methods.
Graphical Method — First Look
The simplest approach: plot the graph of and find where it crosses the -axis.
Advantage: intuitive, helps identify how many roots exist.
Limitation: does not provide accuracy and is not automatic.
In practice, the graph is used to initialize — to identify an interval containing a root, before applying a more efficient method.
Bisection Method — Halve, Halve, Halve
Assumption: is continuous on and (by the Intermediate Value Theorem, a root exists in ).
Algorithm:
1. Compute midpoint
2. Check the sign of :
- If — exact root found
- If — root is in , set
- Otherwise — root is in , set
3. Repeat until the interval length is below the desired accuracy
**Error after iterations:**
Strengths: guaranteed to converge (given the IVT condition), simple to implement.
Weakness: slow — linear convergence, since the error only halves each step.
Newton-Raphson Method — The Power of the Derivative
Idea: near a root, is approximated by its tangent line at . The zero of that tangent line gives the next iterate .
From the derivative: , yielding:
Advantage: quadratic convergence at a simple root — if the error at iteration is , then . In practice, the number of correct digits roughly doubles every iteration!
Limitation: requires ; can diverge if ; no guaranteed convergence — depends on the starting point.
Secant Method — Approximating the Derivative
When computing is expensive or impossible, we approximate it:
Substituting into Newton-Raphson:
Order of convergence: (golden ratio) — faster than linear but slower than quadratic.
Fixed-Point Iteration
Another approach: rewrite as and look for a fixed point:
Sufficient convergence condition: if near the root, the iteration converges.
Example: . Newton-Raphson is a special case of fixed-point iteration with .
Method Comparison
| Method | Requirements | Convergence Order | Cost per Iteration |
|---|---|---|---|
| Bisection | continuous, sign change | (linear) | one evaluation |
| Newton-Raphson | available | (quadratic) | one and one |
| Secant | available | two evaluations |
In practice, Newton-Raphson is preferred when the derivative is available and a good starting point is known. Bisection is used as a "safety net" — it always converges.
Interactive Visualization
Loading visualization
Worked Examples
Practice
Exercise 1 of 6
1
Apply the first bisection step to on . What is the midpoint ?
★Quiz
Test your knowledge from this lesson
A mix of questions from the lesson — each attempt varies slightly
Answer at least 4 out of 5 questions correctly to pass (70%)