# Elementary Algebra

How do we describe relations between different things? How can we figure out new true things from true things we already know? How can we find and think about patterns we notice with numbers? Algebra is a unified framework for thinking about these questions, and gives us lots of tools to help us answer them, which work in an extremely wide variety of situations.

# Equations

Algebra is based on the arithmetic of numbers, and the relations between them. Let’s look at a basic equation: $$2 + 2 = 4$$\$ The ‘equals’ sign (=) tells us that both sides of the equation are actually the same. If we have two, and add two more to it, then we’ll have four.

Some other relations are ‘less than’ (<), for example $$2 < 4$$. or ‘greater than’ (>), for example $$5 > 1$$.

## The right order

In equations, parenthesis tell us the right order to do things—things inside of parenthesis have to be done before the rest. This is important because doing things in different orders can give us different answers!

$$2 + (3 \times 4) = 14$$
$$(2 + 3) \times 4 = 20$$

It’s annoying to have to use parentheses all the time (though it might be helpful if you find yourself getting confused about something). It would be nice if we could just write $$2 + 3 \times 4$$ and have everyone know that we meant $$2 + (3 \times 4)$$ . There’s a standard order of operations that everyone uses so that we don’t have to use too many parentheses.

# Balancing the truth

If we know one equation, what are some ways we could get new equations from it, that will still be true? We could make a change to one side, but then the equation would stop being true… unless we did the same change to the other side also! For example, we know $$2+2=4$$. What if we add three to both sides? If we check $$(2 + 2) + 3 = 4 + 3$$, we can see that it’s still true!

## Substitution

One way of getting new true things is really important. If we know two things are the same, we can always substitute one of them for the other, and this automatically will give us an equality relation between the two things!

This is really helpful for breaking down calculations into manageable pieces. For example, if we want to calculate $$2^3 \times 2^4$$, we can first expand $$2^3 = 2 \times 2 \times 2$$, and then calculate $$2 \times 2 \times 2 = 8$$. Now, we combine these last two equations to see that $$2^3 = 8$$. Often, people will do both of these in one step, so if you ever are having a hard time figuring out how someone got an equation, you can try breaking it down like this to see if that helps. Next, we can do the same thing to see that $$2^4 = 2 \times 2 \times 2 \times 2 = 16$$. We can then substitute both of these back into the original expression, to get $$2^3 \times 2^4 = 8 \times 16$$. One final calculation lets us see that $$2^3\times 2^4 = 128$$.

# Naming numbers

What are all those letters doing in math, anyway?

When you first learn someone’s name, do you know everything there is to know about them? Sometimes, we know that there’s some number that fits in an equation, but we don’t know what particular number it is yet. It’s really helpful to be able to talk about the number anyway, in fact, giving it a name is often the first step to figuring out what it really is.

This kind of name is called a variable.

## Doing lots of things at once

Another way names are useful is if we want to say something about lots of numbers at once! For example, you might notice that $$0 \times 3 = 0$$, $$0 \times -4 = 0$$, $$0 \times 1224 = 0$$ and so on. In fact, it’s true that zero times any number is zero. We could write this as $$0 \times \text{any number} = 0$$. Or if we need to keep referring to that number, we could give it a shorter name, while mentioning it could be any number: $$0 \times x = 0$$, where $$x$$ can be any number. This is really useful because it allows us to express patterns much more easily!

# Important patterns

These patterns hold for all natural numbers, integers, and rational numbers, including for variables that are known to be one of these types of numbers, and much more! For an in-depth exploration of these patterns and their consequences, see the page on rings.

## Commutativity

$$a + b = b + a$$
$$a \times b = b\times a$$

## Identity

$$0 + a = a$$
$$1 \times a = a$$

## Associativity

$$(a + b) + c = a + (b + c)$$
$$(a \times b ) \times c = a \times (b\times c)$$

## Distributivity

$$a \times (b + c) = a\times b + a\times c$$

$$a + (-a) = a - a = 0$$

# Next steps

Parents:

• Mathematics

Mathematics is the study of numbers and other ideal objects that can be described by axioms.

• This is sentence is kind of confusing. It seems like it’s trying to say that if we know A = B, then we can substitute A for B (or vice versa) and get…. A = B?

It seems like it should say that if A = B, and A occurs in some equation, then we can substitute B in for A in that equation, and the resulting equation will hold.

• I suspect that this is going to be too fast-paced for beginners. They are going to need multiple examples and exercises for each of the concepts introduced.