Skip to content

Newton's method

Newton's method is an algorithm to find the real zeros of a function with the derivative of the function to find its roots.

Newton's method representation

Algorithm

Each new value are found with the following equation:

xn+1=xnf(xn)f(xn)

xn is the initial guess, xn+1 is the next guess

The derivative can be approximated by the secant method:

f(xn)=f(xn)f(xn1)xnxn1

n-dimensions

Newton's method can be used with a multi-variable function. We need for that to use derivative matrix

Read more here.

Failures

  • If x=0, it's a zero-divison. We need to change our x1 value
  • Sometimes, if the initial guess is too far, and depending of the function, the algorithm may find the answer slowly or not at all.