Algebra
Quadratic equations explained: factoring, the formula and the discriminant
A quadratic equation has an x² term as its highest power. Its standard form is ax² + bx + c = 0, where a is not zero. Unlike a linear equation, which has one answer, a quadratic can have two real solutions, one repeated solution, or none that are real numbers. Three methods cover everything you will meet in school.
Method 1: factoring
Factoring rewrites the quadratic as a product of two brackets. If two things multiply to give zero, at least one of them must be zero, and that gives the answers.
Solve x² + 5x + 6 = 0. Look for two numbers that multiply to 6 and add to 5. Those are 2 and 3.
- (x + 2)(x + 3) = 0
- x + 2 = 0 gives x = -2.
- x + 3 = 0 gives x = -3.
Solve x² - 7x + 12 = 0. The numbers multiply to 12 and add to -7, so they are -3 and -4. That gives (x - 3)(x - 4) = 0, so x = 3 or x = 4.
When a is not 1, it takes a little more effort. Solve 2x² + 7x + 3 = 0. It factors as (2x + 1)(x + 3). To confirm, expand it: 2x² + 6x + x + 3 = 2x² + 7x + 3. Then 2x + 1 = 0 gives x = -1/2, and x + 3 = 0 gives x = -3.
Always move everything to one side so the other side is zero before factoring. An equation such as x² = 5x + 6 cannot be factored until it is rewritten as x² - 5x - 6 = 0, which gives (x - 6)(x + 1) = 0 and x = 6 or x = -1.
Two shortcuts
- No x term. For 3x² - 12 = 0, get x² = 4 and then x = 2 or x = -2. Remember both roots.
- No constant term. For x² + 4x = 0, take out the common x: x(x + 4) = 0, so x = 0 or x = -4. Do not divide by x, or you lose a solution.
Method 2: the quadratic formula
Factoring only works neatly for some equations. The formula works for every quadratic:
x = (-b ± √(b² - 4ac)) / (2a)
Solve x² - 4x - 1 = 0. Here a = 1, b = -4 and c = -1.
- b² - 4ac = 16 + 4 = 20
- x = (4 ± √20) / 2
- √20 = 2√5, so x = 2 ± √5
- x is about 4.236 or about -0.236.
The most common slip is the sign of b. If b is -4, then -b is +4. Put brackets round negative numbers when you substitute.
The discriminant
The expression under the square root, b² - 4ac, is called the discriminant. It tells you what to expect before you finish the calculation.
| Discriminant | Real solutions | Example |
|---|---|---|
| Positive | Two different | x² - 4x - 1 = 0 (D = 20) |
| Zero | One repeated | x² - 6x + 9 = 0 (D = 0, x = 3) |
| Negative | None | x² + 2x + 5 = 0 (D = -16) |
For x² + 2x + 5 = 0, the square root of -16 is not a real number. In later courses you meet imaginary numbers, which give the solutions -1 ± 2i. Until then, "no real solutions" is the right answer.
Method 3: completing the square
This method turns the left side into a perfect square. Solve x² + 6x + 4 = 0.
- Move the constant: x² + 6x = -4.
- Add the square of half the x coefficient, (6/2)² = 9, to both sides: x² + 6x + 9 = 5.
- Write the left side as a square: (x + 3)² = 5.
- Take the square root of both sides: x + 3 = ±√5.
- x = -3 ± √5, which is about -0.764 or -5.236.
The quadratic formula is itself found by completing the square on ax² + bx + c = 0, so the two methods always agree.
A word problem
A ball is thrown upward from a platform. Its height in feet after t seconds is h = -16t² + 32t + 48. When does it hit the ground? Set h = 0: -16t² + 32t + 48 = 0. Divide everything by -16 to get t² - 2t - 3 = 0, which factors as (t - 3)(t + 1) = 0. So t = 3 or t = -1. A negative time makes no sense here, so the ball lands after 3 seconds. Check: -16 × 9 + 32 × 3 + 48 = -144 + 96 + 48 = 0.
Always ask whether each solution makes sense in the situation. Lengths and times cannot be negative.
A useful check: sum and product
For x² + bx + c = 0 with roots r and s, the sum r + s equals -b and the product rs equals c. The equation x² - 5x + 6 = 0 has roots 2 and 3. Their sum is 5 and their product is 6, matching -(-5) and 6. If your roots break this rule, something is off.
Which method should I use?
| Situation | Best method |
|---|---|
| Small whole numbers, a = 1 | Factoring |
| No x term or no constant | Square root or common factor |
| Messy numbers, or factoring fails | Quadratic formula |
| You need the vertex form | Completing the square |
Common mistakes
- Forgetting that the equation must equal zero before factoring or using the formula.
- Writing only the positive square root and missing the second solution.
- Dividing by x and losing the solution x = 0.
- Mistaking the square of a negative: (-4)² is 16, not -16.
- Dropping the 2a when dividing. Both terms of the numerator are divided by 2a.
If you are shaky on one-variable algebra, start with solving linear equations. Then try your own quadratics in the quadratic equation solver, which shows the discriminant and every step.