A solution of the quadratic equation is a number that satisfies the equation when substituted for
Every quadratic equation, if complex numbers are allowed as solutions, has exactly two (possibly coincident) solutions, also called roots of the equation. Considering only the real numbers, a quadratic equation has zero to two solutions.
Number of real zeros
The number of solutions can be determined with the help of the so-called discriminant
(from Latin "discriminare" = "to distinguish"). In the general case
, in the normalized case
(for derivation see below):
The graph shows the relationship between the number of real zeros and the discriminant:
- A Discriminant positive: The parabola has two intersections with the
axis, so there are two distinct real zeros
and 
- B discriminant zero: The parabola has exactly one point of contact with the
axis, namely its vertex. Thus, there is exactly one (double) real solution. The quadratic equation
reduced to the form 
- C Discriminant negative: The parabola has no intersection with the
axis, there are no real solutions of the quadratic equation. If we allow complex numbers as the basic set for the solutions, we get two different complex solutions. These are conjugate to each other, that is, they have the same real part and their imaginary parts differ only by the sign.
Simple special cases
If the coefficient of the linear element
or the absolute element
then the quadratic equation can be solved by simple equivalent transformations without the need for a general solution formula.
Missing linear element
The purely quadratic equation
with
is equivalent to

The solutions are

In the case
two solutions exist. In the case 
solutions exist for c a > The complex solutions are then

For example, the equation
has the solutions
. The equation
has no real solutions, the complex solutions are 
The case
and because of
therefore
, i.e. a double solution, exists only for equations of the type
with
and it is
.
Missing constant link
From the equation
by bracketing.
, i.e.,
or must
hold. The two solutions are therefore
and 
For example, the equation
has solutions
and 
Equation in vertex form
The vertex shape

is a variation of the pure quadratic equation
. Like the latter, it can be solved by "backward arithmetic": First subtract
and divide by
. This leads to

For
it follows that

By adding
we get the solutions
and 
For
we get the two complex solutions accordingly
and 
Example:

Solve with quadratic complement
When solving with quadratic addition, the binomial formulas are used to take a quadratic equation in general or normal form to the vertex form, which can then be easily solved.
One uses the first or second binomial formula in the form 
To do this, the quadratic equation is transformed so that the left side has the form
Then
added to both sides. This is the "quadratic addition". The left-hand side now has the form
and can be transformed by the binomial formula to
Then the equation is in the vertex form which is easy to solve.
This is best explained with a concrete numerical example. The following quadratic equation is considered

First, the equation is normalized by dividing by the conductance coefficient (here 3):

The constant element (here 6) is subtracted on both sides:

Now follows the actual quadratic addition: The left side must be completed in such a way that a binomial formula (here the second one) can be applied backwards. The
from the binomial formula above is then
, so on both sides of the equation must be
added:

The left side is transformed according to the binomial formula, the right side is simplified:

This leads to
,
so to the two solutions
and 
General solution formulas
One can also solve quadratic equations by using one of the general solution formulas derived using quadratic addition.
Solution formula for the general quadratic equation (a-b-c formula)
The solutions of the general quadratic equation
are:

The formula is colloquially called the "midnight formula" in parts of Germany and Switzerland because students are supposed to be able to recite it even if you wake them up at midnight and ask them for the formula. In Austria, the expression große Lösungsformel is commonly used.
Alternative forms
Alternative formulations of the a-b-c formula, more similar to the p-q formula discussed below, are:

If you write the quadratic equation in the form

(i.e. with β
), the somewhat simpler solution formula is obtained:

By extending the a-b-c formula with the term
you get a formula which is also
applicable for the linear case the case
the calculation of the solution
cannot be done because of a division by zero. In both cases, the solution formula is not needed anyway. However, for very small
the alternative form is more robust to numerical cancellation.

Solution of the a-b-c formula with negative discriminant
If the discriminant
introduced above is negative, the root of a negative number must be calculated for the solutions. In the number domain of the real numbers there are no solutions for this. In the complex number domain,
. This term determines the imaginary part of the two conjugate solutions, once with positive sign, once with negative sign. The term before with
becomes the constant real part of the two solutions:
(complex case with negative discriminant).

