Let me give you an easier example first then.
Remember when you learned about multiplication and division?
Division is like the inverse operation of multiplication. If you take any number and multiply it by x (not equal to zero) and then divide by x, you will get the same number back. For example, (3 x 6) / 6 = 3 and (12 x 786123) / 786123 = 12.
In fact, it also works the other way around: you can first divide by a number and then multiply by it: (3 / 6) x 6 = 3 and (12 / 786123) x 786123 = 12 again.
Now suppose that f is a function which multiplies by 6. So f(x) = x * 6 (I am now switching to * for multiplication, to prevent confusion with the variable x). Let g be the function which divides by 6: g(x) = x / 6. Now in terms of f and g, what I just told you is simply that f(g(3)) = g(f(3)) = 3, and in fact for any x, f(g(x)) = g(f(x)) = x.
So if I first apply one of the functions to some number x, and then apply the other of the two to the result, I get my number x back. This is precisely what is meant by f and g being inverses of each other.
You might also want to read at least the first part of the
Wikipedia page on inverse functions and maybe go through my earlier example again. Sooner or later you will have to get used to this math notation
