A quadratic function has a vertex at (2,5) and passes through the point (4,9).

What is the correct algorithm for finding an equation for the quadratic function?