SlideShare une entreprise Scribd logo
1  sur  18
By: ZAHRA SAMAN
In 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 developed independently of
New Secant method is considered to be the most
effective approach to find the root of a non-linear
function. It is a generalized from the Newton-Raphson
method and does not require obtaining the derivatives
of the function. So, this method is generally used as an
alternative to Newton Raphson method.ton's method
and predates it by over 3000 years.
No. of initial guesses –
Type – open bracket
Rate of convergence – faster
Convergence – super linear
Accuracy – good
Approach – interpolation
Programming effort – tedious
1.Start
2. Get values of x0, x1 and e *Here x0 and x1 are the two
initial guesses e is the stopping criteria, absolute error
or the desired degree of accuracy*
3. Compute f(x0) and f(x1)
4. Compute x2 = [x0*f(x1) – x1*f(x0)] / [f(x1) – f(x0)]
5. Test for accuracy of x2 If [ (x2 – x1)/x2 ] > e, *Here [ ]
is used as modulus sign* then assign x0 = x1 and x1 = x2
go to step 4 Else, go to step 6
6. Display the required root as x2.
7. Stop
Starting with initial values x0 and x1, we construct a
line through the points (x0, f(x0)) and (x1, f(x1))
Assume x0 and x1 to be the initial guess values, and
construct a secant line to the curve through (x0, f(x0))
and (x1, f(x1)). The equation of this secant line is given
by
If x be the root of the given equation, it must satisfy:
f(x) = 0 or y= 0. Substituting y = 0 in the above
equation, and solving for x, we get:
Now, considering this new x as x2, and repeating the
same process for x2, x3, x4, . . . . we end up with the
following expressions:
this is the required formula which can also be used in
matlab.
The iterates xn of the secant method converge to a root of f, if
the initial values x0 and x1 are sufficiently close to the root. The
order of convergence is φ, where
In particular, the convergence is superlinear, but not quite
quadratic. This result only holds under some technical
conditions, namely that f be twice continuously differentiable
and the root in question be simple. If the initial values are not
close enough to the root, then there is no guarantee that the
secant method converges. For example, if f is differentiable on
that interval and there is a point where f’=0 on the interval,
then the algorithm may not converge
The secant method does not always converge. The
false position method (or regula falsi) uses the same
formula as the secant method. However, it does not
apply the formula on (xn-1) and (xn-2), like the secant
method, but on (xn-1) and on the last iterate xk such
that f(xk) and f(xn1) have a different sign. This means
that the false position method always converges. The
recurrence formula of the secant method can be
derived from the formula for Newton's method
If we compare Newton's method with the secant method,
we see that Newton's method converges faster (order 2
against φ ≈ 1.6). However, Newton's method requires the
evaluation of both f and its derivative f’ at every step, while
the secant method only requires the evaluation of f.
Therefore, the secant method may occasionally be faster in
practice.
For instance, if we assume that evaluating f takes as much
time as evaluating its derivative and we neglect all other
costs, we can do two steps of the secant method
(decreasing the logarithm of the error by a factor φ 2 ≈ 2.6)
for the same cost as one step of Newton's method
(decreasing the logarithm of the error by a factor 2), so the
secant method is faster. If, however, we consider parallel
processing for the evaluation of the derivative, Newton's
method proves its worth, being faster in time, though still
spending more steps.
BROYDEN’S METHOD is a generalization of the
secant method to more than one dimension The
following graph shows the function f in red and the
last secant line in bold blue. In the graph, the x
intercept of the secant line seems to be a good
approximation of the root of f
As an example of the secant method, suppose we wish
to find a root of the function:
f(x) = cos(x) + 2 sin(x) + x 2 we use a numerical
technique. We will use x0 = 0 and x1 = -0.1 as our initial
approximations. We will let the two values εstep =
0.001 and εabs = 0.001 and we will halt after a
maximum of N = 100 iterations. We will use four
decimal digit arithmetic to find a solution and the
resulting iteration is shown in Table 1.
Table 1. The secant method applied to
f(x) = cos(x) + 2 sin(x) + x 2 .
1. It converges at faster than a linear rate, so that it is
more rapidly convergent than the bisection
method.
2. It does not require use of the derivative of the
function, something that is not available in a
number of applications.
3. It requires only one function evaluation per
iteration, as compared with Newton’s method
which requires two.
1. It may not converge.
2. There is no guaranteed error bound for the
computed iterates.
3. It is likely to have difficulty if f0 (α) = 0. This
means the x-axis is tangent to the graph of y = f(x)
at x = α
4. Newton’s method generalizes more easily to new
methods for solving simultaneous systems of
nonlinear equations.
1. The method fails to converge when f(xn) = f(xn-1)
2. If X-axis is tangential to the curve, it may not
converge to the solution.
Secant method

