Finding x- and y-intercepts of the graph of a nonlinear equation