After thinking about the responses above and a chat with some of my seniors, here is something that I will like to make:
$f(x)\mapsto f(ax):=g(x)\mapsto g(x+\frac{b}{a})=f(ax+b)---(1)$
$f(x)\mapsto f(x+b):=h(x)\mapsto h(ax)=f(ax+b)---(2)$
For the case of $\sin(x)\mapsto \sin(2x+\pi)$,
Using method $(1)$:
$\sin(x)\mapsto \sin(2x):=g(x)\mapsto g(x+\frac{\pi}{2})=\sin(2x+\pi)$
Using method $(2)$:
$\sin(x)\mapsto \sin(x+\pi):=h(x)\mapsto h(2x)=\sin(2x+\pi)$
Method $(1)$ involves a scaling along $x$ axis, followed by a phase change of $\frac{\pi}{2}$.
Method $(1)$ involves a phase change of $\pi$, followed by a scaling along $x$ axis.
The question I posed earlier, especially at
$$f(x)\mapsto f(x+\frac{b}{a})\mapsto f(ax+b)$$ treats $x+\frac{b}{a}$ as a whole entity.
I believe if we change the $x$ axis to $x+\frac{b}{a}$ axis, then we can do the have the scaling of factor $a$ to make it $$f[a(x+\frac{b}{a})]=f(ax+b)$$ I don't just simply replace $x$ by $ax$, which otherwise I will get $f(ax+\frac{b}{a})$.