Quadratic Equation Solver
Solve quadratic equations of the form axยฒ + bx + c = 0. Get real and complex roots with step-by-step solutions.
Solve Quadratic Equation
Enter the coefficients for the quadratic equation:
axยฒ + bx + c = 0
The Quadratic Formula
The quadratic formula is used to solve quadratic equations of the form axยฒ + bx + c = 0:
x = [-b ยฑ โ(bยฒ - 4ac)] / (2a)
The Discriminant
The expression inside the square root (bยฒ - 4ac) is called the discriminant and tells us about the nature of the roots:
- If ฮ > 0: Two distinct real roots
- If ฮ = 0: One repeated real root
- If ฮ < 0: Two complex roots
Example Solutions
Example 1: Two Real Roots
Solve: xยฒ + 5x + 6 = 0
a = 1, b = 5, c = 6
ฮ = 25 - 4ร1ร6 = 1
x = [-5 ยฑ โ1] / 2 = [-5 ยฑ 1] / 2
xโ = (-5 + 1) / 2 = -2
xโ = (-5 - 1) / 2 = -3
ฮ = 25 - 4ร1ร6 = 1
x = [-5 ยฑ โ1] / 2 = [-5 ยฑ 1] / 2
xโ = (-5 + 1) / 2 = -2
xโ = (-5 - 1) / 2 = -3
Example 2: One Real Root
Solve: xยฒ - 4x + 4 = 0
a = 1, b = -4, c = 4
ฮ = 16 - 4ร1ร4 = 0
x = [4 ยฑ โ0] / 2 = 4/2 = 2
ฮ = 16 - 4ร1ร4 = 0
x = [4 ยฑ โ0] / 2 = 4/2 = 2
Example 3: Complex Roots
Solve: xยฒ + 2x + 5 = 0
a = 1, b = 2, c = 5
ฮ = 4 - 4ร1ร5 = -16
x = [-2 ยฑ โ(-16)] / 2 = [-2 ยฑ 4i] / 2
xโ = -1 + 2i
xโ = -1 - 2i
ฮ = 4 - 4ร1ร5 = -16
x = [-2 ยฑ โ(-16)] / 2 = [-2 ยฑ 4i] / 2
xโ = -1 + 2i
xโ = -1 - 2i
Completing the Square
Another method to solve quadratic equations is completing the square:
axยฒ + bx + c = 0
xยฒ + (b/a)x = -c/a
xยฒ + (b/a)x + (b/(2a))ยฒ = -c/a + (b/(2a))ยฒ
(x + b/(2a))ยฒ = (bยฒ - 4ac)/(4aยฒ)
x + b/(2a) = ยฑโ(bยฒ - 4ac)/(2a)
x = [-b ยฑ โ(bยฒ - 4ac)]/(2a)
xยฒ + (b/a)x = -c/a
xยฒ + (b/a)x + (b/(2a))ยฒ = -c/a + (b/(2a))ยฒ
(x + b/(2a))ยฒ = (bยฒ - 4ac)/(4aยฒ)
x + b/(2a) = ยฑโ(bยฒ - 4ac)/(2a)
x = [-b ยฑ โ(bยฒ - 4ac)]/(2a)
Applications
Quadratic equations appear in many real-world applications:
- ๐ Physics: Projectile motion and trajectories
- ๐ฐ Finance: Compound interest calculations
- ๐๏ธ Engineering: Structural analysis and optimization
- ๐ Business: Break-even analysis and profit maximization
๐ก Tip: Always check your solutions by substituting them back into the original equation to verify they work!