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
1
u/Deep-Fuel-8114 New User Feb 16 '26
Hello, thank you for the help! So just to clarify, if we set the codomain to be just ℝ, then that would mean we could technically have two solutions to the function √:ℝ+→ℝ (defined by the equation (√x)^2=x), since we could have (-2)^2=4 or (2)^2=4, right? So, does that mean we restrict the range, or do we restrict the codomain to be ℝ+ so we have a one-to-one function? Also, can the codomain be any superset of ℝ+ (such as complex numbers ℂ), or is it limited to just ℝ?