Question: What's the formula for quadratics?

Quadratic formula


In elementary algebra, the quadratic formula is the solution of the quadratic equation. There are other ways to solve the quadratic equation instead of using the quadratic formula, such as factoring, completing the square, or graphing. Using the quadratic formula is often the most convenient way.
The general quadratic equation is




a

x

2


+
b
x
+
c
=
0


.


{\displaystyle ax^{2}+bx+c=0\ \ .}


Here x represents an unknown, while a, b, and c are constants with a not equal to 0. One can verify that the quadratic formula satisfies the quadratic equation by inserting the former into the latter. With the above parameterization, the quadratic formula is: 




x
=



−
b
±



b

2


−
4
a
c




2
a





.


{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}\ \ .}


Each of the solutions given by the quadratic formula is called a root of the quadratic equation. Geometrically, these roots represent the x values at which any parabola, explicitly given as y = ax2 + bx + c, crosses the x-axis. As well as being a formula that will yield the zeros of any parabola, the quadratic formula will give the axis of symmetry of the parabola, and it can be used to immediately determine how many real zeros the quadratic equation has.
Derivations of the formula
By using completing the square method
The quadratic formula can be derived with a simple application of technique of completing the square.[1][2][3][4] The two derivations are as follows:
Method 1
Divide the quadratic equation by a, which is allowed because a is non-zero:





x

2


+


b
a


x
+


c
a


=
0


.


{\displaystyle x^{2}+{\frac {b}{a}}x+{\frac {c}{a}}=0\ \ .}


Subtract c/a from both sides of the equation, yielding:





x

2


+


b
a


x
=
−


c
a




.


{\displaystyle x^{2}+{\frac {b}{a}}x=-{\frac {c}{a}}\ \ .}


The quadratic equation is now in a form to which the method of completing the square can be applied. Thus, add a constant to both sides of the equation such that the left hand side becomes a complete square.





x

2


+


b
a


x
+


(


b

2
a



)


2


=
−


c
a


+


(


b

2
a



)


2




,


{\displaystyle x^{2}+{\frac {b}{a}}x+\left({\frac {b}{2a}}\right)^{2}=-{\frac {c}{a}}+\left({\frac {b}{2a}}\right)^{2}\ \ ,}


which produces:






(

x
+


b

2
a




)


2


=
−


c
a


+



b

2



4

a

2







.


{\displaystyle \left(x+{\frac {b}{2a}}\right)^{2}=-{\frac {c}{a}}+{\frac {b^{2}}{4a^{2}}}\ \ .}


Accordingly, after rearranging the terms on the right hand side to have a common denominator, we obtain:






(

x
+


b

2
a




)


2


=




b

2


−
4
a
c


4

a

2







.


{\displaystyle \left(x+{\frac {b}{2a}}\right)^{2}={\frac {b^{2}-4ac}{4a^{2}}}\ \ .}


The square has thus been completed. Taking the square root of both sides yields the following equation:




x
+


b

2
a



=
±




b

2


−
4
a
c



2
a





.


{\displaystyle x+{\frac {b}{2a}}=\pm {\frac {\sqrt {b^{2}-4ac\ }}{2a}}\ \ .}


Isolating x gives the quadratic formula:




x
=



−
b
±



b

2


−
4
a
c





2
a





.


{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac\ }}}{2a}}\ \ .}


The plus-minus symbol "±" indicates that





x

1


=



−
b
+



b

2


−
4
a
c




2
a





and



x

2


=



−
b
−



b

2


−
4
a
c




2
a





{\displaystyle x_{1}={\frac {-b+{\sqrt {b^{2}-4ac}}}{2a}}\quad {\text{and}}\quad x_{2}={\frac {-b-{\sqrt {b^{2}-4ac}}}{2a}}}


both are solutions of the quadratic equation.[5] There are many alternatives of this derivation with minor differences, mostly concerning the manipulation of a.
The quadratic formula may also be written as:




x
=



−
b


2
a



±





b

2


−
4
a
c


4

a

2








,


{\displaystyle x={\frac {-b}{2a}}\pm {\sqrt {\frac {b^{2}-4ac}{4a^{2}}}}\ \ ,}


which may be simplified to:




x
=
−