Contenu connexe

Tendances

False Point Method / Regula falsi method
False Point Method / Regula falsi methodFalse Point Method / Regula falsi method
False Point Method / Regula falsi methodNasima Akhtar
 
Numerical Differentiation and Integration
 Numerical Differentiation and Integration Numerical Differentiation and Integration
Numerical Differentiation and IntegrationMeenakshisundaram N
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodJayesh Ranjan
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationSunny Chauhan
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson MethodJigisha Dabhi
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodBijay Mishra
 
Newton Raphson Method
Newton Raphson MethodNewton Raphson Method
Newton Raphson MethodBarkha Gupta
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation Meet Patel
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi methodandrushow
 
Bisection method in maths 4
Bisection method in maths 4Bisection method in maths 4
Bisection method in maths 4Vaidik Trivedi
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) MethodIsaac Yowetu
 
Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equationsRifat Rahamatullah
 
Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iterationIsaac Yowetu
 
The False-Position Method
The False-Position MethodThe False-Position Method
The False-Position MethodTayyaba Abbas
 

Tendances (20)

False Point Method / Regula falsi method
False Point Method / Regula falsi methodFalse Point Method / Regula falsi method
False Point Method / Regula falsi method
 
Bisection method
Bisection methodBisection method
Bisection method
 
Numerical Differentiation and Integration
 Numerical Differentiation and Integration Numerical Differentiation and Integration
Numerical Differentiation and Integration
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
The newton raphson method
The newton raphson methodThe newton raphson method
The newton raphson method
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Newton Raphson Method
Newton Raphson MethodNewton Raphson Method
Newton Raphson Method
 
Interpolation
InterpolationInterpolation
Interpolation
 
Secant method
Secant methodSecant method
Secant method
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 
Bisection method
Bisection methodBisection method
Bisection method
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi method
 
Bisection method in maths 4
Bisection method in maths 4Bisection method in maths 4
Bisection method in maths 4
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) Method
 
Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
 
Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iteration
 
The False-Position Method
The False-Position MethodThe False-Position Method
The False-Position Method
 

Similaire à Secant method

Newton paper.docx
Newton  paper.docxNewton  paper.docx
Newton paper.docxnitmor1
 
B02110105012
B02110105012B02110105012
B02110105012theijes
 
The International Journal of Engineering and Science (The IJES)
 The International Journal of Engineering and Science (The IJES) The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlabsheetslibrary
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlabZunAib Ali
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...mathsjournal
 
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...mathsjournal
 
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...Stephen Faucher
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...mathsjournal
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSfenil patel
 
83662164 case-study-1
83662164 case-study-183662164 case-study-1
83662164 case-study-1homeworkping3
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...mathsjournal
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsMileacre
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsMileacre
 

Similaire à Secant method (20)

Newton paper.docx
Newton  paper.docxNewton  paper.docx
Newton paper.docx
 
B02110105012
B02110105012B02110105012
B02110105012
 
The International Journal of Engineering and Science (The IJES)
 The International Journal of Engineering and Science (The IJES) The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlab
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlab
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
Calc 3.8
Calc 3.8Calc 3.8
Calc 3.8
 
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
 
S3-3.pdf
S3-3.pdfS3-3.pdf
S3-3.pdf
 
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
 
OPERATIONS RESEARCH
OPERATIONS RESEARCHOPERATIONS RESEARCH
OPERATIONS RESEARCH
 
Newton
NewtonNewton
Newton
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
Lecture6
Lecture6Lecture6
Lecture6
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
 
83662164 case-study-1
83662164 case-study-183662164 case-study-1
83662164 case-study-1
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 

Dernier

Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Silpa
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxSuji236384
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIADr. TATHAGAT KHOBRAGADE
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfSumit Kumar yadav
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticssakshisoni2385
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformationAreesha Ahmad
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Serviceshivanisharma5244
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxRenuJangid3
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Silpa
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .Poonam Aher Patil
 
Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Silpa
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professormuralinath2
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)Areesha Ahmad
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusNazaninKarimi6
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)Areesha Ahmad
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceAlex Henderson
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Silpa
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryAlex Henderson
 

Dernier (20)

Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
Chemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdfChemistry 5th semester paper 1st Notes.pdf
Chemistry 5th semester paper 1st Notes.pdf
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptx
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.Selaginella: features, morphology ,anatomy and reproduction.
Selaginella: features, morphology ,anatomy and reproduction.
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
 
GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)GBSN - Microbiology (Unit 3)
GBSN - Microbiology (Unit 3)
 
development of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virusdevelopment of diagnostic enzyme assay to detect leuser virus
development of diagnostic enzyme assay to detect leuser virus
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
FAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical ScienceFAIRSpectra - Enabling the FAIRification of Analytical Science
FAIRSpectra - Enabling the FAIRification of Analytical Science
 
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 

