Quadratic formula

From HandWiki
Short description: Formula that provides the solutions to a quadratic equation
A graph of a parabola-shaped function, which intersects the x-axis at x = 1 and x = 4.
The quadratic function y = 1/2x25/2x + 2, with roots x = 1 and x = 4.

In elementary algebra, the quadratic formula is a formula that provides the two solutions, or roots, to a quadratic equation. There are other ways of solving a quadratic equation instead of using the quadratic formula, such as completing the square.

Given a general quadratic equation of the form

[math]\displaystyle{ ax^2+bx+c = 0 }[/math]

with x representing an unknown, with a, b and c representing constants, and with a ≠ 0, the quadratic formula is: [math]\displaystyle{ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} }[/math]

where the plus–minus symbol "±" indicates that the quadratic equation has two solutions.[1] Written separately, they become: [math]\displaystyle{ \begin{align} x_1 &= \frac{-b + \sqrt {b^2-4ac}}{2a}\quad\text{and} \\ x_2 &= \frac{-b - \sqrt {b^2-4ac}}{2a} \end{align} }[/math]

Each of these two solutions is also called a root (or zero) 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.[2]

As well as being a formula that yields the zeros of any parabola, the quadratic formula can also be used to identify the axis of symmetry of the parabola,[3] and the number of real zeros the quadratic equation contains.[4]

The expression Δ = b2 − 4ac is known as the discriminant. If a, b, and c are real numbers and a ≠ 0 then

  1. When b2 − 4ac > 0, there are two distinct real roots or solutions to the equation ax2 + bx + c = 0.
  2. When b2 − 4ac = 0, there is one repeated real solution.
  3. When b2 − 4ac < 0, there are two distinct complex solutions, which are complex conjugates of each other.

Equivalent formulations

The quadratic formula may also be written as [math]\displaystyle{ x = -\frac{b}{2a} \pm \sqrt{\left(\frac{b}{2a}\right)^2-\frac{c}{a}} }[/math] or [math]\displaystyle{ x = \frac{1}{a} \left(-\frac{b}{2} \pm \sqrt{\left(\frac{b}{2}\right)^2-ac}\right)\,. }[/math]

Because these formulas allow re-use of intermediately calculated values, these may be easier to use when computing with a calculator or by hand. When the discriminant [math]\displaystyle{ b^2 - 4ac }[/math] is negative, complex roots are involved and the quadratic formula can be written as: [math]\displaystyle{ x = -\frac{b}{2a} \pm i\sqrt{\left|\left(\frac{b}{2a}\right)^2-\frac{c}{a}\right|} = \frac{1}{a} \left(-\frac{b}{2} \pm i\sqrt{\left|\left(\frac{b}{2}\right)^2-ac\right|}\right)\,. }[/math]

Muller's method

A lesser known quadratic formula, also named "citardauq", which is used in Muller's method and which can be found from Vieta's formulas, provides (assuming a ≠ 0, c ≠ 0) the same roots via the equation:

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

For positive [math]\displaystyle{ b }[/math], the subtraction causes cancellation in the standard formula (respectively negative [math]\displaystyle{ b }[/math] and addition), resulting in poor accuracy. In this case, switching to Muller's formula with the opposite sign is a good workaround.

Derivations of the formula

Many different methods to derive the quadratic formula are available in the literature. The standard one is a simple application of the completing the square technique.[5][6][7][8] Alternative methods are sometimes simpler than completing the square, and may offer interesting insight into other areas of mathematics.

By completing the square

Divide the quadratic equation

[math]\displaystyle{ ax^2+bx+c = 0 }[/math]

by [math]\displaystyle{ a }[/math], which is allowed because [math]\displaystyle{ a }[/math] is non-zero: [math]\displaystyle{ x^2 + \frac{b}{a} x + \frac{c}{a}=0\, . }[/math]

Subtract c/a from both sides of the equation, yielding: [math]\displaystyle{ x^2 + \frac{b}{a} x= -\frac{c}{a}\, . }[/math]

The quadratic equation is now in a form to which the method of completing the square is applicable. In fact, by adding a constant to both sides of the equation such that the left hand side becomes a complete square, the quadratic equation becomes: [math]\displaystyle{ x^2+\frac{b}{a}x+\left( \frac{b}{2a} \right)^2 =-\frac{c}{a}+\left( \frac{b}{2a} \right)^2\, , }[/math] which produces: [math]\displaystyle{ \left(x+\frac{b}{2a}\right)^2=-\frac{c}{a}+\frac{b^2}{4a^2}\, . }[/math]

