Chapter 3 · Algebraic foundations
Evaluating Expressions: Powers, Roots and Absolute Value
Substitute values for variables and compute in the correct order, including powers, square roots, cube roots and absolute values.
A variable is a letter, such as , that stands for a number. A variable expression combines numbers, variables and operations, as in . You already know that the coefficient in means times .
On its own, is a rule waiting for a number: multiply the number by 3, then subtract 4. To evaluate an expression means to find the number it equals when each variable has a given value. To do that you substitute: you replace each variable with its given value, and then you do the arithmetic.
The table shows that different values of can give different results.
| Value of the variable | Substitute | After multiplying | Value of the expression |
|---|---|---|---|
Two habits keep substitution safe.
- Write the value in parentheses. For , write , not , so the multiplication stays visible. For , write , so the negative sign stays attached to the .
- Keep the order of operations. Multiply and divide from left to right before you add and subtract from left to right. That is why every row of the table multiplies first.
In the middle row, because zero times any number is zero. The value of the expression is still , because subtracting is still part of the rule.
Worked example
Two variables and a negative value
Evaluate for and .
Replace each variable with its given value, written in parentheses. The parentheses keep the negative sign attached to the 3.
Multiply before you add or subtract. 3 times 4 is 12. A positive number times a negative number is negative, so 2 times negative 3 is negative 6.
Subtracting a number is the same as adding its opposite, the number at the same distance from 0 on the other side of the number line. The opposite of negative 6 is 6, so the subtraction becomes an addition.
Add from left to right: 12 plus 6 is 18, and 18 plus 5 is 23.
Answer
When and , the value of is .
A power is a short way to write repeated multiplication. In , the base is the number you multiply, and the exponent tells how many copies of the base are multiplied together. Each copy is called a factor. In this lesson the exponent is a positive whole number, so and . The second power of a number is its square and the third power is its cube.
The result of a multiplication is a product, and its sign depends on its factors. Negative factors pair up, and each pair multiplies to a positive number. So when no factor is zero, an even number of negative factors gives a positive product, and an odd number gives a negative product. That is why is positive and is negative.
An exponent belongs only to the number, variable or parentheses directly in front of it. In the parentheses make the base. In the base is only , and the negative sign takes the opposite of the result afterwards. The table compares the two.
| Expression | Base | Written out | Value |
|---|---|---|---|
Worked example
A negative value inside two powers
Evaluate for .
Replace the variable with negative 3, in parentheses, both times it appears. The parentheses make all of negative 3 the base of each power.
Compute the powers first. Every factor is negative 3, so no factor is zero. The square has two negative factors, an even number, so it is positive 9. The cube has three negative factors, an odd number, so it is negative 27.
Put the powers back, then multiply. The exponent 2 belongs only to the parentheses in front of it, not to the coefficient 2, so the coefficient multiplies the finished power: 2 times 9 is 18.
Subtract by adding the opposite. The opposite of negative 27 is 27, and 18 plus 27 is 45.
Answer
When , the value of is .
A root asks a power question in reverse: which number, squared or cubed, gives this result?
The square root of , written , is the number that is zero or positive and whose square is . It is defined for . So , because and is positive. It is true that too, but the symbol names only . A negative number has no real square root, because squaring any real number, a number on the number line, gives zero or a positive result.
The cube root of , written , is the number whose cube is . Every real number has exactly one real cube root: positive for a positive number, negative for a negative number, and for . So because , and because .
A root symbol also groups. Work out everything under it before you take the root. Every root in this lesson comes out exactly, so no rounding is needed.
Worked example
A square root and a cube root
Evaluate for and .
Replace each variable with its given value, written in parentheses, so each value stays together as one number.
A root symbol groups, so add under the square root first: 16 plus 9 is 25. That amount is not negative, so the square root is defined.
Take each root. 5 squared is 25 and 5 is not negative, so the square root of 25 is 5. Negative 2 cubed is negative 8, so the cube root of negative 8 is negative 2.
Subtract by adding the opposite of negative 2, which is 2.
Answer
When and , the value of is exactly .
The absolute value of a number is its distance from on the number line. A distance is never negative, so an absolute value is never negative. You write it with two vertical bars: and , because and are each units from . Also, .
In an expression, the bars are grouping symbols. First find the single number between the bars, then take its distance from . Anything outside the bars waits. In the negative sign is outside, so it takes the opposite after the absolute value is found.
The table evaluates five expressions for . Compare the second and third rows: moving the outside the bars changes the result.
| Expression | Substitute | Number between the bars | Value |
|---|---|---|---|
Key concept
Substitute in parentheses, then compute in order
Every evaluation uses the same plan.
- Substitute. Replace each variable with its given value, written in parentheses. The value must be allowed: no divisor may be , and nothing under a square root symbol may be negative.
- Finish the groups. Work inside parentheses, the top and bottom of a fraction, under a root symbol and between absolute value bars. Once the bars hold a single number, take its absolute value.
- Compute powers and roots.
- Multiply and divide from left to right.
- Add and subtract from left to right.
The result is the value of the expression for those values of the variables.
Worked example
A power, an absolute value and a root together
Evaluate for and .
Replace each variable with its given value, written in parentheses, so that all of negative 3 is the base of the power.
Work between the bars, power first. Negative 3 cubed has three negative factors, an odd number, and no zero factor, so it is negative 27. Then negative 27 plus 2 is negative 25.
Work under the root symbol. Subtracting negative 3 means adding its opposite, 3, so the amount is 13 plus 3, which is 16. It is not negative, so the square root is defined.
Each group now holds a single number. Negative 25 is 25 units from 0, so its absolute value is 25. The square root of 16 is 4, because 4 squared is 16 and 4 is not negative.
Multiply before you subtract: 2 times 4 is 8. Then 25 minus 8 is 17.
Answer
When and , the value of is .
Takeaway. To evaluate an expression, substitute each given value in parentheses, then compute in order: grouping symbols first, then powers and roots, then multiplication and division, then addition and subtraction. Parentheses protect a negative value, so while . For , the symbol names only the root that is zero or positive. The cube root of a negative number is negative. An absolute value is a distance from , so it is never negative.