impera Open Impera

AP Precalculus · Polynomial and rational functions

Transformations of functions

1Shifts (translations)

Starting from a parent function $f(x)$:

  • $g(x) = f(x) + k$: shift up $k$ units ($k > 0$) or down ($k < 0$).
  • $g(x) = f(x - h)$: shift right $h$ units ($h > 0$) or left ($h < 0$).

The horizontal shift feels "backwards": $f(x - 3)$ moves the graph 3 units to the right, because the input must be 3 larger to produce the same output.

Example

$g(x) = (x + 2)^2 - 5$ is $y = x^2$ shifted left 2 and down 5, so its vertex is $(-2, -5)$.

Check yourself

The graph of y = √(x − 4) + 1 is y = √x shifted:

  • Left 1, up 4

  • Right 4, up 1

  • Right 4, down 1

  • Left 4, up 1

Show the answer

Right 4, up 1

x − 4 moves right.

2Stretches and reflections

  • $g(x) = a\,f(x)$: vertical dilation by factor $|a|$. If $a < 0$, also reflect in the x-axis.
  • $g(x) = f(bx)$: horizontal dilation by factor $\frac{1}{|b|}$. If $b < 0$, also reflect in the y-axis.

Examples:

  • $3f(x)$: every $y$-value tripled (vertical stretch).
  • $f(2x)$: graph squashed horizontally to half its width.
  • $f\left(\frac{x}{2}\right)$: stretched horizontally to twice its width.
  • $-f(x)$: reflect in the x-axis. $f(-x)$: reflect in the y-axis.

Transforming y = x²: shifts move the vertex; a negative factor flips the graph

Check yourself

y = f(3x) is a horizontal dilation by a factor of:

  • 3

  • 1/3

  • 1

  • −3

Show the answer

1/3

Inputs are reached three times faster.

3Combining transformations

For $g(x) = a\,f\big(b(x - h)\big) + k$:

  1. Horizontal dilation/reflection by $b$.
  2. Horizontal shift by $h$.
  3. Vertical dilation/reflection by $a$.
  4. Vertical shift by $k$.

A point $(x, y)$ on $f$ moves to $\left(\frac{x}{b} + h,\; ay + k\right)$ on $g$.

Worked example

$f$ passes through $(4, 6)$. Find the image on $g(x) = -2f\big(\frac{1}{2}(x + 1)\big) + 3$.

  1. $b = \frac{1}{2}$, $h = -1$: new $x = \frac{4}{1/2} - 1 = 7$.
  2. $a = -2$, $k = 3$: new $y = -2(6) + 3 = -9$.
  3. The image is $(7, -9)$.

Factor out $b$ first: $f(2x - 6) = f\big(2(x - 3)\big)$ is a shift of 3 right, not 6.

Check yourself

f(2x − 6) involves a horizontal shift of:

  • 6 to the right

  • 6 to the left

  • 3 to the left

  • 3 to the right

Show the answer

3 to the right

Factor: f(2(x − 3)).

4Domain, range and transformations

Transformations change the domain and range predictably:

  • Horizontal changes affect the domain; vertical changes affect the range.
Worked example

$f$ has domain $[0, 4]$ and range $[-1, 3]$. Find them for $g(x) = 2f(x + 1) - 4$.

  1. Domain: shift left 1: $[-1, 3]$.
  2. Range: double then subtract 4: $[-2, 6] \to [-6, 2]$.
Check yourself

f has range [1, 5]. The range of −f(x) is:

  • [−1, −5]

  • [5, 1]

  • [−5, −1]

  • [1, 5]

Show the answer

[−5, −1]

Reflect in the x-axis.

5Going deeper: tracking points, and getting the order right

The general form is $g(x) = a\,f(b(x - h)) + k$.

Outside changes act on outputs (vertical), as written.

  • a: vertical dilation by |a|; reflection over the x-axis if a < 0.
  • k: vertical shift by k.

