kidzsearch.com > wiki

# Quadratic equation

A **quadratic equation** is an equation in the form of [math]ax^2+bx+c=0[/math], where *a* is not equal to 0. It makes a parabola (a "U" shape) when graphed on a coordinate plane.

When people work with quadratic equations, one of the most common things they do is to *solve* it. This means to find the points on a coordinate grid where the graphed equation crosses the x-axis, or the horizontal axis. These points are called the "zeroes", or "roots", of a function. In other words, to solve the equation means to find the value of *x* so that [math]ax^2+bx+c=0[/math], where the coefficients, *a*, *b*, and *c*, are all real numbers. There are different ways to find out the value of x. Plotting the function on a graph is one way. In the picture on the right, the function crosses the x-axis at the points [math](-1, 0)[/math] and [math](2, 0)[/math].

Graphing a quadratic equation makes it is very easy to find the roots, but it is not always convenient. So there are different ways to do this using maths.

## Contents

## Factoring

Some quadratic equations, like [math]2x^2-x-1=0[/math], can be factorized. This equation can be written as [math](2x+1)(x-1)=0[/math], which produces two separate equations, [math]2x+1=0[/math] and [math]x-1=0[/math]. This is because when any of the two equations is equal to zero, the original equation is equal to zero because the two equations are multiplied together to form the quadratic equation. From this equation, it is easy to use algebra to find out what the value of *x* is. In the first of the two equations, [math]x=-1/2[/math] and in the second, [math]x=1[/math]. This means that these two values of *x* will make the whole quadratic equation equal to zero. The y-coordinate is equal to zero at these values of x, and so the coordinates [math](-1/2, 0)[/math] and [math](1, 0)[/math] are the places where the graph of the function crosses the x-axis.^{[1]}

## Completing the square

Not all quadratic equations can be factorized, such as [math]5x^2-4x-2=0[/math]. One of the ways to solve these kinds of equations is called *completing the square*. This means to find some value for "*k*" below so that:[math]x^2 + \frac{b}{a} x +k = x^2+2xy+y^2,\,\![/math] for some *y*. Since [math]y = \frac{b}{2a}\,\![/math] and [math]k = y^2,\,\![/math] this means [math] k = \frac{b^2}{4a^2}.\,\![/math]

There are five steps to solve a quadratic equation by completing the square:

- Divide the equation by the value of
*a*(here,*a*is equal to 5): [math]x^2 - \frac{4}{5}x - \frac{2}{5} = 0[/math] - Move the number term (the one without any coefficients, here [math]\frac{2}{5}[/math]) to the other side: [math]x^2 - \frac{4}{5}x = \frac{2}{5}[/math]
- Complete the square by adding [math] k = \frac{b^2}{4a^2}[/math] to both sides on the equation, as was described above. This value here is [math] k=\frac{16}{100}=\frac{4}{25}[/math]. This gives [math]x^2 - \frac{4}{5}x + \frac{4}{25} = \frac{10}{25} + \frac{4}{25} [/math], and the left side can be factored to give [math]\left(x - \frac{2}{5}\right)^2 = \frac{14}{25} [/math]
- Find the square root of both sides. The [math]\pm [/math] is there since the square root is for both positive and negative values: [math]x - \frac{2}{5} = \pm\sqrt\frac{14}{25} [/math]
- Finally, move the number term to the other side to get a value for
*x*: [math]x = \pm\sqrt\frac{14}{25} + \frac{2}{5} [/math]

This last value for *x* has two values: [math]x = \sqrt\frac{14}{25} + \frac{2}{5} \approx 1.148 [/math] and [math]x = -\sqrt\frac{14}{25} + \frac{2}{5} \approx -0.348 [/math]. These are the x-coordinates at the points where the y-coordinates are equal to zero and so the function crosses the x-axis.

It is also interesting to note that the vertex of the function, [math]\left(\frac{2}{5}, -\frac{14}{25}\right) [/math], can be found from the equation in step 3 above.^{[2]}

## The quadratic formula

Although completing the square can be used to solve many quadratic equations, it does not work with every equation. There is a way to find the value of *x* that makes the equation true by replacing the values in a formula with the coefficients from the quadratic equation. This is called the "quadratic formula", which is:

