Re: Secant method vs Newton's method



Schizoid Man wrote:
Hi,

Under what circumstances would I prefer the secant method to Newton's
method?

If you are not able to compute derivatives of the function, you cannot
use Newton's method (for instance -- you might have a function call
from a library, but you do not even know what the function is and hence
cannot determine the derivative).

If computation of derivatives is very expensive. Perhaps the
derivatives are far more complex than the function itself.

If you already have a change in sign for the domain that brackets the
root you are searching for and the problem will be solved in .0001
seconds by the Secant method anyway.

If the root in the interval you are searching for is a multiple root
(or roots that are very, very close together), then Newtion's method
may converge slowly.

If your intial guess is bad, Newton's method may not converge at all.
It may (on the other hand) draw pretty pictures:
http://spanky.triumf.ca/www/fractint/fractint.html

Newton's method converges much faster and the number of function calls
seem to be the same (if we assume the derivative is a function call).

Newton's method is not guaranteed to converge. You must have some
preconditions such as:
1. The function must be smooth and differentiable
2. Your initial guess must be 'close enough' to the actual root

There are times when the "horrible" binary search is better than either
of these methods (neither of which is guaranteed to converge, though
the secant method converges for every case that Newton's method does
and also for some that it doesn't converge.).

Interesting reading -- with a great deal of energy expended explaining
the diffences and similarities between Newton's method and the Secant
method:
http://www.cs.berkeley.edu/~wkahan/Math128/RealRoots.pdf

.



Relevant Pages

  • Re: Newtons method in a different-looking fortran
    ... The equation has a real root. ... For an algorithm that needs analytical derivatives, ... Weak batteries had a lot to do with it. ...
    (comp.lang.fortran)
  • Re: C Code for Solving Cubic Equation
    ... deserve much consideration but he did say "please" and giving a wrong ... "handy-dandy" TI83 calculator to graph the function and then "zoom in" ... x= 1.6911543 approximately is the only real root. ... calculus (and derivatives) you might be more comfortable with a very ...
    (sci.math.num-analysis)
  • Re: Eigenvalues of a Diagonally Dominant Real Matrix
    ... The assertion is true in general (ie. eigenvalues ... circles touch at the origin of the complex plane. ... always one positive real root. ... derivatives at -and p are unconditionally positive and therefore ...
    (sci.math)
  • a question about non - locality
    ... equation of the Schoedinger type ... because after expanding the root in Taylor series ... one gets all powers to infinity of the space derivatives. ...
    (sci.physics.research)
  • question about non-locality
    ... equation of the Schoedinger type ... because after expanding the root in Taylor series ... one get all powers to infinity of the space derivatives. ...
    (sci.physics)