Advanced Math · Hard · 2–3 min

Nonlinear functions

Question HB2-ADV-007

-1123456-6-4-2246

The graph of y=g(x)y = g(x) is shown, where the function g is defined by g(x)=f(x+a)+bg(x) = f(x + a) + b and a and b are constants. If the function f is defined by f(x)=x3f(x) = x³, what is the value of a + b?

  1. −6−6
  2. −2−2
  3. 22
  4. 66
Solve in the interactive workspace →

Step-by-step explanation

Read the translated cubic’s center.

Step 1: Define the base cubic

f(x)=x3

They say f(x) = x³. Type f(x)=x³.

We’ll shift f to match that point.

Why this helps: Plain x³ has its flat middle at (0, 0). On the given graph, the flat middle is at (4, −2).

Step 2: Recreate the shifts read from the actual graph

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

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

The question writes g(x) = f(x + a) + b. So x − 4 means a = −4, not +4, and b = −2. Moving right uses a minus inside.

Why this helps: x−4 is 0 when x = 4, so the middle moves right to 4. The −2 outside moves it down to −2.

Step 3: Read the actual shifted center

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

Check the middle point: (4, −2). Your curve should sit right on the given graph.

If the curve doesn’t match, check the signs inside and outside.

Why this helps: The middle’s x-value is −a, and its y-value is b. So a = −4 and b = −2.

Step 4: Add the requested constants

-4-2

The question asks for a + b. Type −4−2. Desmos gives −6. Choose A.

Don’t add the middle point’s coordinates 4 and −2. That gives 2, which is wrong.

Why this helps: a = −4 and b = −2, so a + b = −6.

Hand explanation

Step 1: The unshifted cubic x³ has its flat middle at (0,0)

The unshifted cubic x³ has its flat middle at (0,0). In g(x)=f(x+a)+b, that middle occurs where the inside input x+a equals zero.

Step 2: The graph places it at x=4, so 4+a=0 and a=−4

The graph places it at x=4, so 4+a=0 and a=−4. Its height is then f(0)+b=0+b.

Step 3: The marked height −2 gives b=−2

The marked height −2 gives b=−2. Therefore a+b=−4−2=−6.

Step 4: The horizontal shift has the opposite sign inside the parentheses because …

The horizontal shift has the opposite sign inside the parentheses because that inside expression must become zero at the new center.

Step 5: 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

A: −6

Show answer

−6

Related practice