• DrDominate@lemmy.world
    link
    fedilink
    arrow-up
    27
    arrow-down
    1
    ·
    edit-2
    11 months ago

    If you are curious about the math logic side of this like I was, here’s the explanation.

    Multiplying is just like addition.

    3 * 3 = 3 + 3 + 3 = 9

    Simple enough but what if one is negative?

    3 * (-3) = (-3) + (-3) + (-3) = -9

    Also easy, all we changed was the signs of the 3’s being added together. But what do you change if you make both of them negative? The only thing left to change is the operation sign. Thus multiplying two negatives is like subtracting negatives.

    (-3) * (-3) = - (-3) - (-3) - (-3) = 3 + 3 + 3 = 9

    Notice that I placed a negative sign in front of the first (-3). That first one has to be subtracted as well so you can imagine a zero in front of the operation.

    Edited: Some formatting.

    • myslsl@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      3
      ·
      edit-2
      11 months ago

      Copy pasted from my other comment:

      This doesn’t work if you have to deal with multiplication of numbers that are not integers. You can adjust your idea to work with rational numbers (i.e. ratios of integers) but you will have trouble once you start wanting to multiply irrational numbers like e and pi where you cannot treat multiplication easily as repeated addition.

      The actual answer here is that the set of real numbers form a structure called an ordered field and that the nice properties we are familiar with from algebra (for ex that a product of two negatives is positive) can be proved from properties of ordered fields.

      • DacoTaco@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        11 months ago

        Before i ask my question, know that my math is all the way in the back of my head and i didnt get too far in math at school.

        Wdym irrational numbers dont work? -3 * -pi would be the same as 3*pi, no?
        I always assumed if all factors of the multiplication are negative, it results in the same as the positive variant, no matter the numbers ( real, fractal, irrational, … )

        • myslsl@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          11 months ago

          Multiplying two negative irrational numbers together will still give you a positive number, it’s just that you can’t prove this by treating multiplication as repeated addition like you can multiplication involving integers (note that 3 is an integer, 3 is not irrational, the issue is when you have two irrationals).

          So, for example with e * pi, pi isn’t an integer. No matter how many times we add e to itself we’ll never get e * pi.

          Try it yourself: Assume that we can add e to itself k (a nonnegative integer) times to get the value e * pi. Then e * pi = ke follows by basic properties of algebra. If we divide both sides of this equation by e we find that pi=k. But we know k is an integer, and pi is not an integer. So, we have reached a contradiction and this means our original assumption must be false. e * pi can’t be equal to e added to itself k times (no matter which nonnegative integer k that we pick).

          • DacoTaco@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            11 months ago

            Thanks for that! Helped understand it a bit more, i think. So its a case of it not working on irrational numbers, its just that we cant prove it because we cant calculate the multiplication of 2, right? Somehow, my mind has issues with the e*pi = ke. Id say that ke = e * pi is impossible because k is an integer and pi isnt, no? It could never be equals, i think.

            • myslsl@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              11 months ago

              So its a case of it not working on irrational numbers, its just that we cant prove it because we cant calculate the multiplication of 2, right?

              The issue is the proving part. We can’t use repeated addition trickery (at least not in an obvious way) to show a product of two irrational negative numbers is positive. It’s definitely still true that a product of two negative numbers is positive, just that proving it in general requires a different approach.

              Somehow, my mind has issues with the e*pi = ke. Id say that ke = e * pi is impossible because k is an integer and pi isnt, no? It could never be equals, i think.

              Yes this is correct. The ke example is for a proof by contradiction. We are assuming something is true in order to show it forces us to be able to conclude something ridiculous/false. Since the rest of our reasoning was correct, then it must have been our starting assumption that was wrong. So, we have to conclude our starting assumption was wrong/false.

        • Rodeo@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          11 months ago

          I think all they mean is you can’t write it out since irrational numbers have no end.

          You’re correct in that the principle still applies in exactly the same way.

      • jas0n@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        11 months ago

        Fun fact… a formal definition of irrational numbers didn’t exist until the 1880s (150+ years after Newton died). There were lots of theories before that time (including that they didn’t exist) and they were mostly ignored. Iirc, it was Euler’s formal definition of complex numbers and e (an irrational number) that led to renewed interest.

        E: Richard Dedekind

        • myslsl@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          11 months ago

          There are some subtleties to this particular topic that are worth mentioning. I would be careful to distinguish between constructing vs defining here.

          The usual definition of the irrationals works roughly like this:

          You have a set of numbers R which you call the real numbers. You have a subset of the real numbers Q which you call the rational numbers. You define a real number to be irrational if it is not a rational number.

          This is perfectly rigorous, but it relies on knowing what you mean by R and Q.

          Both R and Q can be defined “without” (a full) construction by letting R be any complete ordered field. Such a field has a multiplicative identity 1 by definition. So, take 0 along with all sums of the form 1, 1+1, 1+1+1 and so on. We can call this set N. We can take Z to be the set of all elements of N and all additive inverses of elements of N. Finally take Q to be the set containing all elements of Z and all multiplicative inverses of (nonzero) elements of Z. Now we have our R and Q. Also, each step of the above follows from our field axioms. Defining irrationals is straightforward from this.

          So, the definition bit here is not a problem. The bigger issue is that this definition doesn’t tell us that a complete ordered field exists. We can define things that don’t exist, like purple flying pigs and so on.

          What the dedekind cut construction shows is that using only the axioms of zfc we can construct at least one complete ordered field.