# Division by 00 and its restrictions

Consider the following expression:

Over here, one would state the restriction as $x \neq 0$, as that would result in division by $0$.

But if we rearrange the expression, then:

In this expression, there are no restrictions. If we substitute $x = 0$, then the answer is $\frac{0}{8} = 0$.

So, how come in the first unsimplified expression, when we substitute $x =0$, we get undefined, whereas in the simplified expression we get $0$?

EDIT: I have made a small change in terminology based on the suggestion by @BPP in the comments below.

This is an excellent question!

The subtlety here is that in high-school mathematics we are taught to freely move between polynomials and polynomial functions. But if we do not make the distinction between the two carefully, then confusions like in your question will arise.

When I have the equality $$1/24/x=x8\frac{1/2}{4/x} = \frac{x}{8}$$ there is no problem when viewing this is an equality of rational fractions, because in this case, there is no question of evaluating $$xx$$, and hence no question of what the domains are, simply because they are not functions.

On the other hand, when I look at the equality $$1/24/x=x8\frac{1/2}{4/x} = \frac{x}{8}$$ as an equality of rational functions, then it is necessary that the domain of both functions are the same. Since the function on the left-hand side is defined for all $$x≠0x \neq 0$$, I can take that to be the domain of the function, and so the domain of the function on the right-hand side is also $$R∖{0}\mathbb{R} \setminus \{0\}$$.

A lengthier explanation of this distinction follows below.

## What is a polynomial?

Typically, it is taught at the high-school level that a polynomial (in one variable) is any expression of the form $$a0+a1x+⋯+anxna_0 + a_1 x + \dots + a_n x^n$$ where $$a0,…,ana_0,\dots,a_n$$ are real numbers, and $$nn$$ is a non-negative integer. We can denote this polynomial by $$f(x)f(x)$$. Here, $$xx$$ is called a variable or indeterminate.

At the same time, we are also taught that we can substitute a real number, say $$tt$$, for $$xx$$ in order to evaluate the polynomial at $$tt$$, and this is represented by $$f(t)f(t)$$. This is the point where the distinction between polynomials and polynomial functions should be made.

## What is a polynomial function?

For our purposes, we will stick to functions from real numbers to real numbers. We define a polynomial function to be a function $$f:R→Rf: \mathbb{R} \to \mathbb{R}$$ such that there exist real numbers $$a0,…,ana_0,\dots,a_n$$ so that $$f(t)=a0+a1t+⋯+antnf(t) = a_0 + a_1 t + \dots + a_n t^n$$ for every $$t∈Rt \in \mathbb{R}$$.

## How are polynomials and polynomial functions the same?

At first glance, there may not appear to be much of a difference between polynomials and polynomial functions, for the following reason: given a polynomial $$f(x)=a0+a1x+⋯+anxnf(x) = a_0 + a_1 x + \dots + a_n x^n$$ I can define a polynomial function $$˜f:R→R\tilde{f} : \mathbb{R} \to \mathbb{R}$$ by $$˜f(t)=a0+a1t+⋯+antn\tilde{f}(t) = a_0 + a_1 t + \dots + a_n t^n$$ for each $$t∈Rt \in \mathbb{R}$$. And, given a polynomial function $$˜g:R→R\tilde{g} : \mathbb{R} \to \mathbb{R}$$ such that $$˜g(t)=b0+b1t+⋯+bmtm\tilde{g}(t) = b_0 + b_1 t + \dots + b_m t^m$$ for each $$t∈Rt \in \mathbb{R}$$, I can define a polynomial $$gg$$ by $$g(x)=b0+b1x+⋯+bmxmg(x) = b_0 + b_1 x + \dots + b_m x^m$$. This back and forth between polynomials and polynomial functions is compatible in the sense that the map $$FF$$ from the space of polynomials (over $$R\mathbb{R}$$ in one variable) to the space of polynomial functions (from $$R\mathbb{R}$$ to $$R\mathbb{R}$$) that sends the polynomial $$ff$$ to the polynomial function $$˜f\tilde{f}$$ by the above rule, preserves the structure of both spaces. More precisely, it satisfies the conditions:
$$f+g↦˜f+˜gcf↦c˜ffg↦˜f˜g1↦id \begin{gather*} f + g \mapsto \tilde{f} + \tilde{g}\\ cf \mapsto c\tilde{f}\\ fg \mapsto \tilde{f} \tilde{g}\\ 1 \mapsto \operatorname{id} \end{gather*}$$
where $$id\operatorname{id}$$ is the constant function $$id(t)=1\operatorname{id}(t) = 1$$ for all $$t∈Rt \in \mathbb{R}$$. (As an aside, all this is often expressed by saying that the map $$FF$$ given by $$F(f)=˜fF(f) = \tilde{f}$$ is an isomorphism of algebras.)

The fact that the function $$FF$$ has these properties essentially means that polynomials and polynomial functions are not all that different.

## How are polynomials and polynomial functions different?

