Find a course

Module 1: Variables and ExpressionsLesson 1 of 119 min

Variables and Expressions

See what letters in math stand for, translate words into algebraic expressions, and evaluate expressions correctly using the order of operations.

Step 1 of 12Learn

A letter that saves you time

Maya's phone plan costs $15 a month plus $2 for every gigabyte of data she uses. Last month she used 4 GB, so she paid 15 + 2 × 4 = $23. The month before, 7 GB: 15 + 2 × 7 = $29.

Notice that the rule never changes. Only the number of gigabytes does. Instead of writing a new calculation every month, you can write the rule once:

cost = 15 + 2g

Here g is a variable: a letter that stands for a number that can change, or one you don't know yet. Writing 2g means 2 × g; in algebra we usually drop the multiplication sign when a number sits next to a letter.

That one line, 15 + 2g, is an expression. It describes a calculation without doing it yet. Give it a value for g and it produces an answer. This is the basic move of algebra: describe a pattern with letters, then plug in numbers when you need them.

Variables are not mysterious. They are placeholders, like a blank on a form. The letter itself doesn't matter; you could write 15 + 2d or 15 + 2n and mean exactly the same thing. Choose letters that remind you what they stand for, like t for time or c for cost.

Step 2 of 12Learn

The parts of an expression

Take the expression 4x − 7 + 3y. It has three terms, the pieces separated by + and − signs: 4x, −7 and 3y.

  • A coefficient is the number multiplying a variable. In 4x the coefficient is 4; in 3y it is 3. In plain x the coefficient is 1, and in −x it is −1.
  • A constant is a number standing alone, like −7. Its value never changes.
  • The sign in front of a term belongs to that term. That is why the constant here is −7, not 7.

Translating words into expressions is a skill you will use in every word problem. Most phrases are direct: "the sum of x and 9" is x + 9, "three times a number" is 3n, "half of a number" is n/2.

Watch out for "less than" and "subtracted from." They reverse the order you read them in. "5 less than x" means you start with x and take 5 away: x − 5, not 5 − x. If you have $20 and spend 5 less than your friend's x dollars, you spent x − 5. A quick test: pick a number for x, say 10, and ask whether the phrase should give 5 or −5. "Five less than ten" is five, so x − 5 is right.

Step 3 of 12Practice · Diagram

Parts of the expression 4x − 7 + 3y

Which part is the constant term?

Tap the shape that answers the question, then press Check.

Parts of the expression 4x − 7 + 3yParts diagram: 4x − 7 + 3y, Term: 4x, Coefficient: 4, Variable: x, −7, Term: 3y.4x − 7 + 3yTerm: 4xCoefficient: 4Variable: x−7Term: 3y
4x − 7 + 3y
Term: 4x

A term is a piece separated by + or − signs.

Coefficient: 4

The number multiplying the variable x.

Variable: x

A letter standing for a number that can change.

−7

A term with no variable. Its sign belongs to it.

Term: 3y

Coefficient 3, variable y.

Step 4 of 12Practice · Match the pairs

Match each phrase to its expression.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Seven more than a number n
  2. Seven less than a number n
  3. Seven times a number n
  4. A number n divided by seven
  5. Seven subtracted from twice a number n

Step 5 of 12Learn

Evaluating with the order of operations

To evaluate an expression, replace each variable with its value and calculate. The catch: you must do the operations in the agreed order, or two people get two different answers.

  1. Parentheses and other grouping symbols first.
  2. Exponents (powers like x2).
  3. Multiplication and division, from left to right, as equals.
  4. Addition and subtraction, from left to right, as equals.

Many people remember this as PEMDAS. The letters hide a trap: M comes before D in the word, but multiplication and division have the same rank. So do addition and subtraction. Always work left to right within a rank: 18 ÷ 3 × 2 is 6 × 2 = 12, not 18 ÷ 6 = 3.

Worked example. Evaluate 3x2 − 2x + 4 when x = −2.

  • Substitute with parentheses: 3(−2)2 − 2(−2) + 4
  • Exponent: (−2)2 = 4, so 3(4) − 2(−2) + 4
  • Multiply: 12 + 4 + 4
  • Add: 20

Putting the substituted number in parentheses is the habit that saves you. It keeps the negative sign attached to the number, so the square and the multiplication come out right.

Step 6 of 12Diagram

Order of operations

Order of operationsProcess diagram: Parentheses → Exponents → Multiply / divide → Add / subtract.ParenthesesExponentsMultiply /divideAdd /subtract

Tap a shape with to see more.

Parentheses

Work inside grouping symbols first, including fraction bars.

Exponents

Powers apply only to what they touch: in 2(4)2 only the 4 is squared.

Multiply / divide

Same rank: go left to right.

Add / subtract

Same rank: go left to right.

Step 7 of 12Practice · Work it out

Evaluate 2(x + 3)2 − 5 when x = 1.

Step 8 of 12Note

Step 9 of 12Practice · Choose one

What is the value of 18 ÷ 3 × 2 + 4?

Step 10 of 12Try the calculator

Phone plan cost

The expression 15 + 2g gives Maya's monthly bill. Change the gigabytes, or change the plan's base fee and price per GB, and watch the expression produce each answer.

Monthly cost: base + rate × g
23 $
Cost for a year at this usage
276 $

Step 11 of 12Practice · True or false

The expressions x − 5 and 5 − x always have the same value.

Step 12 of 12Practice · Choose one

In the expression 6 − x + 9y2, what is the coefficient of x?