In the 2022 AMC 10A competition, Problem #16 connects polynomial roots, geometric volume, and Vieta's formulas:
Contest Problem Statement: "The roots of the polynomial $10x^3 - 39x^2 + 29x - 6$ are the height, length, and width of a rectangular box (right rectangular prism). A new rectangular box is formed by lengthening each edge of the original box by 2 units. What is the volume of the new box?"
Method 1: Factoring the Polynomial
Let the original dimensions be the three roots $r_1, r_2, r_3$. Using CodeByMath's symbolic factor() function:
Move the mouse over a dotted box for more information.
Both methods yield exactly 30, matching option (D) 30 on the 2022 AMC 10A exam.
Now you try.
Replace ???? with 2 in each factor and click Run to compute the new box volume (28.8). Then check Example 1 to see polynomial expansion! for the new box $(x - (r_1+2))(x - (r_2+2))(x - (r_3+2))$ looks!
Type your code here:
See your results here:
The code has ???? where each dimension is lengthened by 2. Replace ???? with 2 and click Run to compute the volume of the enlarged box!
Notice how Method 2 uses Vieta's formulas and polynomial evaluation: because $P(x) = 10(x - r_1)(x - r_2)(x - r_3)$, substituting $x = -2$ directly extracts the product of $(r_i + 2)$.
Share your code
Show a friend, family member, or teacher what you've done!