From Arithmetic to Algebra

Learning goals

  • Read algebra as arithmetic's move from particular numbers to general claims
  • State the familiar laws as claims about every allowed number
  • Recognize an identity as an equation true for every allowed value
  • Test equivalence by substitution, and say what testing cannot prove
  • Disprove a general claim with a single counterexample

Letters can name unknowns or describe patterns

Adding 33 and 55 gives one answer. But why does swapping them leave that answer unchanged, and would the same thing happen with another pair? Algebra lets you ask about the pattern as well as calculate a particular result.

To do that, we use a variable: a letter that stands for a number whose name we do not know yet. Sometimes the name is unknown because we are trying to find it, as when we solve x+3=7x + 3 = 7 for the one value that fits. Other times the name is unknown on purpose, because we want a single statement to hold true no matter which number replaces the letter.

With the second use, one equation can stand for an endless list. You could check that

2+3=3+2,6+1=1+6,40+9=9+40,\begin{gathered}2 + 3 = 3 + 2,\\6 + 1 = 1 + 6,\\40 + 9 = 9 + 40,\end{gathered}

and so on, but the list would never end. Or you can write the whole pattern once:

a+b=b+a.a + b = b + a.

Here aa and bb can stand for any two numbers. The equation records a claim about every pair. In x+3=7x + 3 = 7, by contrast, we are looking for the particular number that makes the equation true.

The laws every number obeys

The familiar laws of arithmetic still apply when you use letters. They hold for real numbers, the numbers on the number line, including negatives, fractions, and numbers such as 2\sqrt2. Multiplication’s inverse law has one exception: zero has no reciprocal.

LawWith additionWith multiplication
Commutativea+b=b+aa + b = b + aab=baab = ba
Associative(a+b)+c=a+(b+c)(a + b) + c = a + (b + c)(ab)c=a(bc)(ab)c = a(bc)
Identitya+0=aa + 0 = aa⋅1=aa \cdot 1 = a
Inversea+(−a)=0a + (-a) = 0a⋅1a=1a \cdot \dfrac{1}{a} = 1 (for a≠0a \neq 0)

One more law links addition and multiplication, the distributive law:

a(b+c)=ab+ac.a(b + c) = ab + ac.

The commutative law lets you swap the order in a sum or product. The associative law lets you change the grouping. The identity law says that adding 00 or multiplying by 11 leaves a number unchanged: 00 is the additive identity and 11 the multiplicative identity. The inverse law pairs a number with its opposite (its additive inverse), or with its reciprocal (its multiplicative inverse) when the number is nonzero.

These laws describe arithmetic you already use. The next argument shows why addition can be reordered.

Why a+b=b+aa + b = b + a for every pair of numbers#

Combine 44 stones with 77 stones. You get the same heap whether you begin with the 44 or the 77. The total is 1111 in either order. The same reasoning works for piles of aa and bb stones: changing the order does not add or remove a stone, so a+b=b+aa + b = b + a for whole-number counts.

Adding a number means moving by it on the number line: right for a positive number and left for a negative one. So 3+(−5)3+(-5) and (−5)+3(-5)+3 describe the same two moves in opposite orders. Both land at −2-2: in either order, 33 units of rightward movement cancel 33 units of leftward movement, leaving 22 units to the left.

Now let the two moves have any sizes. If both point the same way, placing their lengths end to end gives the same total distance in either order. If either move is zero, it adds no distance.

For opposite directions, if the shorter move comes second, it walks back over part of the first. If it comes first, the longer move walks back over all of it and keeps going. Either way, the moves cancel over the shorter length. Call the rightward distance pp and the leftward distance nn. If p≥np \ge n, the moves cancel over nn units, leaving p−np-n units to the right, whichever comes first. If n>pn>p, they cancel over pp units, leaving n−pn-p units to the left. When p=np=n, both orders return to the start.

In every case, the end point depends only on the two distances and their directions, so both orders give the same result. This covers positive, negative, and zero moves, including fractional distances, so a+ba+b and b+ab+a reach the same point for every pair.

Identities: equations that are always true

An equation joins two expressions with an equals sign. Compare:

