In mathematics, a division is called a division by zero if the divisor is zero. Such a division can be formally expressed as a / 0 where a is the dividend. Whether this expression can be assigned a welldefined value depends upon the mathematical setting. In ordinary (real number) arithmetic, the expression has no meaning.
In computer programming, integer division by zero may cause a program to terminate or, as in the case of floating point numbers, may result in a special notanumber value (see below).
Historically, one of the earliest recorded references to the mathematical impossibility of assigning a value to a / 0 is contained in George Berkeley's criticism of infinitesimal calculus in The Analyst; see Ghosts of departed quantities.
Contents 
When division is explained at the elementary arithmetic level, it is often considered as a description of dividing a set of objects into equal parts. As an example, consider having ten apples and no knife, and these apples are to be distributed equally to five people at a table. Each person would receive = 2 apples. Similarly, if there are 10 apples, and only one person at the table, that person would receive = 10 apples.
So for dividing by zero – what is the number of apples that each person receives when 10 apples are fairly distributed amongst 0 people? Certain words can be pinpointed in the question to highlight the problem. The problem with this question is the "when". There is no way to distribute 10 apples amongst 0 people. In mathematical jargon, a set of 10 items cannot be partitioned into 0 subsets. So , at least in elementary arithmetic, is said to be meaningless, or undefined.
Similar problems occur if we have 0 apples and 0 people, but this time the problem is in the phrase "the number". A partition is possible (of a set with 0 elements into 0 parts), but since the partition has 0 parts, vacuously every set in our partition has a given number of elements, be it 0, 2, 5, or 1000. If there are, say, 5 apples and 2 people, the problem is in "fairly" and "no knife". In any partition of a 5set into 2 parts, one of the parts of the partition will have more elements than the other.
In all of the above three cases, , and , one is asked to consider an impossible situation before deciding what the answer will be, and that is why the operations are undefined in these cases.
To understand division by zero, we must check it with multiplication: multiply the quotient by the divisor to get the original number. However, no number multiplied by zero will produce a product other than zero. In order to satisfy division by zero, the quotient must be bigger than all other numbers, i.e. infinity. This connection of division by zero to infinity takes us beyond elementary arithmetic (see below).
A recurring theme even at this elementary stage is that for every undefined arithmetic operation, there is correspondingly a question which is not welldefined. "How many apples will each person receive under a fair distribution of 10 apples amongst 3 people?" is a question which is not welldefined because there can be no fair distribution of 10 apples amongst 3 people.
But there is another way to explain the division: if we want to find out how many people, which are satisfied with half an apple, can we satisfy with 1 apple, we divide 1 by 0.5. The answer is 2. Similarly, if we want to know how many people, which are satisfied with nothing, can we satisfy with 1 apple, we divide 1 by 0. And the answer is any number; we can satisfy any number of people, that are satisfied with nothing, with 1 apple.
Clearly, one cannot extend the operation of division based on the elementary combinatorial considerations by which division is first defined. One needs to construct new number systems.
The concept which can be used to explain division in arithmetic is that division is the inverse of multiplication. For example
since 2 is the value for which the unknown quantity in
is true. But the expression
requires a value to be found for the unknown quantity in
But any number multiplied by 0 is 0 and so there is no number that solves the equation.
The expression
requires a value to be found for the unknown quantity in
Again, any number multiplied by 0 is 0 and so this time every number solves the equation instead of there being a single number which can be taken as the value of 0/0.
In general, a single value can't be assigned to a fraction where the denominator is 0 so the value remains undefined (see below for other applications).
The Brahmasphutasiddhanta of Brahmagupta (598–668) is the earliest known text to treat zero as a number in its own right and to define operations involving zero.^{[1]} The author failed, however, in his attempt to explain division by zero: his definition can be easily proven to lead to algebraic absurdities. According to Brahmagupta,
In 830, Mahavira tried unsuccessfully to correct Brahmagupta's mistake in his book in Ganita Sara Samgraha:
Bhaskara II tried to solve the problem by defining (in modern notation) .^{[1]} This definition makes some sense, as discussed below, but can lead to paradoxes if not treated carefully. These paradoxes were not treated until modern times.
It is generally regarded among mathematicians that a natural way to interpret division by zero is to first define division in terms of other arithmetic operations. Under the standard rules for arithmetic on integers, rational numbers, real numbers and complex numbers, division by zero is undefined. Division by zero must be left undefined in any mathematical system that obeys the axioms of a field. The reason is that division is defined to be the inverse operation of multiplication. This means that the value of a/b is the solution x of the equation bx = a whenever such a value exists and is unique. Otherwise the value is left undefined.
For b = 0, the equation bx = a can be rewritten as 0x = a or simply 0 = a. Thus, in this case, the equation bx = a has no solution if a is not equal to 0, and has any x as a solution if a equals 0. In either case, there is no unique value, so is undefined. Conversely, in a field, the expression is always defined if b is not equal to zero.
It is possible to disguise a special case of division by zero in an algebraic argument,^{[1]} leading to spurious proofs that 1 = 2 such as the following:
With the following assumptions:
The following must be true:
Dividing by zero gives:
Simplified, yields:
The fallacy is the implicit assumption that dividing by 0 is a legitimate operation.
Although most educated people would probably recognize the above "proof" as fallacious, the same argument can be presented in a way that makes it harder to spot the error. For example, consider the following equations:
Dividing by x − x gives:
and dividing by x gives:
At first glance it seems possible to define a/0 by considering the limit of a/b as b approaches 0.
For any positive a, the limit from the right is
however, the limit from the left is
and so the is undefined (the limit is also undefined for negative a).
Furthermore, there is no obvious definition of 0/0 that can be derived from considering the limit of a ratio. The limit
does not exist. Limits of the form
in which both ƒ(x) and g(x) approach 0 as x approaches 0, may equal any real or infinite value, or may not exist at all, depending on the particular functions ƒ and g (see l'Hôpital's rule for discussion and examples of limits of ratios). These and other similar facts show that the expression 0/0 cannot be welldefined as a limit.
A formal calculation is one which is carried out using rules of arithmetic, without consideration of whether the result of the calculation is welldefined. Thus, it is sometimes useful to think of a/0, where a≠0, as being . This infinity can be either positive, negative or unsigned, depending on context. For example, formally:
As with any formal calculation, invalid results may be obtained. A logically rigorous as opposed to formal computation would say only that
(Since the onesided limits are different, the twosided limit does not exist in the standard framework of the real numbers. Also, the fraction 1/0 is left undefined in the extended real line, therefore it and
are meaningless expressions that should not rigorously be used in an equation.)
The set is the real projective line, which is a onepoint compactification of the real line. Here means an unsigned infinity, an infinite quantity which is neither positive nor negative. This quantity satisfies which is necessary in this context. In this structure, can be defined for nonzero a, and . It is the natural way to view the range of the tangent and cotangent functions of trigonometry: tan(x) approaches the single point at infinity as x approaches either or from either direction.
This definition leads to many interesting results. However, the resulting algebraic structure is not a field, and should not be expected to behave like one. For example, is undefined in the projective line.
The set is the Riemann sphere, which is of major importance in complex analysis. Here too is an unsigned infinity – or, as it is often called in this context, the point at infinity. This set is analogous to the real projective line, except that it is based on the field of complex numbers. In the Riemann sphere, , but 0/0 is undefined, as is .
The negative real numbers can be discarded, and infinity introduced, leading to the set [0, ∞], where division by zero can be naturally defined as a/0 = ∞ for positive a. While this makes division defined in more cases than usual, subtraction is instead left undefined in many cases, because there are no negative numbers.
Although division by zero cannot be sensibly defined with real numbers and integers, it is possible to consistently define it, or similar operations, in other mathematical structures.
In the hyperreal numbers and the surreal numbers, division by zero is still impossible, but division by nonzero infinitesimals is possible.
In distribution theory one can extend the function to a distribution on the whole space of real numbers (in effect by using Cauchy principal values). It does not, however, make sense to ask for a 'value' of this distribution at x = 0; a sophisticated answer refers to the singular support of the distribution.
In matrix algebra (or linear algebra in general), one can define a pseudodivision, by setting a/b = ab^{+}, in which b^{+} represents the pseudoinverse of b. It can be proven that if b^{−1} exists, then b^{+} = b^{−1}. If b equals 0, then 0^{+} = 0; see Generalized inverse.
Any number system which forms a commutative ring — for instance, the integers, the real numbers, and the complex numbers — can be extended to a wheel in which division by zero is always possible; however, in such a case, "division" has a slightly different meaning.
The concepts applied to standard arithmetic are similar to those in more general algebraic structures, such as rings and fields. In a field, every nonzero element is invertible under multiplication; as above, division poses problems only when attempting to divide by zero. This is likewise true in a skew field (which for this reason is called a division ring). However, in other rings, division by nonzero elements may also pose problems. For example, the ring Z/6Z of integers mod 6. The meaning of the expression should be the solution x of the equation 2x = 2. But in the ring Z/6Z, 2 is not invertible under multiplication. This equation has two distinct solutions, x = 1 and x = 4, so the expression is undefined.
In field theory, the expression is only shorthand for the formal expression ab^{−1}, where b^{−1} is the multiplicative inverse of b. Since the field axioms only guarantee the existence of such inverses for nonzero elements, this expression has no meaning when b is zero. In modern texts the axiom 0 ≠ 1 is included in order to avoid having to consider the oneelement field where the multiplicative identity coincides with the additive identity. In such 'fields' however, 00 = 1, and 0/0 = 0/1 = 0, and division by zero is actually noncontradictory.
Wheel theory is another type of algebra in which division by zero is allowed.
The IEEE floatingpoint standard, supported by almost all modern processors, specifies that every floating point arithmetic operation, including division by zero, has a welldefined result. The standard supports signed zero, as well as infinity and NaN (not a number). There are two zeroes, +0 (positive zero) and −0 (negative zero) and this removes any ambiguity when dividing. In IEEE 754 arithmetic, a ÷ +0 is positive infinity when a is positive, negative infinity when a is negative, and NaN when a = ±0. The infinity signs change when dividing by −0 instead.
Integer division by zero is usually handled differently from floating point since there is no integer representation for the result. Some processors generate an exception when an attempt is made to divide an integer by zero, although others will simply continue and generate an incorrect result for the division. The result depends on how division is implemented, and can either be zero, or sometimes the largest possible integer.
Because of the improper algebraic results of assigning any value to division by zero, many computer programming languages (including those used by calculators) explicitly forbid the execution of the operation and may prematurely halt a program that attempts it, sometimes reporting a "Divide by zero" error. In these cases, if some special behavior is desired for division by zero, the condition must be explicitly tested for (for example, using an if statement). Some programs (especially those that use fixedpoint arithmetic where no dedicated floatingpoint hardware is available) will use behavior similar to the IEEE standard, using large positive and negative numbers to approximate infinities. In some programming languages, an attempt to divide by zero results in undefined behavior.
In two's complement arithmetic, attempts to divide the smallest signed integer by − 1 are attended by similar problems, and are handled with the same range of solutions, from explicit error conditions to undefined behavior.
Most calculators will either return an error or state that 1/0 is undefined, however some TI and HP graphing calculators will evaluate 1/0^{2} to ∞.
Division by zero is a problem of mathematics that does not allow a number to be divided by zero. Observe:
1. $A\; *\; B\; =\; C$
If B = 0, then C = 0. This is true. But look:
2. $A\; =\; C/B$
(Remember that B=0, so we just divided by zero)
Which is the same as:
3. $A\; =\; 0/0$
The problem is that A could be any number. 0/0 is said to be of "indeterminate form" for this reason, because it has no single value. Numbers of the form A/0, on the other hand, where A is not 0, are said to be "undefined." This is because any attempt to define them will result in a value of infinity, which is itself undefined. Usually when two numbers are equal to the same thing, they are equal to each other. That is not true when the thing they are both equal to is 0/0. This means that the normal rules of maths do not work when the number is divided by zero.
It is possible to disguise a special case of division by zero in an algebraic argument. This can lead to invalid proofs, such as 1=2, as in the following:
With the following assumptions:
0\times 1 &= 0 \\ 0\times 2 &= 0. \end{align}
The following must be true:
Dividing by zero gives:
Simplify:
The fallacy is the assumption that dividing by 0 is a legitimate operation with 0/0 = 1.
Most people would probably recognize the above "proof" as incorrect, but the same argument can be presented in a way that makes it harder to spot the error. For example, if 1 is written as x, then 0 can be hidden behind xx and 2 behind x+x. The above mentioned proof can then be displayed as follows:
(xx)x = 0 \\ (xx)(x+x) = 0 \end{align}
therefore:
Dividing by x − x gives:
and dividing by x gives:
The "proof" above is incorrect because it divides by zero when it divides by xx, because any number minus itself is zero.
