Algebra for Parents and Future ML Engineers
Real Numbers
The Number Family Tree
Our journey into numbers starts with the basics: the ones we first learn to count with. These are the natural numbers, also called counting numbers. They are simple, straightforward, and positive.
$1, 2, 3, 4, ...$
Soon after, we encounter a powerful concept: zero. When we add 0 to the set of natural numbers, we get the whole numbers.
$0, 1, 2, 3, ...$
But what about numbers less than zero? Think of debt, or temperatures below freezing. For this, we need negative numbers. Combining the whole numbers with their negative counterparts gives us the integers.
$..., -3, -2, -1, 0, 1, 2, 3, ...$
So far, we have whole numbers and their opposites. But much of the world exists in between these integers. Think about sharing a pizza or measuring a piece of wood. For that, we need fractions.
Numbers Between Numbers
Any number that can be written as a fraction, where the top and bottom are both integers (and the bottom isn't zero), is called a rational number. The name comes from "ratio." This set includes all the integers we've already met (since any integer can be written as a fraction over 1, like ) plus many more.
Rational numbers, when written as decimals, either terminate (like ) or repeat a pattern forever (like ).
However, there's another class of numbers. These are the loners of the number world. They can't be written as a simple fraction. Their decimal representations go on forever without ever repeating a pattern. These are the irrational numbers.
Famous examples include (the ratio of a circle's circumference to its diameter) and (the number which, when multiplied by itself, gives 2). No matter how many decimal places you calculate, they never end and never repeat.
When you take all the rational numbers and all the irrational numbers and put them together, you get the complete set of real numbers. They represent every possible point on a number line.
The Rules of the Road
Real numbers aren't a chaotic jumble; they follow a set of consistent rules, or properties. These properties are the bedrock of algebra, ensuring that our calculations are predictable and logical.
Commutative Property
adjective
The order of the numbers does not change the result for addition and multiplication.
Think of it this way: putting on your left sock then your right sock is the same as right then left. The order doesn't matter. The same is true for adding or multiplying two numbers.
The Associative Property is about grouping. If you're adding or multiplying three numbers, it doesn't matter which pair you start with. The result is the same.
Next is the Distributive Property. This one connects multiplication and addition. It says that multiplying a number by a group of numbers added together is the same as doing each multiplication separately.
For example, is . Using the distributive property, it's . Same result.
Finally, we have the Identity and Inverse properties. For addition, the identity is 0, because adding 0 doesn't change a number. For multiplication, the identity is 1, because multiplying by 1 leaves a number unchanged.
The inverse property says that every number has an opposite that brings it back to the identity. For addition, the inverse of a number is (its opposite), because . For multiplication, the inverse of a non-zero number is its reciprocal, , because .
| Property | Addition Example | Multiplication Example |
|---|---|---|
| Identity | ||
| Inverse |
These numbers and their properties form the language of algebra. Understanding them is the first step toward solving complex equations and building powerful models.
Which set of numbers is created by adding 0 to the set of natural numbers (1, 2, 3, ...)?
Which of the following numbers is an irrational number?