Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Quadratic formula

From Wikipedia, the free encyclopedia
Formula that provides the solutions to a quadratic equation
Not to be confused withquadratic function orquadratic equation.
A graph of a parabola-shaped function which intersects the x-axis at x = 1 and x = 5
The roots of the quadratic functiony =1/2x2 − 3x +5/2 are the places where the graph intersects thex-axis, the valuesx = 1 andx = 5. They can be found via the quadratic formula.

Inelementary algebra, thequadratic formula is aclosed-form expression describing the solutions of aquadratic equation. Other ways of solving quadratic equations, such ascompleting the square, yield the same solutions.

Given a general quadratic equation of the formax2+bx+c=0{\displaystyle \textstyle ax^{2}+bx+c=0}, withx{\displaystyle x} representing an unknown, andcoefficientsa{\displaystyle a},b{\displaystyle b}, andc{\displaystyle c} representing knownreal orcomplex numbers witha0{\displaystyle a\neq 0}, the values ofx{\displaystyle x} satisfying the equation, called theroots orzeros, can be found using the quadratic formula,

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

where theplus–minus symbol "±{\displaystyle \pm }" indicates that the equation has two roots.[1] Written separately, these are:

x1=b+b24ac2a,x2=bb24ac2a.{\displaystyle x_{1}={\frac {-b+{\sqrt {b^{2}-4ac}}}{2a}},\qquad x_{2}={\frac {-b-{\sqrt {b^{2}-4ac}}}{2a}}.}

The quantityΔ=b24ac{\displaystyle \textstyle \Delta =b^{2}-4ac} is known as thediscriminant of the quadratic equation.[2] If the coefficientsa{\displaystyle a},b{\displaystyle b}, andc{\displaystyle c} are real numbers then whenΔ>0{\displaystyle \Delta >0}, the equation has two distinct real roots; whenΔ=0{\displaystyle \Delta =0}, the equation has onerepeated real root; and whenΔ<0{\displaystyle \Delta <0}, the equation hasno real roots but has two distinct complex roots, which arecomplex conjugates of each other.

Geometrically, the roots represent thex{\displaystyle x} values at which thegraph of thequadratic functiony=ax2+bx+c{\displaystyle \textstyle y=ax^{2}+bx+c}, aparabola, crosses thex{\displaystyle x}-axis: the graph'sx{\displaystyle x}-intercepts.[3] The quadratic formula can also be used to identify the parabola'saxis of symmetry.[4]

Derivation by completing the square

[edit]
To complete the square, form a squared binomial on the left-hand side of a quadratic equation, from which the solution can be found by taking the square root of both sides.

The standard way to derive the quadratic formula is to apply the method ofcompleting the square to the generic quadratic equationax2+bx+c=0{\displaystyle \textstyle ax^{2}+bx+c=0}.[5][6][7][8] The idea is to transform the equation into the form(x+k)2=s{\displaystyle \textstyle (x+k)^{2}=s} for some expressionsk{\displaystyle k} ands{\displaystyle s} written in terms of the coefficients; take thesquare root of both sides; and then isolatex{\displaystyle x}.

We start by dividing the equation by the quadratic coefficienta{\displaystyle a}, which is allowed becausea{\displaystyle a} is non-zero. Afterwards, we subtract the constant termc/a{\displaystyle c/a} to isolate it on the right-hand side:

ax2|+bx+c=0x2+bax+ca=0x2+bax=ca.{\displaystyle {\begin{aligned}ax^{2{\vphantom {|}}}+bx+c&=0\\[3mu]x^{2}+{\frac {b}{a}}x+{\frac {c}{a}}&=0\\[3mu]x^{2}+{\frac {b}{a}}x&=-{\frac {c}{a}}.\end{aligned}}}

The left-hand side is now of the formx2+2kx{\displaystyle \textstyle x^{2}+2kx}, and we can "complete the square" by adding a constantk2{\displaystyle \textstyle k^{2}} to obtain a squared binomialx2+2kx+k2={\displaystyle \textstyle x^{2}+2kx+k^{2}={}}(x+k)2{\displaystyle \textstyle (x+k)^{2}}. In this example we add(b/2a)2{\displaystyle \textstyle (b/2a)^{2}} to both sides so that the left-hand side can be factored (see the figure):

x2+2(b2a)x+(b2a)2=ca+(b2a)2(x+b2a)2=b24ac4a2.{\displaystyle {\begin{aligned}x^{2}+2\left({\frac {b}{2a}}\right)x+\left({\frac {b}{2a}}\right)^{2}&=-{\frac {c}{a}}+\left({\frac {b}{2a}}\right)^{2}\\[5mu]\left(x+{\frac {b}{2a}}\right)^{2}&={\frac {b^{2}-4ac}{4a^{2}}}.\end{aligned}}}

