[Math] Are the domain and range of a function and its inverse always exactly swapped

algebra-precalculusfunctions

The function
$
f(x)=\sqrt{x+4}
$
has domain $[-4,\infty)$ and range $[0,\infty)$.

Its inverse function
$
f^{-1}(x)=x^2-4
$
by itself seems to have domain $\Bbb{R}$ and range $[-4,\infty)$.

However, we learned in school that a function and its inverse always have swapped domain and ranges, so should I say its "actual" domain is $[0,\infty)$?

Best Answer

The domain is the inputs a function can take. The range is the outputs a function can give.

Taking the inverse switches the two. You are now giving the outputs, and getting back the inputs.

The domain of the inverse is the possible outputs of the original function, which was it's range. The range of the inverse is the possible inputs of the original function, which was it's domain.

You have a special case. The inverse of $f$ is not $x^2 - 4$, but instead the right half of $x^2 - 4$. By looking at the original function's range, you can make sense of this.

Related Question