The solutions to any quadratic equation can be found by substituting the values a, b, c into the quadratic formula.
The solutions to any quadratic equation \(ax^{2}+bx+c=0\) can be found by substituting the values \(a,b,c\) into the quadratic formula:
\[ x=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}. \] Solutions may be real or complex numbers.
In this module we only consider real solutions.
Example 1
Solve the equation: \[ x^{2}-5x+4=0. \]
Solution
We have1 Note that \(x^{2}=1\times x^{2}\) and so \(a=1\) .\(a=1,\ \,b=-5\) and \(c=4.\) Substituting into the formula we get: \[\begin{align*} x & =\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}\\ & =\frac{-(-5)\pm\sqrt{(-5)^{2}-4(1)(4)}}{2(1)}\\ & =\frac{5\pm\sqrt{25-16}}{2}\\ & =\frac{5\pm\sqrt{9}}{2}\\ & =\frac{5\pm3}{2}\\ & =\frac{5+3}{2}\ \textrm{ or }\ \frac{5-3}{2}\\ & =\frac{8}{2}\ \textrm{ or }\ \frac{2}{2}\\ & =4\ \textrm{ or }\ 1. \end{align*}\] The solution is \(x=1\) or \(x=4\).
Example 2
Solve the equation: \[ x^{2}+x+10=0. \]
Solution
We have \(a=1,\,b=1\) and \(c=10.\) Substituting into the formula we get: \[\begin{align*} x & =\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}\\ & =\frac{-1\pm\sqrt{1^{2}-4(1)(10)}}{2(1)}\\ & =\frac{-1\pm\sqrt{1-40}}{2}\\ & =\frac{-1\pm\sqrt{-39}}{2}. \end{align*}\] Since the \(\sqrt{-39}\) does not exist the equation has no solution.2 There is a solution if we use complex numbers but we are looking for real solutions.
Discriminant
The part of the quadratic formula which is under the radical sign (\(b^{2}-4ac)\) is called the discriminant. Its value determines the number of solutions and whether they will be rational or irrational.
If \(b^{2}-4ac<0\) there are no (real) solutions. This means the graph of \(y=ax^{2}+bx+c\) doesn’t touch or cut the \(x\)-axis.
If \(b^{2}-4ac=0\) there is one solution. This means the graph of \(y=ax^{2}+bx+c\) touches the \(x\)-axis at this value of \(x\).
If \(b^{2}-4ac>0\) there are two solutions. This means the graph of \(y=ax^{2}+bx+c\) cuts the \(x\)-axis at these values of \(x\).
If \(b^{2}-4ac\quad\)is a perfect square the solutions will be rational .
3 A number is a perfect square if its square root is an integer. Integers are whole numbers: \(\ldots,-2,-1,0,1,2,\ldots\) 4 A rational number can be expressed as a fraction \(p/q\) where \(p\) and \(q\neq0\) are integers.
Exercise
Solve the following quadratic equations for real solutions (if possible):