Algebra · Hard · 2–3 min

Linear functions

Question HB2-ALG-007

f(x)=5+|−2x−x2|f(x) = 5 + |−2x − x^2|
g(w)=|−ww−1|−w+5g(w)=|-w/(w-1)|-w+5The functions f and g are defined by the given equations. If f(−4)=c,f(−4) = c, where c is a constant, what is the value of g(c)?

Student-produced response

Solve in the interactive workspace →

Step-by-step explanation

Evaluate the functions in the given order.

Step 1: Define f

f(x)=5+|-2x-x2|

Type f exactly: f(x)=5+|−2x−x²|.

The 5 is outside the bars. Moving it inside would change the rule.

Why this helps: The bars | | mean absolute value: a negative result turns positive, and a positive one stays. Desmos works inside the bars first, then adds 5.

Step 2: Define g

g(w)=|-w(w-1)|-w+5

Type g exactly: g(w)=|−w/(w−1)|−w+5.

We’ll feed f’s output into g.

Why this helps: g’s input is called w. w = 1 isn’t allowed, because it makes the bottom 0.

Step 3: Store c

c=f(-4)

They say f(−4) = c. Type c=f(−4). Desmos gives 13.

Storing c keeps the exact value.

Why this helps: Check: −2(−4) − 16 = −8, |−8| = 8, and 5 + 8 = 13.

Step 4: Evaluate g(c)

g(c)

Type g(c). Desmos gives about −6.9166667, which is −83/12.

c = 13 isn’t 1, so it’s an allowed input for g.

Why this helps: g(13) = |−13/12| − 13 + 5 = 13/12 − 8 = −83/12.

Hand explanation

Step 1: First evaluate f at input −4

First evaluate f at input −4: −2(−4)−(−4)²=8−16=−8.

Step 2: Its absolute value is 8, so c=f(−4)=5+8=13

Its absolute value is 8, so c=f(−4)=5+8=13.

Step 3: Now use that entire result as g’s input

Now use that entire result as g’s input: g(13)=|−13/12|−13+5=13/12−8.

Step 4: Express 8 as 96/12 to obtain −83/12

Express 8 as 96/12 to obtain −83/12.

Step 5: The absolute value applies only to the fraction, not to the whole output

The absolute value applies only to the fraction, not to the whole output.

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

-6.916666666666667

Show answer

-6.916666666666667

Related practice