Skip to the page

Graphs and transformations: question 5 of 14

An ACT® Math practice question. Pick an answer to check it, or open the answer and the worked explanation.

The question

Graphs and transformationsMedium

The function ff is defined by f(x)=(x−1)2+2f(x) = (x - 1)^2 + 2. The graph of y=g(x)y = g(x) in the xyxy-plane is the result of translating the graph of y=f(x)y = f(x) 4 units to the right and 3 units up. What is the value of g(0)g(0)?
  1. A6
  2. B14
  3. C27
  4. D30

Choose an answer, then open the answer below to check it.

A place to start

How do you write a shift of 4 right and 3 up using ff?

Another hint

Use g(x)=f(x−4)+3g(x) = f(x - 4) + 3, then put 0 in for xx.

One more hint

You need f(−4)+3f(-4) + 3. Evaluate f(−4)f(-4) using (−4−1)2+2(-4 - 1)^2 + 2, then add 3.

Show the answer and explanation

Answer: D.30

Why D works

  1. Right 4 means replace xx with x−4x - 4; up 3 means add 3 to the output. So g(x)=f(x−4)+3g(x) = f(x - 4) + 3.
  2. Evaluate at 0: g(0)=f(0−4)+3=f(−4)+3g(0) = f(0 - 4) + 3 = f(-4) + 3.
  3. Find f(−4)f(-4): (−4−1)2+2=(−5)2+2=25+2=27(-4 - 1)^2 + 2 = (-5)^2 + 2 = 25 + 2 = 27.
  4. Add the vertical shift: 27+3=3027 + 3 = 30, so the correct choice is 30.

Why the other choices are wrong

  • A. This computes f(0)+3=3+3f(0) + 3 = 3 + 3, applying only the upward shift. The shift to the right also changes which input of ff is used: g(0)g(0) uses f(−4)f(-4), not f(0)f(0).
  • B. This uses f(x+4)+3f(x + 4) + 3, which shifts the graph left, and gets f(4)+3=11+3f(4) + 3 = 11 + 3. A shift to the right replaces xx with x−4x - 4.
  • C. This is f(−4)f(-4), which handles the shift to the right correctly but stops before adding 3 for the shift up.

The rule

Shifting a graph right hh units and up kk units turns y=f(x)y = f(x) into y=f(x−h)+ky = f(x - h) + k.

Spot it next time

You don't need to expand a new formula: write g(x)=f(x−4)+3g(x) = f(x - 4) + 3, plug in the number, and evaluate ff just once.