Wel­come to your first step into alge­bra. Alge­bra lets you write about num­bers even when you do not know them yet, by using let­ters. You meet it in rules like "the perime­ter of a square is four times its side", in the fare chart of a bus, and in almost every chap­ter of math­e­mat­ics that comes after this one. It all begins with two sim­ple ideas: the vari­able and the con­stant.

Some­one gives you a closed box of sweets. Nobody has counted them. You can­not say how many are inside.

There is a num­ber in that box. It is a def­i­nite num­ber. You just do not know it yet.

You still want to talk about it. So you give that num­ber a short name. You can call it xx.

Remem­ber. xx is not the box. xx is the num­ber of sweets in the box.

Why a name helps

A name lets you work before you count. If you dropped 66 more sweets in, the box would hold x+6x + 6 sweets.

You did not open the box. You still wrote down the new amount. That is what let­ters are for.

A closed box labelled x with a lid saying not counted, plus 6 sweets, equals x + 6; below, if the box holds 7 the total is 13, and if it holds 70 the total is 76
A closed box of xx sweets and 66 more make x+6x + 6 sweets.

You can take sweets away in the same way. If you eat 22 of them, the box holds x−2x - 2 sweets. Later, when you open the box and find 77, you can work out the num­bers.

x+6=7+6=13x−2=7−2=5\begin{aligned}x + 6 &= 7 + 6 = 13 \\ x - 2 &= 7 - 2 = 5\end{aligned}

Putting a num­ber in place of the let­ter like this is called sub­sti­tut­ing.

A vari­able

One day you open the box. You count 77 sweets. So xx stands for 77 in that box.

Your friend has a box too. Hers holds 7070 sweets. In her box xx stands for 7070.

The same let­ter fits both boxes. The let­ter did not change. The num­ber it stands for changed.

The num­ber a sym­bol stands for is called its value. So xx had the value 77, then the value 7070.

A sym­bol like this is called a vari­able. It is also called a lit­eral. It is one idea with two names.

Remem­ber. A vari­able is a sym­bol which can take var­i­ous numer­i­cal val­ues. It can stand for dif­fer­ent num­bers at dif­fer­ent times. Exam­ples: xx, yy, zz, ww, aa, bb, cc.

A con­stant

Your box has 55 printed on the lid. Some­one printed it there. You can­not rub a bit off it.

That 55 does not tell you how many sweets are inside. It is 55 today. It is 55 tomor­row.

Nobody can make it 66. Its value is fixed. A sym­bol like this is called a con­stant.

A sym­bol is any mark you write to stand for a num­ber. A let­ter is one kind. A writ­ten num­ber like 55 is another kind.

Remem­ber. A con­stant is a sym­bol which has a fixed value. It always stands for the same num­ber. Exam­ples: 55, 33, −12\displaystyle -\frac{1}{2}, −10-10.

−3-3 is a num­ber too. It sits below 00. So does −8-8. Each one is locked to one value, so both are con­stants.

Three boxes: my box and friend's box both labelled x, holding 7 and 70 sweets, marked variable; a third box shows the symbol 5, always 5, marked constant
The let­ter xx can take dif­fer­ent val­ues in dif­fer­ent boxes. The sym­bol 55 always means five.

The two side by side

Sym­bol Which one Why
55 Con­stant It is always 55
xx Vari­able It can be 77 in one box and 7070 in another
−3-3 Con­stant It is always −3-3
yy Vari­able It could be 33 in one ques­tion and 5050 in the next

A let­ter can hide a num­ber you know

A let­ter is not always a mys­tery. You may know the num­ber and still use a let­ter.

Say your school bag weighs 44 kilo­grams. You can write ww for its weight.

Now one short let­ter does the work. Two bags like yours weigh 2w2w. You wrote that with­out say­ing 44 once.

Tomor­row you may take a book out. The bag will weigh some­thing else. Only the num­ber ww stands for changes.

