# My least favorite function

… is the square root function.

Why? It’s a perfect example of a function that many people think is well defined, but in reality is not.

What do I mean by “well defined”? I mean a function for which any legal input will provide one, and only one, answer.

The problem is that the square root is considered to be the inverse of squaring something. At best, you can say that the square is the inverse of the square root. This is a subtle, but important, difference.

So: $1^2=1$ and $2^2=4$ and $9^2=81$. This implies that $\sqrt{1}=1$ and $\sqrt{4}=2$ and $\sqrt{81}=9$.

This is all fine and dandy — until you consider the negative numbers. Take $(-9)^2=81$. Now, if the inverse of the square is the square root, then what is the square root of 81? We see that $9^2=(-9)^2=81$, so therefore both are candidates for the result of the square root function.

In algebra (where square roots come up often) there are some ways of denoting this. For example, the “number” $\pm 9$ is taken to mean “either positive or negative 9”. So then the “number” $\pm 9$ when squared is 81. So you could say that the square root of 81 is $\pm 9$. This is still not a real solution to this problem, as all you’ve done is state your uncertainty in a shorthand format. Worse, you have something that looks like a regular equation ($\sqrt{81} = \pm 9$), but in reality, you are stating that you have 2 equations, one of which is actually true! (Either $\sqrt{81}=9$ or $\sqrt{81}=-9$, but not both.) Worse yet, for each $\pm$ in an equation, you have twice as many equations that may (or may not) be true.

There are ways to fix this. One solution is to say that the square root only refers to the positive number, that is, we ignore the negative numbers in taking the square root. This means that the square root is no longer a proper inverse of the square function, since $\sqrt{(-9)^2}=9$.

Another solution is to add some notation to indicate which square root we are talking about. This is typically denoted by putting a plus or minus over the root symbol, so that $\sqrt[+]{81}=9$ and $\sqrt[-]{81}=-9$. Again, this means that the square root is no longer a proper inverse of the square.

And this isn’t even considering the square roots of negative numbers… (more on this later)

1. Hi! I was surfing and found your blog post… nice! I love your blog. 🙂 Cheers! Sandra. R.