Advanced Math · Challenge · 3–4 min

Nonlinear functions

Question HB2-ADV-009

f(x)=(x−a)(x−b)f(x) = (x − a)(x − b)

The function f is defined by the given equation, where a and b are integers. If f(14)>0f(14) > 0, f(19)<0f(19) < 0 and f(64)>0f(64) > 0, what is a possible value of a + b?

  1. 3535
  2. 3333
  3. 3232
  4. 8484
Solve in the interactive workspace →

Step-by-step explanation

Let Desmos try every whole number for a, then keep the ones that fit

Step 1: Type the function

f(x)=(x-a)(x-b)

Start by copying the function exactly as the question gives it: f(x) = (x − a)(x − b).

Desmos offers to add sliders for a and b. Leave them alone. We do not know a or b yet, and the next lines tell Desmos what to try.

Why this helps: Here is what a and b mean. If x equals a, the first bracket is 0, so f is 0. If x equals b, the second bracket is 0, so f is 0. So a and b are the two places where the graph touches the x-axis. The graph is a U shape. It is below 0 only between a and b, and above 0 everywhere else.

Step 2: Give Desmos every whole number to try for a

a=[1...100]

The question says a and b are integers, which means whole numbers. So instead of guessing one value for a, hand Desmos a whole list of them. Type a = [1...100].

Why stop at 100? The clues only talk about 14, 19 and 64, so the two crossing points have to be somewhere near those. 100 is safely past all of them.

Why this helps: How to read it: square brackets make a list. The three dots mean “keep counting”. So [1...100] is 1, 2, 3, and so on up to 100. Now a is not one number. It is 100 numbers, and Desmos will test all of them at once.

Step 3: Tell Desmos the answer choice

b=35-a

Now use an answer choice. Choice A says a + b = 35. If two numbers add to 35 and one of them is a, the other has to be what is left: 35 − a. Type b = 35 − a.

The graph fills with curves. That is Desmos drawing one U shape for each pair, 100 of them. You can ignore the graph for this method. The answer shows up under the next line.

Why this helps: Because a is a list, b becomes a list too. Each a gets its own partner: a = 1 goes with b = 34, a = 2 goes with b = 33, and so on. Every pair adds to 35. So Desmos now holds every way two whole numbers can add to 35.

Step 4: Keep only the a’s that pass the first clue

a[f(19)<0]

Start with one clue: f(19) < 0. Type a[f(19) < 0].

Desmos still shows a long list, because many pairs pass this one clue. For example a = 1, b = 34 passes: 19 sits between 1 and 34, where the U shape dips below 0. One clue is not enough, so the next step adds the other two.

Why this helps: How to read it: square brackets right after a list name mean “keep only the entries that pass this test”. So this says: from the list a, keep each number where f(19) comes out below 0. Desmos checks all 100 pairs for you.

Step 5: Add the other two clues to the same line

a[f(19)<0<min(f(14),f(64))]

The other clues are f(14) > 0 and f(64) > 0. Click back into the same line and extend it to a[f(19) < 0 < min(f(14), f(64))].

Why not just type the three clues with commas between them? Desmos only allows one test inside the square brackets, and commas give a warning. Chaining the clues with < and using min packs all three into one test.

Desmos now shows 15 and 20. Those are the two numbers themselves: a = 15 with b = 20, or the same pair swapped. Check it: 14 is left of both, so f(14) is positive. 19 is between them, so f(19) is negative. 64 is right of both, so f(64) is positive. All three clues fit, so a + b = 35 is possible.

Why this helps: Read it left to right like a number line: f(19) is below 0, and 0 is below min(f(14), f(64)). min picks the smaller of the two numbers inside it. If even the smaller one is above 0, then both are above 0. So “0 < min(f(14), f(64))” is a short way to say “f(14) and f(64) are both positive”.

Step 6: See what a wrong choice looks like

b=33-a

On the test you can stop here: the question asks for a possible value, and 35 works, so the answer is A. To see why the others fail, change the 35 in the b line to choice B: b = 33 − a.

The reason: the smaller crossing has to be after 14 and before 19, so it is at least 15. The bigger crossing has to be after 19 and before 64, so it is at least 20 and at most 63. The smallest sum is 15 + 20 = 35 and the largest is 18 + 63 = 81. So 32 and 33 are too small and 84 is too big. The answer is A, 35.

Why this helps: The last line now says empty list. Not one of the 100 pairs that add to 33 passes all three clues, so 33 is impossible. The same thing happens if you type 32 or 84. Only 35 leaves numbers in the list.

Hand explanation

Step 1: Put the two integer roots in order, calling the smaller one r and the larg…

Put the two integer roots in order, calling the smaller one r and the larger one s. The product (x−r)(x−s) is negative only between the roots: one factor is positive and the other negative there.

Step 2: Since f(19)<0, we have r<19<s

Since f(19)<0, we have r<19<s. The positive value at 14 places 14 before the smaller root, and the positive value at 64 places 64 after the larger root.

Step 3: r can be 15 through 18, and s can be 20 through 63

Thus r can be 15 through 18, and s can be 20 through 63. Their smallest sum is 15+20=35 and their largest is 18+63=81.

Step 4: Of the offered choices, 35 is possible

Of the offered choices, 35 is possible: choose roots 15 and 20 and check all three signs.

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: 35

Show answer

35

Related practice