Variables and Expressions
Progress can't be saved in this browser, so this lesson's status can't be set.
Watch the video explainer
Learning goals
- Use a letter for a number that is unknown or free to change
- Distinguish expressions from equations and describe what it means to evaluate or solve
- Translate phrases into algebra using the correct order and parentheses
- Identify terms, coefficients, and constants, including their signs
- Evaluate by substituting each value in parentheses
What a variable is
A variable is a letter that stands for a number that is unknown or free to change. For example, can stand for an unknown number of notebooks in a bag. It can also stand for the number you choose to buy, which may change from one purchase to another.
For the notebooks that cost dollars each, choosing gives a cost of dollars. The number of notebooks changes, but the calculation still follows the same rule: multiply the count by . So one expression works for any number of notebooks you choose.
Choose a letter and state what it means. A letter such as for a count or for time can help you remember. Within one calculation, every use of the same letter stands for the same number. If , then means , not two different numbers.
In algebra, is shorthand for . Leaving out the multiplication sign keeps the expression compact and avoids confusing with the letter . Likewise, means , and means . Placing bare digits together is different: means thirty-four, while means .
Check your understanding
Let be the number of notebooks in one pack. Each pack has notebooks. What does mean?
Both copies of stand for the same count, .
The letter can stand for a different count in another situation, but it keeps the same value throughout this calculation.
Expressions versus equations
The notation describes a number plus five. It is an expression: a number, a variable, or numbers and variables combined with operations. Other examples are , , , and . An expression has no equals sign.
Writing makes a claim that two amounts are equal. This is an equation: two expressions joined by an equals sign. It is true when , since . It is false when , since , not .
You do something different with an expression and with an equation. To evaluate an expression, work out its value using given values for its variables. For with , you calculate . To solve an equation, find the value or values that make it true. For , that value is . Later lessons teach methods for solving equations.
Check your understanding
Which statement correctly describes and ?
An expression names an amount. To evaluate , you need a value for . For example, when :
An equation states that two amounts are equal. Solving means finding the value of that makes the equality true.
Translating words into expressions
To write “seven more than a number,” let stand for the number and add seven: . Name the number first, then decide what operations the words describe. The words in the table are clues to the operation. Read the whole phrase to decide which quantity to start with; the order of the words may differ from the order of the calculation.
| Words | Operation | Example phrase | Expression |
|---|---|---|---|
| sum, more than, increased by, total | seven more than | ||
| difference, less than, decreased by, fewer | five less than | ||
| product, times, twice, double | three times | ||
| quotient, divided by, per, split | divided by |
“Five less than ten” means . In the same way, “five less than ” means , not : start with and take five away. “Five fewer than ” and “five subtracted from ” also mean .
Worked example 1 Translate three phrases into expressions
Let stand for the number in each phrase.
“Eight more than twice a number.” Twice the number is , and eight more than that adds :
“The product of and a number, decreased by .” The product of and the number is , and decreased by subtracts :
“A number divided by , then increased by .” Dividing by gives , and increasing by adds :
Use parentheses when an operation applies to a whole sum or difference.
Worked example 2 Translate 'twice the sum of a number and four'
With the number , “twice the sum of three and four” means . You add first, then double the whole sum.
With standing for the number, the sum is . Keep it together with parentheses:
Without parentheses, doubles only , then adds . At , it gives , rather than .
Check your understanding
Which expression means "four less than a number "?
Start with and subtract :
The expression would mean starting with and subtracting .
The parts of an expression
In the expression below, two products are added and then seven is subtracted:
Its terms are the parts added or subtracted at the main level: , , and . Subtracting is the same as adding , so you can write . Each term carries its sign, so the last term is , not .
A plus or minus inside parentheses does not split the surrounding expression into terms. For example, has two terms as written: and . The grouped sum stays inside the first term.
In , the number is the coefficient, the number multiplying the variable. The coefficient of is . Plain has coefficient , because ; likewise, has coefficient .
The term is a constant, a number term with no variable. It stays regardless of the values of and .
Check your understanding
Which statement about is correct?
Keep the minus sign with the first term. The terms are and .
The coefficient is , even though the is not written. The number term, , is the constant.
Evaluating an expression by substitution
If , then means . Replacing a variable with its given value is called substitution.
Put the substituted number in parentheses to keep the operations clear: becomes , not . Then follow the order of operations to evaluate the expression.
Worked example 3 Evaluate when
Substitute for , writing it in parentheses so the multiplication stays clear:
Now follow the order of operations: multiply before you add.
Why the same expression gives different values for different inputs#
Changing the input can change the value of an expression. For , compare two inputs:
Both calculations follow the same rule: multiply the input by two and add one.
The rectangle below uses for width and for height. Its area counts the unit squares inside: rows of squares give . Its perimeter is the distance around all four sides. For a width of and height of , going around adds twice: . With letters, the two pairs of sides give .
Set and change from to . Watch the area change through , , , , and . You are evaluating at five different inputs. Then try and . Calculate and , then check the readout.
One rule, many inputs, many values
A rectangle 4 units wide and 2 units tall. With w = 4 and h = 2, the expression w times h is 8. The expression 2(w + h) is 12.
Worked example 4 Evaluate when and
Replace with and with :
Square first, then multiply by :
Then subtract the value of :
The exponent applies to , so square , not the whole product .
For a negative input, parentheses keep the number and its minus sign together.
Worked example 5 Evaluate when
Substitute for :
Writing instead would change multiplication into subtraction.
Now follow the order of operations, multiplying before adding:
Check your understanding
Evaluate when .
Substitute for , then multiply before subtracting:
The answer comes from adding , but means multiply, not add.