Solving Quadratic Equations Graphically
Problem
Solve x² − 5x + 6 = 0 by finding where the parabola y = x² − 5x + 6 crosses the x-axis.
Explanation
When you see an equation like , your algebra teacher wants a number — "what value of makes this true?" But there's a much more powerful way to think about it. The equation is asking a geometric question in disguise: where does a certain curve cross a certain line?
That shift from algebra to geometry is one of the most important mental moves you can learn in math. It's the whole reason Descartes invented coordinate geometry in the 1600s. Once you see it, quadratic equations stop feeling like a puzzle you have to solve by remembering tricks — they become a picture you can look at.
Let's unpack it step by step, and then solve four different ways so you can see every angle.
The big idea: two functions in disguise
When we write , there are secretly two different functions on the two sides of the equals sign:
- On the left: . This is a full curve — a parabola. For every value of , this function spits out some -value.
- On the right: . This is also a function, but a very simple one. It just always returns zero. Geometrically, it's the x-axis — a horizontal line sitting at height zero.
When we write , we're asking: where are these two functions equal? In other words, where does the parabola's height match the height of the x-axis (which is zero)?
So the solutions to the equation are exactly the x-coordinates where the parabola crosses the x-axis. Those crossing points are called "x-intercepts" or "zeros" or "roots" of the function — they're all different names for the same thing.
Go ahead and play with the , , sliders. Watch the parabola change shape. Anywhere it crosses the thick horizontal x-axis, that's a solution to the equation .
Why a parabola and not something else?
A quadratic equation is any equation where the highest power of is (not 3, not 4, not 5). The general form is:
The term is what makes it curve. Without it (if ), you'd just have , which is a straight line. With it, you get a parabola — a U-shape (or upside-down U-shape) that's symmetric around a central vertical axis.
Some useful facts about parabolas you can confirm with the sliders:
- If , the parabola opens upward (like a regular U). The vertex is the minimum point.
- If , it opens downward (like an upside-down U). The vertex is the maximum point.
- The bigger is, the narrower the parabola. Smaller makes it wider.
- Changing shifts the parabola sideways and up/down (not just sideways — it's a bit more subtle than that).
- Changing shifts the parabola straight up or down. Notice that is also the -intercept: plug in and you get .
Try setting , , then sliding . The parabola moves vertically like an elevator. Now try changing alone and watch: it slides the whole curve diagonally in a curved path.
The three cases: how many solutions can a quadratic have?
Here's a fantastic visual fact: a parabola can cross the x-axis in at most two places. That's because of its simple U-shape — it can dip below zero, cross to get below, and then cross back to get above, but that's it. There are exactly three possibilities:
Case 1: Two real solutions ()
The parabola crosses the x-axis at two different points. The part of the parabola between those two points is below the x-axis; the parts outside are above it (or the opposite, if the parabola opens downward). This is the most common case — and it's where we'll spend most of our time.
Case 2: One repeated solution ()
The parabola just barely touches the x-axis at exactly one point — the vertex. It doesn't cross through; it kisses the axis and heads back up. Algebraically, the two solutions collapse into a single value. We say the root has "multiplicity 2" or is "repeated."
Try the preset by setting , , . You'll see the parabola tangent to the x-axis at . That's the only solution to , because gives only .
Case 3: No real solutions ()
The parabola sits entirely above the x-axis (or entirely below, if ). It never crosses. Algebraically, you'd try to apply the quadratic formula and end up trying to take the square root of a negative number — which in ordinary real-number arithmetic is "not allowed."
Try , , . The parabola sits entirely above the x-axis with vertex at . The equation really does have no real solutions — you can see it clearly in the graph.
(In higher math, those "missing" solutions exist as complex numbers — but they don't show up anywhere on a real -plane, which is why the parabola doesn't cross the axis.)
The discriminant: predicting the case
Here's the crown jewel. There's a single number, called the discriminant, that tells you which of the three cases you're in without ever graphing:
- → two real solutions (parabola crosses twice)
- → one repeated solution (parabola kisses the axis)
- → no real solutions (parabola misses the axis)
Turn on Show discriminant in the controls and slide the coefficients around. Watch the discriminant box change color — green when positive, yellow when zero, red when negative. Those color changes match the three cases exactly.
Where does the discriminant come from? It's the expression inside the square root in the famous quadratic formula. We'll get to the formula in a minute, but here's a preview: if you try to solve in general, you'll wind up needing , and the behavior of that square root dictates everything.
Solving four different ways
Now let's actually solve our specific equation — the default problem shown on the graph. We'll use four methods, and all four will give exactly the same answer. Each one shows a different angle.
Method 1: Factoring
Factoring is the fastest method when the coefficients are nice. The idea: we try to rewrite as a product of two simpler pieces.
Look for two numbers that simultaneously:
- Multiply to
- Add to
The factor pairs of are . Let's check the sums:
- ❌
- ❌ (close — right magnitude, wrong sign)
- ❌
- ✓
So the two numbers are and . That means:
(If you don't believe me, expand it: . ✓)
Now the equation is:
A product of two things equals zero only if at least one of them is zero. So either:
or
Solutions: or .
Method 2: The quadratic formula
The quadratic formula handles any quadratic, even ugly ones that don't factor nicely with integers:
Identify the coefficients from : , , .
Step 1: Compute the discriminant.
Positive, so we expect two real solutions.
Step 2: Take its square root.
Step 3: Plug everything into the formula.
Step 4: Split into the two cases.
Solutions: or . Exact same answer as before.
Turn on Show quadratic formula in the controls and you'll see this computation performed live on whatever coefficients are currently set.
Method 3: Completing the square
This method rewrites the quadratic into vertex form , which reveals the geometry directly.
Step 1: Move the constant to the right side.
Step 2: Take half of the -coefficient, square it, and add it to both sides.
Half of is . Squared: .
Step 3: The left side is now a perfect square. Factor it.
Step 4: Take square roots of both sides (don't forget the !).
Step 5: Solve for .
Same answer. Bonus: this method also tells us the vertex of the parabola is at (the value we had to add to "complete" the square), with the minimum -value equal to .
Toggle Show vertex to confirm the yellow dot appears at .
Method 4: Graphing (what the visualization shows)
Set , , . Turn on Show roots. Two green circles appear on the x-axis — one at , one at . The parabola crosses through both of them. Those circles are the solutions.
Notice what the shape tells you:
- Between the two roots, the parabola is below the x-axis. Toggle Show shaded region and you'll see a pink-shaded area marking where — those are the -values for which is negative.
- Outside the roots (for and ), the parabola is above the axis. In that region, is positive.
- Exactly at and , it equals zero. Those are the solutions to the equation.
The vertex: where the parabola turns around
Every parabola has a single point where it reverses direction — either a lowest point (if ) or a highest point (if ). That point is called the vertex, and its -coordinate is given by a clean formula:
For our problem: .
Plug that back into the function to get the -coordinate:
So the vertex is at . Toggle Show vertex to see it marked.
Here's a beautiful thing you can check: the vertex's -coordinate, , is exactly halfway between the two roots (which are at and ). That's because parabolas are symmetric around a vertical line through their vertex — called the axis of symmetry. Toggle Show axis of symmetry to draw that dashed line at . Every point on the parabola has a mirror image across that line.
This symmetry gives you a handy shortcut for finding vertices: if you already know both roots and , the vertex's -coordinate is just their average, . No formulas needed.
Vertex form: the same parabola, a different address
If you run completing-the-square all the way through, you can rewrite any quadratic in vertex form:
where is the vertex. For our problem, we already found and , so:
Toggle Show vertex form to see this alternative equation displayed alongside the standard form. They describe the exact same curve — just two different ways of writing it. Standard form makes the -intercept easy to read (it's ); vertex form makes the vertex easy to read (it's ).
Both forms are useful in different situations:
- When you want to solve the equation (find roots), factoring or the quadratic formula on the standard form are easiest.
- When you want to describe the shape (find the vertex, determine max/min, understand transformations), vertex form is easiest.
Real-world connections
Quadratics and their solutions aren't just abstract algebra — they model real situations:
Projectile motion. If you throw a ball upward with velocity from height , its height at time is — a quadratic in . "When does it hit the ground?" means solving , which is a quadratic equation. The solutions (if there are two) correspond to the ball leaving the ground and returning to it.
Economics and profit maximization. A company's profit as a function of price is often modeled as a downward parabola (too cheap = low revenue per unit, too expensive = few customers). The vertex is the optimal price; the roots are the "break-even" prices where profit is zero.
Engineering — parabolic reflectors. Satellite dishes, car headlights, and flashlight reflectors are all shaped like parabolas because of a special property: all incoming parallel rays converge at the focus of the parabola. Designing them requires solving quadratics.
Physics — energy and binding. Many potential energy functions near equilibrium can be approximated as quadratics. The equilibrium point is the vertex; the "zero-energy" points are the roots.
Common mistakes to watch for
- Sign errors when factoring. gives , but also gives for the constant term. The middle term's sign tells you which. If you're unsure, expand your answer as a check — multiply it out and see if you recover the original.
- Forgetting the in the quadratic formula. This is the #1 most common mistake. The formula always gives two answers (except when the discriminant is zero). If you only write down one, you've dropped a solution.
- Confusing -intercepts with -intercepts. The -intercept is at , which evaluates to . For our problem, that's . The -intercepts are the solutions at and . They're totally different points on the graph. Turn on both Show roots and Show y-intercept simultaneously and you'll see the difference visually.
- Treating differently from . If you're asked to solve , you cannot just factor the left side. You have to first move the 4 to the left to get , and then solve. Only when the equation equals zero can you use the zero-product property.
- Assuming every quadratic factors nicely. Many don't. Some have irrational roots, some have complex roots. When factoring fails after a few tries, switch to the quadratic formula — it always works.
- Dropping a solution by dividing by . If you see , it's tempting to divide both sides by to get , so . But you've lost the solution ! The right move is to factor out the : , giving both and . Don't divide by something that might be zero.
Try it
- Sweep the slider from to . Watch how the parabola slides left and right, and how both roots move together in a synchronized dance around the vertex. The vertex itself follows a curved path (not a straight line), which is a fun thing to notice.
- Sweep up and down. This moves the parabola purely vertically, like an elevator. Starting from two real roots, watch them collide into a single repeated root as increases, then disappear entirely (no real roots) as keeps going up.
- Flip to negative. The parabola flips upside down. The roots (if any) stay where they were — because they depend only on where , not on which direction the parabola opens.
- Turn on the discriminant display and slide or just until the discriminant crosses zero. Watch the two roots collide, touch, then separate into nothing visible (imaginary). It's a great way to feel what the discriminant is telling you.
- Drag the probe slider. It's a draggable x-position; the visualization evaluates at that location and shows you the value. Hover over a root — the probe's -value should be exactly zero.
- Turn on every toggle at once. The HUD and graph get busy, but you'll see all the key pieces of a quadratic — equation, vertex, vertex form, roots, y-intercept, axis of symmetry, discriminant, quadratic formula — simultaneously. It's a complete picture of what the equation really means.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.