Graphical method of finding roots