5

What is answer for 8 / 4 (4-2) = ?

My answer is 4. But some says it's 1. And arguing each others. They even using some calculators for prove them. Even those calculators showing both 1 and 4 as result. What should I tell to those who saying 1? Or my answer is wrong?

iadvd
  • 8,875
Gereltod
  • 185
  • 3
    Don't write the expression like that if you want to avoid ambiguity. – mrf Mar 30 '15 at 08:33
  • 2
    Guys, please don't downvote this too heavily. We've all asked a question like this at some point in our lives, and this is a new user we're talking about. – goblin GONE Mar 30 '15 at 08:39
  • 2
    On the contrary, this a is a good question as far as bracket rules on a calculator are concerned. I mean, how does a calculator respond to such ambiguity? I'm sure many are interested. – Nick Mar 30 '15 at 08:46
  • A good question in SE should give some more original work: You mention you are arguing, yet you don't explain what your arguments are. Why do you think the answer is $4$, and why do some think it is $1$? – JiK Mar 30 '15 at 08:55
  • I think its 4 because multiply and divide have same priority. So you do which one is first. Others giving result as 1, because they think they must do first operand after you do operand inside () – Gereltod Mar 30 '15 at 08:56
  • @JiK: I'm sure he understands that there are different conventions that can be adopted. He's simply asking what the preferred one is. – Nick Mar 30 '15 at 09:06
  • @Gereltod: Calculator rule of thumb for inline ambiguous expressions, do the first one (of either multiplication or division) you encounter Left to Right – Nick Mar 30 '15 at 09:14
  • 1
    @Nick. It's not quite that easy. Some operators have right-to-left associativity. The usual convention is to interpret a^b^c as $a^{(b^c)}$. – mrf Mar 30 '15 at 09:21
  • @mrf: I was just talking about multiplication and division but that's a really nice heads up. – Nick Mar 30 '15 at 09:25
  • It's rather a duplicate of this one: https://math.stackexchange.com/questions/33215/what-is-48%C3%B7293 – Hans Lundmark Aug 02 '19 at 14:18

6 Answers6

19

Don't get insulted by my next sentence, as I promise I elaborate after writing it:

This is a stupid question.

You are not stupid for asking it, and I guess it must be asked sometime, but I hope the continuation of my answer explains how irrelevant and pointless questions like these are.


The "perfect answer" to this question depends completely on the order of operation you have in mind, and obviously, the first thing to do is to perform the subtraction (because it is in brackets), meaning $$8/4(4-2)=8/4*2.$$

The next step is where it gets weird. Using the incredibly annoying PEMDAS rule, you need to first perform multiplication, then division, so $$8/4*2=8/(4*2)=1.$$

However, that's if you went to an American school. If you went to school in Slovenia (central Europe), you were taught that division is equivalent to multiplication, so you would get $$8/4*2=(8/4)*2=4.$$

In the end, the answer is completely ambiguous and depends on the conventions you were taught.

Now, my main point:

You may well ask why this question is "stupid" in my opinion. I mean, why would it be stupid just because the answer is "depending on convention"?

Well, the point is that knowing the answer to this question is completely meaningless. Even when you know the answer, you also know that, since conventions differ, you will in future use parentheses to make sure your meaning gets across.

The only true purpose of questions like this is to stir up "controversy", and many schools waste hours and hours of lessons to imprint either PEMDAS or some other rule into the skull of young kids. The result is that 10 year olds, instead of being excited about mathematics, end up thinking that mathematics is an algorithmic process in which you perform tasks a robot can perform much faster, and the result of these tasks is some number that the teacher then grades.

Then, you encounter someone that was taught a different set of conventions, and you find a problem (like the one here) in which the two conventions yield different results, and often times, people then conclude Huh, those silly mathematicians, they can't even decide on the rules they preach.

The end result of questions like this, therefore, is that mathematics gets a bad rep.

Thomas
  • 103
