Chapter 1 ยท Rational number foundations

Order of Operations with Integers and Finding Errors

Evaluate integer expressions one operation at a time in the agreed order, then check worked solutions line by line to find and correct mistakes.

15 min read

A numerical expression is a string of numbers and operation signs, such as 5+2โ‹…(โˆ’4)5 + 2 \cdot (-4). To evaluate an expression means to find the number it equals. That number is called the value of the expression.

In this lesson the numbers are integers: the counting numbers 1,2,3,โ€ฆ1, 2, 3, \ldots, their opposites โˆ’1,โˆ’2,โˆ’3,โ€ฆ-1, -2, -3, \ldots, and 00. You already know how to add, subtract, multiply and divide two integers. Now you will combine those skills in longer expressions. Then you will use the same thinking to find and fix mistakes in someone else's written work.

Why does the order of the steps matter? Look at 5+2โ‹…(โˆ’4)5 + 2 \cdot (-4). The part 2โ‹…(โˆ’4)2 \cdot (-4) means two copies of โˆ’4-4. That is one quantity, โˆ’8-8, and the expression asks you to add it to 55. So the value is 5+(โˆ’8)=โˆ’35 + (-8) = -3. If you added 5+25 + 2 first, you would split up the two copies and get 7โ‹…(โˆ’4)=โˆ’287 \cdot (-4) = -28, a different number.

So that an expression means the same thing to everyone, there is an agreed order of operations. For an expression made of integers, grouping symbols and the four operations (addition, subtraction, multiplication and division):

  1. Work inside grouping symbols, such as parentheses, first. Inside a group, follow steps 2 and 3.
  2. Then multiply and divide, moving from left to right.
  3. Then add and subtract, moving from left to right.

Parentheses around one negative number, as in (โˆ’4)(-4), only keep the sign with its number. There is no operation inside them to carry out.

Each step of an evaluation uses a fact you already know about integers. A few words first. Numbers that are multiplied are factors, and the result is their product. In a division, the dividend is the number being divided, the divisor is the number you divide by, and the result is the quotient. Nonzero means not equal to zero. The additive inverse of a number is its opposite, the number you add to it to get 00. For example, the additive inverse of 88 is โˆ’8-8, and the additive inverse of โˆ’5-5 is 55.

Each fact in the table is true only under the condition written with it, so read the two together.

Integer facts and the conditions that go with them
SituationFactExample
Subtracting
Subtracting a number is the same as adding its additive inverse.
3โˆ’8=3+(โˆ’8)=โˆ’53 - 8 = 3 + (-8) = -5
Multiplying nonzero factors
An odd number of negative factors gives a negative product. An even number gives a positive product.
6โ‹…(โˆ’3)=โˆ’186 \cdot (-3) = -18 and โˆ’4โ‹…(โˆ’2)=8-4 \cdot (-2) = 8
Multiplying when a factor is zero
Zero times any number is zero.
0โ‹…(โˆ’9)=00 \cdot (-9) = 0
Dividing a nonzero dividend by a nonzero divisor
Same signs give a positive quotient. Different signs give a negative quotient.
โˆ’24รท(โˆ’6)=4-24 \div (-6) = 4 and โˆ’24รท6=โˆ’4-24 \div 6 = -4
Dividing zero by a nonzero divisor
Zero divided by a nonzero number is zero.
0รท(โˆ’6)=00 \div (-6) = 0
Dividing by zero
Division by zero is undefined, so the expression has no value.
7รท07 \div 0 is undefined

Key concept

One operation at a time, in the agreed order

An expression made of integers, grouping symbols and the four operations has exactly one value, as long as no divisor is zero. To find it, replace one operation at a time with its result: grouping symbols first, then multiplication and division from left to right, then addition and subtraction from left to right. You are swapping an operation for a number equal to it, so every correct line has the same value as the line before it. An error is a line where the value changes.

Worked example

Multiplication before addition

Evaluate โˆ’8+6โ‹…(โˆ’3)-8 + 6 \cdot (-3).

  1. Decide the order. The parentheses hold only the number negative 3, so there is nothing to work out inside them. That leaves an addition and a multiplication, and multiplication comes before addition.

  2. Multiply 6 by negative 3. Both factors are nonzero and exactly one of them is negative. One is an odd number, so the product is negative. Since 6 times 3 is 18, the product is negative 18. Replacing the multiplication with a number equal to it keeps the value of the whole expression.

    โˆ’8+6โ‹…(โˆ’3)=โˆ’8+(โˆ’18)-8 + 6 \cdot (-3) = -8 + (-18)
  3. Add negative 8 and negative 18. Both numbers are negative, so the result is negative, and it is 8 plus 18, or 26, units from zero.

    โˆ’8+(โˆ’18)=โˆ’26-8 + (-18) = -26

Answer

The value of โˆ’8+6โ‹…(โˆ’3)-8 + 6 \cdot (-3) is โˆ’26-26.

Worked example

Grouping first, then left to right