Despite the previous section, it is important to make a distinction between polynomials and polynomial functions for the following reason. When we divide a polynomial $$f(x)f(x)$$ by another polynomial $$g(x)g(x)$$ we get the rational fraction $$f(x)/g(x)f(x)/g(x)$$. (Of course, $$g(x)g(x)$$ could divide $$f(x)f(x)$$ without leaving a remainder, in which case $$f(x)/g(x)f(x)/g(x)$$ is in fact a polynomial, so every polynomial can also be considered a rational fraction.) Two rational fractions $$f1(x)/g1(x)f_1(x)/g_1(x)$$ and $$f2(x)/g2(x)f_2(x)/g_2(x)$$ will be considered equal if, after cancelling their common factors, we end up with the same expression in both cases. Or equivalently, the two rational fractions will be considered equal if $$f1(x)g2(x)=f2(x)g1(x)f_1(x) g_2(x) = f_2(x) g_1(x)$$. Note that this is completely analogous to the definitions we make when talking about rational numbers.

Note that a rational fraction is not a function (since polynomials are not ‘really’ functions). However, we can define a rational function $$hh$$ to be a function such that there exist real numbers $$a0,…,ana_0,\dots,a_n$$ and $$b0,…,bmb_0,\dots,b_m$$ so that for every $$tt$$ in the domain of $$hh$$, we have $$h(t)=a0+a1t+⋯+antnb0+b1t+…bmtm.h(t) = \frac{a_0 + a_1 t + \dots + a_n t^n}{b_0 + b_1 t + \dots b_m t^m}.$$

Clearly, I can repeat the same process as earlier: to every rational fraction I can associate a rational function, and to every rational function I can associate a rational fraction, in the obvious way. So, where does the problem arise?

The problem arises in the fact that two different representations of the same rational fraction can give rise to two different rational functions. For example, let $$f(x)=x2−4f(x) = x^2 - 4$$, $$g(x)=x−2g(x) = x-2$$, $$h(x)=x+2h(x) = x+2$$ and $$k(x)=1k(x) = 1$$. Clearly, $$f(x)/g(x)=h(x)/k(x)f(x)/g(x) = h(x)/k(x)$$. However, the function $$uu$$ defined by $$u(t)=f(t)/g(t)u(t) = f(t)/g(t)$$ and the function $$vv$$ defined by $$v(t)=h(t)/k(t)v(t) = h(t)/k(t)$$ are not the same function, because their domains are different! (I am assuming that all the functions have their domain as the maximal set on which they are defined. So, the domain of $$uu$$ is $$R∖{2}\mathbb{R} \setminus \{ 2 \}$$ and domain of $$vv$$ is $$R\mathbb{R}$$.)

So, let’s say we started with the rational function $$vv$$. We construct the ‘natural’ rational fraction using $$vv$$, namely $$h(x)/k(x)h(x)/k(x)$$. We write $$h(x)/k(x)=f(x)/g(x)h(x)/k(x) = f(x)/g(x)$$. Then we construct the rational function $$uu$$ from the rational fraction $$f(x)/g(x)f(x)/g(x)$$. But we end up with a different function! So, the realisation is that the ‘evaluation map’, which is basically ‘replace $$xx$$ by the real number $$tt$$‘, is not an ‘isomorphism’ between the set of all rational fractions and the set of rational functions. Hence, we cannot move back and forth freely between the two notions unless we sort out how we want to define the evaluation map compatibly.

## How does all this answer the question?

When I have the equality $$1/24/x=x8,\frac{1/2}{4/x} = \frac{x}{8},$$ this is certainly true when I view both sides as rational fractions. In this case, there is no question of evaluating $$xx$$, and hence no question of what the domains are, simply because they are not functions.

On the other hand, when I look at the equality $$1/24/x=x8\frac{1/2}{4/x} = \frac{x}{8}$$ as an equality of rational functions, then it is necessary that the domain of both functions are the same. Since the function on the left hand side is defined for all $$x≠0x \neq 0$$, I can take that to be the domain of the function, and so the domain of the function on the right-hand side is also $$R∖{0}\mathbb{R} \setminus \{0\}$$.

The question, “Why am I able to make sense of the right-hand side at $$x=0x = 0$$ and not able to make sense of the left-hand side at $$x=0x = 0$$?” arises because we expect the evaluation map to be ‘compatible’, in some sense. That this is not so, is the content of the discussion above.

## What have I glossed over?

I have certainly been handwaving a bit when talking about isomorphisms, but this can be made fully precise without much trouble. All these ideas are discussed in any senior undergraduate course in algebra.

Also, as @AlexProvost commented below, I have defined a rational fraction to be a ratio of polynomials, and yet I am calling $$1/24/x\frac{1/2}{4/x}$$ a rational fraction, despite $$4/x4/x$$ not being a polynomial. Here, I have glossed over the fact that dividing a rational fraction by a rational fraction gives one a rational fraction. This can be shown quite easily, but I had still skipped this point.

Explanation of the edit: Earlier I had called ‘rational fractions’ as ‘rational functions’, and ‘rational functions’ as ‘functions that are rational’. I think the new terminology is cleaner, and I am not sure whether there is any standard terminology.