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 □−5=2\square - 5 = 2 the box is 7, because 7−5=27 - 5 = 2.

A division can be written as a fraction: 3÷4=343 \div 4 = \frac{3}{4}.

Subtracting a number is the same as adding its negative: 10−3=10+(−3)=710 - 3 = 10 + (-3) = 7.

Why Letters Are Used

In the puzzle □−5=2\square - 5 = 2, the box keeps the place of a number we do not know yet. In algebra a letter keeps that place instead of a box: y−5=2y - 5 = 2 is the same puzzle, and here yy 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) zz dollars?

Solution

(a) Sharing equally among 3 means dividing by 3: 270÷3=90270 \div 3 = 90. Each child gets $90.

(b) In the same way, 3300÷3=11003300 \div 3 = 1100. 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 zz dollars gives each child z÷3z \div 3 dollars.

Written as a fraction, z÷3z \div 3 is z3\frac{z}{3}.

(a) $90 (b) $1100 (c) Each child gets z3\frac{z}{3} dollars. This one line holds for every sum of money: z÷3z \div 3 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 (aa, bb, kk, nn, pp, xx, yy, zz, …). 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 aa apples, then aa stands for the number of apples, such as 4 or 10. It does not mean "apple". If each apple costs 60 cents, Ali pays 60×a60 \times a cents, written 60a60a cents, and 60a60a is a number of cents too.

When a letter stands for a measurement, the unit is written outside it. "The length is xx cm" means that xx 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 nn students in a class. Five more students join the class. What does n+5n + 5 stand for?
(b) A car travels at vv km/h for 3 hours. What does 3v3v stand for?

Solution

(a) nn is the number of students in the class at first. When 5 more join, the number of students becomes 5 more than nn, which is n+5n + 5.

So n+5n + 5 is a number: the number of students after the 5 join. If there were 35 students at first, there are now 40.

(b) vv is the speed in km/h, a number such as 60 or 80. Distance = speed × time, so in 3 hours the car travels v×3v \times 3 km.

A number times a letter is written with the number first and no × sign: v×3v \times 3 is written 3v3v.

(a) n+5n + 5 stands for the number of students in the class after the 5 students join. (b) 3v3v stands for the distance, in kilometres, that the car travels in 3 hours.

Algebraic Expressions

In Example 1 the share of each child was z÷3z \div 3 dollars, and in Example 2 the number of students was n+5n + 5. Each of z÷3z \div 3 and n+5n + 5 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 ++, −-, ×\times and ÷\div. It may also contain brackets.

Examples: n+5n + 5, y−5y - 5, 3v3v, z3\frac{z}{3}, 2m+12m + 1, x+2y−3z+4x + 2y - 3z + 4, k+42\frac{k + 4}{2}.

An expression is written in terms of the letters in it: z3\frac{z}{3} is an expression in terms of zz; x+2y−3z+4x + 2y - 3z + 4 is an expression in terms of xx, yy and zz.

An expression has no equals sign. y−5y - 5 is an expression; y−5=2y - 5 = 2 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 wordsWorkingExpression
5 more than nnadd 5 to nnn+5n + 5
nn minus 3, or subtract 3 from nntake 3 away from nnn−3n - 3
the sum of pp and qqadd pp and qqp+qp + q
4 times kk4×k4 \times k4k4k
twice mm2×m2 \times m2m2m
kk shared equally among 6k÷6k \div 6k6\frac{k}{6}
half of bbb÷2b \div 2b2\frac{b}{2}

How the short forms are written

4×k4 \times k is written 4k4k: the × sign is left out and the number comes first, never k4k4. A division is written as a fraction: k÷6k \div 6 is written k6\frac{k}{6}. 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) kk packets?

Solution

(a) Each packet holds 8 biscuits, so 5 packets hold 8×5=408 \times 5 = 40 biscuits.

(b) In the same way, 12 packets hold 8×12=968 \times 12 = 96 biscuits.

(c) The number of biscuits is always 8 times the number of packets. With kk packets it is 8×k8 \times k, written 8k8k.

(a) 40 biscuits (b) 96 biscuits (c) There are 8k8k biscuits in kk packets.

Example 4: Writing expressions from words

Write an algebraic expression for each of these.
(a) 7 more than xx
(b) Subtract 10 from yy
(c) The product of 9 and tt
(d) ww divided by 5
(e) 1 more than twice mm