Evaluate โˆ’24รท6โ‹…(โˆ’2)โˆ’(3โˆ’8)-24 \div 6 \cdot (-2) - (3 - 8).

  1. Start inside the grouping symbols. The parentheses at the end hold a subtraction. Subtracting 8 is the same as adding its additive inverse, negative 8, and 3 plus negative 8 is negative 5. Replace the group with negative 5.

    โˆ’24รท6โ‹…(โˆ’2)โˆ’(3โˆ’8)=โˆ’24รท6โ‹…(โˆ’2)โˆ’(โˆ’5)-24 \div 6 \cdot (-2) - (3 - 8) = -24 \div 6 \cdot (-2) - (-5)
  2. Next, multiply and divide from left to right. The division is on the left, so it goes first. The division sign applies only to the 6 that follows it, so multiplying 6 by negative 2 first would change the value. The divisor 6 is not zero, and negative 24 and 6 have different signs, so the quotient is negative. Since 24 divided by 6 is 4, the quotient is negative 4.

    โˆ’24รท6โ‹…(โˆ’2)โˆ’(โˆ’5)=โˆ’4โ‹…(โˆ’2)โˆ’(โˆ’5)-24 \div 6 \cdot (-2) - (-5) = -4 \cdot (-2) - (-5)
  3. Multiply negative 4 by negative 2. Both factors are nonzero and both are negative. Two is an even number of negative factors, so the product is positive. Since 4 times 2 is 8, the product is 8.

    โˆ’4โ‹…(โˆ’2)โˆ’(โˆ’5)=8โˆ’(โˆ’5)-4 \cdot (-2) - (-5) = 8 - (-5)
  4. Only a subtraction is left. Subtracting negative 5 is the same as adding its additive inverse, which is 5.

    8โˆ’(โˆ’5)=8+5=138 - (-5) = 8 + 5 = 13

Answer

The value of โˆ’24รท6โ‹…(โˆ’2)โˆ’(3โˆ’8)-24 \div 6 \cdot (-2) - (3 - 8) is 1313.

Now turn the idea around. In correct work, every line has the same value as the line before it. So when a final answer is wrong, at least one line changed the value. Your job is to find the first line that did.

Check one line at a time. See what the writer changed from the line before, and ask two questions:

  • Right operation? Is it the operation that the order of operations puts next?
  • Right result? Is the number written for it correct, including its sign?

If both answers are yes and the rest of the line is copied unchanged, the line still has the same value, so move on. When you reach the first line whose value is different, say what went wrong. Most often it is an order error (an operation done before its turn) or a calculation error (the right operation with a wrong result, often a wrong sign). Correct that line, then redo every line after it, because the writer built those lines on a wrong number. The table shows this check on one student's work.

Checking a student's work one line at a time
LineStudent wroteCheckVerdict
Given
10โˆ’4โ‹…(โˆ’3+5)10 - 4 \cdot (-3 + 5)
This is the expression to evaluate.
Start here
1
10โˆ’4โ‹…210 - 4 \cdot 2
Grouping goes first, and โˆ’3+5=2-3 + 5 = 2 is correct.
Correct
2
6โ‹…26 \cdot 2
The student did 10โˆ’410 - 4 first. But the 44 is part of the product 4โ‹…24 \cdot 2, which comes first.
First error (order): the value changes from 22 to 1212
3
1212
6โ‹…2=126 \cdot 2 = 12 is correct arithmetic, but it uses the wrong line 2.
Must be redone
2, corrected
10โˆ’810 - 8
Multiply before subtracting: 4โ‹…2=84 \cdot 2 = 8.
Correct
3, corrected
22
Subtract: 10โˆ’8=210 - 8 = 2.
Correct value

Worked example

Find and fix a sign error

A student evaluated โˆ’4โ‹…(3โˆ’9)โˆ’18รท(โˆ’6)-4 \cdot (3 - 9) - 18 \div (-6) and wrote four lines. Line 1: โˆ’4โ‹…(โˆ’6)โˆ’18รท(โˆ’6)-4 \cdot (-6) - 18 \div (-6). Line 2: โˆ’24โˆ’18รท(โˆ’6)-24 - 18 \div (-6). Line 3: โˆ’24โˆ’(โˆ’3)-24 - (-3). Line 4: โˆ’24+3=โˆ’21-24 + 3 = -21. Find the first line with an error, say what went wrong, and correct the work.

  1. Check line 1. Grouping symbols go first, so working out 3 minus 9 was the right choice. Subtracting 9 is the same as adding its additive inverse, negative 9, and 3 plus negative 9 is negative 6. Line 1 is correct.

    3โˆ’9=3+(โˆ’9)=โˆ’63 - 9 = 3 + (-9) = -6
  2. Check line 2. Multiplication and division come next, and the multiplication is on the left, so the student chose the right operation. But the result is wrong. Negative 4 and negative 6 are nonzero factors and both are negative. Two is an even number of negative factors, so the product is positive 24, not negative 24. Line 2 holds the first error: a sign error.

    โˆ’4โ‹…(โˆ’6)=24-4 \cdot (-6) = 24
  3. Look at the later lines. Line 3 divides 18 by negative 6. The divisor is not zero and the two numbers have different signs, so the quotient negative 3 is correct. In line 4 the student subtracts negative 3 by adding its additive inverse, 3, which is also correct. These lines add no new error, but they use negative 24, so you must redo them.

    18รท(โˆ’6)=โˆ’318 \div (-6) = -3
  4. Redo the work from line 2 with the correct product, 24. The division that follows gives negative 3, as the student found.

    24โˆ’18รท(โˆ’6)=24โˆ’(โˆ’3)24 - 18 \div (-6) = 24 - (-3)
  5. Finish with the subtraction. Subtracting negative 3 is the same as adding its additive inverse, 3.

    24โˆ’(โˆ’3)=24+3=2724 - (-3) = 24 + 3 = 27

Answer

The first error is in line 2, a sign error: the product of the nonzero negative factors โˆ’4-4 and โˆ’6-6 is 2424, not โˆ’24-24. The correct value of the expression is 2727.

Takeaway. An expression made of integers, grouping symbols and the four operations has one value when no divisor is zero. You find it one operation at a time: grouping symbols first, then multiplication and division from left to right, then addition and subtraction from left to right. For each operation, use the integer fact that fits and check its condition. Because every correct line equals the line before it, you can find a mistake by locating the first line where the value changes, naming what went wrong, and redoing the work from that line on.