Professional Documents
Culture Documents
The Secant Method - HW1 - 010200412
The Secant Method - HW1 - 010200412
The Secant Method - HW1 - 010200412
010200412
f( x 0 ¿
f( x 1 ¿
r is the desired root that lies near point x 1 and x 0. The main idea of the Secant Method is to
approximate the curve with a straight line -which is assumed to be the secant line which connects
the two points ( x 0, f( x 0)) and ( x 1, f( x 1))- for x between the values of x 0 and r. The secant line and
the new root estimate are shown in red in the following representation:
Talya Timoçin
010200412
is closer to the root r than either x 1 or x 0 . If we were to repeat the process we can very easily
see that x 3 would be even closer to the root as shown below in green.
f ( x 1 )−f ( x 0)
To obtain x 2, the equation of the red line can be obtained. Its slope m is equal to .
x 1−x 0
f ( x 1 )−f ( x 0 )
Thus its equation is: y−f ( x 0 )= ( x−x 0).
x 1−x 0
f ( x 1 )−f ( x 0 )
Where x=x 2, ¿ 0 ; −f ( x 0 ) = ( x 2−x 0 ).
x 1−x 0
And if the equation is solved for x 2, the end result is the iteration formula:
x 1−x 0
x 2=x 1− f ( x0)
f ( x 1 )−f ( x0 )
References:
https://www.geeksforgeeks.org/secant-method-of-numerical-analysis/
https://byjus.com/maths/secant-method/
pp. 220–221. ISBN 0-13-623603-0
Talya Timoçin
010200412
Allen, Myron B.; Isaacson, Eli L. (1998). Numerical analysis for applied science. John
The following pictures are results obtained from python for the equations:
(b) f(x) = x2 − 5x + 2
Talya Timoçin
010200412