The **Quadratic Formula** is a mathematical formula used to find the x-intercepts for a quadratic function, or parabola. When

With being the variable and , and being constant, the quadratic equation is:

This is one possible method to determine the x-intercepts. They can also be found by completing the square, factoring or graphing. For the simpler formula where .

## Discriminant

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: