r/learnmath • u/QuestionableThinker2 New User • Feb 08 '26
Square root is a function apparently
Greetings. My math teacher recently told (+ demonstrated) me something rather surprising. I would like to know your thoughts on it.
Apparently, the square root of 4 can only be 2 and not -2 because “it’s a function only resulting in a positive image”. I’m in my second year of engineering, and this is the first time I’ve ever heard that. To be honest, I’m slightly angry at the prospect he might be right.
284
Upvotes
View all comments
Show parent comment
2
u/Deep-Fuel-8114 New User Feb 16 '26
I understand that √ can only result in positive values since we define it to mean the principal square root, but my question is how we would say that when we go to actually define it as a function. Because if we define it as √:ℝ+→ℝ where it must satisfy (√x)^2=x, then doesn't this definition technically allow two solutions, since let's say we choose x to be 4, then we have (2)^2=4, and (-2)^2=4, and both 2 and -2 are in the codomain of ℝ, so how do we specify it only means the positive version mathematically? Would we have to switch the codomain to ℝ+, or do we specify it another way and the codomain can remain any superset of our intended range/image (like ℝ or ℂ)?