Because the left-hand side is now a perfect square, we can easily take the square root of both sides:

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

Finally, subtractingb/2a{\displaystyle b/2a} from both sides to isolatex{\displaystyle x} produces the quadratic formula:

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

Equivalent formulations

[edit]

The quadratic formula can equivalently be written using various alternative expressions, for instance

x=b2a±(b2a)2ca,{\displaystyle x=-{\frac {b}{2a}}\pm {\sqrt {\left({\frac {b}{2a}}\right)^{2}-{\frac {c}{a}}}},}

which can be derived by first dividing a quadratic equation by2a{\displaystyle 2a}, resulting in12x2+b2ax+c2a=0{\displaystyle \textstyle {\tfrac {1}{2}}x^{2}+{\tfrac {b}{2a}}x+{\tfrac {c}{2a}}=0}, then substituting the new coefficients into the standard quadratic formula. Because this variant allows re-use of the intermediately calculated quantityb2a{\displaystyle {\tfrac {b}{2a}}}, it can slightly reduce the arithmetic involved.

Square root in the denominator

[edit]

A lesser known quadratic formula, first mentioned byGiulio Fagnano,[9] describes the same roots via an equation with the square root in the denominator (assumingc0{\displaystyle c\neq 0}):

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

Here theminus–plus symbol "{\displaystyle \mp }" indicates that the two roots of the quadratic equation, in the same order as the standard quadratic formula, are

x1=2cbb24ac,x2=2cb+b24ac.{\displaystyle x_{1}={\frac {2c}{-b-{\sqrt {b^{2}-4ac}}}},\qquad x_{2}={\frac {2c}{-b+{\sqrt {b^{2}-4ac}}}}.}

This variant has been jokingly called the "citardauq" formula ("quadratic" spelled backwards).[10]

Whenb{\displaystyle -b} has the opposite sign as either+b24ac{\displaystyle \textstyle +{\sqrt {b^{2}-4ac}}} orb24ac{\displaystyle \textstyle -{\sqrt {b^{2}-4ac}}}, subtraction can causecatastrophic cancellation, resulting in poor accuracy in numerical calculations; choosing between the version of the quadratic formula with the square root in the numerator or denominator depending on the sign ofb{\displaystyle b} can avoid this problem. See§ Numerical calculation below.

This version of the quadratic formula is used inMuller's method for finding the roots of general functions. It can be derived from the standard formula from the identityx1x2=c/a{\displaystyle x_{1}x_{2}=c/a}, one ofVieta's formulas. Alternately, it can be derived by dividing each side of the equationax2+bx+c=0{\displaystyle \textstyle ax^{2}+bx+c=0} byx2{\displaystyle \textstyle x^{2}} to getcx2+bx1+a=0{\displaystyle \textstyle cx^{-2}+bx^{-1}+a=0}, applying the standard formula to find the two rootsx1{\displaystyle \textstyle x^{-1}\!}, and then taking the reciprocal to find the rootsx{\displaystyle x} of the original equation.

Other derivations

[edit]

Any generic method or algorithm for solving quadratic equations can be applied to an equation with symbolic coefficients and used to derive some closed-form expression equivalent to the quadratic formula. Alternative methods are sometimes simpler than completing the square, and may offer interesting insight into other areas of mathematics.

Completing the square by Śrīdhara's method

[edit]

Instead of dividing bya{\displaystyle a} to isolatex2{\displaystyle \textstyle x^{2}\!}, it can be slightly simpler to multiply by4a{\displaystyle 4a} instead to produce(2ax)2{\displaystyle \textstyle (2ax)^{2}\!}, which allows us to complete the square without need for fractions. Then the steps of the derivation are:[11]

  1. Multiply each side by4a{\displaystyle 4a}.
  2. Addb24ac{\displaystyle \textstyle b^{2}-4ac} to both sides to complete the square.
  3. Take the square root of both sides.
  4. Isolatex{\displaystyle x}.

Applying this method to a generic quadratic equation with symbolic coefficients yields the quadratic formula:

ax2+bx+c=04a2x2+4abx+4ac=04a2x2+4abx+b2=b24ac(2ax+b)2=b24ac2ax+b=±b24acx=b±b24ac2a.){\displaystyle {\begin{aligned}ax^{2}+bx+c&=0\\[3mu]4a^{2}x^{2}+4abx+4ac&=0\\[3mu]4a^{2}x^{2}+4abx+b^{2}&=b^{2}-4ac\\[3mu](2ax+b)^{2}&=b^{2}-4ac\\[3mu]2ax+b&=\pm {\sqrt {b^{2}-4ac}}\\[5mu]x&={\dfrac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}.{\vphantom {\bigg )}}\end{aligned}}}

