How to Write a Quadratic Function When You Know Its Zeros
You’ve probably seen the phrase “zeros of a quadratic” in algebra class, but when someone asks you to write a quadratic function given its zeros, the answer isn’t always as obvious as it sounds. Let’s walk through how to do it step by step, why it matters, and what to watch out for. By the end, you’ll be able to whip up a quadratic from any pair of zeros in no time Took long enough..
What Is a Quadratic Function?
A quadratic function is just a polynomial of degree two: f(x) = ax² + bx + c where a ≠ 0. It’s the kind of curve that looks like a U or an upside‑down U, depending on whether a is positive or negative. The “zeros” (or roots) are the x‑values that make the function equal to zero—those are the points where the graph crosses the x‑axis That's the part that actually makes a difference..
Why Knowing the Zeros Is Useful
When you know the zeros, you already know two key points on the graph. In real life, that could mean the times a projectile lands, the temperatures at which a chemical reaction stops, or the points where a company’s profit dips to zero. If you can write the function right away, you can:
- Predict the shape of the graph with minimal effort.
- Quickly compute the vertex, axis of symmetry, or maximum/minimum value.
- Identify how changes in the leading coefficient a shift the graph up, down, or flip it.
How to Write It From the Zeros
The Factor Theorem
The factor theorem says that if r is a root of a polynomial, then (x – r) is a factor. So if the zeros are p and q, the polynomial must contain the factors (x – p) and (x – q). Multiply those together and you get the standard form:
No fluff here — just what actually works.
f(x) = k (x – p)(x – q)
- k is a non‑zero constant that controls the width and direction of the parabola.
- If you’re not told k, the simplest choice is k = 1 (unless you need a specific leading coefficient).
Expanding the Product
If you prefer the ax² + bx + c form, expand the product:
(x – p)(x – q) = x² – (p + q)x + pq
So the full function is:
f(x) = kx² – k(p + q)x + k·pq
That’s the general recipe. Plug in the numbers for p, q, and k and you’re done That's the part that actually makes a difference..
Common Mistakes / What Most People Get Wrong
-
Forgetting the constant k
Many people set k = 1 automatically, even when the problem specifies a different leading coefficient. Double‑check the question. -
Mixing up the signs
The coefficient of x is –k(p + q), not +k(p + q). A single sign slip changes the graph dramatically Easy to understand, harder to ignore.. -
Assuming the zeros are integers
Zeros can be fractions, decimals, or even irrational numbers like √2. Keep the algebra symbolic until you’re ready to plug in values Which is the point.. -
Overlooking repeated zeros
If p = q, the quadratic has a double root. The factor becomes (x – p)². That means the parabola just touches the x‑axis at p instead of crossing it. -
Confusing zeros with x‑intercepts
In a quadratic, zeros and x‑intercepts are the same thing, but in higher‑degree polynomials you can have complex zeros that don’t show up on the real graph.
Practical Tips / What Actually Works
- Start with the factor form. It’s the cleanest way to encode the zeros.
- Keep k symbolic until you need a specific value. That way you can adjust the graph’s width without re‑expanding everything.
- Check your work by plugging the zeros back in. If f(p) = 0 and f(q) = 0, you’re good.
- Use synthetic division if you’re given a zero and a polynomial, and you need to factor it.
- Visualize. Sketch the points (p,0) and (q,0) and draw a rough U‑shape to confirm the direction (up if k > 0, down if k < 0).
- Remember the vertex: For f(x) = k(x – p)(x – q), the vertex lies exactly halfway between p and q on the x‑axis, at x = (p + q)/2. The y‑value is f((p + q)/2).
FAQ
Q1: What if the zeros are complex numbers?
A1: The same formula works. The graph won’t cross the x‑axis, but the quadratic is still valid. Just keep the complex numbers in the factor form.
Q2: Can I choose any k I like?
A2: Yes, as long as k ≠ 0. Different k values stretch or compress the graph horizontally and vertically.
Q3: How do I handle a zero that repeats?
A3: Use a squared factor: f(x) = k(x – p)². The graph touches the axis at p Worth knowing..
Q4: Is there a shortcut to find b and c from zeros?
A4: Once you know p and q, b = –k(p + q) and c = k·pq. That’s faster than expanding the whole product.
Q5: What if I only know one zero?
A5: You need another piece of information, like the vertex or another point on the graph, to fully determine the quadratic.
Writing a quadratic function when you know its zeros is just a matter of remembering that each zero gives you a factor of (x – zero). Day to day, multiply those factors, add a non‑zero constant k, and you’ve got the function. Which means it’s a quick, reliable trick that saves time and keeps your algebra clean. So next time a problem hands you zeros, don’t hesitate—grab that factor form and let the numbers do the rest.
6. Using the Vertex to Pin Down k
Sometimes you’ll be given the zeros and a point that isn’t a zero—most commonly the vertex. Because the vertex lies halfway between the two zeros, you already know its x-coordinate:
[ x_v=\frac{p+q}{2}. ]
Plug this x-value into the factored form and set the result equal to the given y-coordinate of the vertex, (y_v). Solving for k is then a one‑step algebraic maneuver:
[ y_v = k\bigl(x_v-p\bigr)\bigl(x_v-q\bigr) = k\Bigl(\frac{p+q}{2}-p\Bigr)\Bigl(\frac{p+q}{2}-q\Bigr) = k\Bigl(\frac{q-p}{2}\Bigr)\Bigl(\frac{p-q}{2}\Bigr) = -k\frac{(q-p)^2}{4}. ]
Hence
[ k = -\frac{4y_v}{(q-p)^2}. ]
A negative k tells you the parabola opens downward, while a positive k tells you it opens upward. This formula is especially handy when the problem supplies a “lowest point” or “highest point” together with the zeros Worth keeping that in mind. And it works..
7. Dealing with Rational Zeros
If the zeros are fractions, say (p=\frac{m}{n}) and (q=\frac{r}{s}), you can still use the factor form directly:
[ f(x)=k\Bigl(x-\frac{m}{n}\Bigr)\Bigl(x-\frac{r}{s}\Bigr). ]
To avoid messy denominators, multiply each factor by its denominator before expanding:
[ f(x)=k\frac{1}{ns}\Bigl(nx-m\Bigr)\Bigl(sx-r\Bigr). ]
Now the polynomial’s coefficients are integers (up to the overall factor (\frac{k}{ns})), which is often preferable when you need to write the standard form (ax^2+bx+c) Most people skip this — try not to..
8. When the Leading Coefficient Is Prescribed
Occasionally a problem will tell you that the quadratic must have a specific leading coefficient, say (a=5). In the standard form (ax^2+bx+c), the leading coefficient is simply (k) because expanding (k(x-p)(x-q)) yields (k x^2 + \dots). Therefore set (k=a) and proceed:
And yeah — that's actually more nuanced than it sounds.
[ f(x)=5(x-p)(x-q). ]
If the problem also gives a point ((x_0,y_0)) that lies on the curve, plug it in to verify consistency; if it fails, you’ve either mis‑read the data or the problem is ill‑posed.
9. Graphing Check‑List
Before you close the notebook, run through this quick sanity‑check:
| Item | What to Verify |
|---|---|
| Zeros | Does (f(p)=0) and (f(q)=0)? Day to day, |
| Vertex | Is (x_v=(p+q)/2)? Even so, compute (y_v) and compare to any given vertex. |
| Opening | Sign of k matches “opens up” or “opens down”. |
| Stretch/Compression | Larger ( |
| Y‑intercept | Evaluate (f(0)=k\cdot(-p)(-q)=k,pq). Does it line up with any supplied y‑intercept? |
If every box checks out, you can be confident the quadratic is correct.
Bringing It All Together
Let’s wrap the whole process into a single, reusable recipe:
- Write the factor skeleton: (f(x)=k(x-p)(x-q)).
- Insert any extra information (vertex, leading coefficient, a point) to solve for k.
- Expand if needed to obtain (ax^2+bx+c). Use the shortcuts (b=-k(p+q)) and (c=k,pq) to save time.
- Validate by plugging the known zeros, vertex, and any other given points back into the function.
- Sketch the graph, marking the zeros, vertex, and y‑intercept for a quick visual sanity check.
Conclusion
Mastering the factor form of a quadratic turns a potentially confusing algebraic puzzle into a straightforward, almost mechanical procedure. By treating each zero as a factor, keeping the scaling constant k symbolic until the last possible moment, and leveraging the vertex’s midpoint property, you can construct, analyze, and graph any quadratic with confidence. Whether you’re tackling a textbook exercise, a standardized‑test question, or a real‑world modeling problem, this approach offers both speed and reliability—so the next time you’re handed a pair of zeros, you’ll know exactly how to turn them into a complete, polished quadratic function Worth keeping that in mind..