Math Core

Lesson 1.2 · Foundations of Algebra

Order of operations

When an expression has more than one operation, everyone needs to agree on which one to do first. Otherwise 3+4×23 + 4 \times 2 could mean 1414 or 1111. Mathematicians settled this long ago with the order of operations.

The order

Order of operations

  1. Grouping symbols first: parentheses ( )(\,), brackets [ ][\,], fraction bars, and absolute value bars. Work from the innermost group outward.
  2. Exponents (powers and roots).
  3. Multiplication and division, from left to right.
  4. Addition and subtraction, from left to right.

Many students remember this as PEMDAS ("Please Excuse My Dear Aunt Sally"). The acronym hides something important, though: multiplication and division are the same level, and so are addition and subtraction. You do whichever comes first reading left to right.

Common mistake

In 12÷3×212 \div 3 \times 2, division comes first because it is on the left: 12÷3×2=4×2=812 \div 3 \times 2 = 4 \times 2 = 8. It is not 12÷6=212 \div 6 = 2.

Worked example: Grouping, then exponents

Evaluate 2+3(5−1)22 + 3(5 - 1)^2.

2+3(5−1)2=2+3(4)2parentheses=2+3⋅16exponent=2+48multiply=50add\begin{aligned} 2 + 3(5 - 1)^2 &= 2 + 3(4)^2 && \text{parentheses} \\ &= 2 + 3 \cdot 16 && \text{exponent} \\ &= 2 + 48 && \text{multiply} \\ &= 50 && \text{add} \end{aligned}

Worked example: A fraction bar is a grouping symbol

Evaluate 18−2⋅34+2\dfrac{18 - 2 \cdot 3}{4 + 2}.

Simplify the top and the bottom separately first. Top: 18−6=1218 - 6 = 12. Bottom: 4+2=64 + 2 = 6. So the value is 126=2\dfrac{12}{6} = 2.

Negative signs and exponents

An exponent applies only to what is directly in front of it.

  • (−3)2=(−3)(−3)=9(-3)^2 = (-3)(-3) = 9, because the parentheses put the negative inside the base.
  • −32=−(3⋅3)=−9-3^2 = -(3 \cdot 3) = -9, because the exponent applies only to the 33.

Tip

When you're unsure, rewrite −32-3^2 as −1⋅32-1 \cdot 3^2. The exponent happens before the multiplication.

Practice

Practice 1

Evaluate 3+4×23 + 4 \times 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Evaluate 12÷3×212 \div 3 \times 2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

What is the value of −32-3^2?

Practice 4

Evaluate 5+2⋅(3+1)25 + 2 \cdot (3 + 1)^2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Evaluate 20−2⋅41+3\dfrac{20 - 2 \cdot 4}{1 + 3}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Evaluate 2[10−(6−4)2]+42[10 - (6 - 4)^2] + 4.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.