Lably
Skip to content

Division by zero

Class of mathematical expression

  • 18 min read
  • 7 chapters
The reciprocal function y = 1/x
Jacob Rus · CC BY-SA 4.0

Related on Lably

Through Mathematics, Division (mathematics) and 0

The usual definition of the quotient in elementary arithmetic is the number which yields the dividend when multiplied by the divisor. That is, ⁠c=ab⁠ is equivalent to ⁠c×b=a⁠. By this definition, the quotient ⁠q=a0⁠ is nonsensical, as the product ⁠q×0⁠ is always ⁠0⁠ rather than some other number ⁠a⁠. Following the ordinary rules of elementary algebra while allowing division by zero can create a mathematical fallacy, a subtle mistake leading to absurd results. To prevent this, the arithmetic of real numbers and more general numerical structures called fields leaves division by zero undefined, and situations where division by zero might occur must be treated with care. Since any number multiplied by 0 is 0, the expression ⁠00⁠ is also left undefined.

Calculus studies the behavior of functions in the limit as their input tends to some value. When a real function can be expressed as a fraction whose denominator tends to zero, the output of the function becomes arbitrarily large, and is said to "tend to infinity", a type of mathematical singularity. For example, the reciprocal function, ⁠f(x)=1x⁠, tends to infinity as ⁠x⁠ tends to ⁠0⁠. When both the numerator and the denominator tend to zero at the same input, the expression is said to take an indeterminate form, as the resulting limit depends on the specific functions forming the fraction and cannot be determined from their separate limits.

As an alternative to the common convention of working with fields such as the real numbers and leaving division by zero undefined, it is possible to define the result of division by zero in other ways, resulting in different number systems. For example, the quotient ⁠a0⁠ can be defined to equal a new explicit point at infinity, sometimes denoted by the infinity symbol ⁠∞⁠, or it can be defined to result in signed infinity, with positive or negative sign depending on the sign of the dividend. In these number systems division by zero is no longer a special exception per se, but the point or points at infinity involve their own new types of exceptional behavior.

In computing, an error may result from an attempt to divide by zero. Depending on the context and the type of number involved, dividing by zero may evaluate to positive or negative infinity, return a special not-a-number value, or crash the program, among other possibilities. Some theorem provers define the quotient to equal zero to make division a total function.

Elementary arithmetic

The meaning of division

The division ⁠N/D=Q⁠ can be conceptually interpreted in several ways.

In quotitive division, the dividend ⁠N⁠ is imagined to be split up into parts of size ⁠D⁠ (the divisor), and the quotient ⁠Q⁠ is the number of resulting parts. For example, imagine ten slices of bread are to be made into sandwiches, each requiring two slices of bread. A total of five sandwiches can be made (⁠102=5⁠). Now imagine instead that zero slices of bread are required per sandwich (perhaps a lettuce wrap). Arbitrarily many such sandwiches can be made from ten slices of bread, as the bread is irrelevant.

The quotitive concept of division lends itself to calculation by repeated subtraction: dividing entails counting how many times the divisor can be subtracted before the dividend runs out. Because no finite number of subtractions of zero will ever exhaust a non-zero dividend, calculating division by zero in this way never terminates. Such an interminable division-by-zero algorithm is physically exhibited by some mechanical calculators.

In partitive division, the dividend ⁠N⁠ is imagined to be split into ⁠D⁠ parts, and the quotient ⁠Q⁠ is the resulting size of each part. For example, imagine ten cookies are to be divided among two friends. Each friend will receive five cookies (⁠102=5⁠). Now imagine instead that the ten cookies are to be divided among zero friends. How many cookies will each friend receive? Since there are no friends, this is an absurdity.