This method for completing the square is ancient and was known to the 8th–9th century Indian mathematicianŚrīdhara.[12] Compared with the modern standard method for completing the square, this alternate method avoids fractions until the last step and hence does not require a rearrangement after step 3 to obtain a common denominator in the right side.[11]

By substitution

[edit]

Another derivation uses achange of variables to eliminate the linear term. Then the equation takes the formu2=s{\displaystyle \textstyle u^{2}=s} in terms of a new variableu{\displaystyle u} and some constant expressions{\displaystyle s}, whose roots are thenu=±s{\displaystyle u=\pm {\sqrt {s}}}.

By substitutingx=ub2a{\displaystyle x=u-{\tfrac {b}{2a}}} intoax2+bx+c=0{\displaystyle \textstyle ax^{2}+bx+c=0}, expanding the products and combininglike terms, and then solving foru2{\displaystyle \textstyle u^{2}\!}, we have:

a(ub2a)2+b(ub2a)+c=0a(u2bau+b24a2)+b(ub2a)+c=0au2bu+b24a+bub22a+c=0au2+4acb24a=0u2=b24ac4a2.{\displaystyle {\begin{aligned}a\left(u-{\frac {b}{2a}}\right)^{2}+b\left(u-{\frac {b}{2a}}\right)+c&=0\\[5mu]a\left(u^{2}-{\frac {b}{a}}u+{\frac {b^{2}}{4a^{2}}}\right)+b\left(u-{\frac {b}{2a}}\right)+c&=0\\[5mu]au^{2}-bu+{\frac {b^{2}}{4a}}+bu-{\frac {b^{2}}{2a}}+c&=0\\[5mu]au^{2}+{\frac {4ac-b^{2}}{4a}}&=0\\[5mu]u^{2}&={\frac {b^{2}-4ac}{4a^{2}}}.\end{aligned}}}

Finally, after taking a square root of both sides and substituting the resulting expression foru{\displaystyle u} back intox=ub2a,{\displaystyle x=u-{\tfrac {b}{2a}},} the familiar quadratic formula emerges:

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

By using algebraic identities

[edit]

The following method was used by many historical mathematicians:[13]

Let the roots of the quadratic equationax2+bx+c=0{\displaystyle \textstyle ax^{2}+bx+c=0} beα{\displaystyle \alpha } andβ{\displaystyle \beta }. The derivation starts from an identity for the square of a difference (valid for any two complex numbers), of which we can take the square root on both sides:

(αβ)2=(α+β)24αβαβ=±(α+β)24αβ.{\displaystyle {\begin{aligned}(\alpha -\beta )^{2}&=(\alpha +\beta )^{2}-4\alpha \beta \\[3mu]\alpha -\beta &=\pm {\sqrt {(\alpha +\beta )^{2}-4\alpha \beta }}.\end{aligned}}}

Since the coefficienta0{\displaystyle a\neq 0}, we can divide the quadratic equation bya{\displaystyle a} to obtain amonic polynomial with the same roots. Namely,

x2+bax+ca=(xα)(xβ)=x2(α+β)x+αβ.{\displaystyle x^{2}+{\frac {b}{a}}x+{\frac {c}{a}}=(x-\alpha )(x-\beta )=x^{2}-(\alpha +\beta )x+\alpha \beta .}

This implies that the sumα+β=ba{\displaystyle \alpha +\beta =-{\tfrac {b}{a}}} and the productαβ=ca{\displaystyle \alpha \beta ={\tfrac {c}{a}}}. Thus the identity can be rewritten:

αβ=±(ba)24ca=±b24aca.{\displaystyle \alpha -\beta =\pm {\sqrt {\left(-{\frac {b}{a}}\right)^{2}-4{\frac {c}{a}}}}=\pm {\frac {\sqrt {b^{2}-4ac}}{a}}.}

Therefore,

α=12(α+β)+12(αβ)=b2a±b24ac2a,β=12(α+β)12(αβ)=b2ab24ac2a.{\displaystyle {\begin{aligned}\alpha &={\tfrac {1}{2}}(\alpha +\beta )+{\tfrac {1}{2}}(\alpha -\beta )=-{\frac {b}{2a}}\pm {\frac {\sqrt {b^{2}-4ac}}{2a}},\\[10mu]\beta &={\tfrac {1}{2}}(\alpha +\beta )-{\tfrac {1}{2}}(\alpha -\beta )=-{\frac {b}{2a}}\mp {\frac {\sqrt {b^{2}-4ac}}{2a}}.\end{aligned}}}

The two possibilities for each ofα{\displaystyle \alpha } andβ{\displaystyle \beta } are the same two roots in opposite order, so we can combine them into the standard quadratic equation:x=b±b24ac2a.{\displaystyle x={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}.}