x+3=7,a+0=a,x+1=x.x + 3 = 7, \qquad a + 0 = a, \qquad x + 1 = x.

The first is true only when x=4x=4. Finding the values that make an equation true is called solving. The second is true for every aa. The third is never true: no number equals one more than itself. Other equations can be true at several values, such as x2=4x^2=4 at x=2x=2 and x=−2x=-2.

An identity is an equation true for every allowed value of its variables. The laws above are identities, with zero excluded from the reciprocal rule. Unlike x+3=7x+3=7, an identity does not ask us to find a value.

Check your understanding

Which equation states a general arithmetic law, an identity true for every allowed value rather than an equation to solve for one value?

Answer choices

Equivalent expressions

Two expressions are equivalent when they give the same value for every allowed input. They form the two sides of an identity. For example, 2(x+3)2(x+3) and 2x+62x+6 look different, but the distributive law says they always agree.

Why 2(x+3)2(x + 3) and 2x+62x + 6 are equivalent#

With x=4x=4, two copies of 4+34+3 can be regrouped as two 44‘s and two 33‘s:

2(4+3)=(4+3)+(4+3)=(4+4)+(3+3)=2(4)+6.\begin{aligned}&2(4+3)\\&=(4+3)+(4+3)\\&=(4+4)+(3+3)\\&=2(4)+6.\end{aligned}

We could do the same regrouping with any real number xx in place of the 44:

2(x+3)=(x+3)+(x+3)=(x+x)+(3+3)=2x+6.\begin{aligned} 2(x+3)&=(x+3)+(x+3)\\ &=(x+x)+(3+3)\\ &=2x+6. \end{aligned}

The associative and commutative laws allow the regrouping, so the equality holds for every xx.

The same picture appears in a rectangle, where the distributive law becomes a statement about area.

Area model for the distributive lawA rectangle of height a and total width b plus c is divided by a vertical line into a left rectangle labeled ab and a right rectangle labeled ac, so a times the quantity b plus c equals ab plus ac.abcabaca(b + c) = ab + ac
For positive lengths a, b, and c, cutting this rectangle shows a(b + c) = ab + ac: the whole area is the sum of the two pieces. The distributive law also holds for negative numbers, which cannot be side lengths.

Two expressions can look alike without being equivalent. The expressions 2(x+3)2(x + 3) and 2x+32x + 3 differ only in what the parentheses cover. To show they are not equivalent, we only need one value of xx where they give different answers.

Worked example 1 Are these expressions equivalent?

Start with 4(n+1)4(n + 1) and 4n+44n + 4. Using the distributive law, multiply the 44 by each term inside the parentheses:

4(n+1)=4n+4.4(n + 1) = 4n + 4.

Because the distributive law holds for every number, this equality holds for every nn, so the two expressions are equivalent.

Now compare 4(n+1)4(n + 1) with 4n+14n + 1. Here the 44 multiplies only the nn. Test a single value, say n=2n = 2:

4(2+1)=12,4(2)+1=9.4(2 + 1) = 12, \qquad 4(2) + 1 = 9.

The two disagree at n=2n = 2, so 4(n+1)4(n + 1) and 4n+14n + 1 are not equivalent.

Substitution and counterexamples

To substitute is to replace a variable with a chosen number and then do the arithmetic. Writing the number in parentheses where the letter used to be keeps the operations and signs intact, so 5x5x at x=7x = 7 becomes 5(7)=355(7) = 35 rather than the meaningless ”5757.” You can use substitution to test a claimed identity.

Testing numbers can show that a claim is false, but it cannot show that the claim is true for every number. One disagreement disproves an “every number” claim, while agreements at a few numbers leave the other numbers untested.

Why one counterexample disproves a claim but examples cannot prove it#

Suppose someone claims n+1=2nn+1=2n for every number. At n=1n=1, both sides are 22. But at n=2n=2, they are 33 and 44. That failure is a counterexample: it disproves the claim about every number.

This works for any claimed identity. If it fails at even one allowed value, it is not an identity, because “every” includes the value where it failed. Checking examples cannot prove it, though: however many numbers you check, there are always others you have not tried, and the claim might fail at one of them.

