Algebra · Challenge · 2–3 min

Two linear functions sharing an unknown input

Question OWNER-20261126-SHARED-INPUT-SLOPE-01

For the linear function f, f(k)=−7f(k) = −7, where k is a constant, f(4)=11f(4) = 11, and the slope of the graph of y=f(x)y = f(x) in the xy-plane is 3. For the linear function g, g(k)=−6g(k) = −6 and g(7)=39g(7) = 39. What is the slope of the graph of y=g(x)y = g(x) in the xy-plane?
  1. −2
  2. 3
  3. 5
  4. 9
Solve in the interactive workspace →

Step-by-step explanation

Type both lines, then put all four facts in one bracket

Step 1: Type the line f

f(x)=3x+b

A linear function is a straight line, and every straight line can be written as (slope)·x + (start). The question says the slope of f is 3. We are not told where it starts, so call that b. Type f(x) = 3x + b.

“Start” means the value of the line when x is 0, also called the y-intercept.

Why this helps: Desmos does not know b yet, so it draws nothing and offers a slider for b. Do not add the slider. In a moment Desmos will find b for us.

Step 2: Type the line g

g(x)=mx+c

g is also a linear function, but this time we do not know the slope or the start. Call the slope m and the start c. On a new line type g(x) = mx + c.

We use c for the start of g because b is already used for f. The two lines can start in different places.

Why this helps: m is the answer to the question, because the question asks for the slope of g. Again, do not add any sliders.

Step 3: Start the bracket with the first fact

[f(4)]∼[11]

The question says f(4) = 11. That means: put 4 into f and 11 comes out. On a new line type, in square brackets, f(4), then ~, then in square brackets 11.

Why the square brackets? We are about to add three more facts to this same line. All four facts have to go in one line, because they share letters.

Check: 3 × 4 = 12, and 12 − 1 = 11.

Why this helps: The ~ means “find the missing letters that make the left side match the right side.” The only missing letter in f is b, and Desmos shows b = −1. The red line f appears on the graph.

Step 4: Add the second fact

[f(4),f(k)]∼[11,-7]

The question says f(k) = −7. k is a mystery input: we do not know which x gives −7. Click inside the left bracket, type a comma, and add f(k). Click inside the right bracket, type a comma, and add −7.

Check: 3 × (−2) = −6, and −6 − 1 = −7.

This k matters for g too. The question uses the same k in g(k).

Why this helps: Desmos matches by position: the first thing on the left goes with the first on the right, and the second with the second. So it reads this as f(4) = 11 and f(k) = −7. It now shows k = −2. So the mystery input is −2.

Step 5: Add the third fact

[f(4),f(k),g(k)]∼[11,-7,-6]

Now the facts about g. The question says g(k) = −6, with the same k. Add g(k) at the end of the left bracket and −6 at the end of the right bracket.

Because k = −2, this fact says the line g goes through the point (−2, −6).

b = −1 and k = −2 do not change. They were already pinned down by the first two facts.

Why this helps: Desmos now shows numbers for m and c as well, but they are not the answer yet. g has two unknown letters, m and c, and so far it only has one fact. Many different lines go through one point, so Desmos is just picking one of them. The next fact fixes that.

Step 6: Add the fourth fact

[f(4),f(k),g(k),g(7)]∼[11,-7,-6,39]

The last fact is g(7) = 39. Add g(7) at the end of the left bracket and 39 at the end of the right bracket.

RMSE = 0 means all four facts are matched exactly.

On the graph, the blue line g goes through (−2, −6) and (7, 39). Check the slope: it rises 39 − (−6) = 45 while x goes up 7 − (−2) = 9, and 45 ÷ 9 = 5.

Choice B, 3, is the slope of f, not g.

Why this helps: Now g has two facts, and two points pin down one line. Desmos shows b = −1, k = −2, m = 5 and c = 4. The slope of g is m, so the slope is 5. The answer is C.

Hand explanation

Step 1: See what the two functions share

Both functions use the same unknown input k. Function g gives two points, (k, −6) and (7, 39), which is enough for a slope once k is a number. So the plan is: use function f to find k, then use k in function g.

f: (k, −7) and (4, 11), slope 3
g: (k, −6) and (7, 39), slope ?

Step 2: Use the slope of f to find k

Slope is the change in y divided by the change in x. For f, going from (k, −7) to (4, 11), y changes by 11 − (−7) = 18. The slope is 3, so 18 divided by the change in x must be 3. That makes the change in x equal to 6.

(11 − (−7)) ÷ (4 − k) = 3
18 ÷ (4 − k) = 3
4 − k = 6

Step 3: Write down k

If 4 − k = 6, then k = −2. Quick check: from x = −2 to x = 4 is 6 steps, and 6 steps at slope 3 raises y by 18, from −7 to 11. That matches.

k = −2

Step 4: Put k into function g

Now g(k) = −6 means g(−2) = −6. So line g passes through (−2, −6) and (7, 39). Be careful subtracting the negatives: 39 − (−6) is 45 and 7 − (−2) is 9.

(39 − (−6)) ÷ (7 − (−2))
45 ÷ 9 = 5

Step 5: Choose the slope of g

The slope of the graph of y = g(x) is 5. The choices −2 and 3 are traps: −2 is the value of k and 3 is the slope of the other function, f.

Answer: C, 5

Step 6: Your answer

Go back to the question and choose the slope of the graph of y = g(x).

Check your answer

k = −2, and the slope of g is 45 ÷ 9 = 5.

Show answer

5

Related practice