In mathematics, a rational number is a number that can be expressed as the quotient or fraction p q {\displaystyle {\tfrac {p}{q}}} of two integers, a numerator p and a nonzero denominator q. For example, 3 7 {\displaystyle {\tfrac {3}{7}}} is a rational number, as is every integer (for example, − 5 = − 5 1 {\displaystyle -5={\tfrac {-5}{1}}} ). The set of all rational numbers is often referred to as "the rationals", and is closed under addition, subtraction, multiplication, and division by a nonzero rational number. It is a field under these operations and therefore also called the field of rationals or the field of rational numbers. It is usually denoted by boldface Q, or blackboard bold Q . {\displaystyle \mathbb {Q} .} A rational number is a real number. The real numbers that are rational are those whose decimal expansion either terminates after a finite number of digits (example: 3/4 = 0.75), or eventually begins to repeat the same finite sequence of digits over and over (example: 9/44 = 0.20454545...). This statement is true not only in base 10, but also in every other integer base, such as the binary and hexadecimal ones (see Repeating decimal § Extension to other bases). A real number that is not rational is called irrational. Irrational numbers include the square root of 2 ( 2 {\displaystyle {\sqrt {2}}} ), π, e, and the golden ratio (φ). Since the set of rational numbers is countable, and the set of real numbers is uncountable, almost all real numbers are irrational. The field of rational numbers is the unique field that contains the integers, and is contained in any field containing the integers. In other words, the field of rational numbers is a prime field. A field has characteristic zero if and only if it contains the rational numbers as a subfield. Finite extensions of Q {\displaystyle \mathbb {Q} } are called algebraic number fields, and the algebraic closure of Q {\displaystyle \mathbb {Q} } is the field of algebraic numbers. In mathematical analysis, the rational numbers form a dense subset of the real numbers. The real numbers can be constructed from the rational numbers by completion, using Cauchy sequences, Dedekind cuts, or infinite decimals (see Construction of the real numbers).
Terminology In mathematics, "rational" is often used as a noun abbreviating "rational number". The adjective rational sometimes means that the coefficients are rational numbers. For example, a rational point is a point with rational coordinates (i.e., a point whose coordinates are rational numbers); a rational matrix is a matrix of rational numbers, though it sometimes also refers to a matrix whose entries are rational functions; a rational polynomial may be a polynomial with rational coefficients, although the term "polynomial over the rationals" is generally preferred, to avoid confusion between "rational expression" and "rational function" (a polynomial is a rational expression and defines a rational function, even if its coefficients are not rational numbers). However, a rational curve is not a curve defined over the rationals, but a curve which can be parameterized by rational functions.
Etymology Although nowadays rational numbers are defined in terms of ratios, the term rational is not a derivation of ratio. On the contrary, it is ratio that is derived from rational: the first use of ratio with its modern meaning was attested in English about 1660, while the use of rational for qualifying numbers appeared almost a century earlier, in 1570. This meaning of rational came from the mathematical meaning of irrational, which was first used in 1551, and it was used in "translations of Euclid (following his peculiar use of ἄλογος)". This unusual history originated in the fact that ancient Greeks "avoided heresy by forbidding themselves from thinking of those [irrational] lengths as numbers". So such lengths were irrational, in the sense of illogical, that is "not to be spoken about" (ἄλογος in Greek).
Arithmetic
Irreducible fraction Every rational number may be expressed in a unique way as an irreducible fraction a b , {\displaystyle {\tfrac {a}{b}},} where a and b are coprime integers and b > 0. This is often called the canonical form of the rational number. Starting from a rational number a b , {\displaystyle {\tfrac {a}{b}},} its canonical form may be obtained by dividing both a and b by their greatest common divisor, and, if b < 0, changing the sign of the resulting numerator and denominator.
Embedding of integers Any integer n can be expressed as the rational number n 1 , {\displaystyle {\tfrac {n}{1}},} which is its canonical form as a rational number.
Equality
a b = c d {\displaystyle {\frac {a}{b}}={\frac {c}{d}}} if and only if a d = b c {\displaystyle ad=bc}
If both fractions are in canonical form, then:
… excerpt ends here. Continue reading the full article.




