Being negative or non-negative is a property of a number which is real, or a member of a subset of real numbers such as rational and integer numbers. A negative number is one that is less than zero, such as −, −1.414, −1. A positive number (e.g., positive real number, positive rational number, positive integer) is one that is greater than zero, such as , 1.414, 1. Zero itself is neither positive nor negative. The non-negative numbers are the numbers that are not negative (they are positive or zero). The non-positive numbers are the numbers that are not positive (they are negative or zero).
In the context of complex numbers, positive implies real, but for clarity one may say "positive real number".
Negative integers can be regarded as an extension of the natural numbers, such that the expression x – y has a well-defined value for all values of x and y. Other number systems, such as the rational numbers, are then derived as progressively more elaborate extensions and generalizations from the integers.
Negative numbers are useful to describe values on a scale that goes below zero, such as temperature and also in bookkeeping where they can be used to represent credits. In bookkeeping, amounts owed are often represented by red numbers, or a number in parentheses, as an alternative notation to represent negative numbers.
A number is non-negative if and only if it is greater than or equal to zero, i.e., positive or zero. Thus the nonnegative integers are all the integers from zero on upwards, and the nonnegative reals are all the real numbers from zero on upwards. The set of all non-negative integers forms a commutative monoid under addition. By extending this set to the set of all integers under addition, we obtain an Abelian group.
A real matrix A is called nonnegative if every entry of A is nonnegative.
The negative of a number is unique, as is shown by the following proof.
Let x be a number and let y be its negative. Suppose y′ is another negative of x. By an axiom of the real number system
And so, x + y′ = x + y. Using the law of cancellation for addition, it is seen that y′ = y. Thus y is equal to any other negative of x. That is, y is the unique negative of x.
The function sgn(x), defined on the real numbers and called the signum function or sign function, is 1 for positive numbers, −1 for negative numbers and 0 for zero:
We then have (except for x = 0):
Contrary to the real numbers, the complex numbers cannot be made into an ordered field, so there is no possible meaning one could give to the terms "positive" and "negative" for complex numbers that would have the usual properties with respect to arithmetic operations. Nevertheless there are two reasonable generalizations of the real signum function to complex numbers.
One definition is the function sgn(x), with values on the unit circle with the number 0 added, given by
and sgn(0) = 0.
There is also a function csgn(x) on the complex numbers (sometimes called the complex sign function), which extends the signum function while still taking values -1, 0 and 1 only, which is given by:
We then have (except for x = 0), using a similar convention for the square root of a complex number:
The minus sign "−" is used for both the operation of subtraction and to signify that a number is negative. The ambiguity does not generally cause problems in arithmetic, as the result of adding a negative number to another is the same as subtracting the number. A negative number may be parenthesised with its sign, e.g. an addition is clearer if written 7 + (−5) rather than 7 + −5, and gives the same result as the subtraction 7 − 5.
Sometimes in elementary schools a number may be prefixed by a superscript minus sign or plus sign to explicitly distinguish negative and positive numbers as in
For purposes of addition and subtraction, negative numbers are analogous to debts.
Adding a negative number is the same as subtracting the corresponding positive number:
Subtracting a positive number from a smaller positive number yields a negative result:
Subtracting a positive number from any negative number yields a negative result:
Subtracting a negative is equivalent to adding the corresponding positive:
Brahmagupta stated in Brahmasputhasiddhanta "positive times positive is positive and negative times negative is positive". Diophantus had earlier stated the rule but only as a route towards getting an eventual positive result. However due to a distrust of negative numbers even as late as the 18th century this rule was challenged by Lazare Carnot. He asked how the square of a smaller number could be larger than the square of a larger number, for example, how could the square of −3 be larger than the square of −2, as −3 is smaller than −2? There is no need for an answer to this subjective question as this fact does not violate the laws of mathematics.
Multiplication of a negative number by a positive number yields a negative result: (−2) × 3 = −6 (and commutativity adds that 3 × (−2) = −6 also). Multiplication by a positive integer is the same as repeated addition. For instance 3 × 2 can be regarded as 3 groups, with 2 in each group. Thus, 3 × 2 = 2 + 2 + 2 = 6 and this can be extended to 3 × (−2) = (−2) + (−2) + (−2) = −6.
Multiplication of two negative numbers yields a positive result: (−4) × (−3) = 12.
Multiplication is seen to be distributive over addition for both positive and negative numbers.
The sign rules for division are the same as for multiplication. Brahmagupta stated that a negative number divided by a negative number is positive. A positive number divided by a negative number is negative. (Reference: Arithmetic and mensuration of Brahmagupta by HT Colebrooke). Brahmagupta's convention has survived to date: if the dividend and divisor have opposite signs, then the result is negative.
If dividend and divisor have the same sign, the result is always positive.
In a similar manner to rational numbers, we can extend the natural numbers N to the integers Z by defining integers as an ordered pair of natural numbers (a, b). We can extend addition and multiplication to these pairs with the following rules:
We define an equivalence relation ~ upon these pairs with the following rule:
This equivalence relation is compatible with the addition and multiplication defined above, and we may define Z to be the quotient set N²/~, i.e. we identify two pairs (a, b) and (c, d) if they are equivalent in the above sense.
We can also define a total order on Z by writing
This construction is a special case of the Grothendieck construction.
By extension, the terms negative, non-negative, positive and non-positive may be applied to other mathematical objects whose values are real numbers. For example:
Negative numbers appear for the first time in history in the Nine Chapters on the Mathematical Art (Jiu zhang suan-shu), which in its present form dates from the period of the Han Dynasty (202 BC – 220 AD), but may well contain much older material. The Nine Chapters used red counting rods to denote positive coefficients and black rods for negative. (This system is the exact opposite of contemporary printing of positive and negative numbers in the fields of banking, accounting, and commerce, wherein red numbers denote negative values and black numbers signify positive values). The Chinese were also able to solve simultaneous equations involving negative numbers.
For a long time, negative solutions to problems were considered "false". In Hellenistic Egypt, Diophantus in the third century A.D. referred to an equation that was equivalent to 4x + 20 = 0 (which has a negative solution) in Arithmetica, saying that the equation was absurd.
The use of negative numbers was known in early India, and their role in situations like mathematical problems of debt was understood. Consistent and correct rules for working with these numbers were formulated. The diffusion of this concept led the Arab intermediaries to pass it to Europe.
The ancient Indian Bakhshali Manuscript, which Pearce Ian claimed was written some time between 200 B.C. and A.D. 300, while George Gheverghese Joseph dates it to about 400 AD and Takao Hayashi to no later than the early 7th century, carried out calculations with negative numbers, using "+" as a negative sign.
During the 7th century A.D., negative numbers were used in India to represent debts. The Indian mathematician Brahmagupta, in Brahma-Sphuta-Siddhanta (written in A.D. 628), discussed the use of negative numbers to produce the general form quadratic formula that remains in use today. He also found negative solutions of quadratic equations and gave rules regarding operations involving negative numbers and zero, such as "A debt cut off from nothingness becomes a credit; a credit cut off from nothingness becomes a debt. " He called positive numbers "fortunes," zero "a cipher," and negative numbers "debts." 
During the 8th century A.D., the Islamic world learned about negative numbers from Arabic translations of Brahmagupta's works, and by A.D. 1000 Arab mathematicians were using negative numbers for debts.
In the 12th century A.D. in India, Bhaskara also gave negative roots for quadratic equations but rejected them because they were inappropriate in the context of the problem. He stated that a negative value is "in this case not to be taken, for it is inadequate; people do not approve of negative roots."
Knowledge of negative numbers eventually reached Europe through Latin translations of Arabic and Indian works.
European mathematicians, for the most part, resisted the concept of negative numbers until the 17th century, although Fibonacci allowed negative solutions in financial problems where they could be interpreted as debits (chapter 13 of Liber Abaci, A.D. 1202) and later as losses (in Flos).
In A.D. 1759, Francis Maseres, an English mathematician, wrote that negative numbers "darken the very whole doctrines of the equations and make dark of the things which are in their nature excessively obvious and simple". He came to the conclusion that negative numbers were nonsensical. 
In the 18th century it was common practice to ignore any negative results derived from equations, on the assumption that they were meaningless.