5xum
  • 123,496
  • 6
  • 128
  • 204
  • 7
    This question was just on Facebook by picture (not text). So everyone right now flaming each others and fighting. That's why I interested in more "professional" answer. – Gereltod Mar 30 '15 at 08:45
  • 3
    @Gereltod Then by all means, be a beacon of reason in the flame war. Go and tell the people fighting over this that 1) the question is ambiguous 2) mathematitians do not bother with questions like this. – 5xum Mar 30 '15 at 08:48
  • @5xum: So glad that mathematicians aren't the only people using this site. Math-enthusiasts FTW! – Nick Mar 30 '15 at 08:49
  • They don't hear me :) Lets just leave them. – Gereltod Mar 30 '15 at 08:49
  • @Gereltod Maybe post a link to this discussion into the flame war, some people may yet see reason. Or , of course, leave them. That's probably the most rational choice. – 5xum Mar 30 '15 at 08:50
  • BODMAS says Division has more precedence than Multiplication. The truth is they have same precedence. Thanks, you've just confused a lot of kids. Don't ever cite PEMDAS in the way you have again. Truth is Left-to-Right reading is more important and that's how calculators are designed. – Nick Mar 30 '15 at 08:52
  • 1
    @Nick Have you even read my answer? The whole wall of text I wrote was a spewing of concentrated rage against ALL conventions that are taught for the sake of convention alone. How was this "confusing" kids? – 5xum Mar 30 '15 at 08:54
  • 1
    I just read about PEMDAS from here: http://www.mathsisfun.com/operation-order-pemdas.html. It says Multiply and Division have same priority. Do it from left side. – Gereltod Mar 30 '15 at 09:03
  • 1
    @5xum: Yes, I read your answer. A good teacher teaches that the (MD) have equivalent precedence and inline expressions like that are ambiguous. The way a calculator interprets inline expression is the clear and direct answer required. And the reason I said "Don't cite PEMDAS in the way you have" is because it struck a nerve when you used it to say multiplication has higher precedence than division. If a kid infers that from PEMDAS, then it's the fault of the teacher, not the convention. – Nick Mar 30 '15 at 09:03
  • @Nick I wasn't brought up to use PEMDAS, so I guess I made a mistake. Still, there are conventions in which division has priority to multiplication. For example, I heard a rule once that the slash can basically be rewritten as a fractional line, and thus wraps everything to the right of it. The point is that mathematics should not be about teaching any stupid convention. – 5xum Mar 30 '15 at 09:06
  • @5xum: I agree, time has to allocated for lessons on ambiguity of inline expressions and how fractional expressions have invisible brackets. Coupled with unforgettable propaganda on the importance of brackets, conventions such as PEMDAS never have to be taught. But it's more of a school-system heritage thing by now. – Nick Mar 30 '15 at 09:16
  • @Nick Then we agree. It's bad, harmful, stupid heritage. – 5xum Mar 30 '15 at 09:27
  • I think this one have more why-this-happened explained comments. – Gereltod Mar 30 '15 at 09:29
  • You got a lot of stuff wrong here. First, 8/4(4−2)=8/4∗2 should be 8/4(4−2)=8/4(2) which can be further evaluated out to 8/4(2)=8/(4∗2). The answer is then clear. The second major issue is that you seem to think PEMDAS as a rule is different than BODMAS, BEDMAS, etc. They're all the same thing, and if taught correctly, yield the same answers. Perhaps they are bad acronyms, because they don't capture the nuance, but that's not really about math anymore. –  Aug 02 '19 at 21:26
  • And at this point, I mention GEMS as an alternative acronym. Groups, Exponents, Multiplications [which should be understood as including divisions, because 8/4(2)=(1/8)*4(2)], and Summations, [which should be understood as including minuses, because 8-4=8+(-4). Evaluate in this order, then left to right if there is more than 1 operator. –  Aug 02 '19 at 21:30
4

This all comes down to your conventions. If your conventions dictate that $8/4(4-2)$ is shorthand for $(8/4)(4-2)$, then it equals $4$. If you they dictate that $8/4(4-2)$ is shorthand for $8/(4(4-2))$ then it equals $1$. As a general rule, if something looks ambiguous, don't write it without adding in some brackets to help the reader.

By the way, there are systems of rules that disambiguate every such expression; some programming languages implement such things. However, in my opinion, its best not to leverage these kinds of "forced disambiguation conventions." You want to be writing for the reader, not against them.

goblin GONE
  • 67,744
  • Is there any convention that is not related to programming or computer science that says "8/4(4−2) is shorthand for (8/4)(4−2)". My understanding is that programmers do this only because 4(4−2) is the syntax for calling a function. There's virtually no programming language where you can write 4(4−2) without throwing an exception, yet this form is ubiquitous in high school level algebra. –  Aug 02 '19 at 21:35
  • Thus, if you're writing a calc app, you'd have to catch the exception or sanitize the input to never allow x(a) syntax before evaluating. –  Aug 02 '19 at 21:43
  • 2
    @63985 "There's virtually no programming language where you can write 4(4−2) ... ." True at least for well-known programming languages, but likewise in the same programming languages xy is the name of a single variable whereas in high school algebra it means $x$ multiplied by $y.$ You're picking at irrelevant differences in notation. Programming languages with C-like expressions will forbid (4-2)4 too, but 4*(4-2) or (4-2)*4 are fine. Now evaluate 8/4*(4-2). Still $4,$ but function notation has nothing to do with the reason. – David K Mar 24 '21 at 03:33
3

It is not clear what you mean with the expression $8\ /\ 4\ (4-2)$. Do you mean: $\frac{8}{4(4-2)}$ or $\frac{8}{4}\cdot (4-2)$? The first expression is equal to $1$ and the second equal to $4$.

Karl
  • 710
1

There is no right/wrong answer to the question because the question itself isn't well defined.

John
  • 409
  • What could be well defined one? 8 / 4 * (4-2) is it? – Gereltod Mar 30 '15 at 08:34
  • 1
    @Gereltod For me no, "it make much more sense" to think $8 / 4 (4-2)$ as $\frac{8}{4 (4-2)}$ since if you want to write $\frac{8(4-2)}{4}$, you can do $8(4-2) / 4$ or $8 / 4 \times (4-2)$. However, the well defined one is what you said "$8 / 4 * (4-2) $". – SamC Mar 30 '15 at 08:54
1

Depending how your read $$8/4~(4-2)$$ can be $$\frac 84 \times (4-2)=4$$ or $$\frac 8{4\times(4-2)}=1$$ As said in answers and comments, the notation you use is more than ambiguous. Use brackets to enclose the expressions.

0

I guess the most likely answer is $4$. Almost all programming languages (and some mathematiciens) would agree that

  • multiplication and division are at the same level of operator precedence

  • things on the same level are evaluated from left to right

so $8/4 (4-2)$ is a short hand for $8/4 \cdot (4-2)$, which is evaluated from left to right $(8/4)\cdot (4-2)=2*2=4$

to claim that it should be $1$ is to claim that $$ 8/4 (4-2) = 8/(4\cdot (4-2)) $$ which would be a strange convention.

Of course this problem is boring: in case of a tiny hint of a small possiblity of ambiguity use brackets.

Blah
  • 5,374