Skip to content
Tutorials Center
My learning

Topics

Lesson 5 of 37 ยท Getting Started

Translating Words into Algebra

Turn word phrases and short stories into algebraic expressions and equations: key words, defining variables, and checking your model with code.

Algebra becomes powerful when you can turn a situation described in words into a mathematical statement. This skill, sometimes called modeling, is half of problem solving. The other half is solving what you wrote, which you will do in the next chapter.

In this lesson you will learn how common phrases map to symbols, how to choose a variable, and how to tell an expression (a phrase) from an equation (a full sentence with an equals sign).

Step 1: Say what the variable means

Always begin with a definition: "Let n be the number of..." Writing the meaning, including the unit, prevents confusion later.

Step 2: Translate phrases

Words Algebra
a number plus 7, 7 more than a number, a number increased by 7 n + 7
7 less than a number, a number decreased by 7 n - 7
7 minus a number 7 - n
twice a number, double a number 2n
a number divided by 5, one fifth of a number n / 5
the square of a number nยฒ
the sum of a number and 4, times 3 3(n + 4)
a number is at most 10 n โ‰ค 10

Watch the order for subtraction. "7 less than a number" means start with the number and take away 7: n - 7. "7 minus a number" starts with 7: 7 - n. These are different.

Example 1. "Five more than three times a number." Three times a number is 3n; five more is 3n + 5.

Example 2. "Twice the sum of a number and 6." The sum is n + 6, and twice it is 2(n + 6). The brackets are needed because the doubling applies to the whole sum.

Example 3. "The product of 4 and the difference of a number and 2." 4(n - 2).

Expression or equation?

An expression is a phrase and has no equals sign. An equation says two things are equal.

  • Expression: "three more than twice a number" is 2n + 3.
  • Equation: "three more than twice a number is 15" is 2n + 3 = 15.

The words is, equals, gives, results in, is the same as usually signal =.

Modeling situations

Example 4: a phone plan. A plan costs 20 dollars per month plus 0.10 dollars per text. Let t be the number of texts in a month. The monthly cost is 20 + 0.10t dollars.

Example 5: ages. Mia is 3 years older than twice her brother's age. Let b be the brother's age in years. Mia's age is 2b + 3.

Example 6: consecutive integers. If n is an integer, the next integer is n + 1. Three consecutive integers are n, n + 1, n + 2. Their sum is 3n + 3.

Example 7: an equation. A rectangle's length is 5 cm more than its width, and its perimeter is 38 cm. Let w be the width in cm. Length is w + 5. Perimeter is 2w + 2(w + 5) = 38.

Python Test a model against a story

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Running the model for several values helps you check that it matches the story. If the perimeter must be 38 cm, you can see from the table which width gives it. In the next chapter you will find it exactly.

Checking your translation

A good habit is a sanity check: pick an easy number, work the story with it by plain arithmetic, and then evaluate your expression at the same number. They must agree.

Python Sanity check: story versus expression

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The last two columns differ, showing that the two phrases really mean different things.

Common mistakes

  1. Reversing subtraction or division. "A number divided by 4" is n / 4. "4 divided by a number" is 4 / n.
  2. Missing brackets. "Twice the sum of a number and 6" needs 2(n + 6), not 2n + 6.
  3. Undefined variables. Say what n stands for, with a unit if there is one.
  4. Using two letters when one will do. If one quantity is described in terms of another, use one variable and write the other with it.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which expression means 'six less than a number'?

    'Less than' reverses the order: take 6 away from the number, n - 6.
  2. 2. Which expression means 'twice the sum of a number and 4'?

    The sum n + 4 is doubled as a whole, so brackets are needed: 2(n + 4).
  3. 3. A gym costs 15 dollars to join plus 30 dollars per month, m. Which expression gives the total cost?

    The fixed fee is 15 and the monthly part grows with m: 15 + 30m.
  4. 4. Which is an equation?

    An equation contains an equals sign. The others are expressions.

Summary

  • Define the variable, including its unit, before you write anything else.
  • "More than" and "increased by" add; "less than" reverses the order of subtraction.
  • Phrases give expressions; sentences with "is" or "equals" give equations.
  • Check a model by trying small numbers in both the story and the expression.

Next: One-Step Equations