Question about PEMDAS/BODMAS ambiguity

  • Context: High School 
  • Thread starter Thread starter DaveC426913
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the ambiguity surrounding the interpretation of mathematical expressions using PEMDAS/BODMAS, particularly in the context of the equation 6/2(1+2). Participants agree that the lack of parentheses leads to confusion, with interpretations varying between 1 and 9. The consensus emphasizes the necessity of clear notation to avoid misinterpretation and highlights that both multiplication and division should be evaluated from left to right when of equal precedence. The conversation reveals a broader issue of how mathematical expressions are often poorly formed, leading to unnecessary disputes.

PREREQUISITES
  • Understanding of PEMDAS/BODMAS rules for order of operations
  • Familiarity with basic algebraic expressions and notation
  • Knowledge of mathematical precedence and associativity
  • Ability to interpret and manipulate mathematical equations
NEXT STEPS
  • Research the implications of operator precedence in mathematical expressions
  • Learn about the importance of parentheses in clarifying mathematical notation
  • Explore common mathematical ambiguities and how to resolve them
  • Study the differences between left-to-right and right-to-left evaluation in expressions with equal precedence
USEFUL FOR

Mathematicians, educators, students, and anyone interested in improving their understanding of mathematical notation and avoiding common pitfalls in expression interpretation.

DaveC426913
Gold Member
2025 Award
Messages
24,255
Reaction score
8,375
TL;DR
Just a quick clarification on brackets
PEMDAS/BODMAS is a bit ambiguous on what to do with brackets once their inner components are resolved.

A number ouside a bracket means multiply, obvs. I am virtually certain it is not some "special" kind of multiply that takes precedence; the lack of an operator is simply a shortcut.

So, given this:
6/2(1+2)

If I understand it correctly, the correct resolution is:
6/2(1+2)
= 6/2(3)
= 6/2x3
= 3x3
= 9

and not
6/2(1+2)
= 6/2(3)
= 6/6
= 1

Lot of misinformation out there so I'm asking you guys cuz I trust you.

(We need a fourth thread prefix: [F] Level: Facebook)
 
Mathematics news on Phys.org
IMHO, anyone who is too lazy to include more parentheses, like (6/2)(1+2) or 6/(2(1+2)), deserves what he gets.
 
  • Like
Likes   Reactions: scottdave, tellmesomething, usaj and 6 others
FactChecker said:
IMHO, anyone who is too lazy to include more parentheses, like (6/2)(1+2) or 6/(2(1+2)), deserves what he gets.
Yes. The best answer is: don't write an ambiguous equation in the first place.

But let's assume we are handed the equation as-is and are asked to solve it.
 
  • Like
Likes   Reactions: russ_watters
DaveC426913 said:
But let's assume we are handed the equation as-is and are asked to solve it.
It's ambiguous and interpretation depends on house style or context. It's not specific to resolving bracketed expressions - generally, a/bc is ambiguous between (a/b)c and a/(bc). Many people will argue for left-to-right evaluation (i.e. (a/b)c), but it isn't guaranteed. Refer to the author.

If this is your grandkids' homework, check their textbook for what it says.
 
OK. I PEMDAS includes the M/D convention of left-to-right though.

No, it's not homework, just one of those dumb Facebook puzzles that tripped me up and got me thinking.
 
  • Haha
Likes   Reactions: scottdave
DaveC426913 said:
No, it's not homework, just one of those dumb Facebook puzzles that tripped me up and got me thinking.
It's just ambiguous. That's why these examples start so many fights, because neither the 1 nor the 9 camp is clearly right.
 
DaveC426913 said:
Yes. The best answer is: don't write an ambiguous equation in the first place.

