I would like to prove the following equality $$\sqrt{\frac{x+1}{x^3-x^2}}=\frac{\frac1x+1}{\sqrt{x^2-1}}$$
It is tempting to square both sides of the equation and it is not hard to verify that they are equal. Then, I realized that by squaring the equation I may have altered the original equality and the proof is not really valid.
How do I then show properly that the equation holds?
In order to check equality of \begin{align*} \color{blue}{\sqrt{\frac{x+1}{x^3-x^2}}=\frac{\frac1x+1}{\sqrt{x^2-1}}}\tag{1} \end{align*} we must first determine the range of validity.
Left-hand side:
Right-hand side:
Region of validity:
We see the left-hand side of (1) is valid for $x=-1$, leading to zero, while the right-hand side is undefined in case $x=-1$. The region of validity is the intersection of the regions from both sides which is \begin{align*} \color{blue}{x\in\mathbb{R}\setminus[-1,1]}\tag{2} \end{align*}
Equality check:
Comment:
In (3.1) we use $\frac{x+1}{x}=\frac{|x+1|}{|x|}$ for $x\in\mathbb{R}\setminus[-1,1]$.
In (3.2) we use the identity $\sqrt{x^2}=|x|$.