Solution

(a) "7 more than xx" means add 7 to xx: x+7x + 7.

(b) "Subtract 10 from yy" means start with yy and take 10 away: y−10y - 10. The number you subtract from comes first.

(c) The product of 9 and tt is 9×t9 \times t, written 9t9t.

(d) ww divided by 5 is w÷5w \div 5, written w5\frac{w}{5}.

(e) Twice mm is 2×m=2m2 \times m = 2m. One more than that is 2m+12m + 1.

(a) x+7x + 7 (b) y−10y - 10 (c) 9t9t (d) w5\frac{w}{5} (e) 2m+12m + 1

The Same Letter Means the Same Number

Inside one expression, a letter stands for one number all the way through. In n+nn + n, if the first nn is 6, then the second nn is 6 as well, and n+nn + n is 6+6=126 + 6 = 12.

Two different letters stand for numbers that may be different, but they do not have to be. In p+qp + q, pp could be 3 and qq could be 8; or pp and qq 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 m+m+4m + m + 4, the first mm is 3 and the second mm is 5.
(b) In m+nm + n, mm is 3 and nn is 3.
(c) In m+nm + n, mm is 3 and nn is 8.

Solution

(a) Both mms are in the same expression, so they must stand for the same number. One cannot be 3 while the other is 5.

(b) mm and nn 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 m=3m = 3 and n=8n = 8 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,

x+2y−3z+4=x+2y+(−3z)+4x + 2y - 3z + 4 = x + 2y + (-3z) + 4,

so the four terms of x+2y−3z+4x + 2y - 3z + 4 are xx, 2y2y, −3z-3z and 44. 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 k+42\frac{k + 4}{2} is one term, not two.

In a term with letters, the number that multiplies the letters, together with its sign, is the coefficient. In 2y2y the coefficient of yy is 2; in −3z-3z the coefficient of zz is −3-3; in −6ab-6ab the coefficient of abab is −6-6.

A letter on its own has coefficient 1, because x=1×xx = 1 \times x; the 1 is not written. In the same way, −x-x has coefficient −1-1.

A term with no letter is the constant term, with its sign. The constant term of x+2y−3z+4x + 2y - 3z + 4 is 4; the constant term of 5−4p5 - 4p is 5, and the coefficient of pp there is −4-4.

Example 6: The terms of x + 2y − 3z + 4

For the expression x+2y−3z+4x + 2y - 3z + 4, write down
(a) its terms,
(b) the coefficients of xx, yy and zz,
(c) its constant term.

Solution

(a) Split the expression at each ++ and −- sign, keeping each sign with the term after it: xx, +2y+2y, −3z-3z, +4+4.

(b) xx is 1×x1 \times x, so the coefficient of xx is 1. The coefficient of yy is 2. The term −3z-3z is −3×z-3 \times z, so the coefficient of zz is −3-3, with its minus sign.

(c) The only term without a letter is 4.

(a) The terms are xx, 2y2y, −3z-3z and 44. (b) The coefficient of xx is 1, of yy is 2, and of zz is −3-3. (c) The constant term is 4.

A term may be a number multiplying more than one letter, or a letter multiplied by itself. Here abab means a×ba \times b, a2a^{2} means a×aa \times a, and b2b^{2} means b×bb \times b. 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 21a2−6ab+b2−1921a^{2} - 6ab + b^{2} - 19, write down
(a) its terms,
(b) the coefficient of a2a^{2},
(c) the coefficient of abab,
(d) the coefficient of b2b^{2},
(e) its constant term.

Solution

(a) Split at each ++ and −- sign, keeping each sign with its term: 21a221a^{2}, −6ab-6ab, +b2+b^{2}, −19-19.

(b) 21a221a^{2} is 21×a221 \times a^{2}, so the coefficient of a2a^{2} is 21.

(c) −6ab-6ab is −6×ab-6 \times ab, so the coefficient of abab is −6-6. The minus sign belongs to the coefficient.

(d) b2b^{2} is 1×b21 \times b^{2}, so the coefficient of b2b^{2} is 1.

(e) The term with no letter is −19-19, with its minus sign.

(a) The terms are 21a221a^{2}, −6ab-6ab, b2b^{2} and −19-19. (b) 21 (c) −6-6 (d) 1 (e) The constant term is −19-19.

