Advanced Math · Hard · 2–3 min

Quadratic functions

Question HB2-ADV-020

f(x)The graph of f (x) is the result of shifting the graph of g(x)4g(x) 4 units to the right and 44 units up. If the equation of f (x) isf(x)=x2+4xf (x) = x^(2) + 4xwhat is the equation of g(x)?
  1. (x−6)2+1(x−6)²+1
  2. (x−6)2−8(x−6)²−8
  3. (x+6)2−8(x+6)²−8
  4. (x+6)2−4(x+6)²−4
Solve in the interactive workspace →

Step-by-step explanation

Undo the shifts, then fit the rewritten parabola.

Step 1: Define the original function

f(x)=x2+4x

Type the given function: f(x)=x²+4x.

They say f is g shifted 4 units to the right and 4 units up. We need to undo that to get g.

Why this helps: f is fully known. It’s the graph after the shifts.

Step 2: Undo both shifts

g(x)=f(x+4)-4

Type g(x)=f(x+4)−4.

It feels backward, but +4 inside is right here. We’re undoing a shift to the right.

Why this helps: A point of g at x ends up on f at x + 4, and 4 higher. So to get g’s y-value, look up f at x + 4 and subtract 4.

Step 3: Fit the equivalent vertex form

g(x1)∼(x1+h)2+k

All the choices look like (x+h)² + k. Type g(x₁) ~ (x₁+h)²+k.

x₁ has no values yet, so any numbers shown now are unfinished. h is the shift inside the square; k is the shift outside.

Why this helps: The ~ asks Desmos to find the h and k that make this form match g.

Step 4: Supply ten input samples

x1=random(10)

On the next line type x₁=random(10). Desmos gives h = 6 and k = −8.

Check the whole rule: (x+6)² − 8 = x² + 12x + 28, and g(x) = (x+4)² + 4(x+4) − 4 is the same. So it works for every x, not just the ten tests.

Why this helps: random(10) is a list of ten random inputs, not the number 10. Desmos must use one h and one k that work for all ten.

Step 5: Read the vertical shift

k

Type k to confirm k = −8. With h = 6, g(x) = (x+6)² − 8. Choose C.

The vertex is (−6, −8). Don’t mix up its x-coordinate −6 with h = 6.

Why this helps: Keep the signs from the form: +6 goes inside the square, −8 goes outside.

Alternate table method

Undo both shifts, then compare the choices.

Step 1: Define the given function

f(x)=x2+4x

Type the given function: f(x)=x²+4x.

They say f is g shifted 4 units to the right and 4 units up. We’ll undo that, then compare graphs with the choices.

Why this helps: f is the graph after the shifts. g is the graph before them.

Step 2: Undo the shifts

g(x)=f(x+4)-4

Type g(x)=f(x+4)−4.

It feels backward, but +4 inside is right here. We’re undoing a shift to the right.

Why this helps: A point of g at x ends up on f at x + 4, and 4 higher. So to get g’s y-value, look up f at x + 4 and subtract 4.

Step 3: Graph choice A

y=(x-6)2+1

Graph choice A: type y=(x−6)²+1.

Compare the whole curve, including the vertex, not just one crossing.

Why this helps: If it’s the right answer, it will sit exactly on g everywhere.

Step 4: Graph choice B

y=(x-6)2-8

Graph choice B: type y=(x−6)²−8.

A different vertex means a different graph.

Why this helps: Check whether it lies on g.

Step 5: Graph choice C

y=(x+6)2-8

Graph choice C: type y=(x+6)²−8.

Click a row’s icon to hide it if the graphs get crowded.

Why this helps: Check whether it lies on g.

Step 6: Graph choice D

y=(x+6)2-4

Graph choice D: type y=(x+6)²−4.

Now all four choices are on screen with g.

Why this helps: Check whether it lies on g.

Step 7: Read the matching graph

y=(x+6)2-4

Only C lies exactly on g, with the same vertex (−6, −8). Choose C: (x+6)²−8.

Check: (x+6)² − 8 = x² + 12x + 28, which is what f(x+4) − 4 gives.

Why this helps: The other choices have their vertex in the wrong spot.

Hand explanation

Step 1: The given shift says f(x)=g(x−4)+4

The given shift says f(x)=g(x−4)+4. We are recovering g, so undo those shifts: replace x by x+4 in f and subtract 4 from its output.

Step 2: This gives g(x)=f(x+4)−4=(x+4)²+4(x+4)−4

This gives g(x)=f(x+4)−4=(x+4)²+4(x+4)−4. Expand: x²+8x+16+4x+16−4=x²+12x+28.

Step 3: Completing the square also writes this as (x+6)²−8

Completing the square also writes this as (x+6)²−8. Check by shifting g right 4 and up 4: g(x−4)+4=x²+4x, the original f.

Step 4: Your answer

Return to the question and compare the quantity you found with what it asks for. Explain the last calculation in your own words before opening the answer check.

Check your answer

C: (x+6)²−8

Show answer

(x+6)²−8

Related practice