To confirm, if f(g(x))=x then g is the inverse of f, and g and f are symmetrical about y=x.
You can ask a new question or answer this question.