Common Mistakes

  • Reading a letter as a thing. In "Ali buys aa apples", aa is the number of apples, not "apple". In 60a60a cents, aa is the number of apples, and 60a60a is an amount of money: a number of cents.
  • Writing 4×k4 \times k as k4k4, or as 4+k4 + k. Four times kk is 4k4k, with the number first; 4+k4 + k is 4 more than kk.
  • Subtracting the wrong way round. "Subtract 3 from nn" is n−3n - 3, not 3−n3 - n.
  • Dropping the sign of a term. In 2x−72x - 7 the constant term is −7-7, not 7; in 5−3z5 - 3z the coefficient of zz is −3-3, not 3.
  • Saying that xx has no coefficient, or coefficient 0. The coefficient of xx is 1, and of −x-x is −1-1.
  • Giving the same letter two values in one expression. In m+mm + m both mms 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 pp
(b) Subtract 7 from qq
(c) 6 times rr
(d) ss divided by 5

ShowHide solution

(a) Add 9 to pp: p+9p + 9.

(b) Start with qq and take 7 away: q−7q - 7.

(c) 6×r6 \times r is written 6r6r.

(d) s÷5s \div 5 is written s5\frac{s}{5}.

(a) p+9p + 9 (b) q−7q - 7 (c) 6r6r (d) s5\frac{s}{5}

Question 2

Write each expression in words.
(a) h+12h + 12
(b) 3t3t
(c) w−1w - 1
(d) d4\frac{d}{4}

ShowHide solution

(a) 12 is added to hh: "12 more than hh", or "the sum of hh and 12".

(b) 3t3t is 3×t3 \times t: "3 times tt".

(c) 1 is taken away from ww: "ww minus 1", or "subtract 1 from ww".

(d) d4\frac{d}{4} is d÷4d \div 4: "dd divided by 4", or "dd shared equally among 4".

(a) 12 more than hh (b) 3 times tt (c) ww minus 1 (d) dd divided by 4

Question 3

A tray holds 12 eggs. How many eggs are there in
(a) 3 trays,
(b) 10 trays,
(c) bb trays?

ShowHide solution

(a) 12×3=3612 \times 3 = 36.

(b) 12×10=12012 \times 10 = 120.

(c) The number of eggs is always 12 times the number of trays: 12×b12 \times b, written 12b12b.

(a) 36 eggs (b) 120 eggs (c) There are 12b12b eggs in bb 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) cc children?

ShowHide solution

(a) Sharing equally means dividing: 60÷5=1260 \div 5 = 12.

(b) 60÷12=560 \div 12 = 5.

(c) With cc children, each child gets 60÷c60 \div c sweets, written 60c\frac{60}{c}.

The sweets can be shared out exactly only when cc divides 60 exactly (for example 4, 10 or 15 children, but not 7).

(a) 12 sweets (b) 5 sweets (c) Each child gets 60c\frac{60}{c} sweets.

Question 5

At the school bookshop a file costs $3 and a pen costs $2. Siti buys ff files and pp pens, and pays (3f+2p)(3f + 2p) dollars. Ravi says, "ff means files and pp means pens."
(a) Explain what is wrong with what Ravi says.
(b) What do 3f3f and 2p2p stand for?

ShowHide solution

(a) A letter stands for a number, not for a thing. ff is the number of files Siti buys, such as 2 or 5, and pp is the number of pens.

(b) Each file costs $3, so ff files cost 3×f=3f3 \times f = 3f dollars. Each pen costs $2, so pp pens cost 2×p=2p2 \times p = 2p dollars.

(a) ff is the number of files and pp is the number of pens, not the files and pens themselves. (b) 3f3f is the cost of the files in dollars, and 2p2p is the cost of the pens in dollars.

Question 6

Say whether each statement is true or false, and give a reason.
(a) In x+x+1x + x + 1, the two xxs can be 2 and 5.
(b) In x+yx + y, xx and yy can both be 4.
(c) In p+qp + q, pp and qq must be different numbers.

ShowHide solution

(a) In one expression the same letter stands for the same number, so both xxs 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. pp and qq could both be 7. False.

(a) False (b) True (c) False

Question 7

A bus travels at uu km/h.
(a) The bus travels for 2 hours. What does 2u2u stand for?
(b) A car travels 15 km/h faster than the bus. Write the speed of the car in terms of uu.
(c) A cyclist travels at half the speed of the bus. Write the speed of the cyclist in terms of uu.