Secant method

  • 2. In 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 developed independently of New Secant method is considered to be the most effective approach to find the root of a non-linear function. It is a generalized from the Newton-Raphson method and does not require obtaining the derivatives of the function. So, this method is generally used as an alternative to Newton Raphson method.ton's method and predates it by over 3000 years.
  • 3. No. of initial guesses – Type – open bracket Rate of convergence – faster Convergence – super linear Accuracy – good Approach – interpolation Programming effort – tedious
  • 4. 1.Start 2. Get values of x0, x1 and e *Here x0 and x1 are the two initial guesses e is the stopping criteria, absolute error or the desired degree of accuracy* 3. Compute f(x0) and f(x1) 4. Compute x2 = [x0*f(x1) – x1*f(x0)] / [f(x1) – f(x0)] 5. Test for accuracy of x2 If [ (x2 – x1)/x2 ] > e, *Here [ ] is used as modulus sign* then assign x0 = x1 and x1 = x2 go to step 4 Else, go to step 6 6. Display the required root as x2. 7. Stop
  • 5.
  • 6. Starting with initial values x0 and x1, we construct a line through the points (x0, f(x0)) and (x1, f(x1)) Assume x0 and x1 to be the initial guess values, and construct a secant line to the curve through (x0, f(x0)) and (x1, f(x1)). The equation of this secant line is given by If x be the root of the given equation, it must satisfy: f(x) = 0 or y= 0. Substituting y = 0 in the above equation, and solving for x, we get:
  • 7. Now, considering this new x as x2, and repeating the same process for x2, x3, x4, . . . . we end up with the following expressions: this is the required formula which can also be used in matlab.
  • 8. The iterates xn of the secant method converge to a root of f, if the initial values x0 and x1 are sufficiently close to the root. The order of convergence is φ, where In particular, the convergence is superlinear, but not quite quadratic. This result only holds under some technical conditions, namely that f be twice continuously differentiable and the root in question be simple. If the initial values are not close enough to the root, then there is no guarantee that the secant method converges. For example, if f is differentiable on that interval and there is a point where f’=0 on the interval, then the algorithm may not converge
  • 9. The secant method does not always converge. The false position method (or regula falsi) uses the same formula as the secant method. However, it does not apply the formula on (xn-1) and (xn-2), like the secant method, but on (xn-1) and on the last iterate xk such that f(xk) and f(xn1) have a different sign. This means that the false position method always converges. The recurrence formula of the secant method can be derived from the formula for Newton's method
  • 10. If we compare Newton's method with the secant method, we see that Newton's method converges faster (order 2 against φ ≈ 1.6). However, Newton's method requires the evaluation of both f and its derivative f’ at every step, while the secant method only requires the evaluation of f. Therefore, the secant method may occasionally be faster in practice. For instance, if we assume that evaluating f takes as much time as evaluating its derivative and we neglect all other costs, we can do two steps of the secant method (decreasing the logarithm of the error by a factor φ 2 ≈ 2.6) for the same cost as one step of Newton's method (decreasing the logarithm of the error by a factor 2), so the secant method is faster. If, however, we consider parallel processing for the evaluation of the derivative, Newton's method proves its worth, being faster in time, though still spending more steps.
  • 11. BROYDEN’S METHOD is a generalization of the secant method to more than one dimension The following graph shows the function f in red and the last secant line in bold blue. In the graph, the x intercept of the secant line seems to be a good approximation of the root of f
  • 12.
  • 13. As an example of the secant method, suppose we wish to find a root of the function: f(x) = cos(x) + 2 sin(x) + x 2 we use a numerical technique. We will use x0 = 0 and x1 = -0.1 as our initial approximations. We will let the two values εstep = 0.001 and εabs = 0.001 and we will halt after a maximum of N = 100 iterations. We will use four decimal digit arithmetic to find a solution and the resulting iteration is shown in Table 1. Table 1. The secant method applied to f(x) = cos(x) + 2 sin(x) + x 2 .
  • 14.
  • 15. 1. It converges at faster than a linear rate, so that it is more rapidly convergent than the bisection method. 2. It does not require use of the derivative of the function, something that is not available in a number of applications. 3. It requires only one function evaluation per iteration, as compared with Newton’s method which requires two.
  • 16. 1. It may not converge. 2. There is no guaranteed error bound for the computed iterates. 3. It is likely to have difficulty if f0 (α) = 0. This means the x-axis is tangent to the graph of y = f(x) at x = α 4. Newton’s method generalizes more easily to new methods for solving simultaneous systems of nonlinear equations.
  • 17. 1. The method fails to converge when f(xn) = f(xn-1) 2. If X-axis is tangential to the curve, it may not converge to the solution.