It is well known that the equation $$\frac {(x\cos\alpha+y\sin\alpha)^2}{a^2}+\frac {(x\sin\alpha-y\cos\alpha)^2}{b^2}=1\tag{1}$$ (where $\beta\neq\alpha$) represents an ellipse centred at the origin with semimajor/minor axes $a,b$, and rotated by $\alpha$.
Question
The equation $$\frac {(x\cos\alpha+y\sin\alpha)^2}{a^2}+\frac {(x\sin\beta-y\cos\beta)^2}{b^2}=1\tag{2}$$ represents a rotated ellipse centred at the origin, but its semimajor/minor axes are no longer $a,b$.
How can this be transformed into a form similar to $(1)$, such that the semimajor/minor axes and angle of rotation can be easily determined?