To prove an identity, we need a reason that works for every allowed value at once. In the earlier proof, the regrouping worked for any xx, so it proved the identity without testing numbers one by one.

The next example tests a claim that agrees at two values.

Worked example 2 Is n+n=n⋅nn + n = n \cdot n an identity?

A claim that two expressions are always equal is a claim about every number, so try a few values and look for one where the two sides do not match.

At n=2n = 2 the two sides agree:

2+2=4,2⋅2=4.2 + 2 = 4, \qquad 2 \cdot 2 = 4.

At n=0n = 0 they agree again, since 0+0=00 + 0 = 0 and 0⋅0=00 \cdot 0 = 0. But two examples are not enough to show that it works for every number. Try n=3n = 3:

3+3=6,3⋅3=9.3 + 3 = 6, \qquad 3 \cdot 3 = 9.

The disagreement at n=3n=3 disproves the claimed identity.

Check your understanding

A student tests n2=4nn^2 = 4n at n=0n=0 and n=4n=4, and both tests agree. Which response correctly decides whether the equation is an identity?

Answer choices

The order of operations does not change

When letters appear in an expression, we use the same order of operations as before. Parentheses come first, then exponents, then multiplication and division from left to right, then addition and subtraction from left to right. So 2+3x2 + 3x means 2+(3x)2 + (3x), with the multiplication done before the addition, and it is a different expression from (2+3)x(2 + 3)x. When you substitute a number, follow the order of operations to get the right value.

Worked example 3 Evaluate 7−2x7 - 2x when x=3x = 3

Substitute 33 for xx, in parentheses, then follow the order of operations:

7−2x=7−2(3).7 - 2x = 7 - 2(3).

Multiplication comes before subtraction, so multiply first:

7−2(3)=7−6=1.7 - 2(3) = 7 - 6 = 1.

The value is 11. It is not (7−2)(3)=15(7 - 2)(3) = 15; the subtraction does not happen first just because it is written first.

Check your understanding

Evaluate 3+4x3 + 4x when x=2x = 2.

Answer choices

Turning words into algebra

To translate a problem, name the unknown with a letter and turn the relationships into operations. “More than” and “increased by” signal addition; “times” and “the product of” signal multiplication. “Divided by” signals division, as does “per” in a rate such as miles per hour. Watch the order in “less than”: ”55 less than nn” means n−5n-5, because nn is the starting amount.

A phrase such as “twice a number” names a value, giving the expression 2n2n. A statement such as “twice a number is ten” says two values are equal, giving the equation 2n=102n=10. So write an equals sign only when the words say that two things are equal.

Worked example 4 Translate two statements into algebra

Name the unknown number nn in each, then read carefully for a claim that two amounts are equal.

“Twice a number, decreased by five” is a phrase. Twice the number is 2n2n, and decreased by five subtracts 55:

2n−5.2n - 5.

It names a value but does not say that anything is equal, so it is an expression.

“The sum of a number and eight is twenty” is a full statement, and the word is acts as the equals sign. The sum of the number and eight is n+8n + 8, set equal to 2020:

n+8=20.n + 8 = 20.

That equals sign makes it an equation, a sentence you could later solve to find nn.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

People used the familiar arithmetic laws long before they gave them their modern names. In 1814, French army officer and mathematics teacher Francois-Joseph Servois introduced commutative and distributive while studying mathematical operations. Around 1843, Irish mathematician William Rowan Hamilton used associative in his work on quaternions, a new kind of number. Quaternion multiplication could change when its factors changed order, even though regrouping still worked. Naming the laws helped mathematicians describe exactly what these new numbers kept and what they changed.

An older convention came from Rene Descartes. In his 1637 Geometry, he used letters near the start of the alphabet, such as aa, bb, and cc, for known quantities, and letters near the end, such as xx, yy, and zz, for unknowns. The habit spread, but it remains a convention. In 2(x+3)=2x+62(x+3)=2x+6, xx can be any number; there is no particular unknown to find. The equation tells you what job the variable is doing, whichever letter is used.

Sources: Servois; Hamilton’s use of associative; Descartes and algebraic notation.

Your progress

See all your progress →