All Topics  
Quadratic equation

 

   Email Print
   Bookmark   Link






 

Quadratic equation



 
 
In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a quadratic equation is a polynomial
Polynomial

In mathematics, a polynomial is an expression constructed from variables and constants, using the operations of addition, subtraction, multiplication, and constant non-negative whole number exponents....
 equation
Equation

An equation is a mathematics Proposition, in table of mathematical symbols, that two things are exactly the same . Equations are written with an equal sign, as in...
 of the second degree
Degree of a polynomial

When a polynomial is expressed as a sum or difference of term s , the exponent of the term with the highest exponent is the degree of the polynomial....
. The general form is

where a ? 0. (If a = 0, the equation is linear
Linear equation

A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and a single variable.Linear equations can have one or more variables....
.)

The letters a, b, and c are called coefficient
Coefficient

In mathematics, a coefficient is a constant multiplication factor of a certain object. For example, in the expression 9x2, the coefficient of x2 is 9....
s: 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 or constant term
Constant term

In mathematics, the constant term of a polynomial is the term of degree 0. For example, in the polynomialover the variable X, the constant term is 3....
.

Quadratic equations are called quadratic because quadratus is Latin
Latin

Latin is an Italic language, historically spoken in Latium and Ancient Rome. Through the Military history of the Roman Empire, Latin spread throughout the Mediterranean and a large part of Europe....
 for "square
Square

Square may mean:...
"; in the leading term the variable is squared
Square (algebra)

In algebra, the square of a number is that number multiplication by itself. To square a quantity is to multiply it by itself.Its notation is a superscripted "2"; a number x squared is written as x?....
.
adratic equation with real
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
 or complex
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
 coefficients has two, but not necessarily distinct, solutions, called roots
Root (mathematics)

In mathematics, a root of a complex-valued Function is a member of the Domain of such that vanishes at , that is,In other words, a "root" of a function is a value for that produces a result of zero ....
, which may or may not be real, given by the quadratic formula:

,

where the symbol "±"
Plus-minus sign

The plus-minus sign is a mathematical symbol commonly used to indicate the accuracy and precision of an approximation, or as a convenient notation for a value that can be of either sign....
 indicates that both


are solutions.

he above formula, the expression underneath the square root sign is called the discriminant
Discriminant

In algebra, the discriminant of a polynomial with real number or complex number coefficients is a certain expression in the coefficients of the polynomial which is equal to zero if and only if the polynomial has a multiple Root in the complex numbers....
 of the quadratic equation.

A quadratic equation with real coefficients can have either one or two distinct real roots, or two distinct complex roots.






Discussion
Ask a question about 'Quadratic equation'
Start a new discussion about 'Quadratic equation'
Answer questions from other users
Full Discussion Forum



Recent Posts









Encyclopedia


In mathematics
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
, a quadratic equation is a polynomial
Polynomial

In mathematics, a polynomial is an expression constructed from variables and constants, using the operations of addition, subtraction, multiplication, and constant non-negative whole number exponents....
 equation
Equation

An equation is a mathematics Proposition, in table of mathematical symbols, that two things are exactly the same . Equations are written with an equal sign, as in...
 of the second degree
Degree of a polynomial

When a polynomial is expressed as a sum or difference of term s , the exponent of the term with the highest exponent is the degree of the polynomial....
. The general form is

where a ? 0. (If a = 0, the equation is linear
Linear equation

A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and a single variable.Linear equations can have one or more variables....
.)

The letters a, b, and c are called coefficient
Coefficient

In mathematics, a coefficient is a constant multiplication factor of a certain object. For example, in the expression 9x2, the coefficient of x2 is 9....
s: 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 or constant term
Constant term

In mathematics, the constant term of a polynomial is the term of degree 0. For example, in the polynomialover the variable X, the constant term is 3....
.

Quadratic equations are called quadratic because quadratus is Latin
Latin

Latin is an Italic language, historically spoken in Latium and Ancient Rome. Through the Military history of the Roman Empire, Latin spread throughout the Mediterranean and a large part of Europe....
 for "square
Square

Square may mean:...
"; in the leading term the variable is squared
Square (algebra)

In algebra, the square of a number is that number multiplication by itself. To square a quantity is to multiply it by itself.Its notation is a superscripted "2"; a number x squared is written as x?....
.

Quadratic formula

A quadratic equation with real
Real number

In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
 or complex
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
 coefficients has two, but not necessarily distinct, solutions, called roots
