learn.howToCalculate
learn.whatIsHeading
The quadratic formula solves any equation ax² + bx + c = 0. The discriminant b²−4ac tells you how many real solutions exist before you solve.
Водич корак по корак
- 1Write in standard form: ax² + bx + c = 0
- 2Calculate discriminant: Δ = b² − 4ac
- 3Δ > 0: two real roots; Δ = 0: one root; Δ < 0: complex roots
- 4Apply: x = (−b ± √Δ) / 2a
Worked Examples
Инпут
x²−5x+6=0
Резултат
x=3 or x=2
Δ=1>0, two roots
Инпут
x²−2x+1=0
Резултат
x=1 (repeated)
Δ=0, one root
Инпут
x²+x+1=0
Резултат
Complex roots
Δ=−3<0