Fractions

Reference

A={xproperty}A = \{ x | property \}

  • N\mathbb{N} is the set of Natural numbers (positive integers including zero).

  • Z\mathbb{Z} is the set of Integers numbers (also negative).

  • \cup is the union operator symbol.

  • \cap is the intersection operator symbol.

  • \setminus is the union difference symbol.

  • \in is the "belongs to set" symbol.


  • A statement "A" can be only True or False

  • \lor is logical or

  • \land is the logical and

  • ¬A\lnot A indicates the negation of "A"

  • x(statment)\exists x(statment) indicates that the "x" present in the statement is a variable that makes the statement True for "at least" a value of x.

  • x(statment)\forall x(statment) indicates that the "x" present in the statement is a variable that makes the statement True for "all possible" values of x.

  • A    BA \iff B is a "if and only if", making A and B having the same truth value.

Here's a recap of some properties:

  • Commutativity: ab=baa \circ b = b \circ a

  • Associativity: x(yz)=(xy)z=xyz x \circ (y \circ z) = (x \circ y) \circ z = x \circ y \circ z

  • Identity element e: ex(xe=ex=x)\exists e \forall x (x \circ e = e \circ x = x)

  • Zero element e: ex(xe=ex=e) \exists e \forall x (x \circ e = e \circ x = e)

  • Distributive: x(yz)=(xy)(xz) x \circ (y \Box z) = (x \circ y) \Box (x \circ z)

  • Inverse: x(yz)=(xy)(xz) x \circ (y \Box z) = (x \circ y) \Box (x \circ z)


  • Addition: Commutative, Associative, Identity on 00

  • Subtraction: Inverse of Addition

  • Multiplication: Commutatiive, Associative, Identity on 11, Zero element on 00, Distributive over Addition

  • Division: Inverse of Multiplication, Distributive over Addition (and Subtraction)

Beyond the Integers

We've seen now with subtraction that any time we run into "issues" with our operations, as we don't know how to do a particular operation with some values, we can expand our concepts of what numbers are, and extend the amount of mathematics we're able to do.

Definition

Here we introduce the concept of fraction, and this opens up a whole new branch of numbers for us to deal with.

A fraction is a number that is not an integer/or whole number, and this encodes a part that can be express through a division of two whole numbers.

a=xya = \frac{x}{y}

Before, when we had to deal with numbers between the integers, we just basically gave up and defined the operation to be impossible. Now instead, we introduce the set of fractional numbers. The set Q\mathbb{Q}:

Q={xyxZ,yZ,y0} \mathbb{Q} = \{ \frac{x}{y} | x \in \mathbb{Z}, y \in \mathbb{Z}, y \neq 0 \}

The above defintion says that the set Q\mathbb{Q} is made up by elements of the form xy\frac{x}{y}, where both xx and yy are integers. The easiest and most common comparison of these numbers is a cake. Assume that the number 11 represents a whole cake. Then the number yx\frac{y}{x} represents taking yy slices of a cake divided in xx equal sizes.

With actual numbers, 27\frac{2}{7} represents taking 2 slices out of a cake divided in 7 equal parts. Sadly, the comparison with actual food stops here as the numerator (the top number in the fraction) does not have to be always lower than the bottom part. Ergo we could express things such as 7 slices of a cake divided in 5, but we would be borrowing 2 slices from another cake... This could be expressed then as:

75=5+25=55+25=1+25\frac{7}{5} = \frac{5+2}{5} = \frac{5}{5} + \frac{2}{5} = 1 + \frac{2}{5}

To explain step by step the above, we know that 7=5+27=5+2, so we replace our "7" with "5+2". Then as I mentioned in the previous article, division is commutative over addition, and our fraction is nothing more than the result of (5+2)/5(5+2)/5. Therefore we separate the division on each single "+" term, and we know that xx\frac{x}{x} is 11, (due to how the inverse operation of 1x=x1*x=x).

Some examples of expression manipulation

