0% found this document useful (0 votes)
84 views5 pages

Secant Method: Finding Roots Efficiently

The document discusses the secant method, an iterative root-finding algorithm that uses successive roots of secant lines to approximate roots of a function. It provides the formula used in the secant method and compares it to other root-finding methods like the bisection method and Newton's method. An example problem demonstrates applying the secant method to find the root of an equation. Instructions for implementing the secant method in Excel or LibreOffice are also provided.

Uploaded by

Dhynelle Muyco
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views5 pages

Secant Method: Finding Roots Efficiently

The document discusses the secant method, an iterative root-finding algorithm that uses successive roots of secant lines to approximate roots of a function. It provides the formula used in the secant method and compares it to other root-finding methods like the bisection method and Newton's method. An example problem demonstrates applying the secant method to find the root of an equation. Instructions for implementing the secant method in Excel or LibreOffice are also provided.

Uploaded by

Dhynelle Muyco
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ISAT U CEA

Chapter 9: Secant Method


OBJECTIVES:
After this chapter the student are expected to learn the easy and effective way in
finding the values of the unknown variables using the secant method and will learn how
to use secant method using excel or libre office.

DISCUSSION:
Secant method an iterative method for finding a root of the nonlinear equation. The /
f (x i )
derivative is sometimes difficult to evaluate by the computer program. It may be replaced
by a backward finite divided difference. Convergence is ultimately less rapid than for
Newton’s method, but it can be overall more efficient on some problems since derivatives
are not required.

f (x i )  f (x i 1 )
f / (x i ) 
x i  x i 1
Thus, the formula predicting the xi+1 is:

f ( xi )( xi 1  xi )
xi 1  xi 
f ( xi 1 )  f ( xi )

The Secant Method

• Requires two initial estimates of x, e.g, xo, x1. However, because f(x) is
not required to change signs between estimates, it is not classified as a
“bracketing” method.

• The scant method has the same properties as Newton’s method.


Convergence is not guaranteed for all xo, x1, f(x).

1|P a ge
ISAT U CEA

• In the numerical analysis, the secant method is a root finding algorithm


that uses a succession of roots of secant lines to better approximate a
root of a function f. the secant method can be thought of as a finite
difference approximation of Newton’s method. However, the method was
develop independently of Newton’s method and predates it by over 3,000
years

Comparison with other root-finding methods

The secant method does not require that the root remain bracketed like the
bisection method does, and hence it does not always converge

Comparison of the true percent relative

Errors Et for the methods to the determine

the root of f(x)=e-x-x

2|P a ge
ISAT U CEA

Comparison of convergence of False Position and Secant Methods

False Position Secant Method

f (x u )(x l  x u ) f (x i )(x i 1  x i )
x r  xu  x i 1  x i 
f (x l )  f (x u ) f (x i 1 )  f (x i )

Use two estimate xl and xu Use two estimate xi and xi-1

f(x) must changes signs between xl and f(x) is not required to change signs
xu between xi and xi-1

Xr replaces whichever of the original Xi+1 replace xi


values yielded a function value with the
Xi replace xi-1
same sign as f(xr)

Always converge May be diverge

Slower convergence than Secant in case If converges, It does faster then False
the secant converges. Position

SAMPLE PROBLEM:
1. Use the Secant method to find the root of e-x-x=0; f(x) = e-x-x and xi-1=0,
x0=1 to get x1 of the first iteration using:

f ( xi )( xi 1  xi )
xi 1  xi 
f ( xi 1 )  f ( xi )

iter xi-1 f(xi-1) xi f(xi) xi+1 et%

1 0 1 1 -0.63 0.613 8

3|P a ge
ISAT U CEA

2 1 -0.63 0.613 -0.07 0.564 0.58

3 0.613 -0.07 0.564 0.005 0.567 0.005

In excel or libre office first you need to type this format;

i xi f(xi) xi-1 f(xi-1) xi+1 f(xi+1) e


- -
0 1 0.63212 0 1 0.6127 0.07081 0.070814

The f(xi) is function of xi and e = absolute value of f(xi+1)

The next and final step in the 1st iteration xi = to xi-1 and xi-1 equals to xi+1 then drag
it down to get an answer shown below.

i xi f(xi) xi-1 f(xi-1) xi+1 f(xi+1) e


0 1 -0.63212 0 1 0.6127 -0.07081 0.070814
1 0 1 0.6127 -0.07081 0.572181 -0.00789 0.007888
2 0.6127 -0.07081 0.572181 -0.00789 0.567102 6.46E-05 6.46E-05
3 0.572181 -0.00789 0.567102 6.46E-05 0.567143 -5.9E-08 5.88E-08
4 0.567102 6.46E-05 0.567143 -5.9E-08 0.567143 -4.4E-13 4.39E-13
5 0.567143 -5.9E-08 0.567143 -4.4E-13 0.567143 0 0

