Transforming Function Graphs
Four alterations to an equation produce four predictable alterations to a graph. What makes them powerful is that they act on the graph itself, so you can apply them to a function whose formula you do not know, and read off the new domain and range without any algebra.
A function $f$ has domain $[2, 6]$ and range $[0, 9]$. Before reading on, predict the domain and range of $y = f(x) + 4$, and then of $y = f(x-4)$. One of your two answers should have a changed domain and the other a changed range.
The four transformations act on the graph, not on the formula. A change written outside the function moves the outputs, so it moves the range. A change written inside moves the inputs, so it moves the domain, and appears reversed.
$$y = k\,f(x-a) + c$$
That split settles every question at once. $f(x) + c$ and $kf(x)$ and $-f(x)$ leave the domain alone and change the range. $f(x-a)$ leaves the range alone and shifts the domain by $a$.
Know
- The effect of $y = f(x)+c$, $y = f(x-a)$, $y = kf(x)$ and $y = -f(x)$ on a graph
- That a change outside the function moves the range and one inside moves the domain
- That a reflection or stretch leaves the domain unchanged
Understand
- Why a change inside the brackets appears reversed
- Why the rules apply to any function, including one with no known formula
Can Do
- Sketch a transformed graph from a sketch of the original
- State the new domain and range after a transformation
- Describe in words the transformation relating two given graphs
Every transformation in this lesson is defined by what it does to the outputs or to the inputs of $f$, and neither depends on how $f$ is calculated.
Take $y = f(x) + 2$. Whatever height the original graph had at a given $x$, the new graph has two more. That statement is complete without knowing what $f$ is, so the whole graph can be redrawn from a picture alone.
The diagram above does exactly that: an unlabelled curve and its image under a shift of two right and two up. No formula was needed at either stage.
This matters more than it might appear. It means:
a question can give you a sketch of an unknown $f$ and ask for a transformed sketch;
a question can give you the domain and range of an unknown $f$ and ask for the transformed ones;
and every rule you learn here applies to functions you have not met yet, including those in senior courses.
The rules are about graphs, not about algebra. That is why they are worth learning once, properly.
Three of the four transformations are applied to the output after $f$ has finished.
$y = f(x) + c$. Every height increases by $c$, so the graph slides up by $c$ (down if $c$ is negative). The domain is untouched, since the same inputs are still being fed in. The range shifts by $c$.
$y = -f(x)$. Every height reverses sign, so the graph flips across the horizontal axis. The domain is untouched. The range reflects about zero, and its inequalities reverse: $[1,7]$ becomes $[-7,-1]$.
$y = kf(x)$. Every height is multiplied by $k$, so the graph stretches away from the horizontal axis if $|k| > 1$ and squashes towards it if $|k| < 1$. A negative $k$ reflects as well. The domain is untouched. The range is multiplied by $k$.
The pattern is uniform: whatever you do to the output, do the same to the range. If $f$ has range $[1,7]$, then $3f(x)$ has range $[3,21]$, $f(x)-5$ has range $[-4,2]$, and $-f(x)$ has range $[-7,-1]$.
One transformation is applied to the input before $f$ ever sees it, and it behaves differently in two ways.
$y = f(x-a)$ translates the graph $a$ units to the right.
It looks reversed, and here is why. Call the new function $g$, so $g(x) = f(x-a)$. For $g$ to do at some input whatever $f$ did at input $t$, the bracket must equal $t$: that is $x - a = t$, so $x = t + a$. Every feature of $f$ therefore reappears $a$ further along.
The consequence for the domain follows immediately. If $f$ accepts inputs in $[2,6]$, then $g$ accepts $x$ exactly when $x - a$ lies in $[2,6]$, that is when $x$ lies in $[2+a, 6+a]$. The domain shifts by $a$, in the same direction as the graph.
The range is untouched, because $g$ produces exactly the same outputs as $f$; it merely produces each one at a different input.
So the two halves of the rule pull apart cleanly:
$$f(x-a): \quad \text{domain} + a, \quad \text{range unchanged}$$
$$f(x)+c: \quad \text{domain unchanged}, \quad \text{range} + c$$
Combining this with Lesson 6 makes most sketching questions routine. Read the transformations off the equation, then apply them to the base shape's domain and range.
$y = 2\sqrt{x-1} + 3$. Base $\sqrt{x}$, domain $[0,\infty)$, range $[0,\infty)$. The $-1$ is inside, so the domain becomes $[1,\infty)$. Outside, the range is multiplied by $2$, still $[0,\infty)$, then raised by $3$ to $[3,\infty)$. The graph is the usual root shape, starting at $(1,3)$ and rising, twice as steeply as the base.
$y = -(x+2)^2 + 5$. Base $x^2$, domain all reals, range $[0,\infty)$. The $+2$ inside shifts left by $2$, and the domain is still all real numbers. Outside, the minus reflects the range to $(-\infty,0]$, then the $+5$ raises it to $(-\infty,5]$. The graph is a downward parabola with vertex $(-2,5)$.
$y = \dfrac{1}{x-4} + 1$. Base $\dfrac{1}{x}$, domain $x \neq 0$, range $y \neq 0$. Inside, the domain becomes $x \neq 4$. Outside, the range becomes $y \neq 1$. The asymptotes are therefore $x = 4$ and $y = 1$, and each corresponds to one of those exclusions.
In every case the base shape survives unchanged; only its position and scale differ.
Watch Me Solve It · 3 examples
-
1(a) Decide inside or outsideThe $-6$ is outside, so it acts on outputs. Domain unchanged at $[-3,5]$; range lowered by $6$ to $[-4,2]$.
-
2(b) Decide inside or outside$x + 4 \in [-3,5] \ \Leftrightarrow \ x \in [-7, 1]$The $+4$ is inside, so it acts on inputs and shifts the graph left by $4$. Domain $[-7,1]$; range unchanged at $[2,8]$.
-
3(c) Apply the multiplier to the outputs$-2 \times 2 = -4, \qquad -2 \times 8 = -16$The domain is untouched at $[-3,5]$. The two range endpoints map to $-4$ and $-16$.
-
4(c) Put the endpoints in order$[-16, -4]$The negative multiplier reversed which endpoint is larger, so the range is $[-16,-4]$. Writing $[-4,-16]$ would be the standard error here.
-
1Read the transformations from the inside outThe $+2$ is inside, so translate $2$ units left. The $3$ multiplies the output, so stretch vertically by a factor of $3$. The $-1$ is added last, so translate $1$ unit down.
-
2Apply the inside change to the domain$x + 2 \geq 0 \ \Rightarrow \ x \geq -2$The base domain $[0,\infty)$ shifts left by $2$.
-
3Apply the outside changes to the range$\sqrt{x+2} \geq 0 \ \Rightarrow \ 3\sqrt{x+2} \geq 0 \ \Rightarrow \ 3\sqrt{x+2} - 1 \geq -1$Multiplying a non-negative quantity by $3$ keeps it non-negative; subtracting $1$ lowers the floor.
-
4Track the endpoint as a check$(0,0) \to (-2,0) \to (-2,0) \to (-2,-1)$The base curve starts at the origin. Shifting left puts it at $(-2,0)$; the stretch leaves it because its height is zero; the drop takes it to $(-2,-1)$. Substituting confirms: at $x = -2$, $y = 3(0) - 1 = -1$.
-
1Compare the special points horizontally$6 - 1 = 5$The lowest point has moved $5$ units right, which suggests a horizontal translation of $5$.
-
2Compare them vertically$-2 - 4 = -6$It has also dropped by $6$, suggesting a vertical translation of $-6$.
-
3Test the proposal on the second pair of points$(3,10) \to (3+5, 10-6) = (8,4)$That is exactly the second point given for $g$, so a translation alone accounts for both points. No stretch or reflection is needed.
-
4Write it in function notation$g(x) = f(x-5) - 6$Right by $5$ is $x - 5$ inside; down by $6$ is $-6$ outside. Checking the lowest point: $g(6) = f(1) - 6 = 4 - 6 = -2$, as required.
Brain Trainer · 5 problems
Five items on the four transformations. Work each one, then reveal the answer.
-
1 $f$ has domain $[0,4]$. State the domain of $y = f(x) + 9$.
The change is outside, so the inputs are untouched.$[0,4]$ -
2 $f$ has domain $[0,4]$. State the domain of $y = f(x-3)$.
The change is inside, so the domain shifts right by $3$.$[3,7]$ -
3 $f$ has range $[1,5]$. State the range of $y = -f(x)$.
Reflect both endpoints and put them in order.$[-5,-1]$ -
4 $f$ has range $[2,6]$. State the range of $y = 4f(x)$.
Multiply both endpoints by $4$.$[8,24]$ -
5 Describe the change from $y = f(x)$ to $y = f(x+7)$.
Inside the brackets, so the effect is reversed.Translate $7$ units left
Multiple Choice · 5 questions
Which transformation changes the domain of a function?
Compared with $y = f(x)$, the graph of $y = f(x+3)$ is:
$f$ has range $[-2, 6]$. The range of $y = -f(x)$ is:
You are given a sketch of an unknown function $f$, with no formula. You can sketch $y = f(x) - 4$ because:
For $y = 2f(x) - 3$, a point of $y = f(x)$ at height $5$ moves to height:
Short Answer · 3 questions
(a) State the domain and range of $y = f(x) - 5$.
(b) State the domain and range of $y = f(x-2)$.
(c) State the domain and range of $y = -3f(x)$.
(d) State the domain and range of $y = f(x+1) + 4$, and describe the transformation in words.
(a) Name the base shape and state its domain and range.
(b) List the transformations in the order they are applied.
(c) State the domain and range of the given function.
(d) State the equations of the two asymptotes, and explain how each one relates to your answer to (c).
(a) A second graph $y = g(x)$ passes through $(3,1)$, $(5,5)$ and $(7,1)$, with a highest point at $(5,5)$. Express $g$ in terms of $f$.
(b) A third graph $y = h(x)$ passes through $(0,-2)$, $(2,-10)$ and $(4,-2)$, with a lowest point at $(2,-10)$. Express $h$ in terms of $f$, showing your reasoning.
(c) State the range of $f$ if its domain is $[0,4]$ and it has no lowest point other than at the endpoints.
(d) Hence state the range of $h$ on the same domain.
(b) A function satisfies $f(x) = f(x-4)$ for every $x$. Describe what this says about its graph, and give an example.
(c) Under which of the four transformations is the point $(0,0)$ always invariant, and under which is it invariant only sometimes? Justify each answer.
Outside
$f(x)+c$, $kf(x)$, $-f(x)$: range moves, domain stays
Inside
$f(x-a)$: domain moves right by $a$, range stays
No formula needed
The rules act on the graph, so any $f$ works
Reflections reorder
$[1,7]$ becomes $[-7,-1]$, smaller value first
Your Badges
0 of 6Mark lesson as complete
Tick when you've finished Learn, Practice and the Stretch. Earns +90 XP and +25 coins.