ShowHide solution

(a) uu is the speed in km/h and the time is 2 hours. Distance = speed × time, and 2u=u×22u = u \times 2, so 2u2u is the distance travelled in those 2 hours, in kilometres.

(b) 15 km/h faster means add 15 to the speed: u+15u + 15. An expression of more than one term goes in brackets before its unit: (u+15)(u + 15) km/h.

(c) Half of uu is u÷2=u2u \div 2 = \frac{u}{2}.

(a) The distance, in kilometres, that the bus travels in 2 hours. (b) (u+15)(u + 15) km/h (c) u2\frac{u}{2} km/h

Question 8

For the expression 4p−q+74p - q + 7, write down its terms, the coefficients of pp and qq, and its constant term.

ShowHide solution

Split at each sign, keeping the sign with its term: 4p4p, −q-q, +7+7.

The coefficient of pp is 4. The term −q-q is −1×q-1 \times q, so the coefficient of qq is −1-1.

The term without a letter is 7.

Terms: 4p4p, −q-q and 77. Coefficient of pp: 4; coefficient of qq: −1-1. Constant term: 7.

Question 9

For the expression 8−5m+n8 - 5m + n, write down its terms, the coefficients of mm and nn, and its constant term.

ShowHide solution

The first term, 8, has no sign in front, so it is positive. The terms are 88, −5m-5m and +n+n.

The coefficient of mm is −5-5, with its sign. n=1×nn = 1 \times n, so the coefficient of nn is 1.

The constant term is 8: it need not come last.

Terms: 88, −5m-5m and nn. Coefficient of mm: −5-5; coefficient of nn: 1. Constant term: 8.

Question 10

For the expression 3x2−x+2xy−113x^{2} - x + 2xy - 11 (where x2x^{2} means x×xx \times x and xyxy means x×yx \times y), write down
(a) the number of terms,
(b) the coefficient of x2x^{2},
(c) the coefficient of xx,
(d) the coefficient of xyxy,
(e) the constant term.

ShowHide solution

(a) The terms are 3x23x^{2}, −x-x, +2xy+2xy and −11-11: four terms.

(b) 3x2=3×x23x^{2} = 3 \times x^{2}, so the coefficient of x2x^{2} is 3.

(c) −x=−1×x-x = -1 \times x, so the coefficient of xx is −1-1.

(d) 2xy=2×xy2xy = 2 \times xy, so the coefficient of xyxy is 2.

(e) The term without a letter is −11-11.

(a) 4 (b) 3 (c) −1-1 (d) 2 (e) −11-11

Question 11

Write an expression in terms of aa and bb that has three terms, in which the coefficient of aa is −2-2, the coefficient of bb is 1 and the constant term is −6-6.

ShowHide solution

The term in aa is −2×a=−2a-2 \times a = -2a. The term in bb is 1×b1 \times b, written bb. The constant term is −6-6.

Joining them, each with its sign: −2a+b−6-2a + b - 6.

The terms may come in any order, as long as each keeps its sign: b−2a−6b - 2a - 6 is the same expression.

−2a+b−6-2a + b - 6 (or the same three terms in another order, such as b−2a−6b - 2a - 6)

Question 12

Canned drinks are sold in packs of 6. For a CCA outing, Ali buys kk 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 kk, the number of cans Ali has left.

ShowHide solution

(a) 3 packs hold 6×3=186 \times 3 = 18 cans. After giving away 2, he has 18−2=1618 - 2 = 16 cans.

(b) Do the same with kk packs: they hold 6×k=6k6 \times k = 6k cans, and after giving away 2 he has (6k−2)(6k - 2) cans.

Check with (a): when there are 3 packs, 6k6k is 18 and 6k−26k - 2 is 16, as before.

(a) 16 cans (b) Ali has (6k−2)(6k - 2) 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: aa is the number of apples, not "apple".
  • An algebraic expression is made of numbers and variables joined by ++, −-, ×\times, ÷\div 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.
  • 4×k4 \times k is written 4k4k, and k÷6k \div 6 is written k6\frac{k}{6}.
  • 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: xx has coefficient 1 and −x-x has coefficient −1-1.
  • The constant term is the term with no letter, with its sign.

Exercises on this lesson in the Secondary 1 book

‹ 6.6 Problems Involving Speed 7.2 Algebraic Notation ›

All Secondary 1 (Grade 7) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 1 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.