Skip to content

Graph transformations: translations and reflections

Graph transformations produce new graphs from familiar ones. Instead of making a fresh table of values, you can move every point of y=f(x)y=f(x) according to one precise rule.

The essential distinction is this:

  • a change outside f(x)f(x) changes the output, so it acts vertically;
  • a change inside the brackets changes the input, so it acts horizontally.

The horizontal direction is the main conceptual hurdle. In f(x+3)f(x+3), the graph moves left, not right. This page explains why.

You should be able to:

  • plot and read coordinates;
  • identify roots, intercepts and turning points;
  • substitute into an expression;
  • recognise basic graphs such as y=x2y=x^2, y=x3y=x^3 and y=1/xy=1/x;
  • understand that f(x)f(x) is the output of a function at input xx.

Review function notation and graphs of common functions if these ideas are not yet secure.

Starting from y=f(x)y=f(x), where a>0a>0:

New graphTransformationCoordinate rule
y=f(x)+ay=f(x)+atranslate up by aa(x,y)(x,y+a)(x,y)\mapsto(x,y+a)
y=f(x)ay=f(x)-atranslate down by aa(x,y)(x,ya)(x,y)\mapsto(x,y-a)
y=f(xa)y=f(x-a)translate right by aa(x,y)(x+a,y)(x,y)\mapsto(x+a,y)
y=f(x+a)y=f(x+a)translate left by aa(x,y)(xa,y)(x,y)\mapsto(x-a,y)
y=f(x)y=-f(x)reflect in the xx-axis(x,y)(x,y)(x,y)\mapsto(x,-y)
y=f(x)y=f(-x)reflect in the yy-axis(x,y)(x,y)(x,y)\mapsto(-x,y)

A translation is also described by a vector. For example, right by 44 and down by 22 is

(42).\begin{pmatrix}4\\-2\end{pmatrix}.

Translations and reflections preserve shape. They change a graph’s position or orientation, not its basic form.

Vertical translations: changes outside the function

Section titled “Vertical translations: changes outside the function”

In

y=f(x)+a,y=f(x)+a,

aa is added to every output. The xx-coordinate stays fixed while the yy-coordinate changes:

(x,y)(x,y+a).(x,y)\mapsto(x,y+a).

Worked example 1: move a quadratic vertically

Section titled “Worked example 1: move a quadratic vertically”

Sketch y=x24y=x^2-4 from y=x2y=x^2.

Here f(x)=x2f(x)=x^2 and the change is outside the function:

y=f(x)4.y=f(x)-4.

Every point moves down by 44:

(0,0)(0,4),(1,1)(1,3),(1,1)(1,3).\begin{aligned} (0,0)&\mapsto(0,-4),\\ (1,1)&\mapsto(1,-3),\\ (-1,1)&\mapsto(-1,-3). \end{aligned}

The vertex moves from (0,0)(0,0) to (0,4)(0,-4), so the axis of symmetry remains x=0x=0.

The roots do not come from moving the old root down, because a root must lie on the xx-axis. Solve the new equation:

x24=0x^2-4=0 (x2)(x+2)=0,(x-2)(x+2)=0,

so the roots are x=2x=-2 and x=2x=2.

The point (3,5)(-3,5) lies on y=f(x)y=f(x). What point lies on y=f(x)+7y=f(x)+7?

Answer

The output increases by 77, while the input is unchanged:

(3,5)(3,12).(-3,5)\mapsto(-3,12).

Horizontal translations: changes inside the function

Section titled “Horizontal translations: changes inside the function”

In

y=f(xa),y=f(x-a),

the graph moves right by aa. The sign appears to point the wrong way because the expression changes the input, not the output.

Suppose (u,v)(u,v) lies on y=f(x)y=f(x). Then

v=f(u).v=f(u).

To obtain the same output from f(xa)f(x-a), its input must still equal uu:

xa=u.x-a=u.

Therefore x=u+ax=u+a. The old point (u,v)(u,v) appears aa units to the right:

(u,v)(u+a,v).(u,v)\mapsto(u+a,v).

Similarly, f(x+a)f(x+a) moves the graph left by aa.

Worked example 2: move a quadratic horizontally

Section titled “Worked example 2: move a quadratic horizontally”

Sketch y=(x3)2y=(x-3)^2 from y=x2y=x^2.

Writing f(x)=x2f(x)=x^2 gives

