Rational number
|
In mathematics, a rational number (or informally fraction) is a ratio or quotient of two integers, usually written as the vulgar fraction a/b, where b is not zero.
Each rational number can be written in infinitely many forms, for example <math>3/6 = 2/4 = 1/2<math>. The simplest form is when <math>a<math> and <math>b<math> have no common divisors, and every non-zero rational number has exactly one simplest form of this type with positive denominator.
The decimal expansion of a rational number is eventually periodic (in the case of a finite expansion the zeroes which implicitly follow it form the periodic part). The same is true for any other integral base above 1. Conversely, if the expansion of a number for one base is periodic, it is periodic for all bases and the number is rational.
A real number that is not rational is called an irrational number.
In mathematics, the term "rational something" means that the underlying field considered is the field <math>\mathbb{Q}<math> of rational numbers. For example, rational polynomials or rational prime ideals.
The set of all rational numbers is denoted by Q, or in blackboard bold <math>\mathbb{Q}<math>. Using the set-builder notation <math>\mathbb{Q}<math> is defined as such:
- <math>\mathbb{Q} = \left\{\frac{m}{n} : m \in \mathbb{Z}, n \in \mathbb{Z}, n \ne 0 \right\}<math>
Contents |
Arithmetic
- <math>\frac{a}{b} + \frac{c}{d} = \frac{ad+bc}{bd}<math>
- <math>\frac{a}{b} \cdot \frac{c}{d} = \frac{ac}{bd}<math>
Two rational numbers <math>\frac{a}{b}<math> and <math>\frac{c}{d}<math> are equal iff <math>ad = bc<math>
Additive and multiplicative inverses exist in the rational numbers.
- <math>- \left( \frac{a}{b} \right) = \frac{-a}{b}<math>
- <math>\left(\frac{a}{b}\right)^{-1} = \frac{b}{a} \mbox{ if } a \neq 0<math>
History
Egyptian fractions
Any positive rational number can be expressed as a sum of distinct reciprocals of positive integers.
For instance, <math>\frac{5}{7} = \frac{1}{2} + \frac{1}{6} + \frac{1}{21}<math>
For any positive rational number, there are infinitely many different such representations. These representations are called Egyptian fractions, because the ancient Egyptians used them. The hieroglyph used for this is the letter that looks like a mouth, which is transliterated R, so the above fraction would be written as R2R6R21, or, using the hieroglyphs and writing left to right:
<hiero>Aa13</hiero> | <hiero>D21:Z1*Z1*Z1*Z1*Z1*Z1</hiero> | <hiero>D21:V20*V20*Z1</hiero> |
½ is one of exactly three exceptions: it is written as shown in the first hieroglyph above. The two other exceptions were the two only non-unit fractions for which there were symbols:
<hiero>D22</hiero> | <math>= \frac{2}{3}<math> | <hiero>D23</hiero> | <math>= \frac{3}{4}<math> |
The Egyptians also had a different notation for dyadic fractions. See also Egyptian numerals.
Formal construction
Mathematically we may define them as an ordered pair of integers <math>\left(a, b\right)<math>, with <math>b<math> not equal to zero. We can define addition and multiplication of these pairs with the following rules:
- <math>\left(a, b\right) + \left(c, d\right) = \left(ad + bc, bd\right)<math>
- <math>\left(a, b\right) \times \left(c, d\right) = \left(ac, bd\right)<math>
To conform to our expectation that <math>2/4 = 1/2<math>, we define an equivalence relation <math>\sim<math> upon these pairs with the following rule:
- <math>\left(a, b\right) \sim \left(c, d\right) \mbox{ iff } ad = bc<math>
This equivalence relation is compatible with the addition and multiplication defined above, and we may define Q to be the quotient set of ~, i.e. we identify two pairs (a, b) and (c, d) if they are equivalent in the above sense. (This construction can be carried out in any integral domain, see quotient field.)
We can also define a total order on Q by writing
- <math>\left(a, b\right) \le \left(c, d\right) \mbox{ iff } ad \le bc<math>
Properties
The set <math>\mathbb{Q}<math>, together with the addition and multiplication operations shown above, forms a field, the quotient field of the integers <math>\mathbb{Z}<math>.
The rationals are the smallest field with characteristic 0: every other field of characteristic 0 contains a copy of <math>\mathbb{Q}<math>.
The algebraic closure of <math>\mathbb{Q}<math>, i.e. the field of roots of rational polynomials, is the algebraic numbers.
The set of all rational numbers is countable. Since the set of all real numbers is uncountable, we say that almost all real numbers are irrational, in the sense of Lebesgue measure.
The rationals are a densely ordered set: between any two rationals, there sits another one, in fact infinitely many other ones.
Real numbers
The rationals are a dense subset of the real numbers: every real number has rational numbers arbitrarily close to it. A related property is that rational numbers are the only numbers with finite expressions of continued fraction.
By virtue of their order, the rationals carry an order topology. The rational numbers are a (dense) subset of the real numbers, and as such they also carry a subspace topology. The rational numbers form a metric space by using the metric <math>d\left(x, y\right) = |x - y|<math>, and this yields a third topology on <math>\mathbb{Q}<math>. Fortunately, all three topologies coincide and turn the rationals into a topological field. The rational numbers are an important example of a space which is not locally compact. The space is also totally disconnected. The rational numbers do not form a complete metric space; the real numbers are the completion of <math>\mathbb{Q}<math>.
p-adic numbers
In addition to the absolute value metric mentioned above, there are other metrics which turn <math>\mathbb{Q}<math> into a topological field:
let <math>p<math> be a prime number and for any non-zero integer <math>a<math> let <math>|a|_p = p^{-n}<math>, where <math>p^n<math> is the highest power of <math>p<math> dividing <math>a<math>;
in addition write <math>|0|_p = 0<math>. For any rational number <math>\frac{a}{b}<math>, we set <math>\left|\frac{a}{b}\right|_p = \frac{|a|_p}{|b|_p}<math>.
Then <math>d_p\left(x, y\right) = |x - y|_p<math> defines a metric on <math>\mathbb{Q}<math>.
The metric space <math>\left(\mathbb{Q}, d_p\right)<math> is not complete, and its completion is the p-adic number field <math>\mathbb{Q}_p<math>.
Topics in mathematics related to quantity | |
Numbers | Natural numbers | Integers | Rational numbers | Constructible numbers | Algebraic numbers | Computable numbers | Real numbers | Complex numbers | Split-complex numbers | Bicomplex numbers | Hypercomplex numbers | Quaternions | Octonions | Sedenions | Superreal numbers | Hyperreal numbers | Surreal numbers | Nominal numbers | Ordinal numbers | Cardinal numbers | p-adic numbers | Integer sequences | Mathematical constants | Large numbers | Infinity |
ca:Nombre racional cs:Racionální číslo da:Rationale tal de:Rationale Zahl et:Ratsionaalarvud es:Nmero racional eo:Racionalaj Nombroj eu:Zenbaki arrazional fr:Nombre rationnel ko:유리수 is:Rar tlur it:Numero razionale he:מספר רציונלי nl:Rationaal getal ja:有理数 no:Rasjonalt tall pl:Liczby wymierne pt:Nmero racional ru:Рациональное число sl:Racionalno število fi:Rationaaliluku sv:Rationella tal tr:Rasyonel Sayılar uk:Раціональні числа zh:有理数 th:จำนวนตรรกยะ