• m8052@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    2
    ·
    22 hours ago

    Sqrt(-1) is still wrong tho. I’m commuting a sin by writting it. Correct expression is i^2=-1

        • excral@feddit.org
          link
          fedilink
          English
          arrow-up
          4
          ·
          9 hours ago

          This is technically incorrect. While the square root is both the positive and the negative solution, the sqrt (√) operator results in the principal square root. For nonnegative numbers this is the nonnegative square root and more generalised for complex numbers it’s the square root that halves the complex phase.

      • m8052@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        4
        ·
        edit-2
        21 hours ago

        Square root definition does not allow a negative number as an input. Only positives and zero. Although it is possible to expand the definition to negative numbers, complex numbers, matrices… So unless you followed a course where you thoroughly defined your expansion of sqrt, it only applies to real, positives number and zero. Its the thing with math, you have to define what you work with.

        In my case, I did prep courses for entrance exam to engineering schools (something like in dead poet society but more modern), using sqrt(-1) somewhere would be an instant 0 mark. Like forgetting a unit in a physics test answer.

    • msfroh@lemmy.ca
      link
      fedilink
      English
      arrow-up
      7
      ·
      21 hours ago

      But (-i)^2=-1 as well. So we still need a convention to distinguish i from -i.

      • excral@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 hours ago

        That’s fairly simple: we restrict the complex phase to the range (-pi, pi] and the principal square root halves the complex phase. -1 has the phase value pi, so the principal square root has the the complex phase pi/2, so it’s i, while -i has a phase of -pi/2

      • Opisek@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        21 hours ago

        No. The symbol √ signifies the principal square root of a number. Therefore, √x is always positive. The two roots of x, however, are ±√x. If you therefore have y²=x and you want to find y, you mustn’t write y=√x, but rather y=±√x to be formally correct.

    • Ethanol@pawb.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      19 hours ago

      Indeed, usually you would want to avoid a notation of sqrt(-1) or (-1)^(1/2). You would use e^(1/2 log(-1)) instead because mathematicians have already decided on a “natural” way to define the logarithm of complex numbers. The problem here lies with choosing a branch of the logarithm as e^z = x has infinitely many complex solutions z. Mathematicians have already decided on a default branch of the logarithm you would usually use. This matters because depending on the branch you choose sqrt(-1) either gives i or -i. A square-root is usually defined to only give the positive solution (if it had multiple values it wouldn’t fit the definition of a function anymore) but on the complex plane there isn’t really a “positive” direction. You would have to choose that first to make sure sqrt is defined as a function and you do that via the logarithm branch.
      So, just writing sqrt(-1) leaves ambiguity as you could either define it to give i or -i but writing e^(1/2 log(-1)) then everyone would just assume you use the default logarithm branch and the solution is i.

    • NoneOfUrBusiness@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      21 hours ago

      Nah, sqrt(x) is the principal branch (the one with a positive real part) of x^½, and you can do (-1)^½ because it’s just exponentiation.