Sub topic 15
Ambiguous notation such as 8 ÷ 2(2 + 2)
This chapter assumes you can apply the full order of operations: grouping first, then exponents, then multiplication and division left to right, then addition and subtraction left to right. It also assumes you know that operations of equal rank are evaluated left to right. Here you will see where those rules stop giving one answer, and what to do about it.
The expression that splits people
Consider this expression:
8 ÷ 2(2 + 2)
Two answers are common: 16 and 1. Both come from careful, rule-following reasoning, so the disagreement is not a simple arithmetic slip.
Reading A: treat the expression as plain left-to-right.
- Evaluate the parentheses: 2 + 2 = 4. The expression becomes 8 ÷ 2(4).
- Treat the juxtaposition 2(4) as an ordinary multiplication: 8 ÷ 2 × 4.
- Division and multiplication share a rank, so go left to right: 8 ÷ 2 = 4, then 4 × 4 = 16.
Reading B: treat 2(2 + 2) as one grouped factor.
- Evaluate the parentheses: 2 + 2 = 4.
- Treat 2(4) as a single quantity, 8, because the multiplication is written without a sign.
- Divide: 8 ÷ 8 = 1.
Under Reading A, the missing sign means nothing special. Under Reading B, the missing sign binds the 2 to the parenthesis more tightly than the division sign binds the 8 to the 2.
Why the standard rules do not settle it
The order of operations you learned in earlier chapters ranks the operation symbols: exponents, then multiplication and division, then addition and subtraction. It says nothing about multiplication written by placing symbols side by side. This is called implicit multiplication (or juxtaposition).
The rules therefore leave a question open: does implicit multiplication have the same rank as an explicit × or ÷, or a higher rank?
- If it has the same rank, you get Reading A and the answer 16.
- If it has a higher rank, you get Reading B and the answer 1.
Both conventions exist in real use. Many textbooks and most programming languages take the first view. Some scientific calculators and some journal style guides take the second view, especially for expressions like a/bc, which authors often intend as a/(bc). Neither convention is a mistake. The expression is ambiguous because it was written without saying which one applies.
Two readings in Python
Python does not accept 2(2 + 2). It treats 2(...) as an attempt to call the number 2 as a function and raises a TypeError. Python forces you to write the multiplication sign, which removes the ambiguity. You must then choose a reading and write it down:
reading_a = 8 / 2 * (2 + 2) # division and multiplication, left to right
reading_b = 8 / (2 * (2 + 2)) # the implicit product is grouped
print(reading_a) # 16.0
print(reading_b) # 1.0The only difference between the two lines is a pair of parentheses. That is the practical lesson: parentheses are the tool that turns an ambiguous expression into one with a single value.
The same problem with variables and fractions
Ambiguity is more common in algebra than in pure arithmetic. Take 1/2x, typed on one line:
- Read left to right, it means (1/2) × x.
- Read with implicit multiplication binding tighter, it means 1/(2x).
For x = 4 these give very different results:
x = 4
half_of_x = 1 / 2 * x # (1/2) * x
one_over_2x = 1 / (2 * x) # 1 / (2x)
print(half_of_x) # 2.0
print(one_over_2x) # 0.125This connects to the fraction bar from the earlier chapter. A written fraction with x in the denominator, such as a bar with 1 on top and 2x below, is unambiguous because the bar groups the whole bottom. The ambiguity appears only when you flatten the fraction onto one line with / or ÷. When you do that, add the parentheses the bar used to provide.
Does distributing settle it?
A common argument for Reading B goes like this: 2(2 + 2) distributes to 2·2 + 2·2 = 8, so 8 ÷ 8 = 1. The distributive step is valid, but it only shows that 2(2 + 2) equals 8. It does not show that the division applies to all of 8 rather than to the 2 alone.
Reading A is consistent with distribution too. After the parentheses give 4, the remaining question is still whether 8 ÷ 2 happens before the multiplication by 4. Distribution does not answer that question, so neither reading wins on algebraic grounds. The question is purely one of notation convention.
How to handle ambiguous notation
Use these habits in your own work and when reading someone else's:
- Write unambiguously. When a division is followed by a product, parenthesize the product if it belongs in the denominator:
8 / (2 * (2 + 2)). Parenthesize the division instead if it should happen first:(8 / 2) * (2 + 2). - Prefer a fraction bar in handwritten or typeset work, because the bar groups everything above and below it.
- Check the source's convention. A textbook, exam board, calculator manual, or style guide may state how it treats implicit multiplication. Use that convention for that source.
- Do not assume a calculator agrees with you. Different calculators can return different values for the same typed expression. If a result surprises you, retype it with explicit parentheses and compare.
- Do not argue about the answer without stating the reading. Two people reaching 16 and 1 are often both correct under different conventions.
Cases that are not ambiguous
Some expressions with implicit multiplication have only one sensible reading under any convention:
3(4 + 5)has no division, so it is 3 × 9 = 27 either way.2x + 3has no division, so the product 2x forms before the addition either way.(8 ÷ 2)(2 + 2)has parentheses around the division, so it gives 4 × 4 = 16 either way.
The trouble appears only in a particular pattern: a division sign (or slash) followed by a term that includes juxtaposition. When you spot that pattern, stop and add parentheses.
Summary of the working model
- Standard precedence ranks explicit symbols. It does not say how implicit multiplication ranks relative to ÷.
- Two conventions are in use: same rank as × and ÷ (giving 16), or higher rank (giving 1).
- The remedy is to rewrite with parentheses, not to pick a winner.
- Python and most programming languages require an explicit
*, so you must choose.
Exercise
Evaluate 48 ÷ 2(9 + 3) under both conventions. Then write one Python line for each reading, using explicit multiplication, and say how you would rewrite the original expression to remove the ambiguity.
Show answer
The parentheses give 9 + 3 = 12 in both readings. Reading A (same rank, left to right): 48 ÷ 2 = 24, then 24 × 12 = 288. Reading B (implicit product grouped): 2(12) = 24, then 48 ÷ 24 = 2. Python: 48 / 2 * (9 + 3) gives 288.0, and 48 / (2 * (9 + 3)) gives 2.0. To remove the ambiguity, write (48 ÷ 2)(9 + 3) if the division should come first, or 48 ÷ [2(9 + 3)] if the product belongs in the denominator.
Exercise
Let x = 3. Evaluate 6/2x under both readings, and say which reading a fraction written with 6 on top and 2x on the bottom would correspond to.
Show answer
Reading 1, left to right: (6/2) × 3 = 3 × 3 = 9. Reading 2, implicit product grouped: 6/(2 × 3) = 6/6 = 1. A fraction with 6 on top and 2x on the bottom matches Reading 2, because the fraction bar groups the whole denominator.