Derivation of the a-b-c formula
From the general form, transforming by the method of quadratic addition yields:
![{\begin{array}{rcll}ax^{2}+bx+c&=&0&|-c\\[1ex]ax^{2}+bx&=&-c&|{}\cdot 4a\\[1ex]4a^{2}x^{2}+4abx&=&-4ac&|+b^{2}{\text{ (quadratische Ergänzung)}}\\[1ex](2ax)^{2}+2\cdot 2ax\,b+b^{2}&=&b^{2}-4ac&|{\text{ Umformen mit binomischer Formel}}\\[1ex](2ax+b)^{2}&=&b^{2}-4ac&|\pm {\sqrt {\quad }}\\[1ex]2ax+b&=&\pm {\sqrt {b^{2}-4ac}}&|-b\\[1ex]2ax&=&-b\pm {\sqrt {b^{2}-4ac}}&|:(2a)\\[1ex]x&=&{\dfrac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}&\end{array}}](https://www.alegsaonline.com/image/5d03d32cc54fca36f4359c43d82ce1711a8cb4e9.svg)
Calculation example
Given is the quadratic equation
.
Here
and
. Substituting these values into the a-b-c formula, we get the solutions
.
Solution formula for the normal form (p-q formula)
In the presence of the normal form
the solutions are according to the p-q formula:

In Austria, this formula is known as the small solution formula.
Solution of the p-q formula with negative discriminant
As with the a-b-c formula, if
negative, there are no solutions in the number domain of the real numbers. The complex solutions are then given by:

Derivation of the p-q formula
The formula is obtained from the normal form of the quadratic equation by quadratic addition:
![{\displaystyle {\begin{array}{rcll}x^{2}+px+q&=&0&|-q\\[1ex]x^{2}+px&=&-q&|+\left({\dfrac {p}{2}}\right)^{2}{\text{ (quadratische Ergänzung)}}\\[1ex]x^{2}+2\cdot {\dfrac {p}{2}}\ x+\left({\dfrac {p}{2}}\right)^{2}&=&\left({\dfrac {p}{2}}\right)^{2}-q&|{\text{ binomische Formel}}\\[1ex]\left(x+{\dfrac {p}{2}}\right)^{2}&=&\left({\dfrac {p}{2}}\right)^{2}-q&|{\text{ Wurzel ziehen}}\\[1ex]\left|x+{\dfrac {p}{2}}\right|&=&{\sqrt {\left({\dfrac {p}{2}}\right)^{2}-q}}&|{\text{ Betrag auflösen}}\\[1ex]x+{\dfrac {p}{2}}&=&\pm {\sqrt {\left({\dfrac {p}{2}}\right)^{2}-q}}&|-{\dfrac {p}{2}}\\[1ex]x&=&-{\dfrac {p}{2}}\pm {\sqrt {\left({\dfrac {p}{2}}\right)^{2}-q}}\end{array}}}](https://www.alegsaonline.com/image/0448f3274d478a48dfb6b9359f160992af360ae2.svg)
Another way to derive the formula is to set in the a-b-c formula
,
and
and draw the denominator 2 into the root.
Decomposition into linear factors
The solutions can be used to decompose the quadratic normalized polynomial into linear factors:

and the non-standardized in

Vieta set
If the quadratic equation is in normal form and has the solutions
and
, then

By comparing coefficients, we obtain Vieta's theorem
and 
In particular, if
and are
integers, the solutions can often be found quickly with some practice by trying out whether pairs of divisors of
add up to
For example, for
one obtains the solutions
and
by decomposing
with 
Numerical calculation
If the solutions are determined numerically and differ from each other by orders of magnitude, the problem of cancellation can be avoided by the following variation of the above formulas:


Here has
the value
for
otherwise the value 1 {\displaystyle The first formula gives the largest-amount solution. The second formula is based on Vieta's theorem.
Examples
Calculation example
For the equation

the following solutions result according to the a-b-c formula
,
so
and 
To use the p-q formula, the general form is first converted to normal form by dividing the equation by 4:

The p-q formula gives the solutions
,
thus also
and 
Using the decompositions
and
we obtain the same solutions using Vieta's theorem.
More examples

For the discriminant
holds: the two real solutions
and 

The discriminant is
. The (double) real solution is 

There are no real solutions, because the discriminant is negative. The complex solutions result in
and
