Source: https://people.math.sc.edu/meade/141L-F04/labs/NewtonMethod.pdf