The vertices of the hyperbola is
and
.
Since
- coordinates of the vertices are same the transverse axis of the hyperbola is vertical.
Standard form of vertical hyperbola is
.
The center of the hyperbola is midpoint of vertices
and
.
Center of the hyperbola is
.
Length of the conjugate axis of a hyperbola is
units.

.
Distance between one of the vertices
and center
is
.
.
Substitute
,
and
in
.

Thus, equation of hyperbola is
.
Equation of hyperbola is
.