It's also important to note that, while "+" is distributed, the same is not possible for *. Let's take a number "x", and see how we can transform it around.

x=x1 x = x*1

So far, nothing impossible, we know that any number multiplied by 1 is the same exact value.

x1=xyy x*1 = x*\frac{y}{y}

We only replaced "1" with "y/y", but with a caveat that y0y\neq 0. Now, intuitively, we can replace the "*" symbol, with a repeated addition, as we defined it way back.

yy++yyx times \overbrace{\frac{y}{y} + \ldots + \frac{y}{y}}^{x \text{ times}}

And now, as we saw above, we have an addition of many fractions with all the same "slice size" or also called denominator (the number at the bottom), and therefore we can regroup them.

y++yx timesy \frac{\overbrace{y+\ldots+y}^{x \text{ times}}}{y}

We can regroup the addition back into a multiplication.

xyy \frac{x*y}{y}

Therefore, a single division works for the entirety of the multiplicative term above. While an addition on the numerator part breaks the fraction in multiple smaller fractions, a multiplication (talking about the main operators on precedence of course) does not do the same. Due to this property, we can also write things like:

1=1yy=1yy=y1y=y1y 1 = 1*\frac{y}{y} = \frac{1*y}{y} = \frac{y*1}{y} = y * \frac{1}{y}

And treating every denominator as a multiplication by its inverse (1expression\frac{1}{\text{expression}}) makes very clear that, if a fraction is multiplied by its denominator, only the numerator remains. As an example:

x+zyy=x+z \frac{x+z}{y}*y=x+z

Therefore, when solving equations, it's important to keep in mind that we can always multiply both sides of the equation by the denominator, in order to try and get rid of the fraction.

4+5x=84+\frac{5}{x}=8

Multiply by "x":

4x+5=8x4*x+5=8*x

Shuffle around...

5=8x4x5=8*x-4*x

Simplify:

5=4x5=4*x

Divide both terms by 4:

54=4x4\frac{5}{4} = \frac{4*x}{4} 54=44x\frac{5}{4} = \frac{4}{4}*x 54=x\frac{5}{4} = x

A bit more explicit, but it shows every step, without any shortcuts.

Another thing to note is that, whenever a common term is multiplied on both numerator and denominator, we can "elide" it from both sides, provided that it's a term that multiplies the whole upper part and the whole lower part.

x(expression1)x(expression2)=expression1expression2\frac{x*(\text{expression}_1)}{x*(\text{expression}_2)}=\frac{\text{expression}_1}{\text{expression}_2}

And as an example:

3x+36x+3=3(x+1)3(2x+1)=x+12x+1 \frac{3*x+3}{6x+3} = \frac{3*(x+1)}{3*(2*x+1)} = \frac{x+1}{2*x+1}

In the above expression, we cannot easily simply further, as the "+" on the denominator is what is sadly stopping us. In the first step, the "multiplication" was as the last term, and that made it possible to group terms, but in this way, we cannot find any common multiplicative factor.

Also, dividing by "-1" is equal to multiplying by "-1", and let's make it explicit:

x1=x11=x11 \frac{x}{-1} = \frac{x*1}{-1} = x*\frac{1}{-1}

So far applying only what we've seen, we know that (1)(1)=(1)=1(-1)*(-1)=-(-1)=1, so we change the 1 in the numerator, and the denominator is simply expanded as being multiplied by "1" (which does not change the value):

x11=x(1)(1)(1)1 x*\frac{1}{-1}=x*\frac{(-1)*(-1)}{(-1)*1}

We now see a common "-1" to group up between the numerator and denominator:

x(1)(1)(1)1=x11x*\frac{(-1)*(-1)}{(-1)*1} = x*\frac{-1}{1}

We know that y/1=yy/1=y, that is, dividing by 1 does not change the value, so our "-1" stays:

x(1)=xx*(-1) = -x