(x3)2=f(x3).(x-3)^2=f(x-3).

Therefore the graph translates 33 units right:

(0,0)(3,0),(1,1)(4,1),(1,1)(2,1).\begin{aligned} (0,0)&\mapsto(3,0),\\ (1,1)&\mapsto(4,1),\\ (-1,1)&\mapsto(2,1). \end{aligned}

The vertex is (3,0)(3,0) and the axis of symmetry is x=3x=3.

There is a useful algebra check. The minimum occurs when the squared expression is zero:

x3=0x=3.x-3=0\quad\Longrightarrow\quad x=3.

Worked example 3: track a feature rather than individual points

Section titled “Worked example 3: track a feature rather than individual points”

The graph y=f(x)y=f(x) has a root at x=2x=-2 and a turning point at (4,7)(4,7). State the corresponding features of

y=f(x+5).y=f(x+5).

The +5+5 is inside the function, so the entire graph moves left by 55:

(x,y)(x5,y).(x,y)\mapsto(x-5,y).

Hence

(2,0)(7,0)(-2,0)\mapsto(-7,0)

and

(4,7)(1,7).(4,7)\mapsto(-1,7).

The new root is x=7x=-7 and the new turning point is (1,7)(-1,7).

The point (6,1)(6,-1) lies on y=g(x)y=g(x). Find the corresponding point on y=g(x4)y=g(x-4).

Answer

g(x4)g(x-4) moves the graph right by 44:

(6,1)(10,1).(6,-1)\mapsto(10,-1).

Check: at the new input x=10x=10, the function receives 104=610-4=6.

Combining horizontal and vertical translations

Section titled “Combining horizontal and vertical translations”

For

y=f(xa)+b,y=f(x-a)+b,

the graph moves right by aa and up by bb:

(x,y)(x+a,y+b).\boxed{(x,y)\mapsto(x+a,y+b)}.

The translation vector is

(ab).\begin{pmatrix}a\\b\end{pmatrix}.

The signs in the final equation must be read carefully: the horizontal sign is reversed, while the vertical sign is not.

Worked example 4: translate a reciprocal graph

Section titled “Worked example 4: translate a reciprocal graph”

Describe the transformation from

y=1xy=\frac1x

to

y=1x+23.y=\frac1{x+2}-3.

Let f(x)=1/xf(x)=1/x. Then the new graph is

y=f(x+2)3.y=f(x+2)-3.

It moves left by 22 and down by 33, with translation vector

(23).\begin{pmatrix}-2\\-3\end{pmatrix}.

The original asymptotes x=0x=0 and y=0y=0 move with the graph, becoming

x=2andy=3.x=-2 \qquad\text{and}\qquad y=-3.

The expression is undefined at x=2x=-2, which confirms the vertical asymptote.

Worked example 5: form an equation from a translation

Section titled “Worked example 5: form an equation from a translation”

The graph y=x2y=x^2 is translated by

(52).\begin{pmatrix}5\\-2\end{pmatrix}.

Find its new equation.

The graph moves right by 55, so replace xx with x5x-5. It moves down by 22, so subtract 22 outside:

y=(x5)22.\boxed{y=(x-5)^2-2}.

The vertex (0,0)(0,0) moves to (5,2)(5,-2), which provides a quick check on both signs.

For

y=f(x),y=-f(x),

every output changes sign:

(x,y)(x,y).(x,y)\mapsto(x,-y).

Points on the xx-axis remain fixed. Points above it move the same distance below it, and vice versa.

Worked example 6: reflect a cubic vertically

Section titled “Worked example 6: reflect a cubic vertically”

Reflect y=x32y=x^3-2 in the xx-axis.

The whole output must be negated:

y=(x32)=x3+2.\begin{aligned} y&=-(x^3-2)\\ &=-x^3+2. \end{aligned}

The brackets matter. Writing x32-x^3-2 would negate only the x3x^3 term and would not reflect the complete graph.

For example, (0,2)(0,-2) maps to (0,2)(0,2), as the reflected equation confirms.

For

y=f(x),y=f(-x),

every input changes sign:

(x,y)(x,y).(x,y)\mapsto(-x,y).

Points on the yy-axis remain fixed.

Worked example 7: distinguish the two reflections

Section titled “Worked example 7: distinguish the two reflections”

Let

f(x)=x2+3x.f(x)=x^2+3x.

Reflection in the xx-axis gives