By Lagrange resolvents

[edit]
Further information:Lagrange resolvents

An alternative way of deriving the quadratic formula is via the method ofLagrange resolvents,[14] which is an early part ofGalois theory.[15]This method can be generalized to give the roots ofcubic polynomials andquartic polynomials, and leads to Galois theory, which allows one to understand the solution of algebraic equations of any degree in terms of thesymmetry group of their roots, theGalois group.

This approach focuses on the roots themselves rather than algebraically rearranging the original equation. Given a monic quadratic polynomialx2+px+q{\displaystyle \textstyle x^{2}+px+q} assume thatα{\displaystyle \alpha } andβ{\displaystyle \beta } are the two roots. So the polynomial factors as

x2+px+q=(xα)(xβ)=x2(α+β)x+αβ{\displaystyle {\begin{aligned}x^{2}+px+q&=(x-\alpha )(x-\beta )\\[3mu]&=x^{2}-(\alpha +\beta )x+\alpha \beta \end{aligned}}}

which impliesp=(α+β){\displaystyle p=-(\alpha +\beta )} andq=αβ{\displaystyle q=\alpha \beta }.

Since multiplication and addition are bothcommutative, exchanging the rootsα{\displaystyle \alpha } andβ{\displaystyle \beta } will not change the coefficientsp{\displaystyle p} andq{\displaystyle q}: one can say thatp{\displaystyle p} andq{\displaystyle q} aresymmetric polynomials inα{\displaystyle \alpha } andβ{\displaystyle \beta }. Specifically, they are theelementary symmetric polynomials – any symmetric polynomial inα{\displaystyle \alpha } andβ{\displaystyle \beta } can be expressed in terms ofα+β{\displaystyle \alpha +\beta } andαβ{\displaystyle \alpha \beta } instead.

The Galois theory approach to analyzing and solving polynomials is to ask whether, given coefficients of a polynomial each of which is a symmetric function in the roots, one can "break" the symmetry and thereby recover the roots. Using this approach, solving a polynomial of degreen{\displaystyle n} is related to the ways of rearranging ("permuting")n{\displaystyle n} terms, called thesymmetric group onn{\displaystyle n} letters and denotedSn{\displaystyle S_{n}}. For the quadratic polynomial, the only ways to rearrange two roots are to either leave them be or totranspose them, so solving a quadratic polynomial is simple.

To find the rootsα{\displaystyle \alpha } andβ{\displaystyle \beta }, consider their sum and difference:

r1=α+β,r2=αβ.{\displaystyle r_{1}=\alpha +\beta ,\quad r_{2}=\alpha -\beta .}

These are called theLagrange resolvents of the polynomial, from which the roots can be recovered as

α=12(r1+r2),β=12(r1r2).{\displaystyle \alpha ={\tfrac {1}{2}}(r_{1}+r_{2}),\quad \beta ={\tfrac {1}{2}}(r_{1}-r_{2}).}

Becauser1=α+β{\displaystyle r_{1}=\alpha +\beta } is a symmetric function inα{\displaystyle \alpha } andβ{\displaystyle \beta }, it can be expressed in terms ofp{\displaystyle p} andq,{\displaystyle q,} specificallyr1=p{\displaystyle r_{1}=-p} as described above. However,r2=αβ{\displaystyle r_{2}=\alpha -\beta } is not symmetric, since exchangingα{\displaystyle \alpha } andβ{\displaystyle \beta } yields the additive inverser2=βα{\displaystyle -r_{2}=\beta -\alpha }. Sor2{\displaystyle r_{2}} cannot be expressed in terms of the symmetric polynomials. However, its squarer22=(αβ)2{\displaystyle \textstyle r_{2}^{2}=(\alpha -\beta )^{2}}is symmetric in the roots, expressible in terms ofp{\displaystyle p} andq{\displaystyle q}. Specificallyr22=(αβ)2={\displaystyle \textstyle r_{2}^{2}=(\alpha -\beta )^{2}={}}(α+β)24αβ={\displaystyle \textstyle (\alpha +\beta )^{2}-4\alpha \beta ={}}p24q{\displaystyle \textstyle p^{2}-4q}, which impliesr2=±p24q{\displaystyle \textstyle r_{2}=\pm {\sqrt {p^{2}-4q}}}. Taking the positive root "breaks" the symmetry, resulting in

r1=p,r2=p24q{\displaystyle r_{1}=-p,\qquad r_{2}={\textstyle {\sqrt {p^{2}-4q}}}}

from which the rootsα{\displaystyle \alpha } andβ{\displaystyle \beta } are recovered as

