Write a quadratic function in the vertex form f(x)a(x-h)^2+k such that the graph of the function opens up and has a vertex at (-4,8) and contains the point (-7,17).