If you were to graph the "inverse function" of f(x) = x^2 (flip it through the diagonal y = x), you'll see that the "inverse function" f-1(x) = +- sqrt(x) (see the bottom of the post if you don't see why it's +-). This represents a sideways parabola with center at (0,0), opening up to the right. So it's not defined for x < 0, and is equal to 0 for x = 0, which is all well and good.
However, for each x > 0, f-1(x) has two values, one positive and negative. In order to be a function, there can be only one number in the range associated with each number in the domain (in other words, in order to be a function it has to pass the vertical line test, which a sideways parabola clearly doesn't. In fact, anything which fails the horizontal line test will have an inverse that fails the vertical line test).
Because of this, we can't really even speak of the "inverse function", because what would be the inverse isn't a function.
---
f(x) = x^2
f-1(f(x)) = f-1(x^2)
x = f-1(x^2)
let x^2 = u
then x = +-sqrt(u)
for example, if u = 4, we need a number that, multiplied by itself, equals 4. 2 works, obviously, but since (-2)*(-2) = +4, -2 also works.
substitute x's for u's
+-sqrt(u) = f(u)
f(u) = +-sqrt(u)