Unit 1, lesson 12

Shifts and Reflections of Graphs

How adding a constant inside or outside a function moves its graph left, right, up or down, how a minus sign reflects it across an axis, and how to follow points through several such moves.

  • Theory part 23
  • Practice part 24
  • Transformations of Graphs

Slide a drawing of a parabola two squares to the right on graph paper and its shape stays exactly the same. Only its formula changes. Once you know how each change in a formula moves the graph, a handful of basic shapes lets you sketch a whole family of functions and read off features such as a vertex without plotting a single point.

Key terms

Parent function

Definition A family of functions is a collection of functions whose graphs all come from one basic graph by shifts, reflections and stretches. The parent function of the family is the function with that basic graph, usually the simplest formula in the family. The common parent functions are listed below.

ParentFormulaDomainPoints to track
identityxxR\mathbb{R}(0,0)(0, 0), (1,1)(1, 1)
squarex2x^2R\mathbb{R}(−1,1)(-1, 1), (0,0)(0, 0), (1,1)(1, 1)
cubex3x^3R\mathbb{R}(−1,−1)(-1, -1), (0,0)(0, 0), (1,1)(1, 1)
absolute value∣x∣\lvert x \rvertR\mathbb{R}(−1,1)(-1, 1), (0,0)(0, 0), (1,1)(1, 1)
square rootx\sqrt{x}[0,∞)[0, \infty)(0,0)(0, 0), (1,1)(1, 1), (4,2)(4, 2)
reciprocal1/x1/xall x≠0x \ne 0(−1,−1)(-1, -1), (1,1)(1, 1)

In plain words A parent function is the plain version of a shape. Know its graph and a few of its points, and every relative of it becomes a moved, flipped or stretched copy.

Example The function g(x)=(x−3)2+1g(x) = (x - 3)^2 + 1 belongs to the family with parent x2x^2. Its graph is the parabola y=x2y = x^2 moved 33 units right and 11 unit up, so the vertex (0,0)(0, 0) goes to (3,1)(3, 1) and the point (1,1)(1, 1) goes to (4,2)(4, 2). The formula agrees, since g(3)=0+1=1g(3) = 0 + 1 = 1 and g(4)=1+1=2g(4) = 1 + 1 = 2.

Rigid transformation

Definition A rigid transformation of the plane moves each point of the plane to a point of the plane so that distances are preserved. In other words, if points PP and QQ move to P′P' and Q′Q', then the distance from P′P' to Q′Q' equals the distance from PP to QQ. The rigid transformations in this lesson are the shifts and the reflections across the coordinate axes,

(x,y)↦(x+h,y+k),(x,y)↦(x,−y),(x,y)↦(−x,y).\begin{gathered} (x, y) \mapsto (x + h, y + k), \\[0.4em] (x, y) \mapsto (x, -y), \\[0.4em] (x, y) \mapsto (-x, y). \end{gathered}

A rigid transformation does not change the size or shape of a graph, only its position or orientation. Stretches and compressions are not rigid.

In plain words Sliding or flipping a drawing does not bend or resize it. Only its place on the page changes.

Example The points P=(0,0)P = (0, 0) and Q=(2,4)Q = (2, 4) lie on y=x2y = x^2, at distance 22+42=20\sqrt{2^2 + 4^2} = \sqrt{20}. Compare where three different moves send them.

MoveNew pointsDistance
shift by 33 right and 11 up(3,1)(3, 1) and (5,5)(5, 5)22+42=20\sqrt{2^2 + 4^2} = \sqrt{20}
reflection across the xx-axis(0,0)(0, 0) and (2,−4)(2, -4)22+42=20\sqrt{2^2 + 4^2} = \sqrt{20}
vertical stretch by 22, doubling each yy(0,0)(0, 0) and (2,8)(2, 8)22+82=68\sqrt{2^2 + 8^2} = \sqrt{68}

The shift and the reflection keep the distance, as rigid transformations must. The stretch changes it, so it is not rigid.

Vertical shift