Accordingly, after rearranging the terms on the right hand side to have a common denominator, we obtain: [math]\displaystyle{ \left(x+\frac{b}{2a}\right)^2=\frac{b^2-4ac}{4a^2}\, . }[/math]

The square has thus been completed. If the discriminant [math]\displaystyle{ b^2 - 4ac }[/math] is positive, we can take the square root of both sides, yielding the following equation: [math]\displaystyle{ x+\frac{b}{2a}=\pm\frac{\sqrt{b^2-4ac}}{2a}\, . }[/math]

(In fact, this equation remains true even if the discriminant is not positive, by interpreting the root of the discriminant as any of its two opposite complex roots.)

In which case, isolating the [math]\displaystyle{ x }[/math] would give the quadratic formula: [math]\displaystyle{ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\, . }[/math]

There are many alternatives of this derivation with minor differences, mostly concerning the manipulation of [math]\displaystyle{ a }[/math].

Shorter method

Completing the square can also be accomplished by a sometimes shorter and simpler sequence:[9]

  1. Multiply each side by [math]\displaystyle{ 4a }[/math],
  2. Rearrange.
  3. Add [math]\displaystyle{ b^2 }[/math] to both sides to complete the square.
  4. The left hand side is the square of the polynomial [math]\displaystyle{ 2ax + b }[/math].
  5. Take the square root of both sides.
  6. Isolate [math]\displaystyle{ x }[/math].

Thus, the quadratic formula is derived as follows:

[math]\displaystyle{ \begin{array}{llllllc} ax^2 &+& bx &+& c &=& 0 \\ 4 a^2 x^2 &+& 4abx &+& 4ac &=& 0 \\ 4 a^2 x^2 &+& 4abx & & &=& -4ac \\ 4 a^2 x^2 &+& 4abx &+& b^2 &=& b^2 - 4ac \\ && (2ax + b)^2 && &=& b^2 - 4ac \\[1ex] \text{ (valid if } b^2-4ac \text{ is positive)} && 2ax + b && &=& \pm \sqrt{b^2-4ac} \\[3ex] && 2ax && &=& -b \pm \sqrt{b^2-4ac} \\[1ex] && && x &=& \dfrac{-b\pm\sqrt{b^2-4ac }}{2a}\, .\\[-1ex]\, \end{array} }[/math]

This derivation of the quadratic formula is ancient and was known in India at least as far back as 1025.[10] Compared with the derivation in standard usage, this alternate derivation avoids fractions and squared fractions until the last step and hence does not require a rearrangement after step 3 to obtain a common denominator in the right side.[9]

By substitution

Another technique is solution by substitution. In this technique, we substitute [math]\displaystyle{ x = y-\frac{b}{2a} }[/math].

Then [math]\displaystyle{ a(y-\frac{b}{2a})^2+b(y-\frac{b}{2a})+c=0 }[/math], so [math]\displaystyle{ a(y^2-\frac{b}{a}y+\frac{b^2}{4a^2})+b(y-\frac{b}{2a})+c=0 }[/math]. Expanding yields [math]\displaystyle{ ay^2-by+\frac{b^2}{4a}+by-\frac{b^2}{2a}+c=0 }[/math], and combining like terms further simplifies this to [math]\displaystyle{ ay^2+(c-\frac{b^2}{4a})=0 }[/math]. Moving the constant terms to the other side and dividing by a gives us the equation [math]\displaystyle{ y^2=\frac{b^2-4ac}{4a^2} }[/math]. Solving for y and using the original identity [math]\displaystyle{ x = y-\frac{b}{2a} }[/math], we get the familiar quadratic formula: [math]\displaystyle{ x=\frac{-b\pm \sqrt{b^2-4ac}}{2a} }[/math].

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: [math]\displaystyle{ (r_1 - r_2)^2 = (r_1 + r_2)^2 - 4 r_1 r_2 \, . }[/math]

Taking the square root on both sides, we get: [math]\displaystyle{ r_1 - r_2 = \pm\sqrt{(r_1 + r_2)^2 - 4 r_1 r_2} \, . }[/math]

Since the coefficient a ≠ 0, we can divide the standard equation by a to obtain a quadratic polynomial having the same roots. Namely, [math]\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 \, . }[/math]

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:

[math]\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} \, . }[/math]