x=12(r1±r2)=12(p±p24q){\displaystyle x={\tfrac {1}{2}}(r_{1}\pm r_{2})={\tfrac {1}{2}}{\bigl (}{-p}\pm {\textstyle {\sqrt {p^{2}-4q}}}\,{\bigr )}}

which is the quadratic formula for a monic polynomial.

Substitutingp=b/a{\displaystyle p=b/a},q=c/a{\displaystyle q=c/a} yields the usual expression for an arbitrary quadratic polynomial. The resolvents can be recognized as

12r1=12p=b2a,r22=p24q=b24aca2,{\displaystyle {\tfrac {1}{2}}r_{1}=-{\tfrac {1}{2}}p=-{\frac {b}{2a}},\qquad r_{2}^{2}=p_{2}-4q={\frac {b^{2}-4ac}{a^{2}}},}

respectively the vertex and the discriminant of the monic polynomial.

A similar but more complicated method works forcubic equations, which have three resolvents and a quadratic equation (the "resolving polynomial") relatingr2{\displaystyle r_{2}} andr3{\displaystyle r_{3}}, which one can solve by the quadratic equation, and similarly for aquartic equation (degree 4), whose resolving polynomial is a cubic, which can in turn be solved.[14] The same method for aquintic 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.

Numerical calculation

[edit]

The quadratic formula is exactly correct when performed using the idealized arithmetic ofreal numbers, but when approximate arithmetic is used instead, for example pen-and-paper arithmetic carried out to a fixed number of decimal places or thefloating-point binary arithmetic available on computers, the limitations of the number representation can lead to substantially inaccurate results unless great care is taken in the implementation. Specific difficulties includecatastrophic cancellation in computing the sumb±Δ{\displaystyle \textstyle -b\pm {\sqrt {\Delta }}} ifb±Δ{\displaystyle \textstyle b\approx \pm {\sqrt {\Delta }}}; catastrophic calculation in computing the discriminantΔ=b24ac{\displaystyle \textstyle \Delta =b^{2}-4ac} itself in cases whereb24ac{\displaystyle \textstyle b^{2}\approx 4ac}; degeneration of the formula whena{\displaystyle a},b{\displaystyle b}, orc{\displaystyle c} is represented as zero or infinite; and possibleoverflow or underflow when multiplying or dividing extremely large or small numbers, even in cases where the roots can be accurately represented.[16][17]

Catastrophic cancellation occurs when two numbers which are approximately equal are subtracted. While each of the numbers may independently be representable to a certain number of digits of precision, the identical leading digits of each number cancel, resulting in a difference of lower relative precision. WhenbΔ{\displaystyle \textstyle b\approx {\sqrt {\Delta }}}, evaluation ofb+Δ{\displaystyle \textstyle -b+{\sqrt {\Delta }}} causes catastrophic cancellation, as does the evaluation ofbΔ{\displaystyle \textstyle -b-{\sqrt {\Delta }}} whenbΔ{\displaystyle \textstyle b\approx -{\sqrt {\Delta }}}. When using the standard quadratic formula, calculating one of the two roots always involves addition, which preserves the working precision of the intermediate calculations, while calculating the other root involves subtraction, which compromises it. Therefore, naïvely following the standard quadratic formula often yields one result with less relative precision than expected. Unfortunately, introductory algebra textbooks typically do not address this problem, even though it causes students to obtain inaccurate results in other school subjects such as introductory chemistry.[18]

For example, if trying to solve the equationx21634x+2=0{\displaystyle \textstyle x^{2}-1634x+2=0} using a pocket calculator, the result of the quadratic formulax=817±667487{\displaystyle \textstyle x=817\pm {\sqrt {667\,487}}} might be approximately calculated as:[19]

x1=817+816.9987760=1.633998776×103,x2=817816.9987760=1.224×103.{\displaystyle {\begin{alignedat}{3}x_{1}&=817+816.998\,776\,0&&=1.633\,998\,776\times 10^{3},\\x_{2}&=817-816.998\,776\,0&&=1.224\times 10^{-3}.\end{alignedat}}}

Even though the calculator used ten decimal digits of precision for each step, calculating the difference between two approximately equal numbers has yielded a result forx2{\displaystyle x_{2}} with only four correct digits.

One way to recover an accurate result is to use the identityx1x2=c/a{\displaystyle x_{1}x_{2}=c/a}. In this examplex2{\displaystyle x_{2}} can be calculated asx2=2/x1={\displaystyle x_{2}=2/x_{1}={}}1.223991125×103{\displaystyle 1.223\,991\,125\times 10^{-3}\!}, which is correct to the full ten digits. Another more or less equivalent approach is to use the version of the quadratic formula with the square root in the denominator to calculate one of the roots (see§ Square root in the denominator above).

Practical computer implementations of the solution of quadratic equations commonly choose which formula to use for each root depending on the sign ofb{\displaystyle b}.[20]

