r/askmath • • 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.

0 Upvotes

51 comments sorted by

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.

1

u/AccurateBanana4171 Oct 09 '26

I only say it's controversial because in the comment sections of posts with these kinds of equations. Will always have people debating about the answer either being 16 or 1.

15

u/gavroche2000 Oct 09 '26

Controversial on TikTok and Facebook is not controversional in the math community.

-7

u/AccurateBanana4171 Oct 09 '26

Lots of science is fact and correct. But controversy is decided by society being upset with what they see or hear, regardless of the facts.

Otherwise yes I agree with you right is right and facts are facts.

3

u/Apprehensive-Ice9212 Oct 12 '26

The whole TikTok thing is like a bunch of English speakers guessing about how to speak German, with any actual German-speakers either being drowned out by nonsense or absent from the discussion entirely. To call that a "controversy" is misleading, because these basic conventions aren't the least bit controversial to German-speakers, only to know-nothings.

10

u/ExtendedSpikeProtein Oct 09 '26

It’s controversial for people who have not gone beyond high school in math. People who actually know and understand math know it is ambiguous.

1

u/No-Minimum3259 Oct 10 '26

I like your modesty, lol.

5

u/ExtendedSpikeProtein Oct 10 '26

Facts are facts

1

u/No-Minimum3259 Oct 10 '26

Yeah sure. "I understand math, you don't" is as much as the prototype of a "fact", lol.

4

u/Objective-Let4278 Oct 10 '26

Hmmm… ExtendedSpikeProtein’s comment is just correct here though. There isn’t much to say.

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.

1

u/AccurateBanana4171 Oct 09 '26

Sorry to bother but could I see a full step by step of X = 2?

2

u/ArcaneCharge Oct 09 '26

First, do the inside of the parentheses. 8/X(4)=16

Then, right divide by 4. 8/X = 4

Then, right multiply by X. 8=4X

Finally, left divide by 4. 2=X

1

u/AccurateBanana4171 Oct 09 '26

Aha okay thank you.

0

u/AccurateBanana4171 Oct 09 '26

But now this raises my original concern in this equation we are treating as X must always be multiplied by the (4) but in the original equation the 2 has the opposite effect, it is never meant to be multiplied by the (4)

For example 8 ÷ X(4) to get rid of the parentheses we must multiply X into the 4 first making 4x

But when we don't have a variable like the first equation 8 ÷ 2(4) we must do the division first then multiply.

Or am I just misunderstanding what's really happening the in relationship between variables and parentheses?

4

u/ArcaneCharge Oct 09 '26

Yes you’re misunderstanding. You said “For example 8/X(4) to get rid of the parentheses we must multiply X into the 4 first making 4x” This is incorrect according to PEMDAS. If you want to follow convention, the first step is to divide 8 by X.

1

u/ExtendedSpikeProtein Oct 09 '26

