With being the variable and , and being constant, the quadratic equation is:
The number of x-intercepts, or solutions, can be determined by the value of the discriminant:
If the value is positive, there are always two real solutions.
If the value is zero, there is one solution.
If it is negative, there are no real solutions but two complex conjugate solutions.
Derivation by completing the square
Given the quadratic equation
Divide the equation by a:
Subtract the constant term c/a from both sides:
Add the square of b/2a to both sides to get a perfect square at the left hand side:
Factor the left hand side and simplify the right hand side:
Take the square root of both sides:
Solving for x gives the quadratic formula: