MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Lower Secondary
MathematicsLower Secondary

What is algebra — using letters for unknowns

L2.1 — Algebraic ExpressionsLecture 1 of 4~2630 words

A trick that always ends at 3

Try this with a friend. Ask them to think of a number and keep it secret. Then give four instructions. Double it. Add 6. Halve the answer. Now subtract the number you first thought of. Without asking anything, you tell them the result: 3.

Try it yourself with 7. Double it: 14. Add 6: 20. Halve it: 10. Subtract 7: 3. Now try 100. You get 200, then 206, then 103, and then 3 again. Try a negative number, −4. You get −8, then −2, then −1. Subtract −4, which means add 4, and you reach 3. Even 0.5 ends at 3.

So the trick seems to work. But two questions are still open. Does it work for every number? And why does it work? Trying more numbers cannot answer either question. This lecture builds the tool that answers both. The tool is algebra.

Why checking examples is not enough

There are infinitely many numbers. You can check a thousand of them, and the next one might still fail. That sounds unlikely, so here is a real case.

In 1772, the mathematician Leonhard Euler wrote about the rule "square a whole number, add the number, then add 41". Start at 0. You get 41, which is prime. With 1, you get 43. With 2, you get 47. With 3, you get 53. All of these are prime. In fact, the answer is prime for every whole number from 0 to 39. That is forty primes in a row. Anyone who checked forty cases would feel sure.

Now try 40. You get . And , so it is not prime. The pattern breaks at the forty-first case.

This is why mathematicians do not trust a pattern only because it has worked many times. They want a reason that covers every case at once. For the number trick, that reason needs a way to talk about "the number your friend chose" without knowing what it is.

A box for a number nobody has chosen

Here is the idea. Picture the secret number as a closed box. You do not know what is inside. But you can still follow every instruction with the box, exactly as your friend does with the real number. Use small counters for the numbers you do know, such as the 6.

Think of anumber n Double it 2n Add 6 2n + 6 Halve it n + 3 Subtract yournumber 3
The puzzle with a box for the secret number and counters for the ones. Halving shares everything into two equal groups and keeps one group: one box and three counters. Taking away the box leaves three counters. The right-hand column writes each row with the letter .

Follow the picture row by row. Doubling gives two boxes. Adding 6 puts six counters beside them.

The next step is the hard part of this lecture. Spend time here. You must halve "two boxes and six counters". You cannot open the boxes, so share the whole collection into two equal groups. Each group gets one box and three counters. So half of "two boxes and six counters" is "one box and three counters". Halving a collection halves every part of it.

The last instruction says to subtract the number you first thought of. That number is exactly what is inside one box. So take the box away. Three counters are left, whatever was inside the box.

That is it. That is the whole idea. The box stood for any number, so the argument works for every number at once. Nothing was checked; something was explained. The box goes in and comes out again, and only the 3 is left.

Drawing boxes takes time, so mathematicians use a letter instead. Let stand for the secret number. Then "double it" is , "add 6" is , "halve it" is , and "subtract your number" leaves . The right-hand column of the figure is the same argument, written short.

In the explorer below, the letter column never changes, while the number column changes with every number you choose. That is the point of a letter: one line of algebra stands for every line of numbers.

Explore — one column of letters, every column of numbers

Choose a secret number with the slider, the − and + buttons or a preset. Then choose what to add in step 2. Compare the two columns: the numbers change, the letters do not.

Presets:

Secret number n =

Step 2 adds:

InstructionWith your numberWith the letter

The table follows the puzzle (add 6 in step 2) for four different secret numbers. The last column is the same for all of them.

Instruction7100−4With the letter
Double it14200−8
Add 620206−2
Halve it10103−1
Subtract your number333

If step 2 adds 10 instead, every number ends at 5. If it adds 14, every number ends at 7. The answer is always half of the number added.

What should you have seen? Whatever number you chose, the numbers ended at the same place as the letters. Change the 6 to 10 or 14, and the letters predict the new ending before you try a single number: half of what you added. The letter does not need to know the number. That is why algebra can explain a pattern, not only describe it.

How algebra is written

Algebra has a few short ways of writing. Each one has a reason.

