Summary notes - Finding roots
1. Why We Find Roots
A root of an equation is a value of π₯such that
π(π₯) = 0.
Many engineering problems reduce to this form (equilibrium, energy balances, flow
equations, etc.), but most real functions can’t be solved analytically—so we estimate the
root numerically.
Graphical Methods
Idea:
Plot the function π(π₯) and visually see where it crosses the x-axis.
Why Useful:
•
Quick sense of where roots may exist.
•
Good for detecting multiple roots or wild oscillations.
Caution I Emphasized:
•
Graphical methods do NOT give accurate roots. They are just for “locating
neighborhoods.”
•
A misleading plot range or poor resolution can make you miss a root completely.
Bracketing Methods
These methods require you to start with an interval [π, π]where
π(π) ⋅ π(π) < 0.
That means the function crosses zero somewhere inside.
2. Incremental Search (a crude bracketing tool)
Idea:
Walk along the x-axis in steps (e.g., βx = 0.1) until you notice a sign change.
Warnings:
Step size matters a LOT
•
If βx is too large, you might step over a root and never see the sign change.
•
If βx is too small, it wastes computation time.
Tangent roots
•
If the root touches the x-axis but doesn’t cross it (even multiplicity), then
π(π) ⋅ π(π) > 0
—so incremental search will miss it!
Discontinuous functions
•
A jump from +10 to –10 does not mean there's a root—just a discontinuity.
Be careful.
3. Bisection Method
Idea:
•
Start with a bracket [π, π] where the sign changes.
•
Cut the interval in half repeatedly.
Why It’s Nice:
•
Bisection always converges as long as the sign change exists.
•
Very robust.
Precision Estimate (What I emphasized!)
One of the coolest features:
After π bisections, the interval width is
π−π
.
2π
If you want a maximum error of π:
π−π
).
π ≥ log 2 (
π
You can estimate in advance how many steps you need to reach the desired accuracy.
Students really like this because it feels predictable.
4. False Position
Idea:
Similar to bisection, but instead of cutting the interval in half, you draw a straight line
between
(π, π(π)) and (π, π(π))
and use the intercept with the x-axis as the next estimate.
Caution I Emphasized:
Slow-slope issue:
If one side has a very shallow slope, the false-position method keeps choosing points near
the other side.
This means the bracket shrinks very slowly, and the method converges painfully slowly.
That’s its main drawback.
Open Methods
These do not require a bracketing interval.
They are typically faster but less stable.
5. Fixed-Point Iteration
Idea:
Rewrite
π(π₯) = 0
as
π₯ = π(π₯),
then iterate
π₯π+1 = π(π₯π ).
Key Concept:
You interpret the root as the intersection of the curves:
•
π¦ = π(π₯)
•
π¦=π₯
Cautions:
The method only converges if β£ π′ (π₯) β£< 1 at the root.
Students often forget this.
Divergence problem:
If the slope is steep or poorly behaved, the next guesses can spiral away from the line π¦ =
π₯.
Graphically, you bounce farther and farther from the intersection (see Figure 6.3 in
textbook).
6. Wegstein Method
An acceleration technique applied to fixed-point iterations.
Idea in simple terms:
•
It watches how the sequence of iterates is moving. Remember we use the
intersection of the line passing through two initial guesses and the y=x line rather
than projecting just one initial guess onto y=x.
•
It estimates a relaxation factor (amount of move towards the next guess) that can
“speed up” convergence. When you seem to know where you are going, instead of
taking the normal step, jump farther!
When useful:
•
Works well when fixed-point iteration is slowly converging but still stable.
Caution:
•
If applied blindly, an over-aggressive relaxation factor can actually destabilize the
iteration.
7. Newton–Raphson Method
Idea:
Use the tangent line (derivative) at the current point.
π₯π+1 = π₯π −
π(π₯π )
.
π ′ (π₯π )
Why Engineers Love It:
•
Fast (quadratic) convergence near the root.
•
Usually the go-to open method.
Warnings I Emphasized:
Needs the derivative, which isn’t always easy.
If the slope is very small (flat function),
π ′ (π₯π ) ≈ 0
→ the update becomes enormous → it jumps far away.
This can cause divergence or meaningless estimates.
If starting far from the root, Newton can “run wild.”
8. Secant Method
Idea:
A Newton-like method that replaces the derivative with a numerical approximation using
two past points (the finite divided difference which we'll discuss in full in Chapter 21):
π ′ (π₯) ≈
π(π₯π ) − π(π₯π−1 )
.
π₯π − π₯π−1
Then:
π₯π+1 = π₯π − π(π₯π ) ⋅
π₯π − π₯π−1
.
π(π₯π ) − π(π₯π−1 )
Why It’s Useful:
•
Doesn’t require symbolic derivatives.
•
Faster than bisection.
•
Often nearly as fast as Newton.
Cautions:
Using two points can confuse students—what is the “delta”?
The update isn’t simply “add a small step.”
Instead, the computed correction can be multiplied and added to the current guess,
making it look unintuitive.
Perturbation variation (“finite-difference Newton”)
Sometimes we compute
π ′ (π₯) ≈
π(π₯ + β) − π(π₯)
β
with a tiny β.
Why?
•
Because using a very small perturbation gives a more accurate derivative
estimate.
•
This can improve stability when the secant method is unstable.
In Summary — What I Emphasized the Most
β Graphical methods → just for locating candidate intervals.
β Bracketing methods → safe, reliable, but sometimes slow (false-position slope issue!).
β Bisection → predictable number of steps!
β Incremental search → easily misses roots based on step size.
β Fixed-point iteration → only converges when β£ π′ β£< 1; watch for divergence.
β Wegstein → speeds up fixed-point but can destabilize.
β Newton–Raphson → fast but sensitive to flat slopes.
β Secant and perturbation variation → derivative-free Newton; careful about interpreting
updates.