10

I didn't get the point that when the PEMDAS and the BODMAS rule are different, then how can they both yeild the same results. I have searched over google but found everywhere that they're the same. Where as I see them as according to the precedency they have in the order the put in are different

PEMDAS Parentheses > Exponents > Multiplication > Division > Addition > Subtraction

BODMAS(Also known as PEDMAS/BIDMAS) Brackets/Braces > Order > Division > Multiplication > Addition > Subtraction

The main difference I see in both if them is the change of precedency of multiplication and division. Can anyone elaborate this?

  • 4
    You shouldn't think of either rule as setting different priorities for multiplication and division, or for addition and subtraction. You need to work left to right for these. PEMDAS = Parentheses > Exponents > (Multiplication & Division) > (Addition & Subtraction). BODMAS = Brackets > Order > (Division & Multiplication) > (Addition & Subtraction). – mjqxxxx Dec 21 '22 at 20:45
  • A famous internet debate boiled down to the fact $8\div2(2+2)$ is $1$ ($16$) if you learned PEMDAS (BODMAS). – J.G. Dec 21 '22 at 21:09
  • 4
    @J.G. and I'd say the only proper answer to that sort of question is "that notation is ambiguous, don't write things like that, and ask whoever wrote it to clarify what they meant". – Daniel Hast Dec 21 '22 at 21:12
  • @DanielHast Couldn't agree with you more! Regardless of the convention, I'd demand some more brackets. Frankly, it's a lesson in the conventions' paucity as much as their pluralism. – J.G. Dec 21 '22 at 21:13
  • “Order” means “exponent” here. Right? – Тyma Gaidash Dec 21 '22 at 21:43
  • @J.G., thanks for mentioning out this mathematical expression in your comment. Basically, this mathematical expression is the exact purpose of my post question here, because it gives out two different answers when using PEMDAS and BODMAS. WHY IS THAT SO? – Sharjeel Faiq Dec 22 '22 at 04:29
  • @TymaGaidash, yeah. They're the same. – Sharjeel Faiq Dec 22 '22 at 04:29
  • Related: https://matheducators.stackexchange.com/q/12080/3593 – shoover Dec 22 '22 at 06:24

2 Answers2

10

Division is the inverse operation of multiplication, and subtraction is the inverse of addition. Because of that, multiplication and division are actually one step done together from left to right; the same goes for addition and subtraction. Therefore, PEMDAS and BODMAS are the same thing.

To see why the difference in the order of the letters in PEMDAS and BODMAS doesn't matter, consider the following expression:

$$ a_1 / b_1 \times a_2 / b_2 \times a_3 / b_3 $$

As long as you treat the multiplication and division steps with equal precedence and read them from left to right, you will end up with the following after simplification:

$$ \frac{a_1 a_2 a_3}{b_1 b_2 b_3} $$

With that, we can acknowledge that PEMDAS and BODMAS both have the same four steps.

$$ \text{parentheses} \rightarrow \text{exponents} \rightarrow \underbrace{\begin{matrix} \text{multiplication} \\ \text{division}\end{matrix}}_{\text{from left to right}} \rightarrow \underbrace{\begin{matrix} \text{addition} \\ \text{subtraction}\end{matrix}}_{\text{from left to right}} $$

P.S. Thanks to @coffeemath and @JMoravitz for their comments improving this answer.

IraeVid
  • 3,216
  • 2
    But if you do multiplication before division, don't you get $4/2\times2=1$? – Karl Dec 21 '22 at 20:42
  • 5
    For your explanation to be complete it needs to be noted that the computations must be done in left-to-right order. For example confronted with $a/b\cdot c$ one should not perform $b \cdot c$ first. Otherwise there will be ambiguity. – coffeemath Dec 21 '22 at 20:45
  • 2
    @Karl blindly thinking that either acronym tells the whole story leads to the erroneous conclusion that $4/2\times 2 = 1$ when in reality the intention and subtext in understanding order of operations is for $4/2\times 2$ to equal $4$. The point is that division and multiplication have the same order of prevalence and regardless which is written first in the acronym they are to be performed from left-to-right. Similarly for addition and subtraction. – JMoravitz Dec 21 '22 at 20:45
  • @coffeemath that is actually important that it goes left to right. I realize I have habits that I don't fully understand. – Sidharth Ghoshal Dec 21 '22 at 20:46
  • 1
    I also just like to think of PEMDAS as PE(MD)(AS) and BODMAS as BO(DM)(AS). After all, multiplication and division are the same thing:

    $$x \cdot y = x \div \frac 1 y$$

    and

    $$x + y = x - (-y)$$

    so of course they should have the same priority and be executed at the same time (rather than one, then the other, as people focusing too much on the acronym itself expect).

    – PrincessEev Dec 21 '22 at 21:03
  • 1
    "any order as it appears left to right" is not "any order". It's just "left to right". "Left to right" is one specific order. – user2357112 Dec 22 '22 at 06:47
  • 1
    It looks like this answer was originally written with an interpretation of reordering as shuffling around "$a$" and "$\div b$" chunks, and those chunks can indeed be shuffled around without changing the value. That's not what performing the operations in a different order means in the context of order of operations, though. Performing $a \div bc$ in a different order would mean evaluating it as $a \div (bc)$, not as $ac \div b$. – user2357112 Dec 22 '22 at 06:53
  • 1
    (Evaluating $a \div b * c$ as $a \div (b * c)$ would of course produce a different result, which is why we even bother defining a standard order of operations at all.) – user2357112 Dec 22 '22 at 08:24
  • I've modified so theres no confusion there – Sidharth Ghoshal Dec 22 '22 at 16:09
  • How come this answer has a positive score with the "It actually doesn't matter if you do multiplications first or divisions first or even just mix up their order" at its beginning? – Markus von Broady Sep 10 '23 at 14:50
  • that should probably be edited. Thanks for pointing it out – Sidharth Ghoshal Sep 10 '23 at 15:39
