how to determine a polynomial function from a graph