y=f(x)=(x2+3x)=x23x.\begin{aligned} y&=-f(x)\\ &=-(x^2+3x)\\ &=-x^2-3x. \end{aligned}

Reflection in the yy-axis gives

y=f(x)=(x)2+3(x)=x23x.\begin{aligned} y&=f(-x)\\ &=(-x)^2+3(-x)\\ &=x^2-3x. \end{aligned}

Outside ff negates the output. Inside ff negates the input. These are different operations.

For f(x)=x2f(x)=x^2,

f(x)=(x)2=x2=f(x).f(-x)=(-x)^2=x^2=f(x).

The graph is symmetric about the yy-axis, so reflecting it in that axis makes no visible change. The transformation rule still applies.

The graph y=h(x)y=h(x) passes through (4,3)(-4,3).

  1. Which point lies on y=h(x)y=-h(x)?
  2. Which point lies on y=h(x)y=h(-x)?
Answers
  1. Reflection in the xx-axis changes the output: (4,3)(4,3)(-4,3)\mapsto(-4,-3).
  2. Reflection in the yy-axis changes the input: (4,3)(4,3)(-4,3)\mapsto(4,3).

When transforming a graph:

  1. identify whether each change is inside or outside ff;
  2. state the transformation in words or as a coordinate rule;
  3. mark important points such as roots, intercepts and turning points;
  4. transform those points and any asymptotes;
  5. join them with the same basic graph shape;
  6. check one point by substitution into the new equation.

Do not simply move the axes. The coordinate axes stay fixed while the graph moves.

  • Reading f(x+4)f(x+4) as right by 44. It moves left by 44. Solve x+4=ux+4=u to see that the old input uu occurs at x=u4x=u-4.
  • Changing the wrong coordinate. Outside changes affect yy; inside changes affect xx.
  • Moving only the vertex. Every point, intercept and asymptote follows the same rule.
  • Treating f(x)-f(x) and f(x)f(-x) as identical. They reflect in different axes.
  • Negating only one term. If f(x)=x25x+1f(x)=x^2-5x+1, then f(x)=x2+5x1-f(x)=-x^2+5x-1.
  • Assuming intercepts keep their roles. A transformed old point remains on the graph, but it may no longer be an intercept. Find new intercepts from the transformed equation when needed.

Describe fully the transformation from y=f(x)y=f(x) to

y=f(x6)+1.y=f(x-6)+1.

The point (2,5)(2,-5) lies on y=f(x)y=f(x). Find its image on

y=f(x+3)+4.y=-f(x+3)+4.

Write the equation obtained by reflecting y=2x23x+4y=2x^2-3x+4 in the yy-axis.

The graph y=f(x)y=f(x) has vertical asymptote x=1x=1 and horizontal asymptote y=2y=-2. State the corresponding asymptotes of

y=f(x4)+7.y=f(x-4)+7.
Answers

1. Translate right by 66 and up by 11, with vector

(61).\begin{pmatrix}6\\1\end{pmatrix}.

2. First use the input condition. The x+3x+3 moves the point left by 33:

(2,5)(1,5).(2,-5)\mapsto(-1,-5).

Then f-f negates the output and +4+4 raises it:

(5)+4=9.-(-5)+4=9.

Therefore the image is (1,9)(-1,9).

3. Replace every xx by x-x:

y=2(x)23(x)+4=2x2+3x+4.\begin{aligned} y&=2(-x)^2-3(-x)+4\\ &=2x^2+3x+4. \end{aligned}

4. The entire graph moves right by 44 and up by 77. Therefore

x=1+4=5x=1+4=5

and

y=2+7=5.y=-2+7=5.
Outside f: vertical and direct\boxed{\text{Outside }f:\text{ vertical and direct}} Inside f: horizontal and opposite\boxed{\text{Inside }f:\text{ horizontal and opposite}}

In particular,

f(x)+a: up,f(x+a): left,f(x)+a:\text{ up}, \qquad f(x+a):\text{ left}, f(x): reflect in the x-axis,f(x): reflect in the y-axis.-f(x):\text{ reflect in the }x\text{-axis}, \qquad f(-x):\text{ reflect in the }y\text{-axis}.

Next, consolidate the parent shapes in graphs of common functions. Then study A-level graph transformations for stretches, compressions, modulus graphs and more demanding combined transformations. Function graphs develops intercepts, asymptotes and symmetry further.