A graph of the function g(x)=Af(ax) is constructed from a graph of the function f(x) by stretching or compressing axis OY and axis OX. If a coefficient A>1 then the graph f(x) is stretched A times relatively to OY axis. If a coefficient A<1 then the graph f(x) is compressed 1/A times relatively to the axis. In case of A=1 these graphs are the same for the axis. If A is negative then g(x) is flipped relatively to the axis OX.
If a is changed, the graph is compressed or stretched relatively to the axis OX depending upon a in the same manner as changing the A coefficient results in compressing or stretching relatively to the axis OY.
In this model you can enter a function in the text field f(x), change the coefficients a and A and obtain graph for g(x).