The last point keeps a promise. The lecture on index notation said that its laws would come back when letters arrive. Here they are. is two factors of and then three more, so it is . The counting is exactly the same as for . The letter changes nothing, because the counting never depended on the number.

Stop and think

If , what is the value of ? Many students say 25. Why is that wrong?

Show the answer

means , so it is . The answer 25 puts the digits 2 and 5 side by side, as if were a two-digit number. In algebra, writing things side by side means multiplying. The same rule explains why is .

The words of algebra

Look at . Several words describe its parts.

The parts of algebra

A variable is a letter that stands for a number. A constant is a fixed number, such as 5 or −3.

A term is one part of an expression. Terms are separated by + and − signs, and each term keeps the sign in front of it. In , the terms are and .

A coefficient is the number that multiplies a variable. In , the coefficient of is 5. A term with no letter is a constant term. In , it is .

An expression is a combination of numbers and letters with operations, but no equals sign. An equation says that two things are equal, so it has an equals sign.

Why does a term keep its sign? Think of as ", and then ". The minus sign belongs to the 2. This matters as soon as terms are moved around. is not the same as . Try : the first gives 3, the second gives −3.

The difference between an expression and an equation is a difference in meaning. The expression has no single value. Its value depends on . The equation makes a claim. The claim is true for one value of and false for every other. Here it is true only when , because . A later lecture shows how to find such values without guessing.

So a letter can do two jobs. In the equation , the letter is an unknown: one particular number that we want to find. In the expression from the puzzle, the letter is a variable: it can take any value, and we want to say something true for all of them.

A formula is an equation that links two or more quantities. The area of a circle, , is a formula. So is from physics. Every formula is a sentence in the language of algebra. Each letter stands for a quantity, and the equals sign says how they are linked.

Stop and think

In the expression , what are the terms? What is the coefficient of ?

Show the answer

The terms are , and . The coefficient of is −1, because means . The coefficient of is 4, and the constant term is 7.

Putting a number in

To evaluate an expression means to find its value for given values of the letters. You substitute: replace each letter with its number, then calculate. The usual order of operations still holds. Powers come first, then multiplying and dividing, then adding and subtracting.

For when : replace with 4 to get . Multiply first: . Notice that becomes , not 34. The multiplication sign comes back as soon as a number replaces the letter.

Negative numbers need one extra habit. Put every substituted value in brackets. When , the expression becomes . The bracket says that the whole of −3 is squared, so . Without the bracket, means "the opposite of ", which is −9. The negative numbers lectures showed why a negative times a negative is positive. The bracket is how you make sure that rule is used.

Here is a student's working with exactly that problem. One line is wrong. Find it.

Spot the error — a negative number put into a square

A student evaluates when and . Tap the first line that is wrong. Read the explanation for every line you tap.

A student evaluates 2a² − 3b when a = −3 and b = −2. The working, with the mistake marked:

  1. Replace a with −3 and b with −2. (Correct.)
  2. 2a² − 3b = 2 × −3² − 3 × (−2) (Wrong: −3 needs a bracket. Without it, only the 3 is squared. It should be 2 × (−3)² − 3 × (−2).)
  3. = 2 × (−9) + 6 (This follows from line 2, so the mistake is carried on.)
  4. = −18 + 6 = −12 (The arithmetic is right, but the answer is wrong. The correct value is 2 × 9 + 6 = 24.)

The student bracketed −2 but not −3. That is why the habit must be "every value, every time", not "when it looks necessary". Check the correct answer another way: is a square, so can never be negative. The answer −12 came from a negative , which is impossible.

Worked examples

Worked Example 1 — A puzzle that returns your number

Think of a number. Add 5. Double it. Subtract 10. Halve it. What do you get, and why?

Let the number be . Add 5: . That is one box and five counters.

Double it: two boxes and ten counters, which is . Doubling a collection doubles every part of it, just as halving halved every part.

Subtract 10: . Halve it: .

You get back the number you started with. Check with 8: 13, 26, 16, 8. ✓

Worked Example 2 — A phone plan

A phone plan costs a fixed 15 dollars each month, plus 0.05 dollars for each text message. Write an expression for the monthly cost in dollars when messages are sent. Find the cost for 200 messages.

Each message costs 0.05, so messages cost . Add the fixed charge: the cost is dollars.

