How to use Newton's method and graphical interpretation