You are watching: What is x divided by x

On one hand the division should simplify to $1$, on the other hand you should not be allowed to divide by zero.

I have been trying to find whether the simplification "goes first" or whether the division causes trouble first, but it has proven impossible for me to find usefull search terms.

Note that this question arose after reading this answer and its first comment.

The function $f(x) = \frac{x}{x}$ is defined for all $x \in \historicsweetsballroom.combb{R}\setminus\{0\}$. Its limits exist from the left and from the right at $0$, but it is not defined at $0$. It doesn"t matter if you "simplify" first and then "check" or the other way around, because as you pointed out you"re not allowed to divide by $0$. Thus $$f(x) = \begin{cases} 1 & x \neq 0 \\ \text{undefined} & x = 0\end{cases}.$$Consider the same question,$$g(x) = \frac{x^2 - 2x + 1}{x-1}.$$What is this function?

For any real number $x\neq0$, $$x=x,$$$$\Leftrightarrow$$$$\dfrac{x}{x}=1.$$$x=0$ $\Rightarrow x=x,$ but now we cannot divide by $x$. (Why?)

In fact, this is an indeterminate form.

Suppose that, $\dfrac{0}{0}=\color{red}{1}$. Hence, $0=\color{red}{1}\cdot0$.

Therefore, $\color{red}{2}\cdot0=\color{red}{1}\cdot0$ since $\color{red}{2}\cdot0=0$.

So, $\color{red}{\dfrac{2}{1}}=\dfrac{0}{0}$.

Thus $\color{red}{2}=1.$

**Note:**I"m assuming $x\in R$ in this whole post.

Indeed $x/x$ is only defined when $x\ne 0$. And wherever it is defined, its value is $1$.

However when people (especially in fields other than historicsweetsballroom.comematics where historicsweetsballroom.comematics is used) talk about such expressions, often what they *really* mean is: "The continuous (or, more generally, "well-behaved") function determined by the values of the given expression where that expression is defined". And there exists indeed exactly one continuous function $f:\historicsweetsballroom.combb R\to\historicsweetsballroom.combb R$ so that $f(x)=x/x$ for $x\ne 0$, and that is the constant function $f(x)=1$ for all $x\in\historicsweetsballroom.combb R$.

See more: What To Eat When You Get Your Tongue Pierced, What To Eat After Tongue Piercing

As a concrete example, consider the function $\sin(x)/x$ which appears in physics in the amplitude of a wave when describing diffraction on a slit. This expression is clearly not defined at $x=0$. However is is of course silly to assume that the amplitude of a wave is not defined at some point. What physicists actually mean is the continuous function$$f(x)=\begin{cases}\frac{\sin x }{x} & x\ne 0\\1 & x=0\end{cases}$$But usually that function isn"t written that way; the interpretation is implicitly assumed.