Now, [math]\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} \, . }[/math]

Since r2 = −r1b/a, if we take [math]\displaystyle{ r_1 = \frac{-b + \sqrt{b^2 - 4ac}}{2a} }[/math] then we obtain [math]\displaystyle{ r_2 = \frac{-b - \sqrt{b^2 - 4ac}}{2a} \, ; }[/math] and if we instead take [math]\displaystyle{ r_1 = \frac{-b - \sqrt{b^2 - 4ac}}{2a} }[/math] then we calculate that [math]\displaystyle{ r_2 = \frac{-b + \sqrt{b^2 - 4ac}}{2a} \, . }[/math]

Combining these results by using the standard shorthand ±, we have that the solutions of the quadratic equation are given by: [math]\displaystyle{ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \, . }[/math]

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 [math]\displaystyle{ x^2+px+q \, , }[/math] assume that it factors as [math]\displaystyle{ x^2+px+q=(x-\alpha)(x-\beta) \, , }[/math]

Expanding yields [math]\displaystyle{ x^2+px+q=x^2-(\alpha+\beta)x+\alpha \beta \, , }[/math] 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 ways to rearrange two terms is to leave them be or to swap them ("transpose" them), and thus solving a quadratic polynomial is simple.

To find the roots α and β, consider their sum and difference: [math]\displaystyle{ \begin{align} r_1 &= \alpha + \beta\\ r_2 &= \alpha - \beta \, . \end{align} }[/math]

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: [math]\displaystyle{ \begin{align} \alpha &= \textstyle{\frac{1}{2}}\left(r_1+r_2\right)\\ \beta &= \textstyle{\frac{1}{2}}\left(r_1-r_2\right) \, . \end{align} }[/math]

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 [math]\displaystyle{ (\alpha - \beta)^2 = (\alpha + \beta)^2 - 4\alpha\beta }[/math] yields [math]\displaystyle{ r_2^2 = p^2 - 4q }[/math] and thus [math]\displaystyle{ r_2 = \pm \sqrt{p^2 - 4q} }[/math]

If one takes the positive root, breaking symmetry, one obtains: [math]\displaystyle{ \begin{align} r_1 &= -p\\ r_2 &= \sqrt{p^2 - 4q} \end{align} }[/math] and thus [math]\displaystyle{ \begin{align} \alpha &= \tfrac12\left(-p+\sqrt{p^2 - 4q}\right)\\ \beta &= \tfrac12\left(-p-\sqrt{p^2 - 4q}\right) \, . \end{align} }[/math] Thus the roots are [math]\displaystyle{ \tfrac{1}{2} \left(-p \pm \sqrt{p^2 - 4q}\right) }[/math] 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/2a being the vertex, and r22 = p2 − 4q 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.

Historical development

The earliest methods for solving quadratic equations were geometric. Babylonian cuneiform tablets contain problems reducible to solving quadratic equations.[14]:{{{1}}} The Egyptian Berlin Papyrus, dating back to the Middle Kingdom (2050 BC to 1650 BC), contains the solution to a two-term quadratic equation.[15]

The Greek mathematician Euclid (circa 300 BC) used geometric methods to solve quadratic equations in Book 2 of his Elements, an influential mathematical treatise.[14]:{{{1}}} Rules for quadratic equations appear in the Chinese The Nine Chapters on the Mathematical Art circa 200 BC.[16][17] In his work Arithmetica, the Greek mathematician Diophantus (circa 250 AD) solved quadratic equations with a method more recognizably algebraic than the geometric algebra of Euclid.[14]:{{{1}}} His solution gives only one root, even when both roots are positive.[18]

The Indian mathematician Brahmagupta (597–668 AD) explicitly described the quadratic formula in his treatise Brāhmasphuṭasiddhānta published in 628 AD,[19] but written in words instead of symbols.[20] 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."[21] This is equivalent to: [math]\displaystyle{ x = \frac{\sqrt{c\cdot4a+b^2}-b}{2a} \, . }[/math] Śrīdhara (870–930 AD), an Indian mathematician also came up with a similar algorithm for solving quadratic equations, though there is no indication that he considered both the roots.[22]

The 9th-century Persian mathematician Muḥammad ibn Mūsā al-Khwārizmī solved quadratic equations algebraically.[14]:{{{1}}} The quadratic formula covering all cases was first obtained by Simon Stevin in 1594.[23] In 1637 René Descartes published La Géométrie containing special cases of the quadratic formula in the form we know today.[24]

