A zero of a function is any input value that makes the output of the function equal to zero. Which means graphically, these correspond to the x-intercepts of the graph—where the curve crosses or touches the horizontal axis. When a problem asks, "Which function has zeros of -1 and 2?", it is asking you to reverse-engineer an algebraic rule from its graphical roots.
This is a fundamental skill in algebra and precalculus, bridging the gap between polynomial arithmetic and function analysis. Whether you are preparing for a standardized test, sketching polynomial graphs, or solving real-world modeling problems, constructing a function from its zeros is a versatile tool.
The Core Concept: The Factor Theorem
The mathematical engine behind this process is the Factor Theorem. It states a simple but powerful equivalence:
A real number c is a zero of a polynomial function f(x) if and only if (x - c) is a factor of f(x).
Let’s break that down. That's why if x = -1 is a zero, then f(-1) = 0. According to the theorem, (x - (-1)), which simplifies to (x + 1), must be a factor. Similarly, if x = 2 is a zero, then (x - 2) must be a factor.
Because multiplication by zero yields zero, any function that contains these factors will automatically evaluate to zero at x = -1 and x = 2.
Constructing the Simplest Polynomial Function
The most direct answer to "which function has zeros of -1 and 2?Practically speaking, " is the polynomial of the lowest possible degree that possesses these zeros. Since we have two distinct zeros, the minimum degree is 2 (a quadratic).
We simply multiply the factors together:
$f(x) = (x + 1)(x - 2)$
Expanding this using the distributive property (often remembered by the FOIL method: First, Outer, Inner, Last):
- First: $x \cdot x = x^2$
- Outer: $x \cdot (-2) = -2x$
- Inner: $1 \cdot x = x$
- Last: $1 \cdot (-2) = -2$
Combine the like terms ($-2x + x = -x$):
$f(x) = x^2 - x - 2$
Verification:
- $f(-1) = (-1)^2 - (-1) - 2 = 1 + 1 - 2 = 0$ ✅
- $f(2) = (2)^2 - (2) - 2 = 4 - 2 - 2 = 0$ ✅
This quadratic, $f(x) = x^2 - x - 2$, is the parent function for this specific set of zeros. Its graph is a parabola opening upwards, crossing the x-axis exactly at -1 and 2.
The Infinite Family: The Leading Coefficient 'a'
The function $f(x) = x^2 - x - 2$ is not the only answer. In fact, there are infinitely many functions with zeros at -1 and 2 That alone is useful..
If you multiply the entire function by any non-zero constant a, the zeros remain unchanged. Why? Because $a \cdot 0 = 0$ for any value of a Not complicated — just consistent..
The general form for all quadratic functions with these zeros is:
$f(x) = a(x + 1)(x - 2)$
Where $a \in \mathbb{R}, a \neq 0$ Turns out it matters..
- If $a = 3$: $f(x) = 3x^2 - 3x - 6$ (Vertical stretch, same zeros).
- If $a = -1$: $f(x) = -x^2 + x + 2$ (Reflection over x-axis, same zeros).
- If $a = \frac{1}{2}$: $f(x) = \frac{1}{2}x^2 - \frac{1}{2}x - 1$ (Vertical compression, same zeros).
Key Takeaway: Unless the problem specifies additional conditions (like a specific y-intercept, a point the graph passes through, or "monic polynomial" where $a=1$), any function of the form $a(x+1)(x-2)$ is a correct answer.
Beyond Quadratics: Higher Multiplicity and Degree
The prompt asks for a function with zeros of -1 and 2. It does not explicitly state these are the only zeros, nor does it state the degree must be 2. This opens the door to polynomials of degree 3, 4, or higher Turns out it matters..
1. Multiplicity (Repeated Zeros)
A zero can occur more than once. This is called multiplicity. If a zero has multiplicity n, the factor appears n times.
-
Zero -1 (multiplicity 2), Zero 2 (multiplicity 1): $f(x) = a(x + 1)^2(x - 2)$ Degree 3 (Cubic). The graph will "bounce" off the x-axis at -1 and cross through at 2.
-
Zero -1 (multiplicity 1), Zero 2 (multiplicity 3): $f(x) = a(x + 1)(x - 2)^3$ Degree 4 (Quartic). The graph crosses at -1 and flattens as it crosses at 2 And it works..
2. Additional Distinct Zeros
The function could have other zeros not mentioned in the prompt (though usually, "has zeros of..." implies these are the real zeros, or the given zeros).
- Zeros: -1, 2, and 5: $f(x) = a(x + 1)(x - 2)(x - 5)$ Degree 3.
3. Complex Zeros
Polynomials with real coefficients can have complex zeros (involving i), which always come in conjugate pairs. These do not appear as x-intercepts on the real Cartesian plane.
- Zeros: -1, 2, $i$, $-i$: $f(x) = a(x + 1)(x - 2)(x^2 + 1)$ Degree 4. The real zeros are still only -1 and 2.
Non-Polynomial Functions
While polynomials are the standard context for "zeros," other function types can have zeros at -1 and 2 as well.
Rational Functions
A rational function is a ratio of polynomials: $R(x) = \frac{P(x)}{Q(x)}$. The zeros of a rational function are the zeros of the numerator $P(x)$, provided they are not also zeros of the denominator $Q