y=f(x)=ax
a=2,x=1,y=2
x=f^-1(y)=y/a
a=2,y=2,x=1
これが数学の等式

y=f(x)=ax
a=2,x=1,y=2
x=f(y)=ay
a=2,y=2,x=4
これは等式ではありません