I want to ask a follow up question to this one: Let $f(x) = ax + b$ and $g(x) = cx + d$, where $a, b, c, d$ are constants. Determine for which constants $a, b, c, d$ it is true that $f ◦ g = g ◦$
I thought the question was trying to establish an identity function:
I solve that $f \circ g= g \circ f$
$acx+ad+b=acx+bc+d$ factored to
$d(a-1)=b(c-1)$
So this mean that the following conditions are necessary and sufficient: $a \neq 1 \land b \neq 0 \land c \neq 1 \land d \neq 0$
But if I let $f^{-1}(x) = \frac{x}{a} - \frac {b}{a}$ and $g^{-1}(x) = \frac{x}{c} - \frac{d}{c}$ are the conditions $a \neq 0 \land c \neq 0 $ also necessary and sufficient?