Order of operation and why this gives the wrong answer?

  • Context: MHB 
  • Thread starter Thread starter find_the_fun
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the order of operations in mathematics, specifically the application of BEDMAS (Brackets, Exponents, Division and Multiplication, Addition and Subtraction) to the expression $$4+2-7+1+(8-3)$$. Participants explore how different interpretations of the order of operations can lead to varying results, particularly focusing on the evaluation of addition and subtraction.

Discussion Character

  • Debate/contested
  • Conceptual clarification
  • Mathematical reasoning

Main Points Raised

  • Some participants argue that following BEDMAS leads to an answer of -7, while others suggest that evaluating left to right yields 5.
  • One participant highlights a potential violation of the order of operations by evaluating $$6-7$$ before $$7+1+5$$, questioning the clarity of the rules.
  • Another participant criticizes BEDMAS as misleading and proposes that expressions should be treated with clear parentheses to avoid ambiguity.
  • Some participants assert that addition and subtraction have equal precedence and should be evaluated from left to right, similar to multiplication and division.
  • Concerns are raised about the implications of teaching BEDMAS in schools and its impact on programming and mathematical clarity.
  • A participant mentions a teacher's advice to always use brackets to avoid confusion, reinforcing the idea that clarity in mathematical expressions is crucial.

Areas of Agreement / Disagreement

Participants express multiple competing views regarding the interpretation of the order of operations, with no consensus reached on the best approach to evaluate the expression. The discussion remains unresolved as participants present differing opinions on the clarity and effectiveness of BEDMAS.

Contextual Notes

Some participants note that the ambiguity in expressions can lead to confusion, particularly regarding the scope of operations like subtraction and division. There is an acknowledgment that different interpretations can arise based on how expressions are written and understood.

find_the_fun
Messages
147
Reaction score
0
Consider the expression $$4+2-7+1+(8-3).$$ To solve it, use BEDMAS.
Brackets: $$(8-3)=5$$
Exponents: none
Divsion: none
Multiplication: none
Addition: $$4+2-7+1+5 = 6 - 13$$
Subtraction: $$6-13 = -7$$

According to a calculator (and a voice in my head) the answer should be $$5$$. This answer is arrived at if you evaluate the expression left to right, so what is going on here?
 
Mathematics news on Phys.org
find_the_fun said:
Consider the expression $$4+2-7+1+(8-3).$$ To solve it, use BEDMAS.
Brackets: $$(8-3)=5$$
Exponents: none
Divsion: none
Multiplication: none
Addition: $$4+2-7+1+5 = 6 - 13$$
Subtraction: $$6-13 = -7$$

According to a calculator (and a voice in my head) the answer should be $$5$$. This answer is arrived at if you evaluate the expression left to right, so what is going on here?

You are treating what I highlighted in red as:

$$4+2-(7+1+5) = 6 - 13$$

When you want to go from left to right as follows:

$$4+2-7+1+5=$$

$$6-7+1+5=$$

$$-1+1+5=$$

$$0+5=$$

$$5$$
 
MarkFL said:
You are treating what I highlighted in red as:

$$4+2-(7+1+5) = 6 - 13$$

When you want to go from left to right as follows:

$$4+2-7+1+5=$$

$$6-7+1+5=$$

$$-1+1+5=$$

$$0+5=$$

$$5$$

Isn't that a violation when you evaluate $$6-7$$ before $$7+1+5$$? If no then what is meant by addition gets evaluated before subtraction? I supposed it's meant to resolve ambiguous situations but I can't imagine what could cause an ambiguous situation.
 
Last edited:
BEDMAS is an abomination, as the mnemonic misleads you as to what you are actually supposed to DO.

The expression:

4 + 2 - 7 + 1 + 5

should be treated as:

4 + 2 + (-7) + 1 + 5,

which can now be evaluated unambiguously.

(the idea is that the "scope" of the minus sign is ONLY the following number: otherwise, the subtraction keeps "flip-flopping" the signs of subsequent terms:

$a - (b + c + d) = a - b - c - d$ <---see how THREE signs got changed instead of one?).

My advice: avoid BEDMAS like the plague, and INSIST on properly placed parentheses.
 
find_the_fun said:
Isn't that a violation when you evaluate $$6-7$$ before $$7+1+5$$? If no then what is meant by addition gets evaluated before subtraction? I supposed it's meant to resolve ambiguous situations but I can't imagine what could cause an ambiguous situation.

Addition and subtraction are done from left to right, with both having the same level of precedence, just as multiplication and division have the same level of precedence. Like Deveno, I don't care for mnemonics used for order of operations. I would actually choose to do the following:

$$4+2-7+1+(8-3)=(4+2+1+8)-(7+3)=15-10=5$$
 
The trouble with BEDMAS is it mixes apples and oranges, it's like saying words should be alphabetized by color first, and then by letter.

Parentheses "group quantities", addition, subtraction, etc. are operations, BEFORE one does an operation, one ought to be CLEAR what one is operating ON. There is a difference between EVALUATING and SYNTAX.

In ordinary language, faulty syntax can be "sorted out" from context; in math, expressions are often "stand-alone" (no context).

When one encounters:

1 - 1 + 1, it's not clear what is INTENDED: even using BEDMAS, one cannot be SURE that the writer of said expression was ALSO using BEDMAS.

The insistence of BEDMAS being taught in schools, is further evidence to me that the school system is deeply flawed. I pity the poor programmer, who, when trying to code such an expression in a program, has to decide if the syntax of the programming language s/he is using matches the syntax of the person instructing him/her to write the program (even if that person is himself/herself).

Subtraction is a "bad operation", it is not associative:

$a - (b - c) \neq (a - b) - c$.

Addition does not have this problem. The same problem occurs with division, often people on these forums want us to simplify expressions like:

x/x^2 + x

and we have NO IDEA if they mean:

(x/x^2) + x = (1/x) + x = (x^2 + 1)/x, or:

x/(x^2 + x) = 1/(x + 1).

The trouble with:

"x minus..."

or

"x divided by..."

is: are we supposed to subtract/divide by EVERYTHING that comes after, or just the very NEXT thing? The problem is further compounded by the fact that many people don't even realize there's a difference.

It's like saying:

I gave my father the hat with the bacon.

Did I give my father some bacon, and a hat; or did I give him a hat decorated with tasty cured pork?
 
In short, addition and subtraction have EQUAL POWER. Just like multiplication and division have EQUAL POWER.

The reason for this is because division is really a type of multiplication, it just happens to be a multiplication of fractions. Also subtraction is really a type of addition, it just happens to be an addition of a negative number.

So when using the Order of Operations, it's

Anything in brackets.

Any exponents.

Any multiplications or divisions, when read left-to-right.

Any additions or subtractions, when read left-to-right.
 
I'm happy to clear up a misconception that has been following me since learning order of operation...that makes so much sense that addition and subtraction have same level of precedence.

I had a teacher who taught "If you're in doubt whether or not to use brackets, use them. They will never make the answer wrong and you can only gain marks by using them."
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
8
Views
2K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K