b

2
a



±




(


b

2
a



)


2


−


c
a






.


{\displaystyle x=-{\frac {b}{2a}}\pm {\sqrt {\left({\frac {b}{2a}}\right)^{2}-{\frac {c}{a}}}}\ \ .}


This version of the formula is convenient when complex roots are accepted. Then the expression outside the square root will be the real part and the square root expression will be the imaginary part. The expression inside the square root is a discriminant.
Some sources, particularly older ones, use alternative parameterizations of the quadratic equation such as ax2 − 2<i>bx + c = 0[6] or ax2 + 2<i>bx + c = 0,[7] where b has a magnitude one half of the more common one. These result in slightly different forms for the solution, but are otherwise equivalent.
A lesser known quadratic formula, as used in Muller's method, and which can be found from Vieta's formulas, provides the same roots via the equation:




x
=



−
2
c


b
∓



b

2


−
4
a
c





=



2
c


−
b
±



b

2


−
4
a
c








.


{\displaystyle x={\frac {-2c}{b\mp {\sqrt {b^{2}-4ac}}}}={\frac {2c}{-b\pm {\sqrt {b^{2}-4ac\ }}}}\ \ .}


Method 2
The majority of algebra texts published over the last several decades teach completing the square using the sequence presented earlier: (1) divide each side by a to make the equation monic, (2) rearrange, (3) then add (b/2<i>a)2 to both sides to complete the square.
As pointed out by Larry Hoehn in 1975, completing the square can be accomplished by a different sequence that leads to a simpler sequence of intermediate terms: (1) multiply each side by 4<i>a, (2) rearrange, (3) then add b2.[8]
In other words, the quadratic formula can be derived as follows: 








a

x

2


+
b
x
+
c



=
0




4

a

2



x

2


+
4
a
b
x
+
4
a
c



=
0




4

a

2



x

2


+
4
a
b
x



=
−
4
a
c




4

a

2



x

2


+
4
a
b
x
+

b

2





=

b

2


−
4
a
c




(
2
a
x
+
b

)

2





=

b

2


−
4
a
c




2
a
x
+
b



=
±



b

2


−
4
a
c






2
a
x



=
−
b
±



b

2


−
4
a
c






x



=



−
b
±



b

2


−
4
a
c




2
a





.






{\displaystyle {\begin{aligned}ax^{2}+bx+c&=0\\4a^{2}x^{2}+4abx+4ac&=0\\4a^{2}x^{2}+4abx&=-4ac\\4a^{2}x^{2}+4abx+b^{2}&=b^{2}-4ac\\(2ax+b)^{2}&=b^{2}-4ac\\2ax+b&=\pm {\sqrt {b^{2}-4ac}}\\2ax&=-b\pm {\sqrt {b^{2}-4ac}}\\x&={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}\ \ .\end{aligned}}}


This actually represents an ancient derivation of the quadratic formula and was known to the Hindus at least as far back as 1025.[9] Compared with the derivation in standard usage, this alternate derivation is shorter, involves fewer computations with literal coefficients, avoids fractions until the last step, has simpler expressions, and uses simpler mathematics. As Hoehn states, "it is easier 'to add the square of b' than it is 'to add the square of half the coefficient of the x term'".[8]
Many alternative derivations of the quadratic formula are in the literature. These derivations may be simpler than the standard completing the square method and represent interesting applications of other algebraic techniques or may offer insight into other areas of mathematics.
By substitution
Another technique is solution by substitution.[10] In this technique, we substitute x = y + m into the quadratic to get:




a
(
y
+
m

)

2


+
b
(
y
+
m
)
+
c
=
0


.


{\displaystyle a(y+m)^{2}+b(y+m)+c=0\ \ .}


Expanding the result and then collecting the powers of y produces:




a

y

2


+
y
(
2
a
m
+
b
)
+

(

a

m

2


+
b
m
+
c

)

=
0


.


{\displaystyle ay^{2}+y(2am+b)+\left(am^{2}+bm+c\right)=0\ \ .}


We have not yet imposed a second condition on y and m, so we now choose m so that the middle term vanishes. That is, 2<i>am + b = 0 or m = −b/2<i>a. Subtracting the constant term from both sides of the equation (to move it to the right hand side) and then dividing by a gives:





