Is there any difference in the two functions, It is given that they are defined for all real $x$ except $x=0$
Is it somehow similar to the fact that functions $\sin x/\sin x$ and $1$ aren't the same?
Is there any difference in the two functions, It is given that they are defined for all real $x$ except $x=0$
Is it somehow similar to the fact that functions $\sin x/\sin x$ and $1$ aren't the same?
Assuming the functions you described are both maps from $\mathbb{R} - \{ 0 \}$ to $\mathbb{R}$, then they are the same. We can show this by considering an arbitrary $x \in \mathbb{R} - \{ 0 \}$. There are two cases: $x > 0$ or $x < 0$. In the former case, $|x| = x$, and so $\frac{|x|}{x} = \frac{x}{|x|} = \frac{x}{x} = 1$. In the latter case, $|x| = -x$, and so $\frac{|x|}{x} = -\frac{x}{x} = \frac{x}{|x|} = -1$.
Note for nonzero real $x$, we have $|x|^2=x^2, $ so
$${x \over |x|}={x \over |x|}\times {|x|^2 \over x^2}={|x| \over x}.$$