Determine the points of inflections with trig