y

2


=



−

(

a

m

2


+
b
m
+
c

)


a




.


{\displaystyle y^{2}={\frac {-\left(am^{2}+bm+c\right)}{a}}\ \ .}


Substituting for m gives:





y

2


=



−

(




b

2



4
a



+



−

b

2




2
a



+
c

)


a


=




b

2


−
4
a
c


4

a

2







.


{\displaystyle y^{2}={\frac {-\left({\frac {b^{2}}{4a}}+{\frac {-b^{2}}{2a}}+c\right)}{a}}={\frac {b^{2}-4ac}{4a^{2}}}\ \ .}


Therefore,




y
=
±




b

2


−
4
a
c


2
a





{\displaystyle y=\pm {\frac {\sqrt {b^{2}-4ac}}{2a}}}


substituting x = y + m = y −b/2<i>a provides the quadratic formula




x
=



−
b
±



b

2


−
4
a
c




2
a





.


{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}\ \ .}


By using algebraic identities
The following method was used by many historical mathematicians:[11]
Let the roots of the standard quadratic equation be r1 and r2. The derivation starts by recalling the identity:




(

r

1


−

r

2



)

2


=
(

r

1


+

r

2



)

2


−
4

r

1



r

2




.


{\displaystyle (r_{1}-r_{2})^{2}=(r_{1}+r_{2})^{2}-4r_{1}r_{2}\ \ .}


Taking the square root on both sides, we get:





r

1


−

r

2


=
±


(

r

1


+

r

2



)

2


−
4

r

1



r

2






.


{\displaystyle r_{1}-r_{2}=\pm {\sqrt {(r_{1}+r_{2})^{2}-4r_{1}r_{2}}}\ \ .}


Since the coefficient a ≠ 0, we can divide the standard equation by a to obtain a quadratic polynomial having the same roots. Namely,





x

2


+


b
a


x
+


c
a


=
(
x
−

r

1


)
(
x
−

r

2


)
=

x

2


−
(

r

1


+

r

2


)
x
+

r

1



r

2




.


{\displaystyle x^{2}+{\frac {b}{a}}x+{\frac {c}{a}}=(x-r_{1})(x-r_{2})=x^{2}-(r_{1}+r_{2})x+r_{1}r_{2}\ \ .}


From this we can see that the sum of the roots of the standard quadratic equation is given by −b/a, and the product of those roots is given by c/a.

Hence the identity can be rewritten as:





r

1


−

r

2


=
±




(

−


b
a



)


2


−
4


c
a




=
±





b

2



a

2




−



4
a
c


a

2






=
±




b

2


−
4
a
c

a




.


{\displaystyle r_{1}-r_{2}=\pm {\sqrt {\left(-{\frac {b}{a}}\right)^{2}-4{\frac {c}{a}}}}=\pm {\sqrt {{\frac {b^{2}}{a^{2}}}-{\frac {4ac}{a^{2}}}}}=\pm {\frac {\sqrt {b^{2}-4ac}}{a}}\ \ .}


Now, 





r

1


=



(

r

1


+

r

2


)
+
(

r

1


−

r

2


)

2


=



−


b
a


±




b

2


−
4
a
c

a



2


=



−
b
±



b

2


−
4
a
c




2
a





.


{\displaystyle r_{1}={\frac {(r_{1}+r_{2})+(r_{1}-r_{2})}{2}}={\frac {-{\frac {b}{a}}\pm {\frac {\sqrt {b^{2}-4ac}}{a}}}{2}}={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}\ \ .}


Since r2 = −r1 − b/a, if we take





r

1


=



−
b
+



b

2


−
4
a
c




2
a





{\displaystyle r_{1}={\frac {-b+{\sqrt {b^{2}-4ac}}}{2a}}}


then we obtain





r

2


=



−
b
−



b

2


−
4
a
c




2
a





;


{\displaystyle r_{2}={\frac {-b-{\sqrt {b^{2}-4ac}}}{2a}}\ \ ;}


and if we instead take





r

1


=



−
b
−



b

2


−
4
a
c




2
a





{\displaystyle r_{1}={\frac {-b-{\sqrt {b^{2}-4ac}}}{2a}}}


