a and k, the outer ones, are for the vertical part. Being multiplication as a stretch and division as a compression. While the k is translated left or right depending on its sign.
The same is for within the parentheses but always the opposite. Positive is negative. Stretch is compression and so on.