These methods do not prevent possible overflow or underflow of the floating-point exponent in computingb2{\displaystyle \textstyle b^{2}} or4ac{\displaystyle 4ac}, which can lead to numerically representable roots not being computed accurately. A more robust but computationally expensive strategy is to start with the substitutionx=usgn(b)|c|/|a|{\displaystyle \textstyle x=-u\operatorname {sgn}(b){\sqrt {\vert c\vert }}{\big /}\!{\sqrt {\vert a\vert }}}, turning the quadratic equation into

u22|b|2|a||c|u+sgn(c)=0,{\displaystyle u^{2}-2{\frac {|b|}{2{\sqrt {|a|}}{\sqrt {|c|}}}}u+\operatorname {sgn}(c)=0,}

wheresgn{\displaystyle \operatorname {sgn} } is thesign function. Lettingd=|b|/2|a||c|{\displaystyle \textstyle d=\vert b\vert {\big /}2{\sqrt {\vert a\vert }}{\sqrt {\vert c\vert }}}, this equation has the formu22du±1=0{\displaystyle \textstyle u^{2}-2du\pm 1=0}, for which one solution isu1=d+d21{\displaystyle \textstyle u_{1}=d+{\sqrt {d^{2}\mp 1}}} and the other solution isu2=±1/u1{\displaystyle \textstyle u_{2}=\pm 1/u_{1}}. The roots of the original equation are thenx1=sgn(b)(|c|/|a| )u1{\displaystyle \textstyle x_{1}=-\operatorname {sgn}(b){\bigl (}{\sqrt {\vert c\vert }}{\big /}\!{\sqrt {\vert a\vert }}~\!{\bigr )}u_{1}} andx2=sgn(b)(|c|/|a| )u2{\displaystyle \textstyle x_{2}=-\operatorname {sgn}(b){\bigl (}{\sqrt {\vert c\vert }}{\big /}\!{\sqrt {\vert a\vert }}~\!{\bigr )}u_{2}}.[21][22]

With additional complication the expense and extra rounding of the square roots can be avoided by approximating them aspowers of two, while still avoiding exponent overflow for representable roots.[17]

Historical development

[edit]

The earliest methods for solving quadratic equations were geometric. Babylonian cuneiform tablets contain problems reducible to solving quadratic equations.[23] The EgyptianBerlin Papyrus, dating back to theMiddle Kingdom (2050 BC to 1650 BC), contains the solution to a two-term quadratic equation.[24]

The Greek mathematicianEuclid (circa 300 BC) used geometric methods to solve quadratic equations in Book 2 of hisElements, an influential mathematical treatise[25] Rules for quadratic equations appear in the ChineseThe Nine Chapters on the Mathematical Art circa 200 BC.[26][27] In his workArithmetica, the Greek mathematicianDiophantus (circa 250 AD) solved quadratic equations with a method more recognizably algebraic than thegeometric algebra of Euclid.[25] His solution gives only one root, even when both roots are positive.[28]