then we calculate that





r

2


=



−
b
+



b

2


−
4
a
c




2
a





.


{\displaystyle r_{2}={\frac {-b+{\sqrt {b^{2}-4ac}}}{2a}}\ \ .}


Combining these results by using the standard shorthand ±, we have that the solutions of the quadratic equation are given by:




x
=



−
b
±



b

2


−
4
a
c




2
a





.


{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}\ \ .}


By Lagrange resolvents

An alternative way of deriving the quadratic formula is via the method of Lagrange resolvents,[12] which is an early part of Galois theory.[13]
This method can be generalized to give the roots of cubic polynomials and quartic polynomials, and leads to Galois theory, which allows one to understand the solution of algebraic equations of any degree in terms of the symmetry group of their roots, the Galois group.
This approach focuses on the roots more than on rearranging the original equation. Given a monic quadratic polynomial





x

2


+
p
x
+
q


,


{\displaystyle x^{2}+px+q\ \ ,}


assume that it factors as





x

2


+
p
x
+
q
=
(
x
−
α
)
(
x
−
β
)


,


{\displaystyle x^{2}+px+q=(x-\alpha )(x-\beta )\ \ ,}


Expanding yields





x

2


+
p
x
+
q
=

x

2


−
(
α
+
β
)
x
+
α
β


,


{\displaystyle x^{2}+px+q=x^{2}-(\alpha +\beta )x+\alpha \beta \ \ ,}


where p = −(α + β) and q = αβ.
Since the order of multiplication does not matter, one can switch α and β and the values of p and q will not change: one can say that p and q are symmetric polynomials in α and β. In fact, they are the elementary symmetric polynomials – any symmetric polynomial in α and β can be expressed in terms of α + β and αβ The Galois theory approach to analyzing and solving polynomials is: given the coefficients of a polynomial, which are symmetric functions in the roots, can one "break the symmetry" and recover the roots? Thus solving a polynomial of degree n is related to the ways of rearranging ("permuting") n terms, which is called the symmetric group on n letters, and denoted Sn. For the quadratic polynomial, the only way to rearrange two terms is to swap them ("transpose" them), and thus solving a quadratic polynomial is simple.
To find the roots α and β, consider their sum and difference:









r

1





=
α
+
β





r

2





=
α
−
β


.






{\displaystyle {\begin{aligned}r_{1}&=\alpha +\beta \\r_{2}&=\alpha -\beta \ \ .\end{aligned}}}


These are called the Lagrange resolvents of the polynomial; notice that one of these depends on the order of the roots, which is the key point. One can recover the roots from the resolvents by inverting the above equations:








α



=



1
2



(


r

1


+

r

2



)






β



=



1
2



(


r

1


−

r

2



)



.







{\displaystyle {\begin{aligned}\alpha &=\textstyle {\frac {1}{2}}\left(r_{1}+r_{2}\right)\\\beta &=\textstyle {\frac {1}{2}}\left(r_{1}-r_{2}\right)\ \ .\end{aligned}}}


Thus, solving for the resolvents gives the original roots.
Now r1 = α + β is a symmetric function in α and β, so it can be expressed in terms of p and q, and in fact r1 = −p as noted above. But r2 = α − β is not symmetric, since switching α and β yields −r2 = β − α (formally, this is termed a group action of the symmetric group of the roots). Since r2 is not symmetric, it cannot be expressed in terms of the coefficients p and q, as these are symmetric in the roots and thus so is any polynomial expression involving them. Changing the order of the roots only changes r2 by a factor of −1, and thus the square r22 = (α − β)2 is symmetric in the roots, and thus expressible in terms of p and q. Using the equation




(
α
−
β

)

2


=
(
α
+
β

)

2


−
4
α
β




{\displaystyle (\alpha -\beta )^{2}=(\alpha +\beta )^{2}-4\alpha \beta \ \ }


yields





r

2


2


=

p

2


−
4
q




{\displaystyle r_{2}^{2}=p^{2}-4q\ \ }


and thus





r

2


=
±



p

2


−
4
q






{\displaystyle r_{2}=\pm {\sqrt {p^{2}-4q}}\ \ }


If one takes the positive root, breaking symmetry, one obtains:









r

1





