Unit 3, lesson 30

Shifting and Reflecting Graphs

How shifts and reflections move each point of a known graph, why the input that reproduces an old output decides the horizontal move, and how to find the new domain.

  • Theory part 59
  • Practice part 60
  • Moving and Scaling Graphs

Once you know the graph of y=x2y = x^2 well, you do not need a new table for y=(x−2)2−3y = (x - 2)^2 - 3. The new graph is the old one picked up and moved. The trick is to follow a few marked points and ask one honest question about each of them, which input now produces the output it used to have.

Key terms

Parent graph

Definition A parent graph is the graph of a basic function ff whose shape and key points you already know, such as y=x2y = x^2, y=xy = \sqrt{x}, y=∣x∣y = \lvert x \rvert, y=x3y = \sqrt[3]{x} or y=1xy = \frac{1}{x}. A new function built from ff by changing its input or its output is compared with this graph point by point.

In plain words The parent graph is the familiar picture you start from. A few easy points on it, called anchor points, are what you carry along when you move it.

Example Useful anchor points for y=x2y = x^2 are (−1,1)(-1, 1), (0,0)(0, 0), (1,1)(1, 1) and (2,4)(2, 4). For y=xy = \sqrt{x}, with domain [0,∞)[0, \infty), good choices are (0,0)(0, 0), (1,1)(1, 1) and (4,2)(4, 2), because their square roots are whole numbers.

Image of a point

Definition If a new function gg is built from ff, the image of a point (u,f(u))(u, f(u)) on the graph of ff is the point on the graph of gg that comes from it. To find it, solve for the input xx at which the inside of gg equals uu, then compute the output of gg there. For

g(x)=f(x−h)+k,g(x) = f(x - h) + k,

the inside equals uu when x=u+hx = u + h, so (u,f(u))(u, f(u)) has image (u+h,f(u)+k)(u + h, f(u) + k).

In plain words Ask which new input feeds the old input into ff. That tells you where the point moves sideways, and whatever is done to the output tells you where it moves up or down.

Example Let g(x)=(x−2)2−3g(x) = (x - 2)^2 - 3, built from f(x)=x2f(x) = x^2 with h=2h = 2 and k=−3k = -3. The point (1,1)(1, 1) goes to (3,−2)(3, -2), and indeed g(3)=1−3=−2g(3) = 1 - 3 = -2. The vertex (0,0)(0, 0) goes to (2,−3)(2, -3).

Horizontal shift

Definition For a real number hh, the graph of g(x)=f(x−h)g(x) = f(x - h) is the graph of ff moved hh units horizontally, to the right when h>0h > 0 and to the left when h<0h < 0. Each point (u,f(u))(u, f(u)) becomes (u+h,f(u))(u + h, f(u)), because

g(u+h)=f((u+h)−h)=f(u).g(u + h) = f\bigl((u + h) - h\bigr) = f(u).

In plain words A shift sideways changes which input produces each output. Do not guess the direction from a plus or minus sign. Solve for the input that gives the old value.

Example Take g(x)=(x+3)2g(x) = (x + 3)^2. The inside x+3x + 3 equals uu when x=u−3x = u - 3, so every point moves 33 to the left. The vertex (0,0)(0, 0) goes to (−3,0)(-3, 0) and the point (1,1)(1, 1) goes to (−2,1)(-2, 1). Check that g(−2)=12=1g(-2) = 1^2 = 1.

Vertical shift

Definition For a real number kk, the graph of g(x)=f(x)+kg(x) = f(x) + k is the graph of ff moved kk units vertically, up when k>0k > 0 and down when k<0k < 0. Each point (u,f(u))(u, f(u)) becomes (u,f(u)+k)(u, f(u) + k). The domain is unchanged, and every output moves by kk, so the whole range does too.

In plain words Adding a number after ff has done its work lifts or lowers every point by that same amount.

Example The graph of g(x)=x+2g(x) = \sqrt{x} + 2 sends (0,0)(0, 0) to (0,2)(0, 2) and (4,2)(4, 2) to (4,4)(4, 4). The domain stays [0,∞)[0, \infty) and the range becomes [2,∞)[2, \infty).

Reflection in the x-axis

Definition The graph of g(x)=−f(x)g(x) = -f(x) is the reflection of the graph of ff in the xx-axis. Each point (u,f(u))(u, f(u)) becomes (u,−f(u))(u, -f(u)). The domain is unchanged and the range is the set of negatives of the old outputs.

In plain words Every output changes sign, so the graph flips upside down across the xx-axis. Points on the xx-axis stay where they are.

