Quadratic Equation Article Index for
Quadratic
Shopping
Quadratic
Website Links For
Equation
 

Information About

Quadratic Equation




:ax^2+bx+c=0,\,\!

where ''a'' ≠ 0. (For ''a'' = 0, the equation becomes a Linear Equation .)

The letters ''a'', ''b'', and ''c'' are called coefficient, also called the free term or constant term.

Quadratic equations are called ''quadratic'' because ''quadratus'' is Latin for "square"; in the leading term the variable is Squared .

-valued quadratic function ''ax''2 + ''bx'' + ''c'', varying each coefficient separately]]


QUADRATIC FORMULA

A quadratic equation with Real (or Complex ) coefficients has two (not necessarily distinct) solutions, called ''roots'' , which may be real or complex, given by the quadratic formula:

:x = rac{-b \pm \sqrt {b^2-4ac}}{2a},

where The Symbol "±" indicates that both







x &= rac{-b}{2a} - i rac{\sqrt {4ac - b^2}}{2a} , \
i^2 &= -1.
\end{align}

Thus the roots are distinct if and only if the discriminant is non-zero, and the roots are real if and only if the discriminant is non-negative.


GEOMETRY

:
''f'' (''x'') = ''x''2 − ''x'' − 2 = (''x'' + 1)(''x'' − 2) of a

The roots of the quadratic equation

: ax^2+bx+c=0,\,

are also the Zeros of the Quadratic Function :

: f(x) = ax^2+bx+c,\,

since they are the values of ''x'' for which

: f(x) = 0.\,

If ''a'', ''b'', and ''c'' are Real Numbers , and the Domain of ''f'' is the set of real numbers, then the zeros of ''f'' are exactly the ''x''- Coordinates of the points where the graph touches the ''x''-axis.

It follows from the above that, if the discriminant is positive, the graph touches the ''x''-axis at two points, if zero, the graph touches at one point, and if negative, the graph does not touch the ''x''-axis.


QUADRATIC FACTORIZATION

The term

:x - r,\,

is a factor of the polynomial

: ax^2+bx+c, \

if and only if ''r'' is a Root of the quadratic equation

: ax^2+bx+c=0. \

It follows from the quadratic formula that

: ax^2+bx+c = a \left( x - rac{-b + \sqrt {b^2-4ac}}{2a} ight) \left( x - rac{-b - \sqrt {b^2-4ac}}{2a} ight). \

In the special case where the quadratic has only one distinct root (i.e. the discriminant is zero), the quadratic polynomial can be Factored as

:ax^2+bx+c = a \left( x + rac{b}{2a} ight)^2.\,\!


APPLICATION TO HIGHER-DEGREE EQUATIONS

Certain higher-degree equations may be quadratic in form, such as:
: 2x^6 - 3x^3 + 5 = 0,\,

which can be written as
: 2u^2 - 3u + 5 = 0, \
where
: u = x^3 \ .

Note that the highest exponent is twice the value of the exponent of the middle term. This equation may be resolved directly or with a simple substitution, using the methods that are available for the quadratic, such as Factoring , the quadratic formula, or Completing The Square .

Generally speaking, if the polynomial is quadratic in some variable ''u'' where
:u = x^n \,\;
then the quadratic equation can be used to help find solutions.


HISTORY

The Babylonians, as early as 1800 BC (displayed on Old Babylonian Clay Tablet s) could solve a pair of simultaneous equations of the form:

: x+y=p,\ \ xy=q \

which are equivalent to the equation: Stillwell, John. 2004. ''Mathematics and its History''. Berlin and New York: Springer-Verlag. 542 pages. p. 86

:\ x^2+q=px

The original pair of equations were solved as follows:

#Form rac{x+y}{2}
#Form \left( rac{x+y}{2} ight)^2
#Form \left( rac{x+y}{2} ight)^2 - xy
#Form \sqrt{\left( rac{x+y}{2} ight)^2 - xy} = rac{x-y}{2}
#Find x,\ y by inspection of the values in (1) and (4). Stillwell, John. 2004. ''Mathematics and its History''. Berlin and New York: Springer-Verlag. 542 pages. p. 87

In the Sulba Sutra s in Ancient India circa 8th Century BCE quadratic equations of the form ''ax''2 = ''c'' and ''ax''2 + ''bx'' = ''c'' were explored using geometric methods. Babylonian Mathematicians from circa 400 BCE and Chinese Mathematicians from circa 200 BCE used the method of Completing The Square to solve quadratic equations with positive roots, but did not have a general formula. Euclid , the Greek mathematician, produced a more abstract geometrical method around 300 BCE .