8

Neither of them quite accurately reflect actual usage. Here's how I'd describe the rules for grouping that they're referring to, with some of the subtle issues that are often left out:

  • Parentheses/brackets group terms because that is the entire point of those symbols: to indicate groupings of terms. So this really precedes the whole question of conventions for grouping, as this is a way of explicitly indicating a grouping.
  • Exponentiation binds more tightly (that is, has higher operator precedence) than addition, subtraction, multiplication, or division. So, for example, $ab^c$ means $a(b^c)$, not $(ab)^c$. Note, however, that the raised position of the exponent itself acts as a "grouping" (by position rather than with explicit parentheses), so $a^{b+c}$ means $a^{(b+c)}$, not $a^b + c$. By convention, it is also treated as right-associative, that is, $a^{b^c}$ is taken to mean $a^{(b^c)}$, not $(a^b)^c$. (This is because, for positive real numbers $a, b, c$, we have $(a^b)^c = a^{bc}$; it can be expressed without nested exponents at all.)
  • Multiplication and division bind more tightly than addition and subtraction (so $a + b \cdot c$ means $a + (b \cdot c)$, not $(a + b) \cdot c$), but less tightly than exponentiation. But there are some further subtleties:
    • Fractions denoted with a long horizontal bar also group "by position" like an exponent does, so $\frac{a + b}{c}$ means $(a + b)/c$, not $a + (b/c)$, even though there are no explicitly written parentheses grouping the $a + b$ expression.
    • Multiplication "by juxtaposition", that is, indicating multiplication by putting two expressions next to each other without a multiplication symbol between them ($ab$ rather than $a \cdot b$), can create genuinely ambiguous notation: $a/bc$ could mean either $(a/b)c$ or $a/(bc)$, and therefore such expressions should be avoided if it's not obvious from context what's intended. (For example: does $1/2x$ mean $\frac{1}{2x}$ or $\frac{1}{2} x$? I'd say the only proper answer is "don't write things like $1/2x$, and if someone else has written it, ask them to clarify". The point of mathematical notation is to express things clearly, unambiguously, and concisely, not to trick people with ambiguous edge cases of notation.)
    • Division is not associative, so expressions like $a/b/c$ are also potentially confusing and should be avoided (by using fractions with a long horizontal bar or by using parentheses). However, if you do encounter an expression like that, division is treated as left-associative, so that would mean $(a/b)/c$, not $a/(b/c)$. The division sign $\div$ is much less common than $/$ outside of some countries' grade school mathematics, but the two follow the same grouping rules.
  • Addition and subtraction bind less tightly than exponentiation, multiplication, and division. Also, subtraction is similar to division in that it's taken as left-associative; expressions of the form $a - b - c$ are also far more common than the analogous expressions for division, and unambiguously mean $(a - b) - c$, not $a - (b - c)$. Likewise when combined with addition: $a - b + c$ means $(a - b) + c$, not $a - (b + c)$.

Another point is that these are rules for grouping, not really for "order of operations": If you encounter an expression like $$2 + 3 + 5 \cdot 7,$$ the grouping rules tell you that this means $$(2 + 3) + (5 \cdot 7),$$ but the fact that multiplication binds more tightly than addition doesn't mean you have to evaluate multiplication first. It's perfectly legitimate, for instance, to compute $2 + 3 = 5$ and simplify the expression to $5 + (5 \cdot 7)$, then compute the multiplication, then the final addition.

Daniel Hast
  • 5,095