And the answer is 0.567143

2. Use the false-position and secant method to find the root of f(x)=lnx. Start
computation with xl= xi-1=0.5, xu=xi = 5.

False position method

Iter xl xu xr
1 0.5 5.0 1.8546
2 0.5 1.8546 1.2163
3 0.5 1.2163 1.0585

4|P a ge
ISAT U CEA

Secant method

Iter xi-1 xi xi+1

1 0.5 5.0 1.8546

2 5 1.8546 -0.10438

APPLICATION:
1. Use the Secant method to find the root of; f(x) = (.05) (x)-sin(x) and xi-1=2.5, x0=2

2. Use the Secant method to find the root of f(x) = x^5-11^4+46^3-90^2+81x+27

3. Use the Secant method to find the root of f(x) = X^2-3

4. Use the Secant method to find the root of f(x) = X^2-4

5|P a ge

Common questions

Powered by AI

The Secant method's primary drawback compared to bracketing methods like the False Position method is that it does not guarantee convergence, as it does not require the root to remain bracketed. This means it can diverge if the initial estimates are not chosen carefully, whereas the False Position method always converges because it ensures the root remains bracketed by the estimates xi-1 and xi .

The Secant method might be preferable to the Newton-Raphson method for problems where computing the derivative of a function is difficult or computationally expensive. The Secant method uses an approximation of the derivative through finite differences rather than requiring its exact calculation, making it potentially more efficient in scenarios where derivative evaluation is problematic or costly. Additionally, since it uses two initial estimates, the Secant method can sometimes offer advantages in terms of convergence speed for certain functions where derivatives are not easily managed .

The Secant method is 'not classified as a bracketing method' because it does not require the function values at the endpoints of the interval to have opposite signs. Bracketing methods, like the False Position method, ensure the root of the function is contained within the interval being examined by keeping the endpoints at differing signs to ensure convergence. In contrast, the Secant method proceeds based on successive secant lines, without the constraint of keeping the root bracketed, which can lead to non-convergence or divergence without careful initial estimates .

The Secant method can be more efficient than Newton's method on some problems because it does not require the computation of derivatives, which can be computationally intensive or impossible for some functions. While the convergence of the Secant method is generally slower than Newton's method when both converge, the avoidance of derivative calculations can make each iteration faster, potentially reducing overall computational time and effort in scenarios where evaluating derivatives is costly or infeasible .

The reliability and convergence of the Secant method are significantly influenced by the choice of initial estimates. Since the method relies on two initial guesses, xi and xi-1, instead of bracketing the root, poor initial estimates can lead to non-convergence or divergence. If the starting values are close to the actual root, the method is more likely to converge efficiently. However, if they are too far from the root or chosen poorly, the method may fail to find the root or take numerous iterations, limiting its reliability in some contexts .

The Secant method differs from Newton's method in that it does not require the evaluation of derivatives. Instead, it uses finite differences to approximate them, making it potentially more efficient for problems where derivatives are difficult to evaluate. While both methods seek to approximate the root of a function, the Secant method uses a succession of secant lines and may converge more rapidly on some problems because it does not require the derivative .

The convergence of the Secant method can be a benefit because it might converge faster than methods like the False Position method when it does indeed converge. However, this same flexibility is a risk because the Secant method does not ensure the root is bracketed, which means there is no guaranteed convergence, and it may diverge if the chosen initial estimates are not close to the actual root. This dual nature makes the Secant method more efficient in certain cases but also more unpredictable .

To use the Secant method in Excel, one needs to follow a structured process by arranging the data strategically in the spreadsheet. First, list the initial estimates xi and xi-1 along with their corresponding function values f(xi) and f(xi-1). Calculate the next estimate xi+1 using the Secant formula. Continue iterating by updating xi to xi+1, xi-1 to xi, and recalculating f(xi+1) until convergence is reached, often indicated by the absolute difference e becoming negligible. This iterative process should be set up in a manner that allows dragging the cells down easily for continued computation .

The Secant method approximates the derivative using a backward finite divided difference. This approximation involves calculating the slope of the secant line between two successive points on the function, rather than using the tangent line as in Newton's method. This leads directly to the iterative formula used in the Secant method. The implications of this approximation are that while it generally makes the Secant method easier to implement and more widely applicable, it might result in slower convergence than Newton’s method because it uses an approximation rather than the exact derivative .

The main advantage of the Secant method is that it does not require the function's derivative, instead approximating it with finite differences, which can be beneficial for functions whose derivatives are difficult to compute. It can also converge faster than the False Position method if it converges at all. However, unlike the False Position method, the Secant method does not guarantee convergence because it does not ensure the root remains bracketed. Compared to Newton's method, the Secant method may be less accurate or slower per iteration because it is not using the exact derivative, but it can still be more efficient when derivative evaluation is not feasible .

You might also like