Fraction (mathematics)
In mathematics, a fraction is a concept used to convey a proportional relation between a part and the whole. It consists of a numerator (an integer - the part) and a denominator (a natural number - the whole). For instance, the fraction can represent three equal parts of a whole object, if the object is divided into five equal parts. A fraction with equal numerator and denominator is equal to one (e.g., ). We can represent all rational numbers with fractions.
Fractions are a special case of ratios. For instance, is a valid ratio, but it is not a fraction since we cannot compute an equivalent fraction with integer numerator and integer denominator.
Since we can compute the quotient from a fraction, we can represent any fraction with a decimal number (e.g., ). However, because the division by zero is undefined, zero should never be the denominator of a fraction.
Due to tradition and conventions, there are at least two ways to write a fraction. The numerator and the denominator may be separated by a slash (a slanted line : 3/4), or by a vinculum (an horizontal line : ).
Basic operations
The most common operations done on fractions are addition, substraction, multiplication, and division. In order to perform the addition and the substraction, we must frequently compute the equivalent fractions. We may need the multiplicative inverse when dividing.
The end result must be an irreducible fraction.
In this section, and , .
Equivalent fractions
A fraction where the numerator and the denominator do not have any common factor, 1 excepted, is said irreducible (or in its lowest terms). If it is not the case, then we divide its numerator and its denominator by their gcd.
Multiplying (or integer dividing) the numerator and the denominator of a fraction by the same non-zero integer results in a new fraction that is said to be equivalent to the original fraction. For instance, is not in lowest terms because both 4 and 20 can be exactly divided by 4, giving (the quotient of both fractions is 0.2). In contrast, is in lowest terms.
Inverses
The additive inverse of a fraction is :
The multiplicative inverse of a fraction is :
- .
Addition
Formally, apply this algorithm to add two fractions :
By hands, the addition is done like this.
- Compute an equivalent fraction of and , making sure both have the same denominator.
- For the resulting fraction,
- Add the numerators to get its numerator.
- Set its denominator to the computed denominator (the three fractions have the same denominator).
- Reduce the resulting fraction if you need to.
For instance, what is the result of ?
Let's find a number that both denominators will divide : It is 12. We are ready to compute the equivalent fractions :
This is the final answer since it is an irreducible fraction.
Substraction
Formally, apply this algorithm to substract two fractions :
By hands, the substraction is done like this.
- Compute an equivalent fraction of and , making sure both have the same denominator.
- For the resulting fraction,
- Substract the numerators to get its numerator.
- Set its denominator to the computed denominator (the three fractions have the same denominator).
- Reduce the resulting fraction if you need to.
Since this algorithm is very similar to the addition algorithm, we do not give any example.