Root (mathematics)

In mathematics, a root of a complex-valued Function is a member of the Domain of such that vanishes at , that is,In other words, a "root" of a function is a value for that produces a result of zero ....
, which may or may not be real, given by the quadratic formula:

,

where the symbol "±"
Plus-minus sign

The plus-minus sign is a mathematical symbol commonly used to indicate the accuracy and precision of an approximation, or as a convenient notation for a value that can be of either sign....
 indicates that both
  and 


are solutions.

Discriminant

In the above formula, the expression underneath the square root sign is called the discriminant
Discriminant

In algebra, the discriminant of a polynomial with real number or complex number coefficients is a certain expression in the coefficients of the polynomial which is equal to zero if and only if the polynomial has a multiple Root in the complex numbers....
 of the quadratic equation.

A quadratic equation with real coefficients can have either one or two distinct real roots, or two distinct complex roots. 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
    Integer

    The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
     coefficients, if the discriminant is a perfect square
    Square number

    In mathematics, a square number, sometimes also called a perfect square, is an integer that can be written as the square of some other integer; in other words, it is the product of some integer with itself....
    , then the roots are rational number
    Rational number

    In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
    s—in other cases they may be quadratic irrational
    Quadratic irrational

    In mathematics, a quadratic irrational, also known asa quadratic irrationality or quadratic surd, is an irrational number that is the solution to some quadratic equation with rational coefficients....
    s.
  • If the discriminant is zero, there is exactly one distinct real
    Real number

    In mathematics, the real numbers may be described informally in several different ways. The real numbers include both rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two; or, a real number can be given by an infinite decimal representation, such as 2.4871773339...., where the digits co...
     root, sometimes called a double root:* If the discriminant is negative, there are no real roots. Rather, there are two distinct (non-real) complex
    Complex number

    In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
     roots, which are complex conjugate
    Complex conjugate

    In mathematics, the complex conjugate of a complex number is given by changing the sign of the imaginary part. Thus, the conjugate of the complex number...
    s of each other:
  • where, is the absolute value(+ve) and is the
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, is a polynomial function of the form , where . The graph of a function of a quadratic function is a parabola whose major axis is parallel to the y-axis....
:



since they are the values of x for which



If a, b, and c are real numbers and the domain
Domain (mathematics)

In mathematics, the domain of a given function is the set of "input" values for which the function is defined. For instance, the domain of cosine would be all real numbers, while the domain of the square root would be only numbers greater than or equal to 0 ....
 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.

Examples

  • has a strictly positive discriminant and therefore has two real solutions:
  • has a discriminant whose value is zero, therefore it has one (so-called double) solution:* has no real solution because . It has two complex solutions:


Quadratic factorization

The term

is a factor of the polynomial



if and only if r is a root
Root (mathematics)

In mathematics, a root of a complex-valued Function is a member of the Domain of such that vanishes at , that is,In other words, a "root" of a function is a value for that produces a result of zero ....
 of the quadratic equation



It follows from the quadratic formula that



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

In mathematics, factorization or factoring is the decomposition of an object into a product of other objects, or factors, which when multiplication together give the original....
 as

Application to higher-degree equations

Certain higher-degree equations can be brought into quadratic form and solved that way. For example, the 6th-degree equation in x: can be rewritten as: or, equivalently, as a quadratic equation in a new variable u: where Solving the quadratic equation for u results in the two solutions: Thus Concentrating on finding the three cube roots of – the other three solutions for x will be their complex conjugate
Complex conjugate

In mathematics, the complex conjugate of a complex number is given by changing the sign of the imaginary part. Thus, the conjugate of the complex number...
s – rewriting the right-hand side using Euler's formula
Euler's formula

Euler's formula, named after Leonhard Euler, is a mathematics formula in complex analysis that shows a deep relationship between the trigonometric functions and the complex exponential function....
: (since e2kpi = 1), gives the three solutions: Using Eulers' formula again together with trigonometric identities such as cos(p/12) = , and adding the complex conjugates, gives the complete collection of solutions as: and

History

The Babylonians, as early as 1800 BC (displayed on Old Babylonian
Old Babylonian

Old Babylonian may refer to:*the period of the First Babylonian Dynasty *the historical stage of the Akkadian language of that time...
 clay tablet
Clay tablet

In ancient times, small tablets made out of clay were used as a writing medium.From the 4th millennium BCE in the Sumerian, Babylonian, Assyrian and Hittites civilisations of the Mesopotamia region, Cuneiform characters were imprinted on a wet clay tablet with a stylus often made of reed....
s) could solve a pair of simultaneous equations of the form:

