Source: https://nptel.ac.in/content/storage2/courses/103101111/downloads/Lecture-notes/module_5_solving_f(x)=0.pdf