Advanced Math · Hard · 2–3 min

Quadratic functions

Question HB2-ADV-030

(x−k)2=(k−5a)(x−k)(x − k)^(2) = (k − 5a)(x − k)
In the given equation, a and k are constants, where k>5ak > 5a. The sum of the solutions to the equation is 3k+353k + 35. What is the value of a?

Student-produced response

Solve in the interactive workspace →

Step-by-step explanation

Inspect the intercepts, then fit every distinct root and its sum.

Step 1: Define the original equation as a zero-output function

f(x)=(x-k)2-(k-5a)(x-k)

The equation is (x−k)² = (k−5a)(x−k). Move everything to one side and name it: type f(x)=(x−k)²−(k−5a)(x−k).

a and k are still letters, so Desmos can’t draw f yet. Next we give them temporary example values just to look at the graph.

Why this helps: Wherever f(x) = 0, the two original sides are equal. So the solutions are where f crosses the x-axis.

Step 2: Temporarily set k to an allowed example

k=2

Type k=2. This is our own example value, not the answer.

The question says k > 5a, so our examples must follow that rule. With a = −1 next, 5a = −5, and 2 > −5.

Why this helps: We only want to see the graph so we can count how many solutions there are.

Step 3: Temporarily set a to an allowed example

a=-1

Type a=−1, another example value.

Any example values with k > 5a would work for this preview.

Why this helps: Now Desmos can draw f. These two rows are temporary. We’ll delete them before solving.

Step 4: Count the distinct x-intercepts

f(x)=(x-k)2-(k-5a)(x-k)

Look at the graph. It crosses the x-axis at 2 and 9. That’s 2 different solutions.

In general the solutions are k and 2k−5a. Since k > 5a, they’re always different. (x−k) shows up twice, but that doesn’t make a third solution.

Why this helps: So the fit will need two solution slots, x₁ and x₂.

Step 5: Delete the temporary a slider

f(x)=(x-k)2-(k-5a)(x-k)

Delete the a = −1 row.

The graph may disappear or show a warning. That’s expected until the fit is in.

Why this helps: A row like a = −1 locks a to that number. Deleting it lets the regression find a.

Step 6: Delete the temporary k slider

f(x)=(x-k)2-(k-5a)(x-k)

Delete the k = 2 row too.

Keep the f(x) row. Only the temporary example rows go.

Why this helps: Same reason: now Desmos is free to find k as well.

Step 7: Match zero output for root position 1

[f(x1)]∼[0]

A solution makes f equal 0. Type [f(x₁)] ~ [0]. x₁ is the first solution we want Desmos to find.

Type x_1 for x₁. One condition isn’t enough yet, so any numbers Desmos shows now are unfinished.

Why this helps: The brackets hold matching lists: the first item on the left goes with the first on the right. The ~ tells Desmos to adjust the unknowns until they match.

Step 8: Match zero output for root position 2

[f(x1),f(x2)]∼[0,0]

Add the second solution. Change the row to [f(x₁), f(x₂)] ~ [0, 0].

The comma adds another match. It doesn’t add the values together.

Why this helps: Now x₁ and x₂ both have to make f zero, using the same a and k.

Step 9: Append the given sum of solution inputs

[f(x1),f(x2),x1+x2]∼[0,0,3k+35]

They say the sum of the solutions is 3k + 35. Add x₁+x₂ on the left and 3k+35 on the right.

Everything stays in one row, so Desmos uses the same a and k for every match.

Why this helps: We add the solutions themselves (the x-values), not their outputs, which are 0.

Step 10: Force all root inputs to be different

[f(x1),f(x2),x1+x2]∼[0,0,3k+35]{x1<x2}

Add {x₁ < x₂} to the end of the row.

It also just names the left one x₁ and the right one x₂. Swapping them wouldn’t change the sum.

Why this helps: Without it, Desmos could put the same crossing in both slots. Then the “sum” would count one solution twice. The strict < forces two different solutions.

Step 11: Keep the original condition k>5a

[f(x1),f(x2),x1+x2]∼[0,0,3k+35]{x1<x2}{k>5a}

The question says k > 5a. Add {k > 5a} too.

A tiny RMSE isn’t enough on its own. The fit also has to follow every condition in the question.

Why this helps: This keeps Desmos inside the question’s rule. The first restriction keeps the solutions different; this one keeps the constants allowed. We need both.

Step 12: Read the requested value

a

Type a. Desmos gives a = −7.

The answer came from the fit, not from our example values 2 and −1.

Why this helps: Check: the solutions are k and 2k−5a, so their sum is 3k−5a. That equals 3k + 35 when −5a = 35, so a = −7.

Hand explanation

Step 1: Bring the right side to the left and factor the shared x−k

Bring the right side to the left and factor the shared x−k: (x−k)[(x−k)−(k−5a)]=0. Simplify the second factor to x−2k+5a.

Step 2: The roots are therefore k and 2k−5a

The roots are therefore k and 2k−5a. Their sum is 3k−5a.

Step 3: Match the stated sum

Match the stated sum: 3k−5a=3k+35. Subtract 3k to get −5a=35, so a=−7.

Step 4: The given k>5a ensures the difference between the roots k−5a is positive, …

The given k>5a ensures the difference between the roots k−5a is positive, so we counted two different inputs.

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

-7

Show answer

-7

Brief video explanation

Use Desmos to fit the two roots and their sum.

Related practice