Definition Let ff be a function and kk a real number. The function g(x)=f(x)+kg(x) = f(x) + k has the same domain as ff, and each point (x,y)(x, y) of the graph of ff corresponds to the point (x,y+k)(x, y + k) of the graph of gg. So the graph of gg is the graph of ff shifted up by kk units when k>0k > 0 and down by ∣k∣\lvert k \rvert units when k<0k < 0. Every output, and with it the whole range, moves by kk.

In plain words Adding a number outside the function changes every output by that number. The graph slides straight up or down.

Example Take f(x)=xf(x) = \sqrt{x} and g(x)=x−2g(x) = \sqrt{x} - 2, so k=−2k = -2.

xx00114499
f(x)f(x)00112233
g(x)g(x)−2-2−1-10011

Each point drops by 22. The domain stays [0,∞)[0, \infty), the range moves from [0,∞)[0, \infty) to [−2,∞)[-2, \infty), and the graph now crosses the xx-axis at (4,0)(4, 0).

Horizontal shift

Definition Let ff be a function and hh a real number. The function g(x)=f(x−h)g(x) = f(x - h) is defined at xx exactly when x−hx - h is in the domain of ff. Since

g(x+h)=f(x),g(x + h) = f(x),

each point (x,y)(x, y) of the graph of ff corresponds to the point (x+h,y)(x + h, y) of the graph of gg. So the graph of gg is the graph of ff shifted right by hh units when h>0h > 0 and left by ∣h∣\lvert h \rvert units when h<0h < 0. The domain moves by hh and the range stays the same.

In plain words A number added inside the function changes the input, and it moves the graph the opposite way from what the sign suggests. In f(x−3)f(x - 3) the input has to be 33 larger to produce the same output as before, so the graph moves 33 units to the right.

Example The function g(x)=x+3g(x) = \sqrt{x + 3} is f(x−h)f(x - h) with f(x)=xf(x) = \sqrt{x} and h=−3h = -3, so its graph is the graph of x\sqrt{x} shifted 33 units left.

xx−3-3−2-21166
x+3x + 300114499
g(x)g(x)00112233

The starting point moves from (0,0)(0, 0) to (−3,0)(-3, 0), and the domain becomes [−3,∞)[-3, \infty).

Reflection across the x-axis

Definition Let ff be a function. The function g(x)=−f(x)g(x) = -f(x) has the same domain as ff, and each point (x,y)(x, y) of the graph of ff corresponds to the point (x,−y)(x, -y) of the graph of gg. So the graph of gg is the mirror image of the graph of ff across the xx-axis. Points on the xx-axis stay where they are, and the range is replaced by the negatives of its values.

In plain words A minus sign outside the function changes the sign of every output. What was above the xx-axis ends up below it, at the same distance.

Example Let f(x)=x2−2xf(x) = x^2 - 2x, a parabola opening upward with vertex (1,−1)(1, -1). Then g(x)=−f(x)=2x−x2g(x) = -f(x) = 2x - x^2.

xx−1-100112233
f(x)f(x)3300−1-10033
g(x)g(x)−3-3001100−3-3

The zeros 00 and 22 do not move. The vertex goes to (1,1)(1, 1), the parabola now opens downward, and the range [−1,∞)[-1, \infty) becomes (−∞,1](-\infty, 1].

Reflection across the y-axis

Definition Let ff be a function. The function g(x)=f(−x)g(x) = f(-x) is defined at xx exactly when −x-x is in the domain of ff. Since g(−x)=f(x)g(-x) = f(x), each point (x,y)(x, y) of the graph of ff corresponds to the point (−x,y)(-x, y) of the graph of gg. So the graph of gg is the mirror image of the graph of ff across the yy-axis. Points on the yy-axis stay where they are, and the domain is replaced by the negatives of its values. For an even function this reflection leaves the graph unchanged, and for an odd function it gives the same graph as the reflection across the xx-axis.

In plain words A minus sign on the input swaps left and right. The outputs stay the same, but each one now happens at the opposite input.