In 628 CE, Brahmagupta gave the first explicit (although still not completely general) solution of the Quadratic Equation :

:\ ax^2+bx=c

This is equivalent to:

:x = rac{\sqrt{4ac+b^2}-b}{2a}

The '' Bakhshali Manuscript '' dated to have been written in India in the 7th century CE contained an algebraic formula for solving quadratic equations, as well as quadratic Indeterminate equations (originally of type ''ax''/''c'' = ''y''). Mohammad Bin Musa Al-kwarismi ( Persia , 9th Century ) developed a set of formulae that worked for positive solutions. Abraham Bar Hiyya Ha-Nasi (also known by the Latin name Savasorda ) introduced the complete solution to Europe in his book ''Liber embadorum'' in the 12th Century . Bhāskara II ( 11141185 ), an Indian MathematicianAstronomer , gave the first general solution to the quadratic equation with two roots.http://www.bbc.co.uk/dna/h2g2/A2982567

The writing of the Chinese mathematician Yang Hui ( 1238 - 1298 AD) represents the first in which quadratic equations with negative coefficients of 'x' appear, although he attributes this to the earlier Liu Yi.


DERIVATION



Complete the square


The Quadratic Formula can be derived by the method of Completing The Square , so as to make use of the algebraic identity:

:x^2+2xy+y^2 = (x+y)^2.\,\!

Dividing the quadratic equation

:ax^2+bx+c=0 \,\!

by ''a'' (which is allowed because ''a'' is non-zero), gives:

:x^2 + rac{b}{a} x + rac{c}{a}=0,\,\!

or

:x^2 + rac{b}{a} x= - rac{c}{a} \qquad (1)

The quadratic equation is now in a form in which the method of completing the square can be applied.
To "complete the square" is to find some constant ''k'' such that

:x^2 + rac{b}{a}x + k = x^2+2xy+y^2,\,\!

for another constant ''y''. In order for these equations to be true,

:y = rac{b}{2a}\,\!
and
:k = y^2,\,\!

thus

:: k = rac{b^2}{4a^2}.\,\!

Adding this constant to equation (1) produces

:x^2+ rac{b}{a}x+ rac{b^2}{4a^2}=- rac{c}{a}+ rac{b^2}{4a^2}.\,\!

The left side is now a Perfect Square because
:x^2+ rac{b}{a}x+ rac{b^2}{4a^2} = \left( x + rac{b}{2a} ight)^2

The right side can be written as a single fraction, with common denominator 4''a''2. This gives

:\left(x+ rac{b}{2a} ight)^2= rac{b^2-4ac}{4a^2}.

Taking the Square Root of both sides yields





Alternative derivation


Start with the general form of a quadratic:

: ax^2+bx+c=0.\,\!

Multiply both sides by 4''a'':

: 4a^2x^2+4abx+4ac=0.\,\!

Subtract 4''ac'' from both sides:

: 4a^2x^2+4abx=-4ac.\,\!

Add ''b''2 to both sides:

: 4a^2x^2+4abx+b^2=b^2-4ac.\,\!

Factorise the left-hand side:

: \left(2ax+b ight)^2=b^2-4ac.\,\!

Take the square root of both sides:

: 2ax+b= \pm \sqrt {b^2-4ac}.\,\!

Subtract ''b'' from both sides:

: 2ax=-b \pm \sqrt {b^2-4ac}.\,\!

Divide both sides by 2''a'':

: x_\pm\ = rac{-b \pm \sqrt {b^2-4ac}}{2a}.


ALTERNATIVE FORMULA

In some situations it is preferable to express the roots in an alternate form.

:x = rac{2c}{-b \mp \sqrt {b^2-4ac\ }} .

This alternative requires ''c'' to be nonzero; for, if ''c'' is zero, the formula correctly gives zero as one root, but fails to give any second, non-zero root. (When ''c'' is zero we have division of zero by zero, which is indeterminate.)

The roots are the same regardless of which expression we use; the alternate form is merely an algebraic variation of the common form:

:\begin{align}
rac{-b + \sqrt {b^2-4ac\ }}{2a}
&{}= rac{-b + \sqrt {b^2-4ac\ }}{2a} \cdot rac{-b - \sqrt {b^2-4ac\ }}{-b - \sqrt {b^2-4ac\ }} \
&{}= rac{4ac}{2a \left ( -b - \sqrt {b^2-4ac} ight ) } \
&{}= rac{2c}{-b - \sqrt {b^2-4ac\ }}.
\end{align}


FLOATING POINT IMPLEMENTATION