Example For g(x)=−xg(x) = -\sqrt{x} the point (4,2)(4, 2) becomes (4,−2)(4, -2) and (1,1)(1, 1) becomes (1,−1)(1, -1). The domain is still [0,∞)[0, \infty) and the range is (−∞,0](-\infty, 0].

Reflection in the y-axis

Definition The graph of g(x)=f(−x)g(x) = f(-x) is the reflection of the graph of ff in the yy-axis. Each point (u,f(u))(u, f(u)) becomes (−u,f(u))(-u, f(u)), since g(−u)=f(u)g(-u) = f(u). The domain of gg is the set of negatives of the inputs in the domain of ff, and the range is unchanged.

In plain words To get the old output you now have to feed in the opposite input, so the graph flips left to right across the yy-axis.

Example The function g(x)=−xg(x) = \sqrt{-x} is defined when −x≥0-x \ge 0, that is for x≤0x \le 0. The point (4,2)(4, 2) on y=xy = \sqrt{x} becomes (−4,2)(-4, 2), and g(−4)=4=2g(-4) = \sqrt{4} = 2 confirms it.

New domain

Definition If gg is built from ff by replacing the input xx with an expression w(x)w(x), then xx is in the domain of gg exactly when w(x)w(x) is in the domain of ff. For g(x)=f(x−h)+kg(x) = f(x - h) + k this means

dom⁡g={ x:x−h∈dom⁡f }.\operatorname{dom} g = \{\, x : x - h \in \operatorname{dom} f \,\}.

A vertical shift or a reflection in the xx-axis does not change the domain.

In plain words The new function works only where its inside is something the old function accepts. Write that condition down and solve it.

Example Let g(x)=3−x−1g(x) = \sqrt{3 - x} - 1. The condition 3−x≥03 - x \ge 0 gives the domain (−∞,3](-\infty, 3]. To find images, solve 3−x=u3 - x = u, which gives x=3−ux = 3 - u.

Point on y=xy = \sqrt{x}Input with 3−x=u3 - x = uImage on y=g(x)y = g(x)
(0,0)(0, 0)x=3x = 3(3,−1)(3, -1)
(1,1)(1, 1)x=2x = 2(2,0)(2, 0)
(4,2)(4, 2)x=−1x = -1(−1,1)(-1, 1)

The graph opens to the left from (3,−1)(3, -1). Reading only the minus sign in 3−x3 - x would wrongly suggest a simple shift to the right. In fact g(x)=f(−(x−3))−1g(x) = f\bigl(-(x - 3)\bigr) - 1 with f(x)=xf(x) = \sqrt{x}, so the graph of x\sqrt{x} is reflected in the yy-axis, then shifted 33 to the right and 11 down. The table confirms it, since (4,2)(4, 2) goes to (−4,2)(-4, 2), then to (−1,2)(-1, 2), then to (−1,1)(-1, 1).

Check yourself

  1. Starting from y=x2y = x^2, describe g(x)=−(x+1)2+4g(x) = -(x + 1)^2 + 4. Find its vertex, the image of (2,4)(2, 4) and its range.
Show the answer

The graph is moved 11 left, flipped in the xx-axis and moved 44 up. The vertex (0,0)(0, 0) goes to (−1,4)(-1, 4). For (2,4)(2, 4) solve x+1=2x + 1 = 2 to get x=1x = 1, and the output is −4+4=0-4 + 4 = 0, so the image is (1,0)(1, 0). The range is (−∞,4](-\infty, 4].

  1. Find the domain and range of h(x)=−x+4h(x) = -\sqrt{x + 4} and the image of the point (4,2)(4, 2) on y=xy = \sqrt{x}.
Show the answer

The function needs x+4≥0x + 4 \ge 0, so the domain is [−4,∞)[-4, \infty). Solving x+4=4x + 4 = 4 gives x=0x = 0, and the output is −2-2, so the image is (0,−2)(0, -2). Every output is 00 or negative, so the range is (−∞,0](-\infty, 0].

  1. The point (5,−2)(5, -2) lies on the graph of ff. Name a point on the graph of y=f(−x)y = f(-x) and one on the graph of y=−f(x−1)y = -f(x - 1).
Show the answer

For y=f(−x)y = f(-x) the input x=−5x = -5 gives f(5)=−2f(5) = -2, so (−5,−2)(-5, -2) is on the graph. For y=−f(x−1)y = -f(x - 1) the input x=6x = 6 gives −f(5)=2-f(5) = 2, so (6,2)(6, 2) is on the graph.

How this lesson connects

Resources for this lesson