=
−
p





r

2





=



p

2


−
4
q








{\displaystyle {\begin{aligned}r_{1}&=-p\\r_{2}&={\sqrt {p^{2}-4q}}\end{aligned}}}


and thus








α



=



1
2




(

−
p
+



p

2


−
4
q



)





β



=



1
2




(

−
p
−



p

2


−
4
q



)



.






{\displaystyle {\begin{aligned}\alpha &={\tfrac {1}{2}}\left(-p+{\sqrt {p^{2}-4q}}\right)\\\beta &={\tfrac {1}{2}}\left(-p-{\sqrt {p^{2}-4q}}\right)\ \ .\end{aligned}}}


Thus the roots are







1
2



(

−
p
±



p

2


−
4
q



)




{\displaystyle \textstyle {\frac {1}{2}}\left(-p\pm {\sqrt {p^{2}-4q}}\right)}


which is the quadratic formula. Substituting p = b/a, q = c/a yields the usual form for when a quadratic is not monic. The resolvents can be recognized as r1/2 = −p/2 = −b/2<i>a being the vertex, and r22 = p2 − 4<i>q is the discriminant (of a monic polynomial).
A similar but more complicated method works for cubic equations, where one has three resolvents and a quadratic equation (the "resolving polynomial") relating r2 and r3, which one can solve by the quadratic equation, and similarly for a quartic equation (degree 4), whose resolving polynomial is a cubic, which can in turn be solved.[12] The same method for a quintic equation yields a polynomial of degree 24, which does not simplify the problem, and, in fact, solutions to quintic equations in general cannot be expressed using only roots.
By extrema
Knowing the value of x in the functional extreme point makes it possible to solve only for the increase (or decrease) needed in x to solve the quadratic equation. This method first uses differentiation to find the x value at the extremum, called xext. We then solve for the value, q, that ensures that f(xext + q) = 0. While this may not be the most intuitive method, it ensures that the mathematics is straightforward.








f
(
x
)



=
a

x

2


+
b
x
+
c







∂
f


∂
x






=
2
a
x
+
b


.






{\displaystyle {\begin{aligned}f(x)&=ax^{2}+bx+c\\[5pt]{\frac {\partial f}{\partial x}}&=2ax+b\ \ .\end{aligned}}}


Setting the above differential to zero will give us the extrema of the quadratic function





x

ext


=



−
b


2
a





.


{\displaystyle x_{\text{ext}}={\frac {-b}{2a}}\ \ .}


We define q as follows:




q
=

x

0


−

x

ext




,


{\displaystyle q=x_{0}-x_{\text{ext}}\ \ ,}


Here x0 is the value of x that solves the quadratic equation. The sum of xext and the variable of interest, q, is plugged in to the quadratic equation








a


(




−
b


2
a



+
q

)


2


+
b

(




−
b


2
a



+
q

)

+
c



=
0






(




−
b


2
a



+
q

)


2


+


b
a



(




−
b


2
a



+
q

)

+


c
a





=
0




(
a
≠
0
)







b

2



4

a

2





+

q

2


−



b
q

a


−



b

2



2

a

2





+



b
q

a


+


c
a





=
0







−

b

2




4

a

2





+

q

2


+


c
a





=
0





q

2





=




b

2


−
4
a
c


4

a

2









q



=



±



b

2


−
4
a
c




2
a





.






{\displaystyle {\begin{aligned}a\left({\frac {-b}{2a}}+q\right)^{2}+b\left({\frac {-b}{2a}}+q\right)+c&=0\\[5pt]\left({\frac {-b}{2a}}+q\right)^{2}+{\frac {b}{a}}\left({\frac {-b}{2a}}+q\right)+{\frac {c}{a}}&=0&&(a\neq 0)\\[5pt]{\frac {b^{2}}{4a^{2}}}+q^{2}-{\frac {bq}{a}}-{\frac {b^{2}}{2a^{2}}}+{\frac {bq}{a}}+{\frac {c}{a}}&=0\\[5pt]{\frac {-b^{2}}{4a^{2}}}+q^{2}+{\frac {c}{a}}&=0\\[5pt]q^{2}&={\frac {b^{2}-4ac}{4a^{2}}}\\[5pt]q&={\frac {\pm {\sqrt {b^{2}-4ac}}}{2a}}\ \ .\end{aligned}}}


