I have this task: Find equal expression to square root of fraction of x and its inverted value (this is translated from my mother tongue so I'm sorry if I've used incorrect terms). Anyway the starting point is clear reduce this:
$\sqrt{\frac{x}{x^{-1}}}$
The correct answer is $\lvert x\rvert$ and I don't know how to get there. It seems I am missing some correct thinking at the very last step.
So this is what I do (even the slightest mindsteps included):
$\sqrt{\frac{x}{x^{-1}}} = \sqrt{\frac{x}{\frac{1}{x}}} = \sqrt{\frac{\frac{x}{1}}{\frac{1}{x}}} = \frac{\sqrt{\frac{x}{1}}}{\sqrt{\frac{1}{x}}} = \frac{\frac{\sqrt{x}}{\sqrt{1}}}{\frac{\sqrt{1}}{\sqrt{x}}} = \frac{\frac{\sqrt{x}}{1}}{\frac{1}{\sqrt{x}}} = {\frac{\sqrt{x}}{1}}\cdot{\frac{\sqrt{x}}{1}} = \sqrt{x}\cdot\sqrt{x} = (\sqrt{x})^2 $ which I believe $=x$
OR
$\sqrt{\frac{x}{x^{-1}}} = \sqrt{\frac{x}{\frac{1}{x}}} = \sqrt{\frac{\frac{x}{1}}{\frac{1}{x}}} = \frac{\sqrt{\frac{x}{1}}}{\sqrt{\frac{1}{x}}} = \frac{\frac{x^\frac{1}{2}}{1}}{\frac{1}{x^\frac{1}{2}}} = {\frac{x^\frac{1}{2}}{1}}\cdot{\frac{x^\frac{1}{2}}{1}} = x^\frac{1}{2}\cdot x^\frac{1}{2} = x^{\frac{1}{2}+\frac{1}{2}} = x^1 = x $
If this is correct then how $(\sqrt{x})^2 \neq x$ and instead$(\sqrt{x})^2 =\lvert x\rvert$ ?
EDIT: so the answer is that this split $\sqrt{\frac{\frac{x}{1}}{\frac{1}{x}}} = \frac{\sqrt{\frac{x}{1}}}{\sqrt{\frac{1}{x}}}$ is forbidden since it is valid for positive x only. And x is unknown. What I should have done is this less fancy but correct $\sqrt{\frac{\frac{x}{1}}{\frac{1}{x}}} = \sqrt{{\frac{x}{1}}\cdot{\frac{x}{1}}} = \sqrt{{x}\cdot{x}} = \sqrt{x^2}$ which indeed is $\lvert x\rvert$