2.2.7 · D3Functions

Worked examples — Transformations — vertical - horizontal shifts, reflections, stretches - compressions

2,191 words10 min readBack to topic

This page is the "battlefield" for transformations. The parent note built the rules. Here we hunt down every kind of case the topic can throw at you — every sign, every degenerate input, every limiting value — and grind each one to a finished answer.

Before we start, one promise: every symbol you see is one we already earned in the parent note. A quick refresher of the master machine:


The scenario matrix

Every problem in this topic lives in exactly one of these cells. Our examples below tick off all of them.

Cell What makes it tricky Covered by
C1 · Pure vertical, and output-side, "normal" direction Ex 1
C2 · Pure horizontal, (the "minus means right" trap) input-side, backwards Ex 2
C3 · Horizontal compression (bigger = squeezed) counter-intuitive scaling Ex 3
C4 · Negative AND negative (double reflection) two flips at once Ex 4
C5 · Full combined form, correct order of operations composition order Ex 5
C6 · Zero / degenerate input ( etc.) "identity" edge case Ex 6
C7 · Fractional scale (stretch) + fractional (compress) small-number scaling Ex 7
C8 · Real-world word problem (Ferris wheel) translate words → transform Ex 8
C9 · Exam twist: read the transform backwards from a given graph reverse engineering Ex 9
C10 · Limiting behaviour / domain-range under transform how domain & range move Ex 10

Example 1 — Cell C1: pure vertical, normal direction

Forecast: Guess now — does the vertex go up or down, and does the parabola get skinnier or wider?

  1. Identify the parts. Here , , and , . Why this step? Matching to first tells us we only touch the output — nothing horizontal moves.
  2. Vertex. The vertex of is . Multiply the height by : still . Then add : height becomes . New vertex . Why this step? multiplies height, so a height of stays ; then lifts everything.
  3. Move the point . Height . New point . Why this step? Vertical transforms keep fixed and apply " then " to .

Verify: Plug into : . ✓ And . ✓ Parabola is skinnier ( stretch) and lifted 3.


Example 2 — Cell C2: the "minus means right" trap

Forecast: Left or right? By how much?

  1. Read the inside. with . Why this step? lives inside the bracket, so it's a horizontal move — and horizontal is backwards.
  2. Solve for where the "special thing" happens. The inflection happens when the inside equals : . Why this step? The cube behaves at its inside-value ; we must feed to make the inside again.
  3. State the shift. New inflection — a move right by 4, even though we subtracted.

Verify: . ✓ Test the old point : it should move to , and . ✓


Example 3 — Cell C3: horizontal compression (bigger = squeezed)

Figure — Transformations — vertical - horizontal shifts, reflections, stretches - compressions

Forecast: Is stretched wide or squeezed narrow compared to ?

  1. Read . with . Why this step? multiplies the input; makes the graph run faster, so it compresses.
  2. New period. Period . Why this step? One full cycle needs the inside to travel : .
  3. First minimum. hits when its inside : . Why this step? We move the event to ; the event at moves to .

Look at the figure: the coral fits three humps inside one lavender hump of — that's the squeeze.

Verify: . ✓ Period check: and . ✓


Example 4 — Cell C4: negative AND negative (double reflection)

Figure — Transformations — vertical - horizontal shifts, reflections, stretches - compressions

Forecast: Which quadrant does the curve end up in — I, II, III, or IV?

  1. Inside flip (). reflects across the -axis. The domain flips: needs , so needs . Why this step? Negating the input mirrors left↔right, and the "allowed inputs" mirror too.
  2. Outside flip (). The leading minus reflects across the -axis, pushing outputs negative. Why this step? negates height; positive values become negative.
  3. Combine. Input (left half) and output (below axis) → the curve sits in Quadrant III, sweeping down-left.

The figure shows the mint original in Quadrant I and the coral double-reflection mirrored into Quadrant III.

Verify: . Original ; a double flip sends . ✓ Domain : defined, undefined. ✓


Example 5 — Cell C5: full combined form, correct order

Forecast: Where does the corner point land after all four moves?