- [math]x = \frac{-b \pm \sqrt {b^2-4ac}}{2a}[/math]

The numbers represented by *a*, *b*, and *c* are the same as those in the original equation, *ax*^{2} + *bx* + *c* = 0. For this formula to work properly, *a* cannot be equal to 0 for the formula (but really, when *a* = 0 in the original equation, it is not quadratic since there is no x-squared term).

The factored form of this equation is *y* = *a*(*x* − *s*)(*x* − *t*), where *s* and *t* are the zeros, *a* is a constant, and *y* and the two values of *x* are ordered pairs which satisfy the equation.^{[3]}

### Proof of the formula

The quadratic formula can be found out, or proved, using the same *completing the square* method from above, only by using *a*, *b*, and *c* instead of actual values and using algebra to find the value of *x*. Here is how:

- Divide the equation by
*a:*[math]x^2 + \frac{b}{a} x + \frac{c}{a}=0[/math] - Move
^{c}/_{a}to the other side: [math]x^2 + \frac{b}{a} x= -\frac{c}{a}[/math] - Complete the square by adding [math] k = \frac{b^2}{4a^2}[/math] to both sides on the equation, which gives: [math]x^2+\frac{b}{a}x+\frac{b^2}{4a^2}=-\frac{c}{a}+\frac{b^2}{4a^2}.\,\![/math] The left side is now a perfect square; it is the square of [math] x + \frac{b}{2a}.\,\![/math]The right side can be a single fraction, with a common denominator 4
*a*^{2}: [math]\left(x+\frac{b}{2a}\right)^2=\frac{b^2-4ac}{4a^2}[/math] - Find the square root of both sides: [math] x+\frac{b}{2a}=\pm\frac{\sqrt{b^2-4ac\ }}{2a}[/math]
- Finally, move
^{b}/_{2a}to the other side: [math]x=-\frac{b}{2a}\pm\frac{\sqrt{b^2-4ac\ }}{2a}=\frac{-b\pm\sqrt{b^2-4ac\ }}{2a}[/math]^{[4]}

### Using the quadratic formula

Now that the value of *x* has been found out, the values of *a*, *b*, and *c* are replaced with the corresponding coefficients from the original equation. For example, going back to the second example, [math]5x^2-4x-2=0[/math] , it can be seen that the values are [math]a=5[/math], [math]b=-4[/math], and [math]c=-2[/math]. By putting these values into the quadratic formula and solving, the result is:

[math]x=\frac{-(-4))\pm\sqrt{(-4)^2-4(5)(-2)}}{2(5)}=\frac{4\pm\sqrt{56}}{10}[/math]. Solving the two square roots, the value of *x* can be either 1.148 or -0.348, which is the same as above.

Unlike the other methods described above, the quadratic equation will work with every possible value for *a*, *b*, and *c*, even if there are no "real roots", that is, places where the graph of the function touches the x-axis.

The value inside the square root, that is, [math]b^2-4ac[/math], is known as the *discriminant*. It can tell whether the roots are real or Imaginary. There are three cases:

- If the discriminant is positive, there will be two values for
*x*and therefore two separate roots, one at each place where the graph crosses the x-axis. - If the discriminant is equal to zero, there is only one value for
*x*, but there are in fact two roots which are equal. The graph touches the x-axis at its vertex, but does not cross it. - If the discriminant is negative, there is no real value of
*x*. On a graph, the function does not even touch the x-axis, but the roots are still there. The value of the roots here is a complex number, which uses the value*i*to represent [math]\sqrt{-1}[/math].^{[5]}

## References

- ↑ "Solving Quadratic Equations". http://www.sosmath.com/algebra/solve/solve4/s43/s43.html.
- ↑ "Completing the Square" (in en). https://www.mathsisfun.com/algebra/completing-square.html.
- ↑ Stapel, Elizabeth. "The Quadratic Formula Explained". http://www.purplemath.com/modules/quadform.htm.
- ↑ Stapel, Elizabeth. "Completing the Square: Deriving the Quadratic Formula". http://www.purplemath.com/modules/sqrquad2.htm.
- ↑ Stapel, Elizabeth. "The Quadratic Formula: Solutions and the Discriminant". http://www.purplemath.com/modules/quadform2.htm.