graph quadratic using vertex and factoring