MHB Order of operation and why this gives the wrong answer?

  • Thread starter Thread starter find_the_fun
  • Start date Start date
AI Thread Summary
The discussion centers on the expression 4 + 2 - 7 + 1 + (8 - 3) and the confusion surrounding the application of the order of operations, specifically BEDMAS. Participants argue that addition and subtraction should be treated with equal precedence and evaluated from left to right, contrary to the traditional mnemonic that suggests a hierarchy. There is criticism of BEDMAS for potentially leading to misinterpretations and ambiguity in mathematical expressions, advocating for the use of parentheses to clarify operations. The conversation highlights the challenges of teaching order of operations in schools and the implications for programming and mathematical syntax. Ultimately, the consensus suggests that clarity in expression is crucial to avoid miscalculations.
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
Views
990
Replies
24
Views
3K
Replies
8
Views
1K
Replies
1
Views
1K
Replies
4
Views
3K
Replies
1
Views
1K
Replies
4
Views
2K
Back
Top