Significant uses

Geometric significance

Graph of y = ax2 + bx + c, where a and the discriminant b2 − 4ac are positive, with
  • Roots and y-intercept in red
  • Vertex and axis of symmetry in blue
  • Focus and directrix in pink

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: [math]\displaystyle{ y =p(x) = a_2x^2 + a_1x +a_0 \, , }[/math]

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 where the parabola will cross the x-axis. Additionally, if the quadratic formula is considered as two terms, [math]\displaystyle{ x = \frac{-b\pm\sqrt{b^2-4ac }}{2a} = -\frac{b}{2a} \pm \frac{\sqrt{b^2-4ac}}{2a} }[/math] the axis of symmetry appears as the line x = −b/2a. The other term, b2 − 4ac/2a, 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 − 4ac = 0, or simply b2 − 4ac = 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.

See also

References

  1. Sterling, Mary Jane (2010), Algebra I For Dummies, Wiley Publishing, p. 219, ISBN 978-0-470-55964-2, https://books.google.com/books?id=2toggaqJMzEC&q=quadratic+formula&pg=PA219 
  2. "Understanding the quadratic formula" (in en). https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:quadratic-functions-equations/x2f8bb11595b61c86:quadratic-formula-a1/a/quadratic-formula-explained-article. 
  3. "Axis of Symmetry of a Parabola. How to find axis from equation or from a graph. To find the axis of symmetry ...". https://www.mathwarehouse.com/geometry/parabola/axis-of-symmetry.php. 
  4. "Discriminant review" (in en). https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:quadratic-functions-equations/x2f8bb11595b61c86:quadratic-formula-a1/a/discriminant-review. 
  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, https://books.google.com/books?id=8PRU9cTKprsC 
  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. 9.0 9.1 Hoehn, 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. 
  10. Smith, David E. (1958). History of Mathematics, Vol. II. Dover Publications. p. 446. ISBN 0486204308. 
  11. 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. 
  12. 12.0 12.1 Clark, A. (1984). Elements of abstract algebra. Courier Corporation. p. 146.
  13. Prasolov, Viktor; Solovyev, Yuri (1997), Elliptic functions and elliptic integrals, AMS Bookstore, p. 134, ISBN 978-0-8218-0587-9, https://books.google.com/books?id=fcp9IiZd3tQC&pg=PA134 
  14. 14.0 14.1 14.2 14.3 Irving, Ron (2013). Beyond the Quadratic Formula. MAA. ISBN 978-0-88385-783-0. https://books.google.com/books?id=CV_UInCRO38C. 
  15. The Cambridge Ancient History Part 2 Early History of the Middle East. Cambridge University Press. 1971. p. 530. ISBN 978-0-521-07791-0. https://books.google.com/books?id=slR7SFScEnwC&pg=PA530. 
  16. Aitken, Wayne. "A Chinese Classic: The Nine Chapters". Mathematics Department, California State University. http://public.csusm.edu/aitken_html/m330/china/ninechapters.pdf. 
  17. Smith, David Eugene (1958). History of Mathematics. Courier Dover Publications. p. 380. ISBN 978-0-486-20430-7. https://archive.org/details/historyofmathema0002smit. 
  18. Smith, David Eugene (1958). History of Mathematics. Courier Dover Publications. p. 134. ISBN 0-486-20429-4. https://archive.org/details/historyofmathema0002smit. 
  19. Bradley, Michael. The Birth of Mathematics: Ancient Times to 1300, p. 86 (Infobase Publishing 2006).
  20. Mackenzie, Dana. The Universe in Zero Words: The Story of Mathematics as Told through Equations, p. 61 (Princeton University Press, 2012).
  21. Stillwell, John (2004). Mathematics and Its History (2nd ed.). Springer. p. 87. ISBN 0-387-95336-1. 
  22. Sridhara-MacTutor, https://mathshistory.st-andrews.ac.uk/Biographies/Sridhara/ 
  23. Struik, D. J.; Stevin, Simon (1958), The Principal Works of Simon Stevin, Mathematics, II-B, C. V. Swets & Zeitlinger, p. 470, http://www.dwc.knaw.nl/pub/bronnen/Simon_Stevin-%5bII_B%5d_The_Principal_Works_of_Simon_Stevin,_Mathematics.pdf 
  24. Rene Descartes (in en). The Geometry. http://archive.org/details/TheGeometry.