Roots of Nonlinear Equations
Roots of Nonlinear Equations
x = 1.8593
Therefore, the root of the equation between 1.5 to 2.0 is taken as x= 1.8593 approximately.
a b
f(a) f(b) c (midpoint) f(c)
(lower limit) (upper limit)
1.0 2.0 -2.0 +1.0 1.5 -0.75 Check c:
* if f(a) * f(c) < 0 ;
1.50 2.0 -0.75 +1.0 1.75 0.0625
then a remains but b becomes c
1.50 1.75 -0.75 +0.0625 1.625 -0.3594 * if f(a) * f(c) > 0 ;
1.625 1.75 -0.3594 +0.0625 1.6875 -0.01523 then a becomes c and b remains
* if f(a) * f(c) = 0 ; then c is a root
1.6875 1.75 -0.1523 +0.0625 1.7188 -0.0459
x = 1.7344
Note that Bisection method cannot be applied to curves that are not intersecting the x-axis.
Engr. Cristy M. Malasan, MSCE
Instructor, COE
SECANT METHOD
Another method in determining roots of a non-linear function.
A root-finding method which utilizes the open method of delivering roots of a function using the se-
cant line.
It is basically Newton’s method without identifying the derivative at every iteration.
SECANT METHOD is used with function f(x) when the curve crosses the x-axis.
ALGORITHM:
1. Identify an initial interval such that the product of the function would be equal to zero.
2. The approximate value is computed as x0 = a0 - f(a0) [(b0 -a0)/(f(b0 ) - f(a0)]
3. Determine the next subinterval.
4, Repeat the process until the desired accuracy is achieved.
DERIVATION OF APPROXIMATE
Approximate is the convergence point in the curve.
Newton-Raphson
Method
Secant Method
xa xb f(xa) f(xb )
0 -0.1 1 0.8053
Example 2. Use Secant method to solve for the root of f(x) = x3 + 3sin(x) +4.
Using the iteration, the root of x = -1.099075