Source: https://www.math.ubc.ca/~anstee/math104/104newtonmethod.pdf