In another interpretation, the quotient ⁠Q⁠ represents the ratio ⁠N:D⁠. For example, a cake recipe might call for ten cups of flour and two cups of sugar, a ratio of ⁠10:2⁠ or, proportionally, ⁠5:1⁠. To scale this recipe to larger or smaller quantities of cake, a ratio of flour to sugar proportional to ⁠5:1⁠ could be maintained, for instance one cup of flour and one-fifth cup of sugar, or fifty cups of flour and ten cups of sugar. Now imagine a sugar-free cake recipe calls for ten cups of flour and zero cups of sugar. The ratio ⁠10:0⁠, or proportionally ⁠1:0⁠, is perfectly sensible: it just means that the cake has no sugar. However, the question "How many parts flour for each part sugar?" still has no meaningful numerical answer.

A geometrical appearance of the division-as-ratio interpretation is the slope of a straight line in the Cartesian plane. The slope is defined to be the "rise" (change in vertical coordinate) divided by the "run" (change in horizontal coordinate) along the line. When this is written using the symmetrical ratio notation, a horizontal line has slope ⁠0:1⁠ and a vertical line has slope ⁠1:0⁠. However, if the slope is taken to be a single real number then a horizontal line has slope ⁠01=0⁠ while a vertical line has an undefined slope, since in real-number arithmetic the quotient ⁠10⁠ is undefined. The real-valued slope ⁠yx⁠ of a line through the origin is the vertical coordinate of the intersection between the line and a vertical line at horizontal coordinate ⁠1⁠, dashed black in the figure. The vertical red and dashed black lines are parallel, so they have no intersection in the plane. Sometimes they are said to intersect at a point at infinity, and the ratio ⁠1:0⁠ is represented by a new number ⁠∞⁠; see § Projectively extended real line below. Vertical lines are sometimes said to have an "infinitely steep" slope.

Inverse of multiplication

Division is the inverse of multiplication, meaning that multiplying and then dividing by the same non-zero quantity, or vice versa, leaves an original quantity unchanged; for example ⁠(5×3)/3=(5/3)×3=5⁠. Thus a division problem such as "what is 6 divided by 3?" can be solved by rewriting it as an equivalent equation involving multiplication, "what number times 3 is equal to 6?", and then finding the value for which the statement is true; symbolically, these might be written as ⁠63=?⁠ and equivalently ⁠?×3=6⁠, where ⁠?⁠ represents the same unknown quantity in each equation; in this case the unknown quantity is ⁠2⁠, because ⁠2×3=6⁠, so therefore ⁠63=2⁠.

An analogous problem involving division by zero, ⁠60=?⁠, requires determining an unknown quantity satisfying ⁠?×0=6⁠. However, any number multiplied by zero is zero rather than six, so there exists no number which can substitute for ⁠?⁠ to make a true statement.

When the problem is changed to ⁠00=?⁠, the equivalent multiplicative statement is ⁠?×0=0⁠; in this case any value can be substituted for the unknown quantity to yield a true statement, so there is no single number which can be assigned as the quotient ⁠00⁠.

Because of these difficulties, quotients where the divisor is zero are traditionally taken to be undefined, and division by zero is not allowed.

Fallacies

A compelling reason for not allowing division by zero is that allowing it leads to fallacies.

When working with numbers, it is easy to identify an illegal division by zero. For example:

From ⁠0×1=0⁠ and ⁠0×2=0⁠ one gets ⁠0×1=0×2⁠. Cancelling ⁠0⁠ from both sides yields ⁠1=2⁠, a false statement.

The fallacy here arises from the assumption that it is legitimate to cancel ⁠0⁠ like any other number, whereas, in fact, doing so is a form of division by ⁠0⁠.

Using algebra, it is possible to disguise a division by zero to obtain an invalid proof. For example:

Let ⁠x=1⁠. Multiply both sides by ⁠x⁠ to get ⁠x=x2⁠. Subtract ⁠1⁠ from each side to get x−1=x2−1. The right side can be factored, x−1=(x+1)(x−1). Dividing both sides by ⁠x−1⁠ yields 1=x+1. Substituting ⁠x=1⁠ yields 1=2.

This is essentially the same fallacious computation as the previous numerical version, but the division by zero was obfuscated because we wrote ⁠0⁠ as ⁠x−1⁠.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Basics