A rectangular garden bed is 1 m longer than it is wide, and it must have an area of exactly 4 m². If the width is metres, the length is and the area equation is , or . Try to factor it: you need two integers with product and sum . The candidates are and (sum ), and (sum ), and and (sum ). None works. Yet a garden that is 1 m wide has area m² and one that is 2 m wide has area m², so some width between 1 m and 2 m gives exactly 4 m². The root exists; it just is not a whole number or a simple fraction. You need a method that does not depend on lucky factors. That method is the quadratic formula, and it comes from completing the square, which you used in the last unit to find vertex form.

Where the formula comes from
The plan is to complete the square on the general equation , where the letters stand for any numbers. Because the letters make the algebra hard to follow, the table runs a numerical example beside the general case. Read across each row: the same step is done to both. You do not need to reproduce the general case yourself, but you should be able to explain what each step does by pointing at the numerical example.
| Step | Example: 2x² + 12x + 4 = 0 | General: ax² + bx + c = 0 |
|---|---|---|
| 1. Start in standard form | ||
| 2. Divide every term by | ||
| 3. Move the constant to the right side | ||
| 4. Add the square of half the coefficient of to both sides | ||
| 5. Write the left side as a square and combine the right side | ||
| 6. Take the square root of both sides, with ± | ||
| 7. Subtract to isolate |
A few steps need a word of explanation. In step 4, half of is , and its square is ; in the example, half of 6 is 3 and . In step 5 the right side is combined over the common denominator : In step 6 the is there because both a positive and a negative number square to the same value: and . The square root of the denominator is written ; if is negative it is really , but the already covers both signs, so the two roots come out the same. Finally, check that the formula agrees with the example: with , , it gives , which is about or . The completed square gave , which is about , the same two numbers.
The figure shows a useful way to read the formula. Split the single fraction into two parts: . The first part, , is the same for both roots: it is the -coordinate of the vertex, on the axis of symmetry. The second part is how far each root sits from that axis, once to the right and once to the left. That is why, whenever a parabola has two zeros, they are the same distance from its axis of symmetry.
Using the formula
- Write the equation in standard form, .
- Read off , and , including their signs. In , , and .
- Work out first, on its own. It is the most error-prone part, and its value tells you a lot (next lesson).
- Substitute into the formula, with brackets around negative values.
- Write the two roots, one with and one with . Leave them exact, or round only at the very end.
Back to the garden, . Here , and , so Then . These are the exact roots. Since , the roots are and , rounded to two decimal places. A width cannot be negative, so the garden is about 1.56 m wide and 2.56 m long. Check: , which rounds to 4. To verify graphically, graph with graphing technology: the parabola crosses the -axis near and .
The formula also works on equations that factor. For : and , so , which gives and , the same roots as factoring. Notice that 36 is a perfect square. When , and are integers and is a perfect square, the roots are rational and the equation factors with integers. When it is not a perfect square, like 17, the roots are irrational, and factoring with integers was never going to work.
| Method | Best when | What it gives |
|---|---|---|
| Factoring | Small integer coefficients and a factorable expression, such as | Exact roots, quickly |
| Quadratic formula | Any quadratic equation, especially one that does not factor | Exact roots (possibly with a square root) or decimals |
| Graphing technology | Checking answers, or when only approximate roots are needed | Approximate roots read from the x-intercepts |