Its working!  Very cool.  Question:  there are two visible zeros of the derivative.  One is a saddle point, between the two poles.  The other is the intersection of two red lines, and looks about symmetric about the origin with the other zero of the derivative.  It is not a saddle point.  What is the difference between these kinds of zeros?  How would the difference show up if we plotted the derivative of this function?