I have this problem:
Let $f$ and $g$ be the following straight line functions: $f(x) = ax + b$, $g(x) = cx + d$. Determine conditions on $a$ and $b$ such that $f \circ g$ = $g \circ f$.
This is what I got:
$$ad-d=cb-b$$
and then
$$a(d - d/a) = b(c-1)$$
Is it correct?
Thank you