Chapter 8 · Expressions
Several Variables, Exponents and Grouping Symbols
Learn to evaluate expressions that have more than one variable. Then handle exponents and grouping symbols by following the order of operations.
An algebraic expression is a math phrase built from numbers, letters and operation signs, such as . Each letter is a variable: it stands for a number. To evaluate an expression, you replace each variable with its given number and then do the arithmetic.
You have already done this with one variable, even when its value was a fraction or a decimal. For example, when , the expression becomes .
Now you will go further. First, you will evaluate expressions with more than one variable. Then you will evaluate expressions that also have parentheses and small raised numbers, like the in .
Many situations have more than one quantity that can change. Each quantity gets its own variable.
Think about a quiz game. Each regular question is worth points, and each bonus question is worth points. Let be the number of regular questions you get right. Let be the number of bonus questions you get right. Then your score, in points, is . Here means times , and means times .
To find a score, you substitute: you replace each variable with its number. You may do this because the variable stands for that number, so the expression still describes the same amount. Each variable gets its own value.
When a value lands right next to a number or another value, you still need to show the multiplication. One clear way is to write the value in parentheses: means times , but is a different number.
Worked example
A score with two variables
In the quiz game, your score in points is . Here is the number of regular questions you get right, and is the number of bonus questions you get right. You get regular questions and bonus questions right. What is your score?
Match each number to its own variable. The variable counts regular questions, so . The variable counts bonus questions, so .
Substitute both values. Each value lands next to a number, so write it in parentheses to show the multiplication.
Multiply first, as you do with numbers alone. This fits the game too: points come from regular questions, and points come from bonus questions.
Add the two parts to get the whole score.
Answer
When and , the expression has the value . Your score is points.
The same steps work for any expression with several variables. Keep three things in mind.
- When variables sit side by side, you multiply them. So means times , just as means times .
- Match each value to its own variable. Mixing up two values can change the answer.
- If a variable appears more than once in an expression, it gets the same value each time.
The expressions in the table use only addition, subtraction, multiplication and division. For expressions like these, multiply and divide first, from left to right. Then add and subtract, from left to right. Every row uses , and .
| Expression | Substitute the values | Do the arithmetic | Value |
|---|---|---|---|
Expressions can contain two more things. Each one changes what the expression tells you to do.
Grouping symbols hold part of an expression together as one amount. Parentheses, as in , are grouping symbols. Brackets, as in , do the same job. A fraction bar groups too: it holds together everything above it, and everything below it.
An exponent is the small raised number in an expression like . The base is the part that the exponent sits on. It can be a number, a variable, or a whole group in parentheses. A whole-number exponent such as or tells you how many copies of the base to multiply together. So means , and means . The dot is another way to write times. When you use the exponent , you are squaring the base. Every exponent in this lesson is a whole number like these.
The table shows four expressions that look alike. Every row uses . Watch which part each exponent sits on.
| Expression | What it tells you to do | With n = 4 | Value |
|---|---|---|---|
Square , then multiply by | |||
Multiply by , then square the result | |||
Square , then add | |||
Add and , then square the result |
Key concept
Substitute, then follow the order of operations
To evaluate an expression, first substitute: replace every variable with its own value. Then do the operations in the order of operations. Everyone agrees to use this order, so everyone gets the same value.
- Grouping symbols. Work out what is inside parentheses or brackets, and above and below a fraction bar. Use this same order inside.
- Exponents. Work out each one. It belongs only to its own base.
- Multiplication and division, from left to right.
- Addition and subtraction, from left to right.
Parentheses around a single number, as in , have nothing to work out inside. They only show multiplication. Each step rewrites the expression in a simpler form with the same value.
Worked example
Two variables with exponents
Evaluate when and .
Substitute for and for , because those are the given values. The lands next to the , so write it in parentheses to show the multiplication.
The parentheses hold a single number, so there is nothing to work out inside them. Do the exponents next. Each exponent belongs only to its own base: and . The is not squared.
Multiply next, because multiplication comes before subtraction in the order of operations: .
Only subtraction is left, so subtract.
Answer
When and , the value of is .
Worked example
Three variables, a group and an exponent
Evaluate when , and .
Substitute the given values, each for its own variable. Keep the parentheses around , because they are part of the expression. Put the in parentheses to show that multiplies it.
Work inside the grouping symbols first. Add the decimals: .
Do the exponent before you multiply by . The base is the whole group, which is now , so .
Multiply from left to right, because multiplication comes before subtraction: and .
Only subtraction is left, so subtract.
Answer
When , and , the value of is .
Takeaway. To evaluate an algebraic expression, replace every variable with its own value. Then follow the order of operations: grouping symbols first, then exponents, then multiplication and division from left to right, then addition and subtraction from left to right. An exponent belongs only to its base, so and tell you to do different things.
Next, you will evaluate expressions that come from formulas. You will also learn to find mistakes in evaluated expressions.