The quadratic formula x=2a−b±b2−4ac solves any quadratic equation directly from a, b, c.
x=2a−b±b2−4ac
Quick Answer
The quadratic formula x=2a−b±b2−4ac solves any quadratic equation directly from a, b, c. Use it when you need the exact solutions of ax2+bx+c=0 and the quadratic doesn't factor neatly, as with x2+4x−1=0, whose roots −2±5 no amount of guessing would find. First move every term to one side so the other side is 0, read off a, b and c with their signs, then substitute. The ± gives two roots, one for each sign.
Why This Matters
Factoring only works when the roots are tidy, and real problems rarely are: the moment a ball lands or the width of a picture frame often comes out as a decimal like 3.51. The formula always works, and the part under the root, b2−4ac, tells you in advance whether there are two real answers, one, or none. Without it, you can spend a long time hunting for factors that don't exist.
Intuitive Explanation
The formula is completing the square done once, in general, so you never have to repeat it. Its first part, −2ab, is the axis of symmetry of the parabolay=ax2+bx+c. The ±2ab2−4ac part is how far to the left and right of that axis the parabola crosses the x-axis. So the two roots always sit the same distance either side of the axis.
Take x2−6x+5=0, with a=1, b=−6, c=5. The axis is at x=26=3, and b2−4ac=36−20=16, so the roots are 3±24, which gives 5 and 1. Both are 2 units from 3, just as the symmetry promised.
The discriminantb2−4ac predicts the outcome. Positive means two real roots. Zero means one repeated root, where the vertex just touches the axis, as in x2−6x+9=0 with root 3. Negative means no real roots, because the parabola never reaches the axis: x2+2x+5=0 has b2−4ac=4−20=−16, and its roots are complex numbers.
Not every quadratic needs the formula. x2+5x+6 factors as (x+2)(x+3) in seconds, and x2=49 is solved by a square root, x=±7. And x2+3x=10 isn't ready yet: move the 10 across first to get x2+3x−10=0, or you will use the wrong c.
Think of it like this.The formula is a set of directions to the roots: stand on the parabola's axis at x=−2ab, then step the same distance, 2ab2−4ac, to the left and to the right. If b2−4ac is negative there is no real step to take, which matches a parabola that never meets the x-axis.
Core idea.The quadratic formula gives the exact solutions of ax2+bx+c=0 from its three coefficients.
When to Use
Use the formula when an equation has an x2 term and no higher powers, and you need exact roots or solutions, especially when the numbers are awkward or the problem asks you to round the answer. Rearrange to ax2+bx+c=0 first. If it factors with small integers, factoring is faster; if there is no x term, as in x2=k, take square roots; if you only need to know how many roots there are, compute the discriminant alone.
Tip.Ask: Do I have a quadratic equation set to zero whose exact solutions I need?
How to Recognize It
Before substituting into the formula, check that the equation is a quadratic in standard form and that the formula is the quickest route to what is asked.
1.
Is the highest power of the unknown exactly 2, with every term moved to one side?
If yes, read off a, b and c with their signs: 3x2=5x+2 becomes 3x2−5x−2=0, so b=−5 and c=−2. If there is an x3 term, this formula does not apply.
2.
Can you find two integers that multiply to ac and add to b?
If yes, factoring is usually faster and gives the same roots. If a quick search fails, the formula still works every time, including for irrational roots such as 1±3.
3.
Is b=0, as in 2x2−18=0, or c=0, as in x2−7x=0?
If b=0, isolate x2=9 and take square roots, x=±3. If c=0, factor out x to get x(x−7)=0, so x=0 or x=7. Neither needs the formula.
4.
Does the question ask only how many real solutions there are?
If yes, you need only the discriminantb2−4ac: positive gives two, zero gives one, negative gives none. Working through the full formula would be wasted effort.
Quadratic Formula compared with Quadratic function, Factoring, and Discriminant
The quadratic function, factoring, the discriminant and the quadratic formula all start from the same three numbers a, b and c. Ask what you need back: a graph's shape, roots that split neatly, only a count of roots, or exact roots of any kind.
Quadratic Formula compared with Quadratic function, Factoring, and Discriminant
Type
Meaning
Key test
Formula
Example
Quadratic Formula
Use this when a quadratic equation is in the form ax2+bx+c=0 and you need its exact roots, especially when factoring is hard.
Do I have a quadratic equation set to zero whose exact solutions I need?
x=2a−b±b2−4ac
Solve x2−3x−10=0.
Quadratic function
The expression f(x)=ax2+bx+c; you study its graph, not solve it for zero.
Use when describing or graphing the parabola, not finding roots.
f(x)=ax2+bx+c
Find the vertex
Factoring
Rewrites the quadratic as a product to read off roots when it splits nicely.
Use first when integer factors are obvious.
x2+5x+6=(x+2)(x+3)
Roots −2,−3
Discriminant
The piece b2−4ac alone, telling how many real roots without solving.
Use when you only need the count/nature of roots.
Δ=b2−4ac
Δ<0 means no real roots
Quadratic Formula
Meaning
Use this when a quadratic equation is in the form ax2+bx+c=0 and you need its exact roots, especially when factoring is hard.
Key test
Do I have a quadratic equation set to zero whose exact solutions I need?
Formula
x=2a−b±b2−4ac
Example
Solve x2−3x−10=0.
Quadratic function
Meaning
The expression f(x)=ax2+bx+c; you study its graph, not solve it for zero.
Key test
Use when describing or graphing the parabola, not finding roots.
Formula
f(x)=ax2+bx+c
Example
Find the vertex
Factoring
Meaning
Rewrites the quadratic as a product to read off roots when it splits nicely.
Key test
Use first when integer factors are obvious.
Formula
x2+5x+6=(x+2)(x+3)
Example
Roots −2,−3
Discriminant
Meaning
The piece b2−4ac alone, telling how many real roots without solving.
Key test
Use when you only need the count/nature of roots.
Formula
Δ=b2−4ac
Example
Δ<0 means no real roots
Formula & Notation
x=2a−b±b2−4ac
∀a,b,c∈R,a=0: the roots of ax2+bx+c=0 are x=2a−b±b2−4ac, lying in R iff b2−4ac≥0, and in C∖R otherwise.
How to read it:a, b, c are the coefficients of ax2+bx+c=0. The ± symbol produces two solutions. Δ=b2−4ac is the discriminant.
Worked Examples
Example 1 — Solve with the formula
Easy
Solve x2−3x−10=0.
Show the steps and the answer
Read the coefficients: a=1, b=−3, c=−10.
The equation is already set to 0, so the coefficients can be read straight off, signs included.
Compute the discriminant: b2−4ac=(−3)2−4(1)(−10)=9+40=49.
49 is positive, so there are two real roots, and because it is a perfect square they will be rational.
Substitute: x=2(1)−(−3)±49=23±7.
−b is +3 because b is −3.
Split the ±: 23+7=5 and 23−7=−2.
Each sign gives one root.
Check x=−2: (−2)2−3(−2)−10=4+6−10=0.
The negative root is the one most often lost, so it is the one worth testing.
Answer:x=5 or x=−2
Takeaway:Read a, b, c with their signs, compute b2−4ac first, and keep both signs of the ±.
Example 2 — Factors easily
Standard
Solve x2+5x+6=0.
Show the steps and the answer
Look for two numbers that multiply to 6 and add to 5: 2 and 3.
When a=1 and the numbers are small, a quick factor search is faster than the formula.
Factor: (x+2)(x+3)=0.
Expanding gives x2+3x+2x+6=x2+5x+6, so the factoring is right.
Set each factor to zero: x=−2 or x=−3.
A product is 0 only when one of its factors is 0.
Cross-check with the formula: 2−5±25−24=2−5±1, giving −2 and −3.
Both methods agree; the formula works here too, it just takes longer.
Answer:x=−2 or x=−3
Takeaway:The formula always works, but a discriminant that is a perfect square (here 1) is a hint that factoring would be quicker.
Example 3 — Find the mistake: not set to zero
Application
Solve 2x2+3x=5. Leo writes: "a=2, b=3, c=5, so x=4−3±9−40, and −31 means there are no real solutions." Find Leo's error and solve the equation.
Show the steps and the answer
Look at the right side: it is 5, not 0.
The formula solves ax2+bx+c=0; with 5 on the right, c can't be read off yet.
Subtract 5 from both sides: 2x2+3x−5=0, so c=−5.
Moving the 5 across changes its sign, which is the sign Leo missed.
Recompute the discriminant: b2−4ac=9−4(2)(−5)=9+40=49.
It is positive, so there are two real roots after all.
Solve: x=4−3±7, so x=44=1 or x=4−10=−2.5.
Dividing by 2a=4 applies to both choices of sign.
Check x=1 in the original equation: 2(1)2+3(1)=5.
Testing in the equation as first given catches setup errors like Leo's.
Answer:x=1 or x=−2.5
Takeaway:Move every term to one side before reading c; a wrong sign on c can turn two real roots into none.
Where You'll See It
When a thrown ball lands
A ball thrown upward at 9 m/s from a 2 m balcony has height h=−4.9t2+9t+2. Setting h=0, the formula gives t=−9.8−9±120.2, so t≈2.04 s or t≈−0.20 s. The negative time is before the throw, so the ball lands after about 2.04 s.
Choosing a picture frame width
A 20 cm by 30 cm photo gets a frame of equal width w all round, and the framed picture must cover 1,000 cm². Then (20+2w)(30+2w)=1000 simplifies to w2+25w−100=0, so w=2−25+1025≈3.51 cm; the other root is negative.
Common Mistakes
The slip:Using the formula before setting the equation to zero
Instead:rearrange to ax2+bx+c=0 first.
The slip:Mishandling signs of b in −b
Instead:if b=−4, then −b=+4.
The slip:Dropping the ± and reporting one root
Instead:the ± produces two solutions.
Mini Practice
Try these on your own. Tap Reveal when you want to check.
1.
Use the quadratic formula to solve x2+2x−15=0.
Hint:Identify a, b and c, and work out b2−4ac first.
2.
Solve 2x2−7x+3=0 using the quadratic formula.
Hint:Here a=2, so the bottom of the formula is 2a=4.
3.
Solve x2−4x+1=0 exactly.
Hint:The discriminant is not a perfect square, so simplify the square root.
4.
Solve 3x2=5x+2 using the quadratic formula.
Hint:Move every term to one side so the equation equals zero first.
5.
For x2+6x+13=0 you are asked only how many real solutions there are. Do you need the whole quadratic formula, or just the discriminant? Answer the question.
Hint:Which part of the formula decides whether real roots exist?
6.
For x2−8x+12=0, Jo writes x=2−8±64−48=2−8±4, so x=−2 or x=−6. Find the error and fix it.
Hint:If b=−8, what is −b?
Want the full set?
50 practice questions for this concept — free to try, every one with a complete worked
solution showing the why, not just the answer.
It is completing the square, done once for every quadratic. Divide ax2+bx+c=0 by a, move ac across, and add (2ab)2 to both sides, so the left side becomes (x+2ab)2 and the right side becomes 4a2b2−4ac. Take square roots of both sides, subtract 2ab, and the formula appears.
What happens when b2−4ac is negative?
No real number squares to a negative, so there are no real solutions, and the parabola never meets the x-axis. In later courses, −1 gets a name, i, and the formula then gives two complex solutions. For x2+2x+5=0, the discriminant is 4−20=−16, so x=2−2±4i=−1±2i.
Does the formula still work if a is negative?
Yes, it works for any a except 0, but the arithmetic is easier if you first multiply the whole equation by −1. Then −x2+6x−8=0 becomes x2−6x+8=0, which has the same roots, 2 and 4. Multiplying both sides of an equation by a nonzero number never changes its solutions, because dividing by that number undoes the step.
Why does the formula break down when a=0?
It would divide by 2a=0. But with a=0 the equation is bx+c=0, a linear equation, whose single solution is x=−bc when b=0. The formula is built for genuine quadratics only, which is exactly why the definition of a quadratic insists that a=0.
You need Quadratic Functions (parabolas, vertex, symmetry) and Square Roots (including simplifying 20=25) first. The formula adds a method that solves every quadratic equation, whether or not it factors. Next, the Discriminant studies b2−4ac on its own to count the roots, and Complex Numbers give meaning to the roots when b2−4ac is negative.