Explanation:
Use these equations.
Equation of a Hyperbola, centered at orgin

where a is the major axis
B is the minor axis.
Since a and X are first, the x axis is the major.
This also means the x axis contains the vertices and foci as well.
The equation of vertices when x is major axis is

Since the vertices are (±1,0), and the orgin is (0,0). The length of a is 1.
So a=1.
The equation of foci is

Where c is formed by

We know that c is 2 since the distance from the foci and center is 2. A is 1, so let find b.




So our equation is

