Using Letters to Represent Numbers
Why algebra uses letters, what a letter stands for, how to write a simple algebraic expression from words, and how to name the terms, coefficients and constant term of an expression.
Before you start
In Primary, a box stood for a missing number. In the box is 7, because .
A division can be written as a fraction: .
Subtracting a number is the same as adding its negative: .
Why Letters Are Used
In the puzzle , the box keeps the place of a number we do not know yet. In algebra a letter keeps that place instead of a box: is the same puzzle, and here stands for 7. Finding such numbers is the work of a later chapter, on equations.
A letter has a second, more important use. It can stand for any number, so that one line of algebra describes every case at once. The example below works two cases with numbers first, and then writes the rule for every case with a letter.
Example 1: Sharing money among 3 children
Mr Tan shares a sum of money equally among his 3 grandchildren. How much does each child get if the sum is
(a) $270,
(b) $3300,
(c) dollars?
Solution
(a) Sharing equally among 3 means dividing by 3: . Each child gets $90.
(b) In the same way, . Each child gets $1100.
(c) The working does not change when the sum changes: whatever the sum is, it is divided by 3. A sum of dollars gives each child dollars.
Written as a fraction, is .
(a) $90 (b) $1100 (c) Each child gets dollars. This one line holds for every sum of money: is the rule, and (a) and (b) are two cases of it.
Definition: variable
In algebra we use a letter to represent a number. The letter may stand for a number we do not know yet, or for any number. A letter used in this way is called a variable.
Any letter can be used (, , , , , , , , …). When there is more than one quantity, we use a different letter for each one.
Where the word "algebra" comes from
The word algebra comes from the Arabic al-jabr, meaning "restoration" or "reunion of broken parts". It is taken from the title of a book written about the year 820 by the mathematician al-Khwarizmi, who worked in Baghdad.
A Letter Stands for a Number
A letter in algebra always stands for a number: a number of things, an amount of money, a length, a speed. It never stands for the things themselves.
If Ali buys apples, then stands for the number of apples, such as 4 or 10. It does not mean "apple". If each apple costs 60 cents, Ali pays cents, written cents, and is a number of cents too.
When a letter stands for a measurement, the unit is written outside it. "The length is cm" means that is the number of centimetres, such as 12 or 7.5.
Example 2: Saying what a letter and an expression stand for
(a) There are students in a class. Five more students join the class. What does stand for?
(b) A car travels at km/h for 3 hours. What does stand for?
Solution
(a) is the number of students in the class at first. When 5 more join, the number of students becomes 5 more than , which is .
So is a number: the number of students after the 5 join. If there were 35 students at first, there are now 40.
(b) is the speed in km/h, a number such as 60 or 80. Distance = speed × time, so in 3 hours the car travels km.
A number times a letter is written with the number first and no × sign: is written .
(a) stands for the number of students in the class after the 5 students join. (b) stands for the distance, in kilometres, that the car travels in 3 hours.
Algebraic Expressions
In Example 1 the share of each child was dollars, and in Example 2 the number of students was . Each of and is made of numbers and letters joined by the signs of arithmetic. Such a thing has a name.
Definition: algebraic expression
An algebraic expression is made of numbers and variables joined by the operation signs , , and . It may also contain brackets.
Examples: , , , , , , .
An expression is written in terms of the letters in it: is an expression in terms of ; is an expression in terms of , and .
An expression has no equals sign. is an expression; is a statement that two things are equal, called an equation, which is the subject of a later chapter.
To write an expression from words, say what you would do to a number, and then do the same to the letter. Some phrases and their expressions:
| In words | Working | Expression |
|---|---|---|
| 5 more than | add 5 to | |
| minus 3, or subtract 3 from | take 3 away from | |
| the sum of and | add and | |
| 4 times | ||
| twice | ||
| shared equally among 6 | ||
| half of |
How the short forms are written
is written : the × sign is left out and the number comes first, never . A division is written as a fraction: is written . The lesson on algebraic notation explains these ways of writing, and the others algebra uses, in full.
Example 3: Numbers first, then the letter
A packet holds 8 biscuits. How many biscuits are there in
(a) 5 packets,
(b) 12 packets,
(c) packets?
Solution
(a) Each packet holds 8 biscuits, so 5 packets hold biscuits.
(b) In the same way, 12 packets hold biscuits.
(c) The number of biscuits is always 8 times the number of packets. With packets it is , written .
(a) 40 biscuits (b) 96 biscuits (c) There are biscuits in packets.
Example 4: Writing expressions from words
Write an algebraic expression for each of these.
(a) 7 more than
(b) Subtract 10 from
(c) The product of 9 and
(d) divided by 5
(e) 1 more than twice
Solution
(a) "7 more than " means add 7 to : .
(b) "Subtract 10 from " means start with and take 10 away: . The number you subtract from comes first.
(c) The product of 9 and is , written .
(d) divided by 5 is , written .
(e) Twice is . One more than that is .
(a) (b) (c) (d) (e)
The Same Letter Means the Same Number
Inside one expression, a letter stands for one number all the way through. In , if the first is 6, then the second is 6 as well, and is .
Two different letters stand for numbers that may be different, but they do not have to be. In , could be 3 and could be 8; or and could both be 3.
Rule: one letter, one number
In one expression, the same letter stands for the same number every time it appears.
Different letters may stand for different numbers or for the same number.
Example 5: Which choices are allowed?
Say whether each choice of numbers is allowed.
(a) In , the first is 3 and the second is 5.
(b) In , is 3 and is 3.
(c) In , is 3 and is 8.
Solution
(a) Both s are in the same expression, so they must stand for the same number. One cannot be 3 while the other is 5.
(b) and are different letters. Different letters may stand for the same number, so both may be 3.
(c) Different letters may also stand for different numbers, so and is allowed.
(a) Not allowed (b) Allowed (c) Allowed
Terms, Coefficients and Constant Terms
An expression is made of parts called terms, joined by and signs. Since subtracting is the same as adding the negative,
,
so the four terms of are , , and . A term with no sign in front of it, at the start of an expression, is positive.
Definitions: term, coefficient, constant term
The terms of an expression are its parts joined by and . Each term takes the sign in front of it. A bracket, or a fraction with a sum above or below its line, counts as one part: the signs inside it do not split it. So is one term, not two.
In a term with letters, the number that multiplies the letters, together with its sign, is the coefficient. In the coefficient of is 2; in the coefficient of is ; in the coefficient of is .
A letter on its own has coefficient 1, because ; the 1 is not written. In the same way, has coefficient .
A term with no letter is the constant term, with its sign. The constant term of is 4; the constant term of is 5, and the coefficient of there is .
Example 6: The terms of x + 2y − 3z + 4
For the expression , write down
(a) its terms,
(b) the coefficients of , and ,
(c) its constant term.
Solution
(a) Split the expression at each and sign, keeping each sign with the term after it: , , , .
(b) is , so the coefficient of is 1. The coefficient of is 2. The term is , so the coefficient of is , with its minus sign.
(c) The only term without a letter is 4.
(a) The terms are , , and . (b) The coefficient of is 1, of is 2, and of is . (c) The constant term is 4.
A term may be a number multiplying more than one letter, or a letter multiplied by itself. Here means , means , and means . The lesson on algebraic notation explains these in full; for terms and coefficients the rule is the same.
Example 7: The terms of 21a² − 6ab + b² − 19
For the expression , write down
(a) its terms,
(b) the coefficient of ,
(c) the coefficient of ,
(d) the coefficient of ,
(e) its constant term.
Solution
(a) Split at each and sign, keeping each sign with its term: , , , .
(b) is , so the coefficient of is 21.
(c) is , so the coefficient of is . The minus sign belongs to the coefficient.
(d) is , so the coefficient of is 1.
(e) The term with no letter is , with its minus sign.
(a) The terms are , , and . (b) 21 (c) (d) 1 (e) The constant term is .
Common Mistakes
- Reading a letter as a thing. In "Ali buys apples", is the number of apples, not "apple". In cents, is the number of apples, and is an amount of money: a number of cents.
- Writing as , or as . Four times is , with the number first; is 4 more than .
- Subtracting the wrong way round. "Subtract 3 from " is , not .
- Dropping the sign of a term. In the constant term is , not 7; in the coefficient of is , not 3.
- Saying that has no coefficient, or coefficient 0. The coefficient of is 1, and of is .
- Giving the same letter two values in one expression. In both s are the same number.
Practice
Try each question before you open its solution. The questions get harder as you go.
Question 1
Write an algebraic expression for each of these.
(a) 9 more than
(b) Subtract 7 from
(c) 6 times
(d) divided by 5
ShowHide solution
(a) Add 9 to : .
(b) Start with and take 7 away: .
(c) is written .
(d) is written .
(a) (b) (c) (d)
Question 2
Write each expression in words.
(a)
(b)
(c)
(d)
ShowHide solution
(a) 12 is added to : "12 more than ", or "the sum of and 12".
(b) is : "3 times ".
(c) 1 is taken away from : " minus 1", or "subtract 1 from ".
(d) is : " divided by 4", or " shared equally among 4".
(a) 12 more than (b) 3 times (c) minus 1 (d) divided by 4
Question 3
A tray holds 12 eggs. How many eggs are there in
(a) 3 trays,
(b) 10 trays,
(c) trays?
ShowHide solution
(a) .
(b) .
(c) The number of eggs is always 12 times the number of trays: , written .
(a) 36 eggs (b) 120 eggs (c) There are eggs in trays.
Question 4
Mrs Goh shares 60 sweets equally among the children at a party. How many sweets does each child get if there are
(a) 5 children,
(b) 12 children,
(c) children?
ShowHide solution
(a) Sharing equally means dividing: .
(b) .
(c) With children, each child gets sweets, written .
The sweets can be shared out exactly only when divides 60 exactly (for example 4, 10 or 15 children, but not 7).
(a) 12 sweets (b) 5 sweets (c) Each child gets sweets.
Question 5
At the school bookshop a file costs $3 and a pen costs $2. Siti buys files and pens, and pays dollars. Ravi says, " means files and means pens."
(a) Explain what is wrong with what Ravi says.
(b) What do and stand for?
ShowHide solution
(a) A letter stands for a number, not for a thing. is the number of files Siti buys, such as 2 or 5, and is the number of pens.
(b) Each file costs $3, so files cost dollars. Each pen costs $2, so pens cost dollars.
(a) is the number of files and is the number of pens, not the files and pens themselves. (b) is the cost of the files in dollars, and is the cost of the pens in dollars.
Question 6
Say whether each statement is true or false, and give a reason.
(a) In , the two s can be 2 and 5.
(b) In , and can both be 4.
(c) In , and must be different numbers.
ShowHide solution
(a) In one expression the same letter stands for the same number, so both s are 2 or both are 5. False.
(b) Different letters may stand for the same number. True.
(c) Different letters may stand for different numbers, but they need not. and could both be 7. False.
(a) False (b) True (c) False
Question 7
A bus travels at km/h.
(a) The bus travels for 2 hours. What does stand for?
(b) A car travels 15 km/h faster than the bus. Write the speed of the car in terms of .
(c) A cyclist travels at half the speed of the bus. Write the speed of the cyclist in terms of .
ShowHide solution
(a) is the speed in km/h and the time is 2 hours. Distance = speed × time, and , so is the distance travelled in those 2 hours, in kilometres.
(b) 15 km/h faster means add 15 to the speed: . An expression of more than one term goes in brackets before its unit: km/h.
(c) Half of is .
(a) The distance, in kilometres, that the bus travels in 2 hours. (b) km/h (c) km/h
Question 8
For the expression , write down its terms, the coefficients of and , and its constant term.
ShowHide solution
Split at each sign, keeping the sign with its term: , , .
The coefficient of is 4. The term is , so the coefficient of is .
The term without a letter is 7.
Terms: , and . Coefficient of : 4; coefficient of : . Constant term: 7.
Question 9
For the expression , write down its terms, the coefficients of and , and its constant term.
ShowHide solution
The first term, 8, has no sign in front, so it is positive. The terms are , and .
The coefficient of is , with its sign. , so the coefficient of is 1.
The constant term is 8: it need not come last.
Terms: , and . Coefficient of : ; coefficient of : 1. Constant term: 8.
Question 10
For the expression (where means and means ), write down
(a) the number of terms,
(b) the coefficient of ,
(c) the coefficient of ,
(d) the coefficient of ,
(e) the constant term.
ShowHide solution
(a) The terms are , , and : four terms.
(b) , so the coefficient of is 3.
(c) , so the coefficient of is .
(d) , so the coefficient of is 2.
(e) The term without a letter is .
(a) 4 (b) 3 (c) (d) 2 (e)
Question 11
Write an expression in terms of and that has three terms, in which the coefficient of is , the coefficient of is 1 and the constant term is .
ShowHide solution
The term in is . The term in is , written . The constant term is .
Joining them, each with its sign: .
The terms may come in any order, as long as each keeps its sign: is the same expression.
(or the same three terms in another order, such as )
Question 12
Canned drinks are sold in packs of 6. For a CCA outing, Ali buys packs and gives 2 cans to his teacher.
(a) How many cans does Ali have left if he bought 3 packs?
(b) Write, in terms of , the number of cans Ali has left.
ShowHide solution
(a) 3 packs hold cans. After giving away 2, he has cans.
(b) Do the same with packs: they hold cans, and after giving away 2 he has cans.
Check with (a): when there are 3 packs, is 18 and is 16, as before.
(a) 16 cans (b) Ali has cans left.
Key Points
- A letter in algebra stands for a number: one we do not know yet, or any number. Such a letter is a variable.
- A letter stands for a number of things or an amount, never for the things themselves: is the number of apples, not "apple".
- An algebraic expression is made of numbers and variables joined by , , , and brackets. It has no equals sign.
- To write an expression from words, work a case with numbers first, then do the same to the letter.
- is written , and is written .
- In one expression the same letter stands for the same number; different letters may stand for different numbers or for the same number.
- The terms of an expression are its parts joined by and , each with the sign in front of it.
- The coefficient of a letter is the number multiplying it, with its sign: has coefficient 1 and has coefficient .
- The constant term is the term with no letter, with its sign.