g(x)g(x) is the inverse of f(x)f(x) if f(g(x))=xf(g(x))=x for all xx
If f(color(blue)x)=6color(blue)xf(x)=6x
then color(white)("XXX")f(color(blue)(g(color(red)x)))=6 * color(blue)(g(color(red)x))XXXf(g(x))=6⋅g(x)
and if color(white)("XXX")6 * color(blue)g(color(red)x)=xXXX6⋅g(x)=x
then color(white)("XXX")color(blue)(g(color(red)x))=x/6XXXg(x)=x6