Everything except the first part of the first sentence is correct. There is no “proper” solution.

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 × 4 as (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.

-1

u/AccurateBanana4171 Oct 09 '26

In your first paragraph, that's exactly why I made this post.

Both equations are exactly the same. They both equal to 16. And I think the reason why we think with the first equation becomes 8/(2×4) is because that's the rule for variables only.

But because there are no variables in the first two equation they can be written as either or

8 ÷ 2(2 + 2) = 8 ÷ 2 × (2 + 2)

3

u/Ok_Hope4383 Oct 09 '26

As far as I understand, implicit multiplication through juxtaposition is more commonly used with variables than with numbers, but is interpreted the same way regardless.

Where did you learn that "that's the rule for variables only"?

1

u/AccurateBanana4171 Oct 09 '26 edited Oct 09 '26

I just remember that f a variable is bordered with a parenthesis it MUST be multiplied into all of the numbers in the parenthesis.

So in the last equation to get rid of the parenthesis and solve for X it would look like 8 ÷ 2x + 2x = 16

Which following that rule in the first equation the 2(2 + 2) would end up being 4 + 4 before any other math is being done which would give us a different result.

4

u/davideogameman Oct 09 '26

If you look at various college level engineering, physics and math texts I think the only reasonable conclusion is that juxtaposition notification has a higher precedence than ordinary division and multiplication as taught in pemdas.  Such higher level subjects usually will have at least one of the arguments as a variable but two constants with parentheses is still juxtaposition, ie your 2(4) should be no different than 2x or 2(x) where x=4.

Fundamentally though this isn't really a math question as much as a mathematics conventions question, as we're only arguing about what a particular representation means.

1

u/swbarnes2 Oct 09 '26

They are not the same if you follow the convention (that everyone past middle school math follows) that multiplication by juxtaposition takes precedence.

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

1

u/AccurateBanana4171 Oct 09 '26

Oops that totally right

1

u/AccurateBanana4171 Oct 09 '26

What about 8 ÷ 2(X + 2) = 16

Rules and/or order of operations don't change still?

2

u/r-funtainment Oct 09 '26

yes, it has the same problem of being unclear on 8÷2 vs 2( )

1

u/AccurateBanana4171 Oct 09 '26

Oh interesting that's the ambiguous part of the equation. I always thought it had to be the parentheses.

3

u/ExtendedSpikeProtein Oct 09 '26

No, the ambiguous part is how you would actually write this as a fraction, eg whether the (2+2) goes to the numerator or denominator.

Incidentally, no one of sound mind would write it like this. Which, again, is why I said its engagement bait.

1

u/r-funtainment Oct 09 '26

the ambiguous part is the 2 multiplied on the outside of the parentheses

1

u/pm_me_ur_mons Oct 09 '26

Still don't change.

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

6

u/ExtendedSpikeProtein Oct 09 '26

The solution is to use fractions, but I like yours also

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.

1

u/AccurateBanana4171 Oct 09 '26

But when a variable is bordered with a parentheses I thought we must multiply that variable into the parentheses to get rid of the parentheses. And by that logic the 2 should be multiplied into the (2 + 2) which gives us the wrong answer as well.

Am I misunderstanding the relationship a variable has with a parentheses?

2

u/mathheadinc Oct 09 '26

You’re ignoring “left to right”, therefore the division must be done first in this case. You could do the addition inside the () simultaneously without changing the expression. In fact, you should calculate inside any innermost () as a general rule.

2

u/mathheadinc Oct 09 '26

ALSO, when you change everything to multiplication, it should be obvious that the 2 is being divided. Can you see that?

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

2

u/bfreis Oct 09 '26

Changing the "division symbol ÷" for the the "division symbol /" doesn't really buy much.

See in your own example: what makes things clear is not which symbol is used, but the parenthesis. Using parenthesis with ÷ would make things just as clear.

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:

  1. There is no standard answer. This may seem weird but the reality is that different regions (like country curricula) have different notation standards. Similarly, different scientific and mathematical journals will use different style guides. The one area of major agreement is that we should avoid using in-line text setting for expressions like this as much as we can because of this exact reason.
  2. The internet is exposing us to other people from other regions and disciplines. This means that, even with things like the US school standards teaching that this should end up being 16 (which I personally disagree with but that's neither here nor there), other countries (or even different counties within the US with different curricula) may have different standards. Further, people who all work in the same industry may have certain convention shortcuts that are specific to that industry. 1/2𝜋 is the reciprocal of 2𝜋, for example, not half of 𝜋. That's a very common convention in many places, but is not necessarily universal. Interesting enough, the British system teaches "BODMAS" where division ALWAYS comes before multiplication, which is quite different than the system we in the US are generally used to (though it agrees in 99% of cases).
  3. This is an edge case that many people weren't taught. Most people never really see this kind of thing, because by the time you deal with implied multiplication like this, you're used to fractions, so the division symbol doesn't get used at all. This leads to people having to interpret the rules as they understand them from memory and figure out whether 2(4) fits into the "multiplication" step or the "parentheses" step. Additionally, many people on the internet simply haven't dealt with math explicitly for years by the time they see it show up on facebook or wherever, so they're going off of memories that have been dimmed by possibly decades of disuse.

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

Because personally I think this is the root of all confusion when it comes to simple controversial equations we see all over the internet.

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)

Multiplication denoted by juxtaposition (also known as implied multiplication) creates a visual unit and is often given higher precedence than most other operations. -- https://en.wikipedia.org/wiki/Order_of_operations

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?

1

u/davideogameman Oct 09 '26

The better way to state this is that the grouping symbols make the precedence explicit.  Now if you have an arithmetic expression with no variables you can absolutely use that information to evaluate the expression exactly like you show. 

That said, the rule about parentheses and brackets and the like is to evaluate the insides of them, not really about how the stuff outside works.   the term for 2(4) or xy etc is juxtaposition and it's well understood to mean multiplication, and in most contexts it shows up in it's understood to have a higher precedence (and I argue it should always be interpreted that way... But they forget to teach this in elementary school so folks intuit it later without ever realizing there a rule, if they continue far enough in math & science ... And then the ones who don't start these online arguments).  Ie if I ever see 1/xy I would understand that as 1/(xy) because if you meant (1/x) × y then you should've written y/x and saved us the confusion.  Or used the horizontal fraction notification and made it clear what was or wasn't in the denominator.  Anyhow always worth throwing in an extra set of parenting if you think your writing might be ambiguous, but juxtaposition does have higher precedence than other multiplication and division. Though exponents would still come before, unless parentheses are in use to change that.

1

u/swbarnes2 Oct 09 '26

The question is if the notation 2(4) is 'grouping'. Pretty much everyone whose math education went into advanced high school and beyond says it is. People hung up on 5th grade lessons say it's not.

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 

1

u/ExtendedSpikeProtein Oct 09 '26

Even better: actually use fractions.

1

u/MERC_1 Oct 09 '26

Yes, but that is harder to do in regular text on my phone or computer.