A careful Floating Point computer implementation differs a little from both forms to produce a robust result. Assuming the discriminant, ''b''2−4''ac'', is positive and ''b'' is nonzero, the code will be something like the following.
: t := - frac12 \big( b + \sgn(b) \sqrt{b^2-4ac} \big) \,\!
: r_{1} := t/a \,\!
: r_{2} := c/t \,\!

Here sgn(''b'') is the Sign Function , where sgn(''b'') is 1 if ''b'' is positive and −1 if ''b'' is negative; its use ensures that the quantities added are of the same sign, avoiding '' Catastrophic Cancellation ''. The computation of ''r''2 uses the fact that the product of the roots is ''c''/''a''.


VIèTE'S FORMULAS

Viète's Formulas give a simple relation between the roots of a polynomial and its coefficients. In the case of the quadratic polynomial, they take the following form:

: x_+ + x_- = - rac{b}{a}
and
: x_+ \cdot x_- = rac{c}{a}.

The first formula above yields a convenient expression when graphing a quadratic function. Since the graph is symmetric with respect to a vertical line through the Vertex , when there are two real roots the vertex’s x-coordinate is located at the average of the roots (or intercepts). Thus the x-coordinate of the vertex is given by the expression:

: x_V = rac {x_+ + x_-} {2} = - rac{b}{2a}.

The y-coordinate can be obtained by substituting the above result into the given quadratic equation, giving
: y_V = - rac{b^2}{4a} + c = - rac{ b^2 - 4ac} {4a}.


GENERALIZATIONS

The formula and its derivation remain correct if the coefficients ''a'', ''b'' and ''c'' are Complex Number s, or more generally members of any Field whose Characteristic is not 2. (In a field of characteristic 2, the element 2''a'' is zero and it is impossible to divide by it.)

The symbol

:\pm \sqrt {b^2-4ac}

in the formula should be understood as "either of the two elements whose square is

:b^2-4ac,\,

if such elements exist. In some fields, some elements have no square roots and some have two; only zero has just one square root, except in fields of characteristic 2. Note that even if a field does not contain a square root of some number, there is always a quadratic Extension Field which does, so the quadratic formula will always make sense as a formula in that extension field.


Characteristic 2

In a field of characteristic 2, the quadratic formula, which relies on 2 being a Unit , does not hold. Consider the Monic quadratic polynomial

:\displaystyle x^{2} + bx + c

over a field of characteristic 2. If ''b'' = 0, then the solution reduces to extracting a square root, so the solution is

:\displaystyle x = \sqrt{c}

and note that there is only one root since

:\displaystyle -\sqrt{c} = -\sqrt{c} + 2\sqrt{c} = \sqrt{c}.

In summary,

:\displaystyle x^{2} + c = (x + \sqrt{c})^{2}.

See Quadratic Residue for more information about extracting square roots in finite fields.

In the case that ''b'' ≠ 0, there are two distinct roots, but if the polynomial is Irreducible , they cannot be expressed in terms of square roots of numbers in the coefficient field. Instead, define the 2-root ''R''(''c'') of ''c'' to be a root of the polynomial ''x''2 + ''x'' + ''c'', an element of the Splitting Field of that polynomial. One verifies that ''R''(''c'') + 1 is also a root. In terms of the 2-root operation, the two roots of the (non-monic) quadratic ''ax''2 + ''bx'' + ''c'' are
: rac{b}{a}R\left( rac{ac}{b^2} ight)
and
: rac{b}{a}\left(R\left( rac{ac}{b^2} ight)+1 ight).

For example, let ''a'' denote a multiplicative generator of the group of units of F4, the Galois Field of order four (thus ''a'' and ''a'' + 1 are roots of ''x''2 + ''x'' + 1 over F4). Because (''a'' + 1)2 = ''a'', ''a'' + 1 is the unique solution of the quadratic equation ''x''2 + ''a'' = 0. On the other hand, the polynomial ''x'' + ''ax'' + 1 is irreducible over F4, but splits over F16, where it has the two roots ''ab'' and ''ab'' + ''a'', where ''b'' is a root of ''x''2 + ''x'' + ''a'' in F16.

This is a special case of Artin-Schreier Theory .


REFERENCES



BOOK

''Vedic Mathematics: Sixteen Simple Mathematical Formulae from the Vedas'', by Swami Sankaracarya (1884-1960), Motilal Banarsidass Indological Publishers and Booksellers, Varnasi, India, 1965; reprinted in Delhi, India, 1975, 1978. 367 pages.


SEE ALSO





EXTERNAL LINKS