In Depth
See Also

Quadratic equation

In mathematics Mathematics

Mathematics is the discipline that deals with concepts such as quantity [i], structure [i], space [i] a ... 

, a quadratic equation is a polynomial Polynomial

In mathematics [i], a polynomial is an expression [i] in which a finite number of constants ... 

 equation of the second degree. The general form is where The letters a, b, and c are called coefficients: the quadratic coefficient a is the coefficient of x2, the linear coefficient b is the coefficient of x, and c is the constant coefficient, also called the free term. Quadratic equations are called quadratic because quadratus is Latin Latin

Latin is an ancient Indo-European language [i] originally spoken in Latium [i], ... 

 for "square"; in the leading term the variable is squared.

Discussions

  Discussion Features

   Ask a question about 'Quadratic equation'

   Start a new discussion about 'Quadratic equation'

   Answer questions about 'Quadratic equation'

   'Quadratic equation' discussion forum


Encyclopedia

In mathematics Mathematics

Mathematics is the discipline that deals with concepts such as quantity [i], structure [i], space [i] a ... 

, a quadratic equation is a polynomial Polynomial

In mathematics [i], a polynomial is an expression [i] in which a finite number of constants ... 

 equation of the second degree. The general form is




where

The letters a, b, and c are called coefficients: the quadratic coefficient a is the coefficient of x2, the linear coefficient b is the coefficient of x, and c is the constant coefficient, also called the free term.

Quadratic equations are called quadratic because quadratus is Latin Latin

Latin is an ancient Indo-European language [i] originally spoken in Latium [i], ... 

 for "square"; in the leading term the variable is squared.

Quadratic formula

A quadratic equation with real  coefficients has two solutions, called roots Root

In vascular plant [i]s, the root is that organ of a plant [i] body that typically lies below the surface ... 

, which may be real or complex, given by the quadratic formula:

where the symbol , indicates that both

  and 



are solutions.

Discriminant

In the above formula, the term underneath the square root sign:

is called the discriminant of the quadratic equation.

A quadratic equation with real coefficients can have either one or two distinct roots, each of which is either real or complex. In this case the discriminant determines the number and nature of the roots. There are three cases:
  • If the discriminant is positive, there are two distinct roots, both of which are real numbers. For quadratic equations with integer coefficients, if the discriminant is a perfect square Perfect square

    The term perfect square is used in mathematics [i] in two meanings:

... 

, then the roots are rational numbers—in other cases they may be quadratic irrationals.

  • If the discriminant is zero, there is exactly one root, and that root is a real number. Sometimes called a double root, its value is:




  • If the discriminant is negative, there are no real roots. Rather, there are two distinct complex Complex number

    In mathematics [i], a complex number is a number [i] of the form

... 

 roots, which are complex conjugates of each other:

  and 


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



The roots of the quadratic equation




are also the zeros of the quadratic function Quadratic function

A quadratic function, in mathematics [i], is a polynomial [i] function [i] of the form , where ... 

:




since they are the values of for which




If a, b, and c are real numbers, and the domain of is the set of real numbers, then the zeros of are exactly the x-coordinates Coordinate system

In mathematics [i] and applications, a coordinate system is a system for assigning a tuple [i] of number [i]... 

 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 Cartesian coordinate system

In mathematics [i], the Cartesian coordinate system is used to uniquely determine each point [i]... 

 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

is a factor of the polynomial




if and only if is a root of the quadratic equation:




It follows from the quadratic formula that




Or equivalently that:




If the quadratic has only one distinct root , the quadratic polynomial can be factored Factorization

In mathematics [i], factorization or factoring is the decomposition of an object into a product [i] ... 

 as a perfect square Perfect square

The term perfect square is used in mathematics [i] in two meanings:
... 

 as follows:

Application to higher-degree equations

Certain higher-degree equations may be quadratic in form, such as:



which can be written


where
.


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 Factorization

In mathematics [i], factorization or factoring is the decomposition of an object into a product [i] ... 

, the quadratic formula, or completing the square.

History

On clay tablets dated between 1800 BC and 1600 BC, the ancient Babylonians first discovered quadratic equations and also gave early methods for solving them. Indian mathematician Baudhayana who wrote a Sulba Sutra in ancient India Indian subcontinent

The Indian subcontinent is a peninsula landmass [i] of the Asia [i]n continent [i] occupying the Indian Plate [i] ... 

 circa 8th century BC first used quadratic equations of the form ax2 = c and ax2 + bx = c and also gave methods for solving them.

Babylonian mathematicians from circa 400 BC and Chinese mathematicians from circa 200 BC used the method of completing the square to solve quadratic equations with positive roots, but did not have a general formula. Euclid Euclid