which are equivalent to the equation:

The original pair of equations were solved as follows:

  1. Form
  2. Form
  3. Form
  4. Form
  5. Find by inspection of the values in (1) and (4).


In the Sulba Sutras
Sulba Sutras

The Shulba Sutras or Sulbasutras are sutra texts belonging to the Srauta ritual and containing geometry related to fire-altar construction....
 in ancient India
Indian subcontinent

The Indian subcontinent is a large section of the Asian continent consisting of the land lying substantially on the Indian Plate. The subcontinent includes parts of various countries in South Asia, including those on the continental crust , an Island#Continental islands country on the continental shelf , and an Island#Oceanic islands countr...
 circa 8th century BCE quadratic equations of the form ax2 = c and ax2 + bx = c were explored using geometric methods. Babylonian mathematicians
Babylonian mathematics

Babylonian mathematics refers to any mathematics of the peoples of Mesopotamia , from the days of the early Sumerians to the fall of Babylon in 539 BC....
 from circa 400 BCE and Chinese mathematicians
Chinese mathematics

Mathematics in China emerged independently by the 11th century BC. The Chinese independently developed very large and negative numbers, decimals, a decimal system, a binary system, algebra, geometry, trigonometry....
 from circa 200 BCE used the method of completing the square
Completing the square

In elementary algebra, completing the square is a technique for converting a quadratic polynomial of the formto the formThe expression inside the parenthesis is of the form x − constant....
 to solve quadratic equations with positive roots, but did not have a general formula. Euclid
Euclid

Euclid , floruit 300 BC, also known as Euclid of Alexandria, was a Greek mathematics and is often referred to as the Father of Geometry. He was active in Alexandria during the reign of Ptolemy I ....
, the Greek mathematician, produced a more abstract geometrical method around 300 BCE.

In 628 CE, Brahmagupta
Brahmagupta

Brahmagupta was an Indian Indian mathematics and Indian astronomy....
, an Indian mathematician, gave the first explicit (although still not completely general) solution of the quadratic equation
Quadratic equation

In mathematics, a quadratic equation is a polynomial equation of the second degree of a polynomial. The general form iswhere a ? 0. 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 i...
:

This is equivalent to:

The Bakhshali Manuscript
Bakhshali Manuscript

The Bakhshali Manuscript is a Mathematics manuscript written on Birch bark document which was found near the village of Bakhshali in 1881 in what was then the North-West Frontier Province of British India ....
 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
Indeterminate (variable)

In mathematics, more precisely in algebra, an indeterminate is a quantity that is not known, and cannot be solved for. An indeterminate is different from a variable, which is solvable, at least conditionally, from a given equation or set of equations....
 equations (originally of type ax/c = y). Mohammad bin Musa Al-kwarismi
Muhammad ibn Musa al-Khwarizmi

Muhammad ibn Musa Khwarizmi was a Persian people mathematics, astronomer and geographer. He was born around 780 in Khwarezm, in contemporary Khiva, Uzbekistan, which was then part of the native Iranian-Khwarizmian Afrigid dynasty, and died around 850....
 (Persia, 9th century) developed a set of formulae that worked for positive solutions based on Brahmagupta
Brahmagupta

Brahmagupta was an Indian Indian mathematics and Indian astronomy....
. The Catalan Jewish mathematician Abraham bar Hiyya Ha-Nasi
Abraham bar Hiyya Ha-Nasi

was a Spain Jewish mathematician, astronomer and philosopher, also known as 'Savasorda' . He lived in Barcelona....
 authored the first book to include the full solution to the general quadratic equation.

The writing of the Chinese mathematician Yang Hui
Yang Hui

