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
SUMMARY

The discussion centers on the order of operations in mathematics, specifically the application of BEDMAS (Brackets, Exponents, Division and Multiplication, Addition and Subtraction). Participants argue that the conventional understanding of BEDMAS can lead to confusion, particularly when evaluating expressions like $$4+2-7+1+(8-3)$$. The consensus suggests that addition and subtraction should be treated with equal precedence and that parentheses should be used liberally to clarify expressions. The discussion emphasizes the need for clear syntax in mathematical expressions to avoid ambiguity.

PREREQUISITES
  • Understanding of basic arithmetic operations (addition, subtraction, multiplication, division)
  • Familiarity with the order of operations (BEDMAS)
  • Knowledge of mathematical expressions and syntax
  • Ability to interpret and manipulate algebraic expressions
NEXT STEPS
  • Research the implications of using parentheses in mathematical expressions
  • Explore alternative methods for teaching order of operations
  • Learn about the associative and commutative properties of addition and subtraction
  • Investigate common misconceptions in arithmetic operations among students
USEFUL FOR

Mathematics educators, students learning arithmetic, programmers dealing with mathematical expressions, and anyone interested in clarifying the order of operations in math.

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
3K
  • · 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