The quadratic formula is a single formula that solves every quadratic equation — no factoring required, no completing the square required. It works whether the solutions are integers, fractions, irrational numbers, or even complex numbers. If you learn one universal method for solving quadratics, this is it.
The formula is derived from completing the square on the general equation ax2+bx+c=0, so the technique you learned in the previous section is the mathematical foundation for what follows here.
The Formula
For any quadratic equation in standard form ax2+bx+c=0 (where a=0):
x=2a−b±b2−4ac
This formula produces two solutions (because of the ±):
x1=2a−b+b2−4acx2=2a−b−b2−4ac
The expression under the square root, b2−4ac, is called the discriminant. It determines the nature of the solutions — you will study it in detail in the next section.
Step-by-Step Process
Write the equation in standard form:ax2+bx+c=0.
Identifya, b, and c.
Substitute into the formula.
Simplify under the square root first (compute the discriminant).
Evaluate both solutions (the + case and the − case).
Simplify radicals and fractions if possible.
Examples with Integer Solutions
Example 1: x2+5x+6=0
Identify:a=1, b=5, c=6.
Substitute:
x=2(1)−5±52−4(1)(6)
Compute the discriminant:
b2−4ac=25−24=1
Solve:
x=2−5±1=2−5±1
x=2−5+1=2−4=−2x=2−5−1=2−6=−3
Answer:x=−2 or x=−3
This equation also factors as (x+2)(x+3)=0, confirming the result. The quadratic formula works even when factoring would have been quicker — it just takes a few more steps.
Example 2: 2x2−7x+3=0
Identify:a=2, b=−7, c=3.
Substitute:
x=2(2)−(−7)±(−7)2−4(2)(3)
x=47±49−24=47±25=47±5
x=47+5=412=3x=47−5=42=21
Answer:x=3 or x=21
Examples with Irrational Solutions
Example 3: x2−4x+1=0
Identify:a=1, b=−4, c=1.
x=24±16−4=24±12
Simplify the radical: 12=4⋅3=23.
x=24±23=2±3
Answer:x=2+3≈3.732 or x=2−3≈0.268
Notice we simplified the fraction by dividing every term in the numerator by 2. Always check if you can reduce.
Example 4: 3x2+2x−4=0
Identify:a=3, b=2, c=−4.
x=2(3)−2±4−4(3)(−4)=6−2±4+48=6−2±52
Simplify: 52=4⋅13=213.
x=6−2±213=3−1±13
Answer:x=3−1+13≈0.869 or x=3−1−13≈−1.535
When the Equation Is Not in Standard Form
You must rearrange before identifying a, b, and c.
Example 5: x2=6x−5
Step 1 — Move all terms to one side:
x2−6x+5=0
Identify:a=1, b=−6, c=5.
x=26±36−20=26±16=26±4
x=210=5x=22=1
Answer:x=5 or x=1
Example 6: 4x2+9=12x
Rearrange:4x2−12x+9=0.
Identify:a=4, b=−12, c=9.
x=812±144−144=812±0=812=23
Answer:x=23 (one repeated solution). The discriminant is zero, meaning the parabola touches the x-axis at exactly one point.
Choosing the Best Method
You now have four methods for solving quadratics. Here is when to use each:
Method
Best when…
Factoring
The equation factors easily over the integers
Square root method
No linear x term — equation has the form (expression)2=k
Completing the square
You need vertex form, or the equation almost forms a perfect square
Quadratic formula
The equation does not factor easily, or you want a guaranteed method
The quadratic formula always works, but it can be slower than factoring for simple problems. Develop the judgment to pick the fastest approach for each equation.
Real-World Application: Electrician — Calculating Power in a Circuit
In electrical work, the power formula for a resistive circuit is:
P=I2R
where P is power in watts, I is current in amps, and R is resistance in ohms. An electrician is designing a circuit where the total power must not exceed 1,800 watts and the resistance is 8 ohms. What is the maximum current?
Setting up the equation:
I2⋅8=1800
I2=225
I=15 amps
Now consider a more complex scenario. The power consumed by two series components is modeled by:
P=2I2+5I
If the total power dissipated is 63 watts, find the current:
2I2+5I=63
2I2+5I−63=0
Identify:a=2, b=5, c=−63.
I=4−5±25+504=4−5±529=4−5±23
I=418=4.5orI=4−28=−7
Current cannot be negative in this context, so I=4.5 amps.
Answer: The current is 4.5 amps. The electrician would verify this is within the ampacity rating of the conductor and the breaker size.
An HVAC Application: Sizing a Heat Exchanger
An HVAC engineer models the heat transfer rate Q (in BTU/hr) through a heat exchanger as:
Q=−0.5T2+30T+200
where T is the temperature difference in degrees Fahrenheit between the hot and cold fluids. At what temperature difference does the heat transfer rate reach 500 BTU/hr?
−0.5T2+30T+200=500
−0.5T2+30T−300=0
Multiply by −2 to clear the decimal:
T2−60T+600=0
Identify:a=1, b=−60, c=600.
T=260±3600−2400=260±1200
Simplify: 1200=400⋅3=203≈34.64.
T=260±203=30±103
T≈30+17.32=47.32orT≈30−17.32=12.68
Answer: The heat transfer rate reaches 500 BTU/hr at temperature differences of approximately 12.7 degrees F and 47.3 degrees F. The technician would operate the system near the lower value for energy efficiency.
Common Mistakes to Avoid
Getting the sign of b wrong. In the formula, the first term in the numerator is −b. If b=−7, then −b=7 (positive). If b=5, then −b=−5. Be meticulous with the negative sign.
Forgetting to write the equation in standard form. The values of a, b, and c come from ax2+bx+c=0. If your equation is x2=3x+10, you must rearrange to x2−3x−10=0 first.
Computing b2−4ac incorrectly. This is the most error-prone step. Remember that (−7)2=49 (not −49), and −4(2)(−3)=+24 (two negatives make a positive). Write out the arithmetic carefully.
Putting the ± only on part of the numerator. The formula is 2a−b±b2−4ac. The entire numerator is divided by 2a, not just the square root term. Use parentheses to keep everything together.
Not simplifying the final answer. Always reduce fractions and simplify radicals. The answer 24±23 should be simplified to 2±3.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Solve x2−3x−10=0 using the quadratic formula
a=1, b=−3, c=−10
x=23±9+40=23±49=23±7
x=5orx=−2
Answer:x=5 or x=−2
Problem 2: Solve 2x2+3x−5=0
a=2, b=3, c=−5
x=4−3±9+40=4−3±49=4−3±7
x=44=1orx=4−10=−25
Answer:x=1 or x=−25
Problem 3: Solve x2+2x−7=0
a=1, b=2, c=−7
x=2−2±4+28=2−2±32=2−2±42=−1±22
Answer:x=−1+22≈1.83 or x=−1−22≈−3.83
Problem 4: Solve 3x2=5x+2
Rearrange: 3x2−5x−2=0
a=3, b=−5, c=−2
x=65±25+24=65±49=65±7
x=612=2orx=6−2=−31
Answer:x=2 or x=−31
Problem 5: An electrician models the power consumption of a motor circuit as P=3I2+10I. If the power reading is 48 watts, find the current I.
3I2+10I=48
3I2+10I−48=0
a=3, b=10, c=−48
I=6−10±100+576=6−10±676=6−10±26
I=616=38≈2.67orI=6−36=−6
Current is positive, so I=38≈2.67 amps.
Answer: The current is approximately 2.67 amps.
Problem 6: Solve x2−8x+16=0 and explain what the result means geometrically
a=1, b=−8, c=16
x=28±64−64=28±0=4
Only one solution: x=4 (a repeated root).
Geometric meaning: The parabola y=x2−8x+16 touches the x-axis at exactly one point, (4,0). The vertex sits right on the x-axis.
Answer:x=4 (double root)
Key Takeaways
The quadratic formula x=2a−b±b2−4ac solves any quadratic equation in standard form
Always write the equation as ax2+bx+c=0 first, then read off a, b, and c — be careful with signs
The discriminant b2−4ac tells you the nature of the solutions before you finish calculating
Simplify your answer: reduce fractions and simplify radicals like 12=23
Factoring is faster when it works, but the quadratic formula is the guaranteed universal method
In applied problems, check whether negative solutions make physical sense — often only the positive root applies
Return to Algebra 1 for more topics in this section.