Example Reflecting f(x)=xf(x) = \sqrt{x} across the yy-axis gives g(x)=−xg(x) = \sqrt{-x}, which is defined when −x≥0-x \ge 0, that is, for x≤0x \le 0.

xx00−1-1−4-4
g(x)g(x)001122

The points (1,1)(1, 1) and (4,2)(4, 2) of y=xy = \sqrt{x} become (−1,1)(-1, 1) and (−4,2)(-4, 2), and the domain [0,∞)[0, \infty) becomes (−∞,0](-\infty, 0].

Combining shifts and reflections

Definition Let aa and bb each be 11 or −1-1, and let hh and kk be real numbers. The graph of

g(x)=af(b(x−h))+kg(x) = a f\bigl(b(x - h)\bigr) + k

is obtained from the graph of ff by moving each point (x,y)(x, y) to (bx+h,ay+k)(bx + h, ay + k). Read this as a reflection followed by a shift, separately for the input and for the output. Every combination of shifts and reflections across the axes can be written in this form. The order of the steps matters, because reflecting and then shifting is in general not the same as shifting and then reflecting.

In plain words Follow a few points instead of the whole curve. Each point is reflected first and then shifted, sideways according to the inside of the formula and up or down according to the outside.

Example Build g(x)=−(x−2)2+3g(x) = -(x - 2)^2 + 3 from x2x^2 in three steps and follow the vertex (0,0)(0, 0) and the point (1,1)(1, 1).

StepFormulaVertexImage of (1,1)(1, 1)
startx2x^2(0,0)(0, 0)(1,1)(1, 1)
shift right 22(x−2)2(x - 2)^2(2,0)(2, 0)(3,1)(3, 1)
reflect across the xx-axis−(x−2)2-(x - 2)^2(2,0)(2, 0)(3,−1)(3, -1)
shift up 33−(x−2)2+3-(x - 2)^2 + 3(2,3)(2, 3)(3,2)(3, 2)

Indeed g(3)=−1+3=2g(3) = -1 + 3 = 2. Doing the last two steps in the other order gives

−((x−2)2+3)=−(x−2)2−3,-\bigl((x - 2)^2 + 3\bigr) = -(x - 2)^2 - 3,

a parabola with vertex (2,−3)(2, -3), which is a different graph.

Check yourself

  1. How is the graph of g(x)=∣x+4∣−1g(x) = \lvert x + 4 \rvert - 1 related to the graph of y=∣x∣y = \lvert x \rvert, and where is its vertex?
Show the answer

Since x+4=x−(−4)x + 4 = x - (-4), the graph is the graph of y=∣x∣y = \lvert x \rvert shifted 44 units left and 11 unit down. The vertex moves from (0,0)(0, 0) to (−4,−1)(-4, -1), and indeed g(−4)=0−1=−1g(-4) = 0 - 1 = -1.

  1. The point (3,5)(3, 5) lies on the graph of ff. Which point must lie on the graph of g(x)=−f(x−1)+2g(x) = -f(x - 1) + 2?
Show the answer

Here a=−1a = -1, b=1b = 1, h=1h = 1 and k=2k = 2, so (3,5)(3, 5) moves to (3+1,−5+2)=(4,−3)(3 + 1, -5 + 2) = (4, -3). As a check, g(4)=−f(3)+2=−5+2=−3g(4) = -f(3) + 2 = -5 + 2 = -3.

  1. Reflect the graph of y=xy = \sqrt{x} across the yy-axis and then shift it 33 units right. Find the new formula and its domain.
Show the answer

The reflection gives y=−xy = \sqrt{-x}. Shifting right by 33 replaces xx with x−3x - 3, which gives

y=−(x−3)=3−x.y = \sqrt{-(x - 3)} = \sqrt{3 - x}.

It is defined when 3−x≥03 - x \ge 0, so the domain is (−∞,3](-\infty, 3]. The point (4,2)(4, 2) of y=xy = \sqrt{x} goes to (−4,2)(-4, 2) and then to (−1,2)(-1, 2), and indeed 3−(−1)=2\sqrt{3 - (-1)} = 2.

How this lesson connects

Resources for this lesson