Use the mnemonic Shift → Squeeze → Stretch → Shift (see Function Composition for why inside-out).

  1. Horizontal shift (): . Inside at . Point . Why this step? , so → left by 1.
  2. Horizontal compress (): . Divide horizontal distance by 3. The corner is where inside : still (dividing by anything is ). Why this step? squeezes toward the corner; a corner at "distance 0" doesn't move.
  3. Vertical flip + stretch (): . Heights multiply by : corner height . Why this step? flips below the axis and doubles the drop.
  4. Vertical shift (): add 4. Corner . Why this step? lifts everything, corner included.

Verify: . ✓ Test : . ✓ Domain (from Domain and Range): need . ✓


Example 6 — Cell C6: the degenerate "identity" case

Forecast: Does anything move?

  1. Read the constants. , , , . Why this step? We must check for the degenerate case before "transforming" — sometimes the answer is "nothing changes."
  2. Apply each. Multiply height by 1 → same. Multiply input by 1 → same. Shift by 0 → same. Why this step? is the multiplicative identity and the additive identity; they leave the V-graph untouched.
  3. Conclusion. exactly — the identity transformation.

Verify: . ✓ . ✓ The graphs coincide everywhere.


Example 7 — Cell C7: fractional scales (stretch + compress at once)

Forecast: Wider or skinnier? Taller or flatter?

  1. Horizontal, . Since , this is a horizontal stretch by factor . A point at moves to . Why this step? Small makes the function run slower, so it spreads out.
  2. Vertical, . Since , this is a vertical compression: heights halved. Why this step? Multiplying output by less than 1 pushes it toward the -axis.
  3. Move . Horizontal: . Vertical: . New point . Why this step? Apply and separately.

Verify: . ✓ New point ✓ — wider and flatter than .


Example 8 — Cell C8: real-world word problem

Forecast: At the bottom the height is smallest — which cosine transform starts at a minimum?

  1. Pick the parent. Start from , which starts at its maximum. We want to start at the minimum (bottom of wheel), so use . Why this step? Reflecting over the -axis makes it start low — matching a rider at the bottom.
  2. Vertical scale . Radius 10 → amplitude 10. So far: . Why this step? Amplitude is how far the height swings from centre; that's the radius.
  3. Vertical shift . Centre is 12 m up → add 12: . Why this step? raises the "midline" to the axle height.
  4. Horizontal scale for the period. Period must be s: need . Final model: Why this step? Period .
  5. Evaluate at . . Why this step? At quarter-turn the rider is level with the axle, so height = midline = 12 m.

Verify: m (bottom, radius below axle ✓). m (top ✓). m. ✓ Uses Trigonometric Functions.


Example 9 — Cell C9: exam twist, reverse-engineer from a graph

Forecast: Which sign of makes sine start by going down?

  1. Amplitude → . Amplitude 4 gives . "Starts downward" (goes negative first) means a flip: . Why this step? normally rises first; a negative reflects it so it falls first.
  2. Period → . Period means , take . Why this step? We read the horizontal squeeze straight from the period formula.
  3. Vertical shift → . Up 1 gives . No horizontal shift, so . Why this step? Midline moved up 1 → .
  4. Assemble. .

Verify: Amplitude ✓. Period ✓. (midline ✓). Just after , increasing but makes decrease → starts downward ✓. Max value , min .


Example 10 — Cell C10: how domain & range move (limiting behaviour)

Forecast: Does the asymptote move with or with ?

  1. Domain. The inside must stay positive: . Domain . Why this step? Horizontal shift drags the whole "allowed input" region right by 5. See Domain and Range.
  2. Vertical asymptote. It sat at ; the inside now at . Asymptote: . Why this step? The asymptote is a horizontal-position feature, so it moves with , not .
  3. Range. already covers all reals; multiplying by 3 and subtracting 2 still covers all reals. Range . Why this step? Vertical scaling/shifting a full-real range leaves it full-real — limiting behaviour is unchanged.

Verify: . ✓ As , , so : asymptote confirmed at . ✓ . ✓


Recall Quick self-test

Which way does shift? ::: Left by 3 (inside, backwards). For , stretch or compress? ::: Compress (bigger squeezes). In , which letter moves the vertical asymptote? ::: (horizontal shift). Ferris-wheel height at the top with ? ::: m. Reverse-engineer sine that starts downward with amplitude 4? ::: .