Euclid , a Greek [i] mathematician [i], who lived in Alexandria [i], Hellenistic Egypt [i], alm ... 

 produced a more abstract geometrical method around 300 BC. The Bakshali Manuscript written in India between 200 BC and 400 CE introduced the general algebraic formula for solving quadratic equations, and also introduced quadratic indeterminate equations .

The first mathematician to have found negative solutions with the general algebraic formula, was Brahmagupta . developed a set of formulae that worked for positive solutions. Abraham bar Hiyya Ha-Nasi  introduced the complete solution to Europe in his book Liber embadorum in the 12th century 12th century

As a means of recording the passage of time [i], the 12th century was that century [i] which lasted from ... 

. Bhaskara II  solved quadratic equations with more than one unknown.

Shridhara  was one of the first mathematicians to give a general rule for solving a quadratic equation. His original work is lost but Bhaskara II later quotes Shridhara's rule:
Multiply both sides of the equation by a known quantity equal to four times the coefficient of the square of the unknown; add to both sides a known quantity equal to the square of the coefficient of the unknown; then take the square root.

Derivation

The quadratic formula Quadratic equation

In mathematics [i], a quadratic equation is a polynomial [i] equation [i] of the second degree [i]... 

 is derived by the method of completing the square.

Dividing our quadratic equation by , we have

which is equivalent to

The equation is now in a form in which we can conveniently complete the square. To "complete the square" is to add a constant to the expression to the left of "", that will make it a perfect square trinomial of the form . Since in this case is , we must have , so we add the square of to both sides, getting

The left side is now a perfect square Perfect square

The term perfect square is used in mathematics [i] in two meanings:
... 

; it is the square of . The right side can be written as a single fraction; the common denominator is . We get

Taking square root Square root

In mathematics [i], a square root of a number x is a number whose square [i] is x. ... 

s of both sides yields

Subtracting from both sides, we get

Comparing the reduced form x2+bax+ca to the factored form  = x2-x+r1r2, we see that the sum of the two solution values must be -ba, and their product must be ca. As we may confirm, both these equalities are satisfied, validating our solutions.

Alternative formula

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

However, it imposes the additional requirement that c be nonzero. If c is zero, this formula correctly gives zero as one root, but fails to give any second, non-zero, root.

The actual values of the roots must be the same regardless of which expression we use, so the alternate form is merely an algebraic variation of the common form. For example,

  
  
  



A careful floating point computer implementation differs a little from both forms to produce a robust result. Assuming the discriminant, b2-4ac, is positive and b is nonzero, the code will be something like the following.



Here sgn is the sign function Sign function

In mathematics [i] and especially in computer science [i], the sign function is a logical function [i] ... 

, giving +1 if b is positive and -1 if b is negative; its use ensures that we always add two quantities of the same sign, avoiding catastrophic cancellation. The computation of r2 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:

and

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 Quadratic function

A quadratic function, in mathematics [i], is a polynomial [i] function [i] of the form , where ... 

, when there are two real roots the vertex’s x-coordinate is located at the average of the roots . Thus the x-coordinate of the vertex is given by the expression:

The y-coordinate can be obtained by substituting the above result into the given quadratic equation, giving

Generalizations

The formula and its derivation remain correct if the coefficients , and are complex number Complex number

In mathematics [i], a complex number is a number [i] of the form
... 

s, or more generally members of any field whose characteristic is not 2.

The symbol

in the formula should be understood as "either of the two elements whose square is 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 x2 + bx + c over a field of characteristic 2. If b = 0, then the solution reduces to extracting a square root, so the solution is x = vc and note that there is only one root since –vc = –vc + 2vc = vc. In summary, x2 + c = 2. Confer 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 of c to be a root of the polynomial x2 + x + c, an element of the splitting field of that polynomial. One verifies that R + 1 is also a root. In terms of the 2-root operation, the two roots of the quadratic ax2 + bx + c are
and

For example, let a denote a multiplicative generator of the group of units of F4, the Galois field of order four . Because 2 = a, a + 1 is the unique solution of the quadratic equation x2 + 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 x2 + x + a in F16.

This is a special case of Artin-Schreier theory

See also

  • Linear equation
  • Cubic equation Cubic equation

    In mathematics [i], a cubic equation is a polynomial [i] equation in which the highest occurring power [i]... 

  • Quartic equation
  • Quintic equation Quintic equation

    In mathematics [i], a quintic equation is a polynomial [i] equation [i] in which the greatest exponent o ... 

  • Fundamental theorem of algebra
  • Parabola Parabola

    The parabola is a conic section [i] generated by the intersection of a right circular conical surface [i] ... 

  • Quadratic function Quadratic function

    A quadratic function, in mathematics [i], is a polynomial [i] function [i] of the form , where ... 



External links

  • 101 uses of a quadratic equation
  • Interactive applet. Sliders for a,b,c show effects on a graph.