Back in school we were taught that the equation for hyperbola is: $$y=\frac1x \tag1$$ The equation used in the university is different: $$\frac{x^2}{a^2}-\frac{y^2}{b^2}=1 \tag2$$
I can't understand how they are the same and how to get one from another.
What is the relation between these two forms?
$$xy=1~~~~(1)$$ is rectangular hyperbola but $$\frac{x^2}{a^2}-\frac{y^2}{b^2}=1~~~~(2)$$ is more standard hyperbola.
Interestingly, (2) can also be written as $$XY=1, X=\frac{x}{a}-\frac{y}{b}, Y=\frac{x}{a}+\frac{y}{b}~~~(3)$$ in the transformed co-ordinate system.
EDIT: We can write $$\begin{bmatrix} X \\ Y \end{bmatrix}=(ab)^{-1} \begin{bmatrix} b & -a \\ b & a \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}$$ This transformation matrix can be belated to the rotataion matrix: $$\begin{bmatrix} \cos \theta & -\sin \theta \\ \sin\theta & \cos\theta\end{bmatrix}.$$ in a special case.