Math Lab
Home/Class VII/Ch 4/Variables and constants

Variables and constants

When you say "I bought xx pencils", you may mean any number , 33, 3030 or 300300. The letter xx is doing the job of a flexible label.

Idea

A variable is a letter (like x,y,a,nx, y, a, n) that stands for a number whose value is either unknown or can change. A constant is a fixed number like 55 or 3.14-3.14.

In an expression like 3x+73x + 7:

  • xx is the variable,
  • 33 is the coefficient of xx (the number multiplying it),
  • 77 is a constant.

Why bother with letters? Because they let us write one rule that works for many situations. The rule "double the number and add 55" can be written as 2x+52x + 5. Plug in x=3x = 3 to get 1111. Plug in x=100x = 100 to get 205205. One expression, infinitely many answers.

Letters also let us state laws of arithmetic in a compact way. For example, the commutative law of addition is just a+b=b+aa + b = b + a, true for any numbers aa and bb. Try it for a=3,b=7a = 3, b = 7: 3+7=7+3=103+7=7+3=10. ✓ Try it for a=2,b=5a = -2, b = 5: 2+5=5+(2)=3-2 + 5 = 5 + (-2) = 3. ✓

A subtle convention: in algebra we write 3x3x instead of 3×x3 \times x , the multiplication sign is invisible when one factor is a letter. Similarly xyxy means x×yx \times y. But between two numbers we still need the dot or cross: 343 \cdot 4 or 3×43 \times 4.

Worked examples

Example 1. Identify the variable, coefficient and constant in 7y47y - 4.

Variable: yy. Coefficient of yy: 77. Constant: 4-4.

Example 2. Translate to algebra: "five more than three times a number".

Let the number be nn. "Three times" gives 3n3n. "Five more" gives 3n+53n + 5.

Example 3. A box has bb books. Three boxes have how many books?

3×b=3b3 \times b = 3b.

Example 4. State the distributive law using letters.

a(b+c)=ab+aca(b + c) = ab + ac for any numbers a,b,ca, b, c.

Try it yourself

  1. State the variable, coefficient and constant in 92k9 - 2k.
  2. Write "twice a number, subtract 33" using nn.
  3. If a pencil costs \rupeep\rupee p, how much do 88 pencils cost?
  4. State the commutative law of multiplication using letters.
  5. Write an expression for "one-third of xx, increased by 55".
  6. Identify variables and constants in 4a+72a4a + 7 - 2a.
  7. Write the rule "perimeter of a square equals four times its side" using ss and PP.
  8. Translate: "ten less than half a number".

Activity

In pairs, make ten flashcards. One side has a sentence like "double the number plus seven"; the other side has the algebraic expression. Mix them up and quiz your partner.

Pick three different values of xx (your favourite numbers!) and evaluate 3x+53x + 5 for each. Note how only one expression handles all three.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Variables and constants
5 questions · pick the best answer
Q1

In 92k9-2k, the coefficient of kk is:

Q2

Cost of 88 pencils, each \rupeep\rupee p, is:

Q3

'Twice a number, subtract 33' is:

Q4

The commutative law of multiplication is:

Q5

'One-third of xx, increased by 55' is: