M
Math Coach Amy
Amy Ferguson Moncure

IB AI · 13D Direct and Inverse Variation and Cubic Models

Use the Model Carefully

Percentage error divides by the true value. A cubic on a closed interval is judged at the endpoints and at the turning points inside it.

Jump to section:

Divide by the true value. A cubic has no global maximum.

What to Remember

The denominator

Percentage error divides by the true value.

No global maximum

A cubic keeps rising or falling outside any turning points.

On an interval

Compare the endpoints with the turning points that sit inside.

A family

Three conditions on four coefficients leave a free parameter. Do not guess one cubic.

Easy

Easy

Percentage error.

Example
A model predicts 18. The true value is 20. Find the percentage error. Use the true value in the denominator.

Percentage error uses the true value, not the prediction, in the denominator.

error = 220 × 100

error = 10%

Answer: 10%

1
A model predicts 24. The true value is 30. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 630 × 100

error = 20%

Answer: 20%

2
A model predicts 9. The true value is 12. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 312 × 100

error = 25%

Answer: 25%

3
A model predicts 15. The true value is 12. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 312 × 100

error = 25%

Answer: 25%

4
A model predicts 7. The true value is 10. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 310 × 100

error = 30%

Answer: 30%

5
A model predicts 22. The true value is 25. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 325 × 100

error = 12%

Answer: 12%

Medium

Medium

The greatest value on an interval.

Example
On 0 ≤ x ≤ 4, f(x) = x³ − 6x² + 9x. A cubic has no global maximum. Find the greatest value on this closed interval.

Check the endpoints and the turning points inside the interval.

f′(x) = 3x² − 12x + 9 = 3(x − 1)(x − 3)

The derivative is 0 at x = 1 and x = 3, and both are inside the interval.

f(0) = 0

f(1) = 4

f(3) = 0

f(4) = 4

The greatest value on the interval is 4.

Answer: 4

1
A model predicts 11. The true value is 10. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 110 × 100

error = 10%

Answer: 10%

2
A model predicts 8. The true value is 10. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 210 × 100

error = 20%

Answer: 20%

3
A model predicts 45. The true value is 50. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 550 × 100

error = 10%

Answer: 10%

4
A model predicts 16. The true value is 20. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 420 × 100

error = 20%

Answer: 20%

5
A model predicts 27. The true value is 30. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 330 × 100

error = 10%

Answer: 10%

Hard

Hard

A family, not one cubic.

Example
f(0) = 0, f(1) = 4, and f(2) = 4. These are three conditions on four coefficients. Describe every cubic f(x) = ax³ + bx² + cx + d that fits. Do not pick one value of a.

f(0) = 0 fixes d.

d = 0

a + b + c = 4

8a + 4b + 2c = 4

Divide the third equation by 2, then subtract the second.

3a + b = −2

b = −2 − 3a

c = 6 + 2a

f(x) = ax³ + (−2 − 3a)x² + (6 + 2a)x

a is free. Three conditions do not pick one cubic.

Answer: f(x) = ax³ + (−2 − 3a)x² + (6 + 2a)x

1
A model predicts 14. The true value is 20. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 620 × 100

error = 30%

Answer: 30%

2
A model predicts 33. The true value is 30. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 330 × 100

error = 10%

Answer: 10%

3
On 0 ≤ x ≤ 4, f(x) = x³ − 6x² + 9x. A cubic has no global maximum. Find the greatest value on this closed interval.
Show Answer

Check the endpoints and the turning points inside the interval.

f′(x) = 3x² − 12x + 9 = 3(x − 1)(x − 3)

The derivative is 0 at x = 1 and x = 3, and both are inside the interval.

f(0) = 0

f(1) = 4

f(3) = 0

f(4) = 4

The greatest value on the interval is 4.

Answer: 4

4
A model predicts 6. The true value is 8. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 28 × 100

error = 25%

Answer: 25%

5
A model predicts 19. The true value is 20. Find the percentage error. Use the true value in the denominator.
Show Answer

Percentage error uses the true value, not the prediction, in the denominator.

error = 120 × 100

error = 5%

Answer: 5%

Want to go over a variation model together?

Book a Session with Amy