We have $f(x) = \frac{5x}{2}+9$ .
The graph of $f(x)$ is the green line. The graphs of $f(2x)$ and $f(x-1)$ are the blue and red lines, respectively. We see that $f(2x)= 5x+9$ and $f(x-1) = \frac{5}{2}(x-1)+9$ which are just putting $2x$ and $(x-1)$ in $f(x)$.
But when we graph $f(2x-1)$ (the purple line) we see something like the below.
It is horizontally compressed by a factor of $\frac{1}{2}$ and shifted horizontally by $1$ unit. And its equation isn't just what we'll get by putting $2x-1$ in $f(x)$. Moreover, if we horizontally shift $f(x)$ by $1$ unit and then compress it by a factor of $\frac{1}{2}$ we do not get the same graph as $f(2x-1)$. Why?
If we try to graph $f(2x-1)$ by letting $x$ = some value and plotting the points on a cartesian plane, we also don't get the same graph as $f(2x-1)$, my question is why is this difference and how are the equations of $f(x)$ and $f(kx+c)$ related?
Edit: Here's an article related to my question: https://brilliant.org/wiki/graph-transformation/
This question is from the book introduction to algebra by Richard rusczyk page no: 482. The transformation given there is wrong.