For 200 messages: dollars.

Check. With no messages, , the cost is dollars, the fixed charge. That matches the plan. ✓ Here is a variable: it changes from month to month, and one expression covers every month.

Worked Example 3 — Two letters, one negative

Evaluate when and .

Substitute with brackets: .

Multiply first: .

Adding −6 means subtracting 6. Subtracting −8 means adding 8. So the value is .

Check each term on its own: , , . Then . ✓

Worked Example 4 — Writing an expression from words

Ama is years old. Her brother is 3 years younger than her. Her mother is three times her age. Write an expression for the total of their three ages. Find the total when Ama is 12.

Brother: 3 years less than , so . Mother: three times , so .

Total: .

When : years.

Check the ages make sense: Ama 12, her brother 9, her mother 36. The brother is younger than Ama, and the mother is the oldest. ✓ This expression can be written much more shortly. The next lecture shows how.

Trap 1 — Reading 2n as a two-digit number

means . When , , not 25. Whenever a number replaces a letter, write the × sign back in: .

Trap 2 — Substituting a negative number without a bracket

When , is . Writing gives −9, because only the 3 is squared. Put every substituted value in brackets, every time.

Trap 3 — Treating a letter as an object

A letter stands for a number, never for a thing. "Pens cost dollars each" means is the price of one pen. It does not mean " is a pen". So is the cost of 4 pens, in dollars. Reading as "4 pens" leads to wrong expressions, such as writing for "4 pens".

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Write an expression for each of these. Then find each value when . (a) 5 more than . (b) multiplied by 4, then 7 subtracted. (c) Half of . (d) The square of .

    Hint 1

    Follow the words in order. "Multiplied by 4" is . Write division as a fraction.

    Hint 2

    The expressions are , , and . Now replace with 6.

    Full answer

    (a) . (b) . (c) . (d) . Check (b) with the words: 6 times 4 is 24, and 7 less is 17. ✓

  2. (a) Evaluate when and . (b) Evaluate when .

    Hint 1

    Put every value in brackets before you calculate.

    Hint 2

    (a) . (b) .

    Full answer

    (a) . (b) and , so . Check (b): is , and . ✓

  3. Look at . (a) List its terms. (b) Give the coefficient of , of and of , and the constant term. (c) Is an expression or an equation? Why?

    Hint 1

    Each term keeps the sign in front of it.

    Hint 2

    means . Look for an equals sign in (c).

    Full answer

    (a) , , and . (b) The coefficient of is 7, of is −1, of is −2. The constant term is 4. (c) It is an equation, because it has an equals sign. It claims that two expressions are equal, which is true only for some values of and . Check (a): four terms, separated by three signs. ✓

  4. Design your own trick. "Think of a number. Double it. Add . Halve it. Subtract your number." What number must you add so that everyone ends at 10? Use algebra to explain why it works for every number.

    Hint 1

    Do the puzzle with and . Halving halves both parts.

    Hint 2

    You should reach after halving. What is left after subtracting ?

    Full answer

    Double: . Add : . Halve: . Subtract your number: . The has gone, so the ending does not depend on the number chosen. For the ending to be 10, , so . Check with 7: 14, 34, 17, then . ✓ Check with −2: −4, 16, 8, then . ✓

The bigger idea

The word "algebra" comes from a book written in Baghdad around 820 by Muhammad ibn Musa al-Khwarizmi. Its title contains the Arabic word al-jabr, meaning "restoration" or "completion". It is one of the steps he used to solve equations. Al-Khwarizmi wrote his problems and methods in words, not in symbols.

Letters came much later. In 1591, the French mathematician François Viète used letters for both unknown and known quantities. He chose vowels for the unknowns and consonants for the known numbers. In 1637, René Descartes used letters near the end of the alphabet, such as , and , for unknowns. He used letters near the start, such as , and , for known numbers. That is why still means "the unknown" today.

This change made mathematics far more powerful. A rule written in words is hard to work with. A rule written in letters can be checked, combined and rearranged. Every formula you will meet, in mathematics, physics, chemistry and economics, is written in this language. The trick at the start of this lecture is a small example of its real power: one line of letters explains every case at once.

Key concepts in this lesson