Using the vertex form of a parabola f(x) = a(x - h)2 + k where (h,k) is the vertex of the parabola
The axis of symmetry is x = 0 so h also equals 0
Substitute each point from the parabola into the vertex form:
4 = a(1 - 0)2 + k
4 = a(1) + k
4 = a + k
7 = a(2 - 0)2 + k
7 = a(4) + k
7 = 4a + k
We know have a linear system:
4 = a + k
7 = 4a + k
Subtracting the two equations gives us:
-3 = -3a
a = 1
Substituting the a value into the first equation of the linear system:
4 = 1 + k
k = 3
f(x) = (x - 0)2 + 3
f(1) = 4 = (1 - 0)2 + 3 = 1 + 3
f(2) = 7 = (2 - 0)2 + 3 = 4 + 3
The equation of the parabola through the given points and axis of symmetry is
f(x) = (x - 0)2 + 3 = x2 + 3