Numerical Methods
Roots of Nonlinear Equations
Institution: PAMANTASAN NG LUNGSOD NG MAYNILA
Department: College of Engineering and Technology (CET)
Instructor: Engr. Reynaldo Ted L. Peñas II, MScEngg
Introduction to Roots of Nonlinear Equations
The goal is to find the solutions of the equation where the function is defined.
The solutions (values of ) are known as the roots of the equation or the zeroes of the function .
Nature of Roots
Types of Roots
Roots or zeroes may be:
Real: Actual numerical values on the real number line.
Complex: Often computed in polynomials relating to applications such as damped vibrations (seldom significant in practical computations).
The approximate locations of the roots can be effectively estimated by plotting the function.
Extraction of Roots
Key Points to Consider
All methods of finding roots are iterative procedures that begin with a starting point (an initial estimate of the root).
An initial estimate is crucial:
A poor choice may lead to failure to converge or converge to the “wrong” root.
Stopping Criteria for Iterative Methods
Criteria for stopping iterations based on errors:
Identify actual error versus significant error:
= estimated root in the current iteration
= estimated root in the last iteration
= number of significant figures
Methods for Finding Roots of Nonlinear Equations
Various methods include:
Direct or Incremental Search Method
Interval-Halving Method
Method of False-Position
Newton-Raphson 1st Method
Newton-Raphson 2nd Method
Secant Method
Fixed-Point Iteration
Bairstow’s Method
Direct or Incremental Search Method
Description
If and have opposite signs, then at least one root exists in the interval .
A small enough interval likely contains a single root.
Zeroes can be detected by evaluating the function at various points and looking for a change in sign.
Algorithm
Estimate the initial interval bounding the root (where and must be opposite signs).
Evaluate and .
Check the product of :
If positive: Set as a new lower bound ().
If negative: Estimate a smaller and generate a new .
Repeat steps 2 & 3 until stopping criteria satisfied.
Example
Test Function:
Initial estimates: , ,
Simulation of Iterations
Iteration (i) | Root | Function | ||||||
|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 0.5 | 1.5 | -0.17242 | 0.15239 | - | |
2 | 1 | 1 | 0.25 | 1.25 | -0.17242 | -0.02882 | + | |
3 | 1.25 | 1.25 | 0.25 | 1.5 | -0.02882 | 0.15239 | - | |
… | … | … | … | … | … | … | … | … |
10 | … | … | … | … | … | … | … |
Bisection Method of Bolzano
Description
The method is based on the principle that if there is a root in the interval , then f(x1) f(x2) < 0.
To halve the interval, compute , where is the midpoint.
Depending on the sign of :
If negative, root lies in , so replace with .
If positive, root lies in , so replace with .
Algorithm
Estimate initial interval bounding the root (where and must be opposite signs).
Compute (the midpoint): .
Evaluate , , and .
Check the product of :
If positive: Define as the new lower bound ().
If negative: Define as the new upper bound ().
Repeat steps 3 & 4 until stopping criteria satisfied.
Example
Test Function:
Initial estimates: , ,
Simulation of Iterations
Iteration (i) | Root | Function | |||||||
|---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1.5 | 1.25 | -0.17242 | 0.15239 | -0.02882 | + | |
2 | 1 | 1.25 | 1.5 | 1.375 | -0.02882 | 0.15239 | 0.05829 | - | |
3 | 1.25 | 1.25 | 1.375 | 1.3125 | -0.02882 | 0.05829 | 0.01371 | - | |
… | … | … | … | … | … | … | … | … | … |
Method of False Position (Regula Falsi)
Description
Similar to bisection, this method starts with an interval believed to contain the solution for .
It approximates the curve of within the interval via a straight line connecting and . The intersection of this line with the x-axis gives a new approximation for the root.
Algorithm
Estimate the initial interval bounding the root.
Compute for new root where .
Evaluate , , and .
Check the product of :
If positive: Define as the new lower bound ().
If negative: Define as the new upper bound ().
Repeat steps 3 & 4 until stopping criteria satisfied.
Example
Test Function:
Initial estimates: , ,
Simulation of Iterations
Iteration (i) | Root | Function | |||||||
|---|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1.5 | 1.26542 | -0.17242 | 0.15239 | -0.01853 | + | |
2 | 1 | 1.26542 | 1.5 | 1.29085 | -0.01853 | 0.15239 | -0.00127 | + | |
3 | 1 | 1.29085 | 1.5 | 1.29257 | -0.00127 | 0.15239 | -0.00008 | + | |
… | … | … | … | … | … | … | … | … | … |
Newton-Raphson 1st Method (Method of Tangents)
Description
This is a notable method for finding roots due to its simplicity and speed.
The method's drawback is that it requires the derivative of the function along with the function itself.
It is derived from the Taylor Series expansion.
/
Algorithm
Estimate the initial root approximation .
Compute new root where: .
Evaluate both and .
Repeat steps 2 & 3 until stopping criteria satisfied.
Example
Test Function:
Initial estimate:
Corresponding derivative:
First iteration gives:
Simulation of Iterations
Iteration (i) | Root | Function | |||||
|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1.36408 | -0.17242 | 0.47359 | 0.05036 | |
2 | 1 | 1.36408 | 1.29442 | 0.05036 | 0.72309 | 0.00119 | |
3 | 1 | 1.29442 | 1.29270 | 0.00119 | 0.68800 | 0.00000 | |
… | … | … | … | … | … | … | … |
Newton-Raphson 2nd Method
Description
This method is calculus-based and derived from the first method, utilizing truncated Taylor’s series expansion.
It employs both 1st and 2nd order derivatives to enhance the root approximation of .
Algorithm
Estimate the initial root approximation .
Compute new root : .
Evaluate and .
Repeat steps 2 & 3 until stopping criteria satisfied.
Example
Test Function:
Initial estimate:
Derivatives: ,
First iteration gives:
Simulation of Iterations
Iteration (i) | Root | Function | ||||||
|---|---|---|---|---|---|---|---|---|
1 | 1 | 1 | 1.26987 | -0.17242 | 0.47359 | -0.01554 | ||
2 | 1 | 1.26987 | 1.29269 | -0.01554 | 0.67419 | 0.57728 | ||
3 | 1 | 1.29269 | … | … | … | … | … |
Secant Method
Description
The Secant Method does not involve derivative calculations but converges rapidly, similar to Regula Falsi.
It utilizes two initial points.
Algorithm
Estimate two initial points and .
Evaluate and .
Compute new root : .
The current will be transferred to the previous for the next iteration.
Repeat steps 2 & 3 until stopping criteria satisfied.
Example
Test Function:
Initial estimates: ,
First iteration gives:
Simulation of Iterations
Iteration (i) | Root | Function | ||||||
|---|---|---|---|---|---|---|---|---|
1 | 1 | 0.5 | 1 | 1.87410 | -0.27105 | -0.17242 | 0.45217 | |
2 | 1 | 1 | 1.87410 | 1.24130 | -0.17242 | 0.45217 | -0.03456 | |
3 | 1 | 1.87410 | 1.24130 | 1.28623 | 0.45217 | -0.03456 | -0.00443 | |
… | … | … | … | … | … | … | … | … |
Fixed-Point Iteration
Description
Also known as Picard iteration, this method attempts to establish an auxiliary function from to find the root such that . The auxiliary form is: .
The method's convergence does not greatly depend on its initial estimate as long as the fixed point exists in the interval .
Example
Equation:
The equivalent representation:
Auxiliary function becomes: .
Simulation of Iterations
Iteration (i) | Root | Function | ||
|---|---|---|---|---|
1 | 0 | 0 | 1.81712 | |
2 | 1.81712 | 1.81712 | 1.98464 | |
3 | 1.98464 | 1.98464 | 1.99872 | |
… | … | … | … | … |
Bairstow's Method
Description
This method addresses special issues with polynomials that have complex roots, allowing the extraction of quadratic factors using only real arithmetic.
When polynomials with real coefficients have complex roots, these occur in conjugate pairs corresponding to a quadratic factor of polynomial .
Algorithm
Initiate: Consider the general nth-degree polynomial .
Factor out the quadratic: .
Set up a system of equations and compute coefficients iteratively until convergence of factors and occurs.
Once the quadratic factor is determined, roots are extracted two at a time; the polynomial reduces by two degrees enabling repetition of the method.
Example
Initial guesses for and : , .
Iteration Steps to Find Coefficients
Begin with coefficients stored in arrays created by preceding values.
Conduct iterations to compute values and noting adjustments for and .
Conclusion
Document strategies and algorithms underpinning roots of nonlinear equations, with detailed simulations showcasing iterative methods and practical examples to illuminate their application in engineering and computational contexts.