Inside changes act on inputs (horizontal), in the opposite sense.

  • b: horizontal dilation by a factor of $\frac{1}{|b|}$; reflection over the y-axis if b < 0.
  • h: horizontal shift right by h.

Mapping a point: a point (x, y) on f moves to

$$\left(\frac{x}{b} + h,\; ay + k\right)$$

Worked example

f(x) = √x and $g(x) = -2\sqrt{x + 3} + 1$.

  1. a = −2, b = 1, h = −3, k = 1.
  2. Left 3; vertical stretch by 2 and reflection over the x-axis; up 1.
  3. The point (4, 2) on f goes to (4 − 3, −2·2 + 1) = (1, −3).
  4. Starting point (0, 0) goes to (−3, 1). Domain x ≥ −3; range y ≤ 1.

Worked example (horizontal dilation): the point (4, 2) is on f. Where is it on y = f(2x)?

  1. b = 2: x-coordinates are multiplied by ½.
  2. (2, 2). The graph is compressed toward the y-axis.

Worked example (factor first): describe $g(x) = f(2x - 6)$.

  1. Write as $f(2(x - 3))$.
  2. Horizontal compression by ½, then shift right 3 (not 6).
  3. A point (4, 2) goes to $(\frac{4}{2} + 3, 2) = (5, 2)$. Check: g(5) = f(10 − 6) = f(4) = 2.

Order: for outputs: multiply by a, then add k. For inputs (with the form factored as above): divide by b, then add h.

Effects on features

  • Domain changes with horizontal transformations; range with vertical ones.
  • Zeros move with horizontal changes; vertical dilations keep zeros; vertical shifts change them.
  • Asymptotes move with the graph: for $g(x) = \frac{2}{x - 1} + 3$, vertical asymptote x = 1, horizontal y = 3.

Worked example (writing the equation): the graph of $y = x^2$ is reflected over the x-axis, stretched vertically by 3, and moved 2 left and 5 up.

  1. $g(x) = -3(x + 2)^2 + 5$.
  2. Vertex (−2, 5), opening downward.

Worked example (from a table): f(1) = 4, f(2) = 7, f(3) = 12. Find g(5) where g(x) = 2f(x − 3) − 1.

  1. g(5) = 2f(2) − 1 = 2(7) − 1 = 13.

Reflections and symmetry: y = f(−x) reflects over the y-axis; y = −f(x) over the x-axis. If f is even, f(−x) looks unchanged.

Common mistakes

  • Shifting the wrong way for inside changes ((x + 3) moves left).
  • Treating f(2x) as a stretch.
  • Reading the shift from f(2x − 6) as 6.
  • Applying the vertical shift before the vertical stretch.
  • Changing the domain when only vertical transformations were made.
Check yourself

The point (6, −2) lies on the graph of f. Which point lies on the graph of g(x) = 3f(x + 1)?

  • (7, −6)

  • (5, −6)

  • (18, −1)

  • (5, −2)

Show the answer

(5, −6)

Inside, x + 1 shifts left 1; outside, 3 multiplies the output.

6For top marks

  • Describe each transformation precisely with direction and factor: "a vertical dilation by a factor of 3".
  • Factor the inside to find the true horizontal shift.
  • Track one or two key points (vertex, intercepts) to check your graph.
  • Remember the order: horizontal changes act on $x$ inside the function, vertical changes act on the output.
Example

"$g(x) = -\frac{1}{2}|x - 3|$ is $|x|$ shifted right 3, dilated vertically by a factor of $\frac{1}{2}$ and reflected in the x-axis, so its vertex is $(3, 0)$ and it opens downward."

Check yourself

Which describes g(x) = 4f(x)?

  • Vertical dilation by a factor of 4

  • Shift up 4

  • Horizontal dilation by a factor of 4

  • Horizontal dilation by a factor of 1/4

Show the answer

Vertical dilation by a factor of 4

Outputs multiplied by 4.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera