Problem 1 — Reconstruct a cubic from its graph
The graph below represents a polynomial function \( p(x) \) with real coefficients. The degree of \( p(x) \) is 3, and all zeros are integers. Find the equation for \( p(x) \).
Solution
Step 1 — Identify the x-intercepts and their multiplicities. The graph shows:
- \( x = -1 \) — where the graph touches the x-axis and turns around (even multiplicity, so 2 here since the degree is 3 and there's another intercept);
- \( x = 2 \) — where the graph crosses the x-axis (odd multiplicity, so 1).
Since the multiplicities must add up to the degree (3), the zero at \( -1 \) has multiplicity exactly 2. The general form is:
\[ p(x) = a(x + 1)^2(x - 2), \qquad a \ne 0 \]Step 2 — Use the y-intercept to find \( a \). The y-intercept is \( (0, -2) \), so \( p(0) = -2 \):
\[ a(0 + 1)^2(0 - 2) = -2 \] \[ -2a = -2 \implies a = 1 \]Final answer:
\[ p(x) = (x + 1)^2 (x - 2) \]Check: \( p(0) = (1)^2(-2) = -2 \) ✓; \( p(-1) = 0 \) (double root) ✓; \( p(2) = 0 \) ✓