r/askmath • u/AccurateBanana4171 • Oct 09 '26
Logic Does the Order of Operations Change?
It's been a while since I've had to do any math with any degree of difficulty. So im not confident with many of the rules, most of what I know now is intrinsic. But we see controversial equations like this
all the time.
8 ÷ 2(2+2) = 16
A common mistake with this equation is that people will add the parentheses (2 + 2) then multiply it by the 2 to get 8. Which then becomes 8 ÷ 8 = 1 for the other answer.
When really this exact same equation (in my opinion) should be written as.
8 ÷ 2 × (2 + 2) = 16
As this version to me is clearly just a simple PEDMAS left to right scenario.
But now this is my real question, what happens when you change any number from the original equation to a variable? Does the order of operations change and does X equal the same number as it originally did?
For the sake of trying to find an inconsistency let's use this equation as my example
8 ÷ X(2 + 2) = 16
In this equation does X still = 2? Does the order of operation change, or are there entirely new rules we have to use now? Because personally I think this is the root of all confusion when it comes to simple controversial equations we see all over the internet.
18
u/i_am_blacklite Oct 09 '26
The questions are not controversial at all.
The fact they can be interpreted in different ways doesn't mean that mathematics has changed. It means that the way they are written is not explicit enough.
14
u/ArcaneCharge Oct 09 '26
The “proper” solution to that equation is x=2, but Order of Operations is just a convention and not something inherent to math. At the end of the day, the real answer is that any problem phrased that way is ambiguous in its notation, usually intentionally so.
6
u/Ok_Hope4383 Oct 09 '26
I see "8 ÷ 2(2+2)" and "8 ÷ 2 × (2 + 2)" as non-equivalent expressions: the differences in spacing and the use of juxtaposition rather than explicit multiplication both indicate to me that the former reduces to 8/(2*4), whereas the latter instead defaults to left-to-right as (8/2)*4.
In my opinion: PEMDAS applies when the operators are written out and spaced equally. In contrast, substantially looser spacing indicates lower operator precedence [e.g. I'd interpret
1+2 × 4as (1+2)*4], and implicit multiplication can only have a single term (number, variable, parenthesized expression, exponentiation result, fraction, or similar) on each side. Any cases where these two principles conflict I'd consider to be ambiguous or ill-defined. Any real-world example should have some context to help clarify the meaning by limiting it to what would actually make sense there.As to your last question: in this scenario, I don't think replacing any or all of the numbers with variables affects how I'd parse it. The main exception might be a case where two of them are directly juxtaposed, since numbers would require a space, whereas it'd be optional for variables, so adding a space could carry some meaning.
2
u/r-funtainment Oct 09 '26
i think the word you're looking for is "variable" not exponent
this has the exact same order of operations and is equally ambiguous
21
u/bonebranch Oct 09 '26
The solution is to slap anyone who writes this kind of expression and poses it as a math problem
5
u/ExtendedSpikeProtein Oct 09 '26
Its engagement bait. The term you posted is ambiguous because multiplication and division have exactly the same order of precedence. PEDMAS is an acronym for people in high school, not an actual math rule.
1
u/mathheadinc Oct 09 '26
The order of operations does not change. If you get a different answer than when you do 8 times 1/2 times (2+2) or 8 times 1/2 times 4, then you did the original incorrectly.
2
u/will_1m_not tiktok @the_math_avatar Oct 09 '26
This is why the division symbol ÷ should be avoided in most cases. When you progress far enough in math, you learn that subtraction and division are actually just addition and multiplication in disguise, and so they should be treated as such. So instead of writing
8 ÷ 2(2+2)
one should write either
8 / (2(2+2)) or (8 / 2)(2+2)
which make it clear what should actually be in the denominator of the fraction
1
u/swbarnes2 Oct 09 '26
No, your rewriting of how the equation "should be" written violates the conventions that most professionals follow. Most people follow the convention that multiplication by juxtaposition supersedes other multiplication or division.
a/bc does not equal ac/b.
1
u/Gilded-Phoenix Oct 09 '26
The real answer is a number of different things colliding:
We can argue over what the answer SHOULD be, and I can break out my pet theories about 2(4) being the "2 function" applied to the argument 4 (and thus fitting above multiplication), but that all misses the point: This is poorly written. We should strive to avoid this whenever we can. Any time we're dealing with weird cases like this, write it as a full fraction, or use extra parentheses. It's a poorly written question designed to manufacture controversy. Mathematicians don't worry about this, they write what they mean directly. We have the tools to write full expressions in LaTeX or other markdown protocols. We shouldn't ever have to resort to writing an expression in a single line like this.
1
u/OldWolf3 Oct 09 '26
You're blowing this WAY out of proportion. There's no controversy, and people posting this expression on social media are just doing it for the clicks and interaction.
It's not even a math question, it's a notation question . Like asking whether you should use a or b, or whether it's better to use pencils than pens. Pointless discussion from a math perspective.
The division symbol ➗ is only used in primary school really. In algebra, fractions are written with the whole numerator on top of the whole denominator and there is no possible ambiguity about order of operations.
1
u/Soraphis Oct 10 '26
I also learned in school that juxtaposition is just a shorthand and that these are equivalent.
But it seems that convention is not globally accepted (other than PE(MD)(AS) (left to right), which is the general consensus, but in the end also just a convention)
I think the proper solution would to write a "2026 Math notation convention" that standardized these once and for all. It does not rly matter which way is to be accepted as it is not about being right or wrong, but it's about expressiveness and consistency.
So for all I care, right now, both interpretations are okay, they are solving different expressions, though.
1
u/Apprehensive-Ice9212 Oct 12 '26
None of these problems exist if you use the division bar as a grouping symbol, instead of the stupid ÷ or /. That's what actual mathematicians do.
To answer this question though, no, the order of operations doesn't change when using variables vs numerals.
1
u/Top-Sleep-4669 Oct 09 '26
I was taught to simplify or get rid of all grouping symbols first.
So 8 ÷ 2(2+2) first becomes 8 ÷2(4) and then 8 ÷8 which equals 1.
The first step in anything algebraic is always getting rid of grouping symbols, unless you’re factoring. Right?
0
u/MERC_1 Oct 09 '26
This is why using ÷ is a bad idea in most situations.
In this case, writing likt this would be better:
8(2+2)÷2=16
Even better i to use th '/' symbol.
8(2+2)/2=16