So ww is a vari­able. It just hap­pens to be 44 today. If the weight could never change, ww would be a con­stant.

And a num­ber nobody knows

Some num­bers nobody has found yet. Nobody has weighed the bag. Nobody has counted the box.

A let­ter still lets you write about that num­ber. You can add to it and take from it.

Alge­bra is the part of maths where you work with num­bers you have not been told yet. Let­ters are what let you do it.

Remem­ber. A vari­able can take many val­ues. A con­stant keeps one fixed value.

Vari­ables and con­stants work­ing together

Most expres­sions in alge­bra mix the two. Look at the cost of pens that sell for ₹5 each. If you buy nn pens, you pay 5n5n rupees. Here nn is a vari­able, because you might buy any num­ber of pens. The 55 is a con­stant, because the price does not change.

Pens bought, nn Cost, 5n5n
33 5×3=155 \times 3 = 15
88 5×8=405 \times 8 = 40

Now look at 3x+43x + 4. The let­ter xx is the vari­able. The num­bers 33 and 44 are con­stants. When x=2x = 2, the expres­sion is worth 3×2+4=103 \times 2 + 4 = 10. When xx changes, the value changes, but the 33 and the 44 stay just as they are.

A square with side ss has perime­ter 4s4s. The side can be any length, so ss is a vari­able. A square always has four sides, so 44 is a con­stant.

Com­mon mis­takes

  • Think­ing a let­ter stands for an object. xx is the num­ber of sweets, not the sweets or the box.
  • Think­ing a let­ter is always a mys­tery. A vari­able may stand for a num­ber you already know today.
  • Call­ing a neg­a­tive num­ber a vari­able. −3-3 is fixed, so it is a con­stant.
  • For­get­ting that 00 is a con­stant. It always has the value zero.
  • Read­ing 5n5n as fifty-some­thing. It means 5×n5 \times n.

Key terms

  • Vari­able: A sym­bol which can take var­i­ous numer­i­cal val­ues, such as xx, yy or aa. Also called a lit­eral.
  • Con­stant: A sym­bol which has a fixed value, such as 55, −3-3 or 22.
  • Value: The num­ber a sym­bol stands for.
  • Sym­bol: Any mark writ­ten to stand for a num­ber, such as a let­ter or a numeral.
  • Sub­sti­tute: Put a num­ber in place of a let­ter, as in x+6=7+6x + 6 = 7 + 6 when x=7x = 7.
  • Alge­bra: The part of math­e­mat­ics that works with num­bers through let­ters.

Prac­tice

  1. Is xx a vari­able or a con­stant?
  2. Is 99 a vari­able or a con­stant?
  3. Is ww a vari­able or a con­stant?
  4. Is −10-10 a vari­able or a con­stant?
  5. Is 00 a vari­able or a con­stant?
  6. Is −12\displaystyle -\frac{1}{2} a vari­able or a con­stant?
  7. A box holds xx sweets. Write the num­ber of sweets after 4 more are put in.
  8. If x=7x = 7, find the value of x+6x + 6.
  9. If x=7x = 7, find the value of x−2x - 2.
  10. Pens cost ₹5 each. Write the cost of nn pens.
  11. Find the cost of 8 pens using your answer to ques­tion 10.
  12. In 3x+43x + 4, name the vari­able and the con­stants.

Answers

Show answers
  1. Vari­able
  2. Con­stant
  3. Vari­able
  4. Con­stant
  5. Con­stant. It always has the value zero.
  6. Con­stant. A frac­tion is a fixed num­ber too.
  7. x+4x + 4
  8. x+6=7+6=13x + 6 = 7 + 6 = 13
  9. x−2=7−2=5x - 2 = 7 - 2 = 5
  10. 5n5n rupees
  11. 5×8=405 \times 8 = 40, so 8 pens cost ₹40.
  12. The vari­able is xx. The con­stants are 3 and 4.