Solve for a f(x)=a(x-h)^2+k