Therefore, dividing by "-1" is equal to negating the numerator. Since every negative number can be also expressed as "-1*x", we can repeat this whole process, and simply negate the numerator:

yx=yx\frac{y}{-x} = \frac{-y}{x}

A small preview

While we've seen what fractions are, we'll first introduce very informally decimal numbers. Usually seen in prices, numerals are written in the form "<digits>.<digits>" or depending on the country "<digits>,<digits>".

As an example, 4.53$4.53\$ (or €) is a commonly seen form to indicate a price. The ".53" part is called in "cents", because it's expressed in the form

53100\frac{53}{100}

. Therefore the price above would be a short form for:

4+531004+\frac{53}{100}

What if we need to indicate more precise fractionary parts? In the notation we add a digit at the end, like 4.5364.536, which now means:

4+53610004+\frac{536}{1000}

Let's try to take it apart, expressing each digit as a sum:

4+5361000=4+500+30+610004+\frac{536}{1000} = 4+\frac{500+30+6}{1000}

We know the sum can be taken apart:

4+5001000+301000+610004+\frac{500}{1000}+\frac{30}{1000}+\frac{6}{1000}

Now we can take apart these numbers by knowing that 500=5100500=5*100, and that 1000=101001000=10*100, which gives us the same "100" to group up and remove:

4+510010100+31010100+610004+\frac{5*100}{10*100}+\frac{3*10}{10*100}+\frac{6}{1000}

We remove the common terms from each fraction (which we can because each numerator/denominator is a single multiplication):

4+510+3100+610004+\frac{5}{10}+\frac{3}{100}+\frac{6}{1000}

And that's a very easy way to express a decimal number (decimal because it's all fractions of ten... and powers of ten, basically the inverse of 10,100,1000,....). If we added another digit, it would be simply of the form x10000\frac{x}{10000} and so forth. We can also intuit that the "4" here is not special, and could be just expressed as 41=4\frac{4}{1} = 4.

An extra property

When we get to adding fractions together (or subtracting), we do so only on their numerators, provided the denominator is the same.

ab+cda+cb+d\frac{a}{b} + \frac{c}{d} \neq \frac{a+c}{b+d}

How do we simplify the above in a single fraction? We just reuse the knowledge that :

  • Any number "x" has property x=x1x=x*1.

  • And 1 can be expressed as such 1=yy1=\frac{y}{y}.

Therefore:

abyy=ayby\frac{a}{b}*\frac{y}{y}=\frac{a*y}{b*y}

So our conundrum above can be solved by making sure the denominator becomes the same:

ab+cd=abdd+cdbb\frac{a}{b} + \frac{c}{d} = \frac{a}{b}*\frac{d}{d} + \frac{c}{d}*\frac{b}{b}

With our properties above, we can see that when we have two fractions being multiplied, the numerators are multiplied together, and so are the denominators.

This works also for a whole number:

aby=aby1=ayb1=ayb\frac{a}{b}*y=\frac{a}{b}*\frac{y}{1}=\frac{a*y}{b*1}=\frac{a*y}{b}

abdd+cdbb=adbd+cbdb\frac{a}{b}*\frac{d}{d} + \frac{c}{d}*\frac{b}{b} = \frac{a*d}{b*d} + \frac{c*b}{d*b}

A bit of commutativity on the multiplication on the denominator:

adbd+cbdb=adbd+cbbd\frac{a*d}{b*d} + \frac{c*b}{d*b} = \frac{a*d}{b*d} + \frac{c*b}{b*d}

We are now finally sure the denominators are the exact same so we sum together the numerators:

adbd+cbbd=ad+cbbd\frac{a*d}{b*d} + \frac{c*b}{b*d} = \frac{a*d + c*b}{b*d}

And that's the true result of that addition. Since the quantities a,b,c,da,b,c,d are all abstract, we could replace them with any expression, and reapply this final result.

CC BY-SA 4.0 Anwill. Last modified: January 07, 2025. Website built with Franklin.jl and the Julia programming language.