Let there be two ellipses centered at the origin, and rotated angles $\alpha$ and $\alpha'$ from the x-coordinate axis. $a, b$ are the semiaxes of the first, $a',b'$ the semiaxes of the second, and the ratio $ab/a'b'$ is called $f$. The equations for both ellipses can be written: $$ \frac{(x\cos\alpha+y\sin\alpha)^2}{a^2}+\frac{(y\cos\alpha-x\sin\alpha)^2}{b^2}=1 $$ and $$ \frac{(x\cos\alpha+fy\sin\alpha)^2}{a^2}+\frac{(fy\cos\alpha-x\sin\alpha)^2}{b^2}=1 $$ Where the equation for the second ellipse is written for convenience as a function of the parameters $a,b, \alpha$.
Now in the text I am following I find that the semiaxes of the second ellipse, $a', b'$, can be obtained from the second equation above, using the relation: $$ \frac{1}{a'^2}+\frac{1}{b'^2}=\frac{\cos^2\alpha+f^2\sin^2\alpha}{a^2}+\frac{\sin^2\alpha+f^2\cos^2\alpha}{b^2} $$ However I don't have any clue were this last relation comes from. Any help is welcome!