Yang Hui , courtesy name Qianguang , was a China mathematician from Qiantang , Zhejiang province during the late Song Dynasty . Yang worked on magic squares, magic circle and binomial theorem, and is best known for his contribution of presenting 'Yang Hui's Triangle'....
 (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. The first appearance of the general solution in the modern mathematical literature is evidently in an 1896 paper by Henry Heaton.

Derivation

The quadratic formula can be derived by the method of completing the square
Completing the square

In elementary algebra, completing the square is a technique for converting a quadratic polynomial of the formto the formThe expression inside the parenthesis is of the form x − constant....
, so as to make use of the algebraic identity:

Dividing the quadratic equation

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

or

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

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

or

and

thus

Adding this constant to equation (1) produces

The left side is now a perfect square
Perfect square

Perfect square may refer to:...
 because

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

Taking the square root
Square root

In mathematics, a square root of a number x is a number r such that r2 = x, or, in other words, a number r whose square is x....
 of both sides yields

Isolating x, gives

Alternative formula

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

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. Instead, one of the two choices for ± produces a division by zero
Division by zero

In mathematics, a division is called a division by zero if the divisor is 0 . Such a division can be formally expressed as a/0 where a is the dividend....
, which is undefined.

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

The alternative formula can reduce loss of precision in the numerical evaluation of the roots, which may be a problem if one of the roots is much smaller than the other in absolute magnitude. The problem of c possibly being zero can be avoided by using a mixed approach:

Here sgn denotes the sign function
Sign function

In mathematics, the sign function is an Even and odd functions function that extracts the negative and non-negative numbers of a real number....
.

Floating point implementation

A careful floating point
Floating point

In computing, floating point describes a system for numerical representation in which a String of digits represents a rational number.The term floating point refers to the fact that the radix point can "float": that is, it can be placed anywhere relative to the Significant figures of the number....
 computer implementation differs a little from both forms to produce a robust result. Assuming the discriminant, , is positive and b is nonzero, the code will be something like the following.


Here sgn(b) is the sign function
Sign function

In mathematics, the sign function is an Even and odd functions function that extracts the negative and non-negative numbers of a real number....
, 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
Loss of significance

Loss of significance is an undesirable effect in calculations using floating point arithmetic. It occurs when an operation on two numbers increases relative error substantially more than it increases absolute error, for example in subtracting two large and nearly equal numbers....
. The computation of r2 uses the fact that the product of the roots is c/a.

See Numerical Recipes in C, Section 5.6: "Quadratic and Cubic Equations".

Vičte's formulas

Vičte's formulas
Vičte's formulas

In mathematics, more specifically in algebra, Vi?te's formulas, named after Fran?ois Vi?te, are formulas which relate the coefficients of a polynomial to signed sums and products of its root ....
 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, is a polynomial function of the form , where . The graph of a function of a quadratic function is a parabola whose major axis is parallel to the y-axis....
, 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:

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 a, b and c are complex number
Complex number

In mathematics, the complex numbers are an extension of the real numbers obtained by adjoining an imaginary unit, denoted i, which satisfies:...
s, or more generally members of any field
Field (mathematics)

In abstract algebra, a field is an algebraic structure with notions of addition, subtraction, multiplication and division , satisfying certain axioms....
 whose characteristic
Characteristic (algebra)

In mathematics, the characteristic of a ring R, often denoted char, is defined to be the smallest number of times one must add the ring's multiplicative identity element to itself to get the additive identity element ; the ring is said to have characteristic zero if this repeated sum never reaches the additive identity....
 is not 2. (In a field of characteristic 2, the element 2a is zero and it is impossible to divide by it.)

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
Unit (ring theory)

In mathematics, a unit in a ring R is an invertible element of R, i.e. an element u such that there is a v in R withThat is, u is an invertible element of the multiplicative monoid of R....
, does not hold. Consider the monic quadratic polynomial

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

and note that there is only one root since

In summary,

See quadratic residue
Quadratic residue

An integer q is called a quadratic residue modular arithmetic n if it is Congruence relation to a perfect square ; i.e., if there exists an integer x such that:...
 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
Irreducible polynomial

In mathematics, the adjective irreducible means that an object cannot be expressed as a product of at least two non-trivial factors in a given set....
, 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 x2 + x + c, an element of the splitting field
Splitting field

In abstract algebra, the splitting field of a polynomial P over a given field K is a field extension L of K, over which P factorizes into linear factors...
 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 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 (thus a and a + 1 are roots of x2 + x + 1 over F4). Because (a + 1)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
Artin-Schreier theory

In mathematics, Artin?Schreier theory is a branch of Galois theory, and more specifically is a positive characteristic analogue of Kummer theory, for Field extension of degree equal to the characteristic p....
.

See also


External links

  • 101 uses of a quadratic equation
  • Interactive applet. Sliders for a,b,c show effects on a graph.
  • Trigonometric solutions:
  • Basic Explanation & Application
  • from cut-the-knot
    Cut-the-knot

    Cut-the-knot is an educational website maintained by Alexander Bogomolny and devoted to popular exposition of a great variety of topics in mathematics....