The curve represents a vertical ellipse with centre ,(h,k)= (5,7), length of major axis,2a=6 units , that gives a=3 and length of minor axis, 2b = 2 units, that gives b=1
The equation of vertical ellipse is

And on substituting the values of h,k , a and b, we will get

And that's the required equation .