But let's assume we are handed the equation as-is and are asked to solve it.
Since I am retired and can not be fired, I would hand it back. ;-)
But otherwise, I agree that it is proper to proceed left-to-right with the operations of division and multiplication being of equal precedence.
(The computer agrees with me, but it requires 6/2*(2+1), so I don't know if that answers your question.)
 
Any linear notation, especially if it involves divisions that are not notated as ##{}^{-1}## but with ##/## or ##
\div ## instead needs either a lot - and I mean a lot - of parentheses or is ambiguous. The internet is full of nonsense that makes use of this ambiguity. My point of view meanwhile, and which I defend, is that neither ##/## nor ##\div ## are signs a mathematician would use. We write ##{}^{-1}## or horizontal lines of varying lengths. The other ones are for school kids to keep them stupid. (May the ****storm begin!)

"I hate that cat" (Freddie Frinton, 1961) [Ed.: The English Wikipedia version I linked to is inaccurate with the year. I used the German information as it was a German production.]
 
FactChecker said:
But otherwise, I agree that it is proper to proceed left-to-right with the operations of division and multiplication being of equal precedence.
At least one time we discussed this here it was prompted partially by a journal that specifically noted in its style guide that ##1/2\pi=\frac 1{2\pi}##. Which I think is perfectly reasonable - if I'd meant ##\pi/2## I'd have written that.

So I'm with fresh_42 on this one - ambiguous.
 
  • Like
Likes   Reactions: scottdave, PeroK and FactChecker
  • #10
I'm not aware that I ever learned any "order of operations". Perhaps it was taught at school and I just can't remember. When I picked up physics and maths eleven years ago I was not aware of it. And, I had no problems interpreting mathematical expressions correctly.

It was a bit of a shock to learn that I was supposed to be parsing every line like a computer program and applying a set of rules I'd never heard of! When I pushed back and said that, since I had never missed it, these order of operations rules were unnecessary, some people got very angry. One recurring theme was the confusion that the associative and distributive laws depended on an order of operations. Which they don't.

The other thing that generated a lot of bad feeling was my idea that a mathematical expression is not well-formed, if it's ambiguous. In other words, all these pointless Internet puzzles are not even well-formed mathematical expressions. I was suprised to find mathematicians who believed that "everything had a right answer", no matter what jumble of symbols were shoved together.

I did think about doing an Insight (or simply writing up) the rules that I had picked up without noticing. It all seems so simple and logical. But, there is so much anger in the "order of operations" camp against any attempt to challenge it, that I never bothered.
 
  • Like
Likes   Reactions: gmax137, fresh_42 and martinbn
  • #11
PeroK said:
It was a bit of a shock to learn that I was supposed to be parsing every line like a computer program and applying a set of rules I'd never heard of!
One genre if these internet puzzles is something like "what is 3×20 + 2×10?", leading to arguments between those who remember that you're supposed to evaluate multiplications first (80) and those who evaluate left-to-right (620). Curiously, if you tell them you have three 20p coins and two 10p coins, absolutely nobody believes that you have £6.20. What I take from that is that people in general are terrible at recognising the abstract rules they apply happily in some situations.

You would seem to be an exception.

Edit: after typing this I noticed that the first "similar thread" is the one I referred to earlier about journal style and I used the exact same example (even the numbers) there. I'm not sure what that says about me...
 
  • #12
Ibix said:
One genre if these internet puzzles is something like "what is 3×20 + 2×10?", leading to arguments between those who remember that you're supposed to evaluate multiplications first (80) and those who evaluate left-to-right (620). Curiously, if you tell them you have three 20p coins and two 10p coins, absolutely nobody believes that you have £6.20. What I take from that is that people in general are terrible at recognising the abstract rules they apply happily in some situations.

You would seem to be an exception.
It's not well-formed mathematics. I would insist that brackets are required. They are not optional in this case. Informally, it's clear what is meant.

There's a big difference between that and ##ab + cd##. Which is standard mathematics. Dropping the symbol for multiplication makes things clear. You can insist there is a rule there and, if you insist, then I could formulate the rule any number of ways.

We would then perhaps disagree if someone wrote ##a \ \ \ b + c \ \ \ d##. I would say that is not well-formed, whereas, I guess you would parse that as ab+cd and everything is hunky-dory.

My point is that no one who writes mathematics or physics textbooks has ever demanded that I know these rules! I can read any mathematics or physics book in blissful ignorance of these things.
 
  • #13
Im 34, and I was taught in 5th grade, that with PEMDAS, M and D are preformed from left to right. The same for A and S.

I quickly browsed 4 algebra books aimed at the remedial math level, and they take this formulation.

So I would say, for American books. Follow the above convention.
 
  • #14
MidgetDwarf said:
So I would say, for American books. Follow the above convention.
No book demands that you know how to interpret ##a/b/c##. Everyone writes ##(ab)/c## or ##a/(bc)## as appropriate.

Ironically, everyone professes PEMDAS, but then follows "my" rule about the necessity of brackets!
 
  • Like
Likes   Reactions: fresh_42 and martinbn
  • #15
Does any of these question appear anywhere except of course on social media? To me they seem deliberately designed to be ambiguous in order to cause pointless arguments.
 
  • Like
Likes   Reactions: pbuk and PeroK
  • #16
PeroK said:
No book demands that you know how to interpret ##a/b/c##. Everyone writes ##(ab)/c## or ##a/(bc)## as appropriate.

Ironically, everyone professes PEMDAS, but then follows "my" rule about the necessity of brackets!
If one avoids backslash and uses the notation fractions as ##\frac{ab}c## and ##\frac a{bc}##, there will be no confusion.

Or does the ##a/b/c## mean ##\frac{\frac{a}{b}}{c}## or ##\frac{a}{\frac{b}{c}}##?
 
  • #17
PeroK said:
I'm not aware that I ever learned any "order of operations".
IIRC then the only rule I learned was that ##x=ab+c## has to be calculated as ##x=(ab)+c## and not as ##x\neq a(b+c).## It has been called "Punktrechnung vor Strichrechnung" (points before lines). That was it. I never missed those PEMBAS, BODMAS, or whatever. I very likely would have had more difficulties learning those acronyms than correct calculations.
 
  • Like
Likes   Reactions: PeroK
  • #18
DaveC426913 said:
OK. I PEMDAS includes the M/D convention of left-to-right though.
Not as far as I recall. Of course when I took algebra in 9th grade, the only mention was of MDAS (with a mnemonic of My Dear Aunt Sally). There was no mention of left to right as far as operator associativity was concerned. In other words, for operators at the same precedence level (+ and - or ##\times## and /) how should 6 - 2 + 3 be parsed? Should we do the subtraction first and then the addition? Or do the addition first and then the subtraction? The first interpretation gives a result of 7 while the second gives a result of 1. If we understand that the associativity is left to right, then the result of 7 is straightforward.

OTOH, how do the exponents associate in this expression - ##2^{3^2}##? Should the answer be 64 (the square of ##2^3##) or 512 ( 2 to the 9th power)? To the best of my knowledge, neither PEMDAS or BODMAS provides any clue.
 
Last edited:
  • #19
PeroK said:
There's a big difference between that and ##ab + cd##. Which is standard mathematics. Dropping the symbol for multiplication makes things clear.
PeroK said:
My point is that no one who writes mathematics or physics textbooks has ever demanded that I know these rules! I can read any mathematics or physics book in blissful ignorance of these things.
I'm not sure how much we apply the PEMDAS rules without thinking about it. We certainly do apply rules sometimes without thinking about it.
That being said, parentheses are free. These puzzles annoy me.
 
  • #20
Those "puzzles" on FB that "Only a Genius Can Solve!" are posted solely to garner comments. Prove me wrong!
 
  • Haha
Likes   Reactions: Ibix
  • #21
Mark44 said:
DaveC426913 said:
PEMDAS includes the M/D convention of left-to-right though.
Not as far as I recall. Of course when I took algebra in 9th grade, the only mention was of MDAS (with a mnemonic of My Dear Aunt Sally). There was no mention of left to right as far as operator associativity was concerned.
See below.

Mark44 said:
In other words, for operators at the same precedence level (+ and - or ##\times## and /) how should 6 - 2 + 3 be parsed?
Left-to-right.

6-2+3
=4+3
=7


"PEMDAS is an acronym for the words parenthesis, exponents, multiplication, division, addition, subtraction. For any expression, all exponents should be simplified first, followed by multiplication and division from left to right and, finally, addition and subtraction from left to right."
https://study.com/learn/lesson/pemd...an acronym for,subtraction from left to right.
 
  • #22
gmax137 said:
Those "puzzles" on FB that "Only a Genius Can Solve!" are posted solely to garner comments. Prove me wrong!
They absolutely are. In fact, much of Facebook - articles and all - is picking up that strategy and taking it another step:
- post a multiple choice puzzles and don't include the actual answer in the options
- post demonstrably false information. People will show up in droves to correct someone.

This kind of thing is rampant:

F-18 Hornet - apex predator of the sky
1737313283780.png
 
  • #23
The addition before subtraction rule, if taken seriously, would mess up the Taylor series:
$$\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \dots$$
 
  • Like
Likes   Reactions: gmax137
  • #24
DaveC426913 said:
Left-to-right.
How about my other example, the one with exponents?
##2^{3^2}##? Left to right or right to left? My concern with PEMDAS/BODMAS is that it doesn't address how operators associate, which specifically dictates left to right vs. right to left.
 
  • #25
Mark44 said:
How about my other example, the one with exponents?
##2^{3^2}##? Left to right or right to left?
Yes. PEMDAS does not address that specific condition.

Frankly, in this case, my intuition tells me to do it top-down.
2^3^2 reads to me as 2^9.

Mark44 said:
My concern with PEMDAS/BODMAS is that it doesn't address how operators associate, which specifically dictates left to right vs. right to left.
Yes, it is not all-encompassing.
 
  • #26
I agree with Dave. My reasoning is that (2^3)^2 would be written as 2^6.
 
  • #27
mathwonk said:
I agree with Dave. My reasoning is that (2^3)^2 would be written as 2^6.
What??
 
  • #28
8^2, aka 64, or 2^6. It took me a minute.
 
  • Like
Likes   Reactions: DaveC426913
  • #29
I refer to the general rule that (a^b)^c = a^(bc).
 
  • #30
May be instead of numbers there should be a variable too. Say the expression ##2^{x^3}## is never going to be confused with ##(2^x)^3##.
 
  • Like
Likes   Reactions: PeroK

Similar threads

  • · Replies 19 ·
Replies
19
Views
6K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 41 ·
2
Replies
41
Views
6K
  • · Replies 30 ·
2
Replies
30
Views
3K
  • · Replies 7 ·
Replies
7
Views
26K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
4K
  • · Replies 58 ·
2
Replies
58
Views
6K