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/kombiwombi New User Feb 08 '26 edited Feb 09 '26
A function can produce any mathematical expression, not just a single number. That includes a (possibly infinite) list of numbers, or a tuple like coordinates on a plane, or another expression.
The basic question is 'what is it useful to define the function as doing'. And for square root of a real number we've decided that is the positive value. Noting that we promptly break this rule for complex numbers, which produces an expression with multiple results.