Resources
The four parameters of transformation
Every transformation question in AP Precalculus, and later in calculus, is built from one master form:
\[g(x) = a\,f\big(b(x-h)\big) + k.\]Four numbers, four jobs. The outside pair \(a\) and \(k\) act on outputs, so they move the graph vertically and behave exactly as they read. The inside pair \(b\) and \(h\) act on inputs, so they move the graph horizontally and behave opposite to the way they read. That one sentence is the whole topic. The dials below let you verify it.
Turn the dials
The gray curve is the parent function \(f(x) = \sin x\). The black curve is \(g(x) = a\sin\big(b(x-h)\big) + k\) with your dial settings.
Experiments worth running. Push a above 1 and watch the graph stretch tall without moving sideways; make a negative and it flips upside down. Push k and the whole graph rides up and down, midline included. Now the backward pair: increase b and the wave compresses horizontally, because a faster input completes its cycle sooner, so bigger b means a shorter period. Slide h positive and the graph moves right, even though the formula shows a minus sign. The inside always works in reverse.
Why the inside works backward
The backward behavior of \(b\) and \(h\) is the part students distrust, so it deserves an actual reason rather than a mnemonic.
Consider \(g(x) = f(x - 3)\). Ask: what input must \(g\) receive to produce the value \(f(0)\)? It needs \(x - 3 = 0\), so \(x = 3\). The feature of \(f\) that used to live at 0 now lives at 3. Every feature migrates the same way, three units right. The minus sign in the formula is not a direction; it is the price of admission. The graph moves right because the input must be larger to compensate for the subtraction.
The same logic runs the compression. In \(g(x) = f(2x)\), the input \(x = 1\) already delivers \(f(2)\): the function experiences inputs twice as fast as you supply them, so everything \(f\) does gets done in half the horizontal space. Bigger \(b\), faster consumption, narrower graph. For sinusoids this becomes the period formula, period \(= \tfrac{2\pi}{\vert b\vert}\), but the formula is just this paragraph compressed.
Outputs have no such reversal because they happen after the function has done its work. Multiply the result by \(a\), add \(k\): the graph’s heights scale and slide exactly as written.
The order of operations trap
When several dials are set at once, the order you narrate them matters in one specific place: the horizontal factor and shift must be read from the factored form. Compare
\[g(x) = f(2x - 6) \qquad \text{and} \qquad g(x) = f\big(2(x - 3)\big).\]These are the same function, but only the second displays the true shift. Read the first one naively and you will report a shift of 6; factoring the 2 out first reveals the actual shift of 3. On multiple-choice questions this is the most reliable distractor in the topic, and the defense is mechanical: before naming any horizontal transformation, factor the inside so it reads \(b(x - h)\).
A parallel trap lives outside: in \(-f(x) + 2\), the reflection happens before the upward shift, so the graph flips about the \(x\)-axis and then rises. Reading transformations in the wrong order rarely changes horizontal-only or vertical-only answers, but it scrambles anything mixing a reflection with a shift in the same direction.
One skill, three courses
This topic is a rare investment that pays in every course that follows. In AP Precalculus, it writes sinusoidal models directly: amplitude is \(\vert a\vert\), midline is \(y = k\), period comes from \(b\), and the phase comes from \(h\). In AP Calculus, the chain rule differentiates \(f\big(b(x-h)\big)\) and the same four numbers reappear in every substitution. In AP Statistics, standardizing a score, \(z = \tfrac{x - \mu}{\sigma}\), is precisely a shift by \(h = \mu\) and a horizontal scale by \(\sigma\), which is why the normal table only needs one curve. Four dials, learned once.
A self-test at the dials: set the sliders to make the black curve have amplitude 2, period π, midline y = 1, and a peak on the y-axis. There are two honest solutions, one using a sine with a shift and one that would use a cosine with none, which is a good reminder that models are not unique. If your sine version needs h = π/4, you have understood the quarter-lap relationship between the two functions.