Skip to content
Study Hall
Lesson 2 of 4Quadratic Equations
Unit 5 · Lesson 2 of 4

The Quadratic Formula

Follow how completing the square on produces the quadratic formula, then use the formula to solve any quadratic equation, giving roots in exact form or rounded, and check them with a graph.

7 min read11 practice questionsAsk AI about this →

Key things to remember

  1. 1Quadratic formula: for with , .
  2. 2The formula comes from completing the square on .
  3. 3The equation must be in standard form before you read off , and , with their signs.
  4. 4The fraction bar is under the whole numerator .
  5. 5The roots are equally spaced on either side of , the axis of symmetry.
  6. 6If , , are integers and is a perfect square, the roots are rational and the equation can be factored.

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.

A rectangular raised garden bed with brightly painted wooden sides on a lawn in a community garden
PhotoBuilding a rectangular bed with an exact area often leads to a quadratic equation that will not factor, which is when the quadratic formula is needed.Bart Everson from New Orleans, Louisiana, USA, CC BY 2.0, via Wikimedia Commons

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.

StepExample: 2x² + 12x + 4 = 0General: 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
Completing the square on a numerical example and on the general equation, step by step

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 quadratic formula. The + sign gives one root and the − sign gives the other.
the opposite of b+ for one root, − for the otherthe discriminantx =−b±√b² − 4ac2a2a divides the whole top,not just the square rootfor ax² + bx + c = 0, a ≠ 0Read it in two partsx =−b2a±√(b² − 4ac)2aaxis ofsymmetrydistance from theaxis to each rootExample: x² + x − 4 = 0−b/2a = −1/2 = −0.5 and √17 / 2 ≈ 2.06−3−2−1012+2.06−2.06≈ −2.56−0.5≈ 1.56roots = −0.5 ± 2.06, equally spaced about the axis
Fig 1Top: the quadratic formula with each part labelled: −b, the ± sign, the expression b² − 4ac under the square root, and 2a under the whole numerator. Bottom: the same formula split into −b over 2a plus or minus a distance, shown on a number line for x² + x − 4 = 0, where the roots about −2.56 and 1.56 sit 2.06 on either side of −0.5.

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.

VideoCompleting the square on the general equation ax squared plus bx plus c equals zero produces the quadratic formula step by step.Watch on YouTube

Using the formula

  1. Write the equation in standard form, .
  2. Read off , and , including their signs. In , , and .
  3. Work out first, on its own. It is the most error-prone part, and its value tells you a lot (next lesson).
  4. Substitute into the formula, with brackets around negative values.
  5. 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 .

Exact roots and rounded roots
An exact root keeps the square root, as in . A rounded (approximate) root is a decimal, as in . Give exact roots when a question asks for them. Otherwise, keep the full calculator value until the final step and round only the answer. Rounding to partway through gives , which is wrong in the second decimal place.

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.

MethodBest whenWhat it gives
FactoringSmall integer coefficients and a factorable expression, such as Exact roots, quickly
Quadratic formulaAny quadratic equation, especially one that does not factorExact roots (possibly with a square root) or decimals
Graphing technologyChecking answers, or when only approximate roots are neededApproximate roots read from the x-intercepts
Three ways to solve a quadratic equation
Brackets around negatives
If , then and . Typing into a calculator gives , because the calculator squares 5 first and then applies the minus sign. Type , with brackets. Also remember that becomes positive when and have opposite signs: with and , .
VideoA worked example identifying a, b and c, substituting carefully, and simplifying to get both roots.Watch on YouTube

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Solve using the quadratic formula. Give exact roots and roots rounded to two decimal places.
Example 2
Solve . Round the roots to two decimal places.
Example 3
Solve . Round the roots to two decimal places.
Example 4
Solve by completing the square, then check the answer with the quadratic formula.

Where marks get lost

  • Forgetting that changes the sign of : for , , not .
  • Typing on a calculator for and getting . Any non-zero number squared is positive: .
  • Dividing only the square root by , as in . The fraction bar goes under the whole numerator: .
  • Reading , , before rearranging: in , the values are not , . First rewrite it as , so and .
  • Rounding the square root early. Using gives instead of ; keep the calculator value until the end.

Flashcards 7

Quadratic formula
Where does the quadratic formula come from?
What does the ± in the formula do?
+ 3 more

Practice

1
To use the quadratic formula on , what are , and ?
2
For , calculate .
3
Solve . Enter the positive root, rounded to two decimal places.
4
Solve . Enter the larger root, rounded to two decimal places.
5
Which is the correct substitution into the quadratic formula for ?
6
Put the steps for solving by completing the square in order.
  1. 1Subtract 3:
  2. 2Take square roots:
  3. 3Write the left side as a square:
  4. 4Move the constant:
  5. 5Add to both sides:
7
Match each part of the quadratic formula with what it does.
8
What are the exact roots of ?
9
Solve using the quadratic formula. Enter the larger root.
10
A photo is 3 cm longer than it is wide and has an area of 50 cm². Write an equation for the width and solve it with the quadratic formula. Enter the width, rounded to one decimal place.
cm
11
In the quadratic formula, what expression is under the square root sign? Type powers with ^: type b^2 for .

Spot a mistake on this page? Let us know