The value of x in the extreme point is then added to both sides of the equation





x

0


=



−
b
±



b

2


−
4
a
c




2
a





.


{\displaystyle x_{0}={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}\ \ .}


This gives the quadratic formula. This way one avoids the technique of completing the square and much more complicated math is not needed. Note this solution is very similar to solving deriving the formula by substitution.
By splitting into real and imaginary parts

Consider the equation




a

z

2


+
b
z
+
c
=
0


{\displaystyle az^{2}+bz+c=0}


where 



z
=
x
+
i
y


{\displaystyle z=x+iy}

 is a complex number and where a, b, and c are real numbers. Then








a
(
x
+
i
y

)

2


+
b
(
x
+
i
y
)
+
c



=
0


,


a
(

x

2


−

y

2


+
i
2
x
y
)
+
b
(
x
+
i
y
)
+
c
=
0


.






{\displaystyle {\begin{aligned}a(x+iy)^{2}+b(x+iy)+c&=0\ \ ,\ \ a(x^{2}-y^{2}+i2xy)+b(x+iy)+c=0\ \ .\end{aligned}}}


This splits into two equations, the real part:




a
(

x

2


−

y

2


)
+
b
x
+
c
=
0


{\displaystyle a(x^{2}-y^{2})+bx+c=0}


and the imaginary part:




2
a
x
y
+
b
y
=
0


.


{\displaystyle 2axy+by=0\ \ .}


Assuming that 



y
≠
0


{\displaystyle y\neq 0}

 then divide the second equation by y:




2
a
x
+
b
=
0


{\displaystyle 2ax+b=0}


and solve for x:




x
=



−
b


2
a





.


{\displaystyle x={-b \over 2a}\ \ .}


Substitute this value for x into the first equation and solve for y:








a


(





b

2



4

a

2





−

y

2




)


−



b

2



2
a



+
c



=
0







b

2



4
a



−
a

y

2


−



2

b

2




4
a



+
c



=
0







−

b

2




4
a



−
a

y

2


+
c



=
0




a

y

2


+



b

2



4
a



−
c



=
0





y

2





=


c
a


−



b

2



4

a

2









y



=
±




c
a


−



b

2



4

a

2







=



±


c
a
−



b

2


4





a


=



±


4
c
a
−

b

2






2
a





.






{\displaystyle {\begin{aligned}a{\Big (}{b^{2} \over 4a^{2}}-y^{2}{\Big )}-{b^{2} \over 2a}+c&=0\\{b^{2} \over 4a}-ay^{2}-{2b^{2} \over 4a}+c&=0\\{-b^{2} \over 4a}-ay^{2}+c&=0\\ay^{2}+{b^{2} \over 4a}-c&=0\\y^{2}&={c \over a}-{b^{2} \over 4a^{2}}\\y&=\pm {\sqrt {{c \over a}-{b^{2} \over 4a^{2}}}}={\pm {\sqrt {ca-{b^{2} \over 4}}} \over a}={\pm {\sqrt {4ca-b^{2}}} \over 2a}\ \ .\end{aligned}}}


Since 



z
=
x
+
i
y


{\displaystyle z=x+iy}

, then








z



=



−
b


2
a



±



i


4
a
c
−

b

2






2
a







z



=



−
b


2
a



±





b

2


−
4
a
c



2
a



=



−
b
±



b

2


−
4
a
c




2
a





.






{\displaystyle {\begin{aligned}z&={-b \over 2a}\pm {i{\sqrt {4ac-b^{2}}} \over 2a}\\[5pt]z&={-b \over 2a}\pm {{\sqrt {b^{2}-4ac}} \over 2a}={-b\pm {\sqrt {b^{2}-4ac}} \over 2a}\ \ .\end{aligned}}}


Even though y was assumed to be non-zero, this last formula works for any roots of the original equation, whereas assuming that 



y
=
0


{\displaystyle y=0}

 turns out to be of not much help (trivial and circular).
Historical development
The earliest methods for solving quadratic equations were geometric. Babylonian cuneiform tablets contain problems reducible to solving quadratic equations.[15] The Egyptian Berlin Papyrus, dating back to the Middle Kingdom (2050 BC to 1650 BC), contains the solution to a two-term quadratic equation.[16]

