The foci of the hyperbola is and
.
Since - coordinates of the foci are same the transverse axis of the hyperbola is vertical.
Standard form of vertical hyperbola equation is .
The center of the hyperbola is midpoint of and
.
Center of the hyperbola is .
Length of the conjugate axis of a hyperbola is .
.
The value of is the distance from a focus to the center.
.
.
Find the value of .
Substitute and
.
.
Substitute ,
and
in
.
Thus, equation of hyperbola is .
Equation of hyperbola is.