Sub topic 11
Writing Expressions from Word Descriptions
Prerequisites and the translation process
This chapter assumes you can work with integers and fractions, follow the order of operations, and understand basic exponents. You should also know that a variable is a letter that represents an unknown or changing number.
A word description gives a relationship in ordinary language. An algebraic expression represents that relationship with numbers, variables, and operations. Translating means changing the words into mathematical symbols without changing their meaning.
Use this process:
- Decide what the variable represents.
- Find the operation words.
- Write the operations in the correct order.
- Check whether the result matches the wording.
For example, let n represent a number. The phrase “seven more than a number” becomes n + 7.
Operation words and their meanings
Some phrases have common mathematical meanings.
| Word description | Expression | Meaning |
|---|---|---|
| five more than x | x + 5 | Add 5 to x |
| eight less than y | y - 8 | Subtract 8 from y |
| three times z | 3z | Multiply z by 3 |
| half of a number n | n/2 | Divide n by 2 |
| the square of p | p² | Multiply p by itself |
The order of words matters for subtraction and division. “Five less than x” means x - 5, not 5 - x. “The quotient of x and 4” means x/4.
Addition and multiplication can often be written in either order because they are commutative. Thus, “three times x” and “x multiplied by three” both mean 3x. Subtraction and division do not work this way.
Grouping words with parentheses
Words such as “the sum of,” “the difference between,” and “the quantity” can identify a group that must stay together.
“The product of 4 and the sum of x and 6” means:
4(x + 6)
The parentheses show that x + 6 is calculated as one quantity before it is multiplied by 4.
Compare these expressions:
- Four times the sum of x and 6: 4(x + 6)
- The sum of four times x and 6: 4x + 6
They are different. In the first expression, 4 multiplies both x and 6. In the second, 4 multiplies only x.
Worked translations
Let x represent a number.
“The sum of twice a number and 9” means:
2x + 9
The word “twice” means multiplication by 2. The word “sum” means addition.
“Six less than three times a number” means:
3x - 6
Start with “three times a number,” or 3x. Then subtract 6.
“Three times the difference between a number and 4” means:
3(x - 4)
The difference is x - 4, and the entire difference is multiplied by 3.
“The square of a number increased by twice the number” means:
x² + 2x
The phrase “the square of a number” gives x². “Increased by” tells you to add 2x.
A useful test is to replace the variable with a simple value. Suppose x = 5 in “three times the difference between a number and 4.” The expression 3(x - 4) gives 3(1) = 3, which matches the wording. The incorrect expression 3x - 4 gives 11, because it does not multiply the difference as a whole.
Using an expression in a program
A variable in Python must be assigned a value before Python can evaluate the expression. Python uses ** for powers and * for multiplication.
x = 5
expression_value = 3 * (x - 4)
print(expression_value) # 3
square_and_twice = x**2 + 2 * x
print(square_and_twice) # 35The code evaluates two expressions after assigning x the value 5. The parentheses in 3 * (x - 4) preserve the grouping from the verbal description.
Practice
Exercise
Let n represent a number. Translate “seven more than twice the difference between n and 3” into an algebraic expression, then evaluate it when n = 8.
Show answer
The expression is 2(n - 3) + 7. When n = 8, it is 2(8 - 3) + 7 = 17.