The Greek mathematician Euclid (circa 300 BC) used geometric methods to solve quadratic equations in Book 2 of his Elements, an influential mathematical treatise.[17] Rules for quadratic equations appear in the Chinese The Nine Chapters on the Mathematical Art circa 200 BC.[18][19] In his work Arithmetica, the Greek mathematician Diophantus (circa 250 BC) solved quadratic equations with a method more recognizably algebraic than the geometric algebra of Euclid.[17] His solution gives only one root, even when both roots are positive.[20]
The Indian mathematician Brahmagupta (597–668 AD) explicitly described the quadratic formula in his treatise Brāhmasphuṭasiddhānta published in 628 AD,[21] but written in words instead of symbols.[22] His solution of the quadratic equation ax2 + bx = c was as follows: "To the absolute number multiplied by four times the [coefficient of the] square, add the square of the [coefficient of the] middle term; the square root of the same, less the [coefficient of the] middle term, being divided by twice the [coefficient of the] square is the value."[23]
This is equivalent to:




x
=





4
a
c
+

b

2




−
b


2
a





.


{\displaystyle x={\frac {{\sqrt {4ac+b^{2}}}-b}{2a}}\ \ .}


The 9th-century Persian mathematician Muḥammad ibn Mūsā al-Khwārizmī solved quadratic equations algebraically.[24] The quadratic formula covering all cases was first obtained by Simon Stevin in 1594.[25] In 1637 René Descartes published La Géométrie containing special cases of the quadratic formula in the form we know today. The first appearance of the general solution in the modern mathematical literature appeared in an 1896 paper by Henry Heaton.[26]
Significant Uses
Geometrical significance

In terms of coordinate geometry, a parabola is a curve whose (x, y)-coordinates are described by a second-degree polynomial, i.e. any equation of the form:




y
=
p
(
x
)
=

a

2



x

2


+

a

1


x
+

a

0




,


{\displaystyle y=p(x)=a_{2}x^{2}+a_{1}x+a_{0}\ \ ,}


where p represents the polynomial of degree 2 and a0, a1, and a2 ≠ 0 are constant coefficients whose subscripts correspond to their respective term's degree. The geometrical interpretation of the quadratic formula is that it defines the points on the x-axis where the parabola will cross the axis. Additionally, if the quadratic formula was looked at as two terms,




x
=



−
b
±



b

2


−
4
a
c





2
a



=
−


b

2
a



±




b

2


−
4
a
c



2
a





{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac\ }}}{2a}}=-{\frac {b}{2a}}\pm {\frac {\sqrt {b^{2}-4ac\ }}{2a}}}


the axis of symmetry appears as the line x = −b/2<i>a. The other term, √b2 − 4<i>ac/2<i>a, gives the distance the zeros are away from the axis of symmetry, where the plus sign represents the distance to the right, and the minus sign represents the distance to the left. 
If this distance term were to decrease to zero, the value of the axis of symmetry would be the x value of the only zero, that is, there is only one possible solution to the quadratic equation. Algebraically, this means that √b2 − 4<i>ac = 0, or simply b2 − 4<i>ac = 0 (where the left-hand side is referred to as the discriminant). This is one of three cases, where the discriminant indicates how many zeros the parabola will have. If the discriminant is positive, the distance would be non-zero, and there will be two solutions. However, there is also the case where the discriminant is less than zero, and this indicates the distance will be imaginary– or some multiple of the complex unit i, where i = √−1– and the parabola's zeros will be complex numbers. The complex roots will be complex conjugates, where the real part of the complex roots will be the value of the axis of symmetry. There will be no real values of x where the parabola crosses the x-axis.
Dimensional analysis
If the constants a, b, and/or c are not unitless, then the units of x must be equal to the units of b/a, due to the requirement that ax2 and bx agree on their units. Furthermore, by the same logic, the units of c must be equal to the units of b2/a, which can be verified without solving for x. This can be a powerful tool for verifying that a quadratic expression of physical quantities has been set up correctly, prior to solving it.
See also
Discriminant
Fundamental theorem of algebra