TheIndian mathematicianBrahmagupta included a generic method for finding one root of a quadratic equation in his treatiseBrāhmasphuṭasiddhānta (circa 628 AD), written out in words in the style of that time.[29][30] His solution of the quadratic equationax2+bx=c{\displaystyle \textstyle ax^{2}+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."[31]In modern notation, this can be writtenx=(c4a+b2b)/2a{\displaystyle \textstyle x={\bigl (}{\sqrt {c\cdot 4a+b^{2}}}-b{\bigr )}{\big /}2a}. The Indian mathematicianŚrīdhara (8th–9th century) came up with a similar algorithm for solving quadratic equations in a now-lost work on algebra quoted byBhāskara II.[32] The modern quadratic formula is sometimes calledSridharacharya's formula in India andBhaskara's formula in Brazil.[33]

The 9th-century Persian mathematicianMuḥammad ibn Mūsā al-Khwārizmī solved quadratic equations algebraically.[34] The quadratic formula covering all cases was first obtained bySimon Stevin in 1594.[35] In 1637René Descartes publishedLa Géométrie containing special cases of the quadratic formula in the form we know today.[36]

Geometric significance

[edit]

In terms of coordinate geometry, an axis-aligned parabola is a curve whose(x,y){\displaystyle (x,y)}-coordinates are thegraph of a second-degree polynomial, of the formy=ax2+bx+c{\displaystyle \textstyle y=ax^{2}+bx+c}, wherea{\displaystyle a},b{\displaystyle b}, andc{\displaystyle c} are real-valued constant coefficients witha0{\displaystyle a\neq 0}.

Geometrically, the quadratic formula defines the points(x,0){\displaystyle (x,0)} on the graph, where the parabola crosses thex{\displaystyle x}-axis. Furthermore, it can be separated into two terms,

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

The first term describes theaxis of symmetry, the linex=b2a{\displaystyle x=-{\tfrac {b}{2a}}}. The second term,b24ac/2a{\displaystyle \textstyle {\sqrt {b^{2}-4ac}}{\big /}2a}, gives the distance the roots are away from the axis of symmetry.

If the parabola's vertex is on thex{\displaystyle x}-axis, then the corresponding equation has a single repeated root on the line of symmetry, and this distance term is zero; algebraically, the discriminantb24ac=0{\displaystyle \textstyle b^{2}-4ac=0}.

If the discriminant is positive, then the vertex is not on thex{\displaystyle x}-axis but the parabola opens in the direction of thex{\displaystyle x}-axis, crossing it twice, so the corresponding equation has two real roots. If the discriminant is negative, then the parabola opens in the opposite direction, never crossing thex{\displaystyle x}-axis, and the equation has no real roots; in this case the two complex-valued roots will becomplex conjugates whose real part is thex{\displaystyle x} value of the axis of symmetry.

Dimensional analysis

[edit]

If the constantsa{\displaystyle a},b{\displaystyle b}, and/orc{\displaystyle c} are notunitless then the quantitiesx{\displaystyle x} andba{\displaystyle {\tfrac {b}{a}}} must have the same units, because the termsax2{\displaystyle \textstyle ax^{2}} andbx{\displaystyle bx} agree on their units. By the same logic, the coefficientc{\displaystyle c} must have the same units asb2a{\displaystyle {\tfrac {b^{2}}{a}}}, irrespective of the units ofx{\displaystyle x}. This can be a powerful tool for verifying that a quadratic expression ofphysical quantities has been set up correctly.

See also

[edit]

Notes

[edit]
  1. ^Sterling, Mary Jane (2010),Algebra I For Dummies, Wiley Publishing, p. 219,ISBN 978-0-470-55964-2
  2. ^"Discriminant review",Khan Academy, retrieved2019-11-10
  3. ^"Understanding the quadratic formula",Khan Academy, retrieved2019-11-10
  4. ^"Axis of Symmetry of a Parabola. How to find axis from equation or from a graph. To find the axis of symmetry ...",www.mathwarehouse.com, retrieved2019-11-10
  5. ^Rich, Barnett; Schmidt, Philip (2004),Schaum's Outline of Theory and Problems of Elementary Algebra, The McGraw–Hill Companies,Chapter 13 §4.4, p. 291,ISBN 0-07-141083-X
  6. ^Li, Xuhui.An Investigation of Secondary School Algebra Teachers' Mathematical Knowledge for Teaching Algebraic Equation Solving, p. 56 (ProQuest, 2007): "The quadratic formula is the most general method for solving quadratic equations and is derived from another general method: completing the square."
  7. ^Rockswold, Gary.College algebra and trigonometry and precalculus, p. 178 (Addison Wesley, 2002).
  8. ^Beckenbach, Edwin et al.Modern college algebra and trigonometry, p. 81 (Wadsworth Pub. Co., 1986).
  9. ^Specifically, Fagnano began with the equationxx+bb=ax{\displaystyle xx+bb=ax} and found the solutions to bex=2bbaa14bbaa.{\displaystyle x={\frac {2bb}{a\mp a{\sqrt {1-{\dfrac {4bb}{aa}}}}}}.} (In the 18th century, the squarex2{\displaystyle \textstyle x^{2}} was conventionally written asxx{\displaystyle xx}.)

    Fagnano, Giulio Carlo (1750),"Applicazione dell' algoritmo nuovo Alla resoluzione analitica dell' equazioni del secondo, del terzo, e del quarto grado" [Application of a new algorithm to the analytical resolution of equations of the second, third, and fourth degree],Produzioni matematiche del conte Giulio Carlo di Fagnano, Marchese de' Toschi, e DiSant' Ononio (in Italian), vol. 1, Pesaro: Gavelliana, Appendice seconda, eq. 6, p. 467,doi:10.3931/e-rara-8663

  10. ^Goff, Gerald K. (1976), "The Citardauq Formula",The Mathematics Teacher,69 (7):550–551,doi:10.5951/MT.69.7.0550,JSTOR 27960584
  11. ^abHoehn, Larry (1975), "A More Elegant Method of Deriving the Quadratic Formula",The Mathematics Teacher,68 (5):442–443,doi:10.5951/MT.68.5.0442,JSTOR 27960212
  12. ^Starting from a quadratic equation of the formax2+bx=c{\displaystyle \textstyle ax^{2}+bx=c}, Śrīdhara's method, as quoted byBhāskara II (c. 1150): "Multiply both sides of the equation by a number equal to four times the [coefficient of the] square, and add to them a number equal to the square of the original [coefficient of the] unknown quantity. [Then extract the root.]".
    Smith 1923,p. 446
  13. ^Debnath, Lokenath (2009), "The legacy of Leonhard Euler – a tricentennial tribute",International Journal of Mathematical Education in Science and Technology,40 (3):353–388,doi:10.1080/00207390802642237
  14. ^abClark, A. (1984).Elements of abstract algebra. Courier Corporation. p. 146.
  15. ^Prasolov, Viktor; Solovyev, Yuri (1997),Elliptic functions and elliptic integrals, AMS Bookstore, p. 134,ISBN 978-0-8218-0587-9
  16. ^Forsythe, George E. (1969),"Solving a Quadratic Equation on a Computer",The Mathematical Sciences: A Collection of Essays, MIT Press, pp. 138–152,ISBN 0-262-03026-8
  17. ^abGoualard, Frédéric (2023),The Ins and Outs of Solving Quadratic Equations with Floating-Point Arithmetic (Technical report), University of Nantes,HAL hal-04116310
  18. ^Thompson, H. Bradford (1987), "Good numerical technique in chemistry: The quadratic equation",Journal of Chemical Education,64 (12): 1009,doi:10.1021/ed064p1009
  19. ^This example comes from:
    Henrici, Peter (1982),Essentials of Numerical Analysis with Pocket Calculator Demonstrations, New York: Wiley, p. 13
  20. ^Forsythe, George E. (1966),How Do You Solve a Quadratic Equation(PDF) (Tech report), Stanford University, STAN-CS-66-40 (AD639052)
  21. ^Baker, Henry G. (1998), "You Could Learn a Lot from a Quadratic: Overloading Considered Harmful",SIGPLAN Notices,33 (1):30–38,doi:10.1145/609742.609746
  22. ^Mastronardi, Nicola; Van Dooren, Paul (2015),"Revisiting the stability of computing the roots of a quadratic polynomial",Electronic Transactions on Numerical Analysis,44:73–83,arXiv:1409.8072, archived fromthe original on 2025-03-03, retrieved2024-03-15
  23. ^Irving 2013, p. 34.
  24. ^The Cambridge Ancient History Part 2 Early History of the Middle East, Cambridge University Press, 1971, p. 530,ISBN 978-0-521-07791-0
  25. ^abIrving 2013, p. 39.
  26. ^Aitken, Wayne,"A Chinese Classic: The Nine Chapters"(PDF), Mathematics Department, California State University, retrieved28 April 2013
  27. ^Smith 1923,p. 380.
  28. ^Smith 1923,p. 134.
  29. ^Bradley, Michael.The Birth of Mathematics: Ancient Times to 1300, p. 86 (Infobase Publishing 2006).
  30. ^Mackenzie, Dana.The Universe in Zero Words: The Story of Mathematics as Told through Equations, p. 61 (Princeton University Press, 2012).
  31. ^Stillwell, John (2004),Mathematics and Its History (2nd ed.), Springer, p. 87,ISBN 0-387-95336-1
  32. ^O'Connor, John J.;Robertson, Edmund F. (2000),"Sridhara",MacTutor History of Mathematics Archive,University of St Andrews
  33. ^Rocha, Rodrigo Luis da (2023).O uso da expressão 'fórmula de bhaskara' em livros didáticos brasileiros e sua relação com o método resolutivo da equação do 2º grau [The use of the expression 'bhaskara formula' in Brazilian textbooks and its relationship with the method for solving quadratic equations] (master's thesis) (in Portuguese). Universidade Federal do Paraná.hdl:1884/82597.
    Guedes, Eduardo Gomes (2019).A equação quadrática e as contribuições de Bhaskara [The quadratic equation and Bhaskara's contributions] (master's thesis) (in Portuguese). Universidade Federal do Paraná.hdl:1884/66582.
    Banerjee, Isha (July 2, 2024)."India Molded Math. Then Europe Claimed It".The Juggernaut.For instance, some Indian schools call the quadratic formula Sridharacharya's formula and some Brazilian schools call it Bhaskara's formula.
  34. ^Irving 2013, p. 42.
  35. ^Struik, D. J.; Stevin, Simon (1958),The Principal Works of Simon Stevin, Mathematics(PDF), vol. II–B, C. V. Swets & Zeitlinger, p. 470, archived fromthe original(PDF) on 2021-02-24, retrieved2013-10-11
  36. ^Rene Descartes,The Geometry

References

[edit]
Wikimedia Commons has media related toQuadratic formula.
Bydegree
By properties
Tools and algorithms
Retrieved from "https://en.wikipedia.org/w/index.php?title=Quadratic_formula&oldid=1336747593"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp