Sub topic 15
The Quadratic Formula
When to Use It
Assume you can rearrange equations, work with fractions, and simplify square roots. The quadratic formula solves any quadratic equation written in standard form:
\[ ax^2+bx+c=0,\qquad a\ne0 \]
Here, \(a\), \(b\), and \(c\) are the coefficients. A coefficient is a number multiplying a variable. The formula is
\[ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}. \]
The symbol \(\pm\) means calculate both the plus and minus cases. The expression under the square root is called the discriminant:
\[ D=b^2-4ac. \]
Substitute the coefficients carefully. In particular, preserve the signs of \(b\) and \(c\).
A Worked Example
Solve \(2x^2-5x-3=0\).
The coefficients are \(a=2\), \(b=-5\), and \(c=-3\). Substitute them:
\[ x=\frac{-(-5)\pm\sqrt{(-5)^2-4(2)(-3)}}{2(2)} \]
Simplify the discriminant:
\[ D=25+24=49. \]
Then
\[ x=\frac{5\pm7}{4}. \]
The two solutions are
\[ x=\frac{5+7}{4}=3 \]
and
\[ x=\frac{5-7}{4}=-\frac12. \]
Check by factoring:
\[ 2x^2-5x-3=(2x+1)(x-3). \]
The factors confirm the roots \(x=-\frac12\) and \(x=3\).
| Discriminant | Real solutions | What happens |
|---|---|---|
| \(D>0\) | 2 | The square root gives two different values |
| \(D=0\) | 1 | The plus and minus results are equal |
| \(D<0\) | 0 | There are no real solutions |
GRE Strategy and Common Errors
On a GRE problem, first check whether factoring is faster. Use the quadratic formula when the coefficients do not factor easily or when the question asks about the number of roots.
Common errors include:
- Using \(b\) instead of \(-b\).
- Forgetting that \(4ac\) includes the sign of \(c\).
- Dividing by \(2a\) instead of \(2\), or using only part of the numerator.
- Reporting only one result and forgetting the \(\pm\).
- Failing to move every term to one side before identifying \(a\), \(b\), and \(c\).
The formula also supports exact answers. If \(D\) is not a perfect square, leave the answer with a radical unless the problem requests an approximation.
import math
def quadratic_roots(a, b, c):
discriminant = b * b - 4 * a * c
if discriminant < 0:
return []
root = math.sqrt(discriminant)
return sorted({(-b - root) / (2 * a), (-b + root) / (2 * a)})
print(quadratic_roots(2, -5, -3)) # [-0.5, 3.0]Exercise
Solve \(x^2+4x-5=0\) with the quadratic formula.
Show answer
\(a=1\), \(b=4\), \(c=-5\), so \(D=36\). Thus \(x=(-4\pm6)/2\), giving \(x=1\) and \(x=-5\).