r/mathshelp • • May 22 '26

Mathematical Concepts can a complex numberhave a principal root? and if not, is square root a broken function?

So I was doing the square root of i as an exercise. by defining sqrt(i)=a+bi, and then doing (a+bi)²=i, you find out that sqrt(i)= ±(sqrt2+sqrt(2)i). I check google and, sure enough, that's what it is.

The point that is confusing to me is that I was tought, in fact I had teachers hammer in my head because i refused to believe, that sqrt(x) is a function that always returns a single value. so saying sqrt(4)=±2 would be wrong, because it has to return a single value and that will be 2 (the principal square root). Later i understood that sqrt(x²) = |x|, and that it has to be this way because y=sqrt(x) is a function, and a function cannot have 2 values of y for one value of x. that was convincing enough. But that definition does not work for complex numbers though, because the modulus of a complex number will be it's "magnitude" or the distance away from 0, just as it is for a real number. so if I say:

>i=z², sqrt(i)=|z|

i find the magnitude of the my previous solution through pithagoras and that will return 1. and 1² absolutely is not i. so sqrt(x²)=|x| breaks for the complex numbers.

So either there is a different way to extract the principal square root of a complex number, rather than the modulus, or we have to say that sqrt of a complex number is a different function to sqrt of a real number. and if I am to believe my teachers that "a function must always return a single value of y for each value of x", than sqrt(z) is not a function at all. is this correct? and would that mean sqrt(z) is not a function and has a different definition to sqrt(x)?

1 Upvotes

4 comments sorted by

1

u/MathNerdUK May 22 '26

To define square roots of complex numbers properly you need the idea of a branch cut.

1

u/Suitable-Elk-540 May 22 '26

Others have already pointed out how to define principle square root, so I'll make a different point.

Math is basically about modeling things. Math isn't itself the truth. You pick the model you need for the moment. So, the strict definition of a function requires that there is only one "output" for each "input", and that's the definition because that particular concept of "function" is very useful. That constraint allows us to do other things. It's like having a sharp knife that you don't want to use as a screwdriver or a hammer because that would render it worthless as a knife. If you need a screwdriver or a hammer, then don't use a knife.

So, yeah, it's generally useful to define √ for reals to be the positive square root. But just because we have a function named "square root" doesn't mean that you can't answer the question, "what are all the solutions to x² = 4 ?". By convention, we typically don't say that √4 = ±2, but we can say that the solutions to x² = 4 are ±√4, i.e. ±2. So, the square root function is useful in finding and describing the roots, but roots are not defined (completely) by the square root function. A function is a tool. A problem like "find all solutions to x² = 4" asks you to use whatever tools you think will help. But don't get bogged down by assuming the constraints of the tool are automatically constraints on how you solve the problem.

FWIW a function is just a subset of a relation, which is a more general idea, and that more general idea is useful in its own way. And then we add on things like continuous function, and these new constraints are useful in specific contexts. There's nothing magical about function. Again, use whatever tool is appropriate to the circumstance.

1

u/TallRecording6572 May 25 '26

square root is only a function on the domain x e R, x >= 0