Exploring Inverses

In the sketch below, the blue curve is our function f(x). The red curve is the inverse of f(x). How do we know it is the inverse? The blue line and the red line are the respective tangents at point A and point A' (which is the inverse of point A.) Point A is the only point that you can drag.