The pq formula: solving quadratic equations

The pq formula is the form of the quadratic formula used in Swedish schools. We write the equation in the form x² + px + q = 0 and put p and q into x = −p/2 ± √((p/2)² − q). If the number under the square root is negative, the equation has no real solutions.

Maths 2 · Updated

Watch Fox work it out on the board

Fox works one step at a time. Press play.

Solve your own task

Write the task. You get one step at a time.

The formula, p and q

x² + px + q = 0

p is the number in front of x and q is the number without x, each with its sign. ± means that we calculate once with plus and once with minus.

x = −p/2 ± √((p/2)² − q)

Equationpq
x² − 6x + 8 = 0−68
x² + 2x − 15 = 02−15
x² − 4x − 1 = 0−4−1
x² + 5x = 050

Rewrite in pq form first

We want zero on the right-hand side and x² with no number in front.

2x² + 4x − 30 = 0: divide every term on both sides by 2. x² + 2x = 15: subtract 15 from both sides. Both give x² + 2x − 15 = 0.

Two, one or no solutions

The number under the square root, (p/2)² − q, decides how many solutions there are.

Equation(p/2)² − qNumber of solutions
x² − 6x + 8 = 09 − 8 = 1, positivetwo: x = 4 and x = 2
x² − 6x + 9 = 09 − 9 = 0one: x = 3 (repeated root)
x² − 6x + 10 = 09 − 10 = −1, negativeno real solutions

No real number squared is negative. So there is no real solution when the number under the square root is negative. The parabola then never reaches the x-axis.

Example

Example 1: x² − 6x + 8 = 0

We want to find the values of x that make the left-hand side zero. Here p = −6 and q = 8.

  1. We put in p and q. The signs stay with the numbers.

    x = −(−6)/2 ± √((−62\frac{6}{2})² − 8)

  2. −(−6)/2 = 3 and (−3)² = 9, because minus times minus is plus.

    x = 3 ± √(9 − 8)

  3. 9 − 8 = 1 and √1 = 1.

    x = 3 ± 1

  4. With plus we get 4, with minus 2.

    x = 4 or x = 2

x = 4: 16 − 24 + 8 = 0. x = 2: 4 − 12 + 8 = 0. Both give zero, so both are correct.

Example 2: 2x² + 4x − 30 = 0

We want x² with no number in front. We divide every term on both sides by 2.

  1. 2x² ÷ 2 = x², 4x ÷ 2 = 2x, −30 ÷ 2 = −15 and 0 ÷ 2 = 0.

    x² + 2x − 15 = 0

  2. Now p = 2 and q = −15. So −p/2 = −1 and p/2 = 1.

    x = −1 ± √(1² − (−15))

  3. Minus minus 15 is plus 15, so 1 + 15 = 16.

    x = −1 ± √16

  4. The square root of 16 is 4.

    x = −1 ± 4

  5. −1 + 4 = 3 and −1 − 4 = −5.

    x = 3 or x = −5

x = 3: 18 + 12 − 30 = 0. x = −5: 50 − 20 − 30 = 0. Both are correct in the original equation.

Example 3: x² − 4x − 1 = 0, when the root is not a whole number

We want to find x. Here p = −4 and q = −1.

  1. −p/2 = 2 and (p/2)² = 4. Minus q becomes plus 1.

    x = 2 ± √(4 + 1)

  2. √5 is not a whole number, so we leave the root as it is and give an exact answer.

    x = 2 ± √5

  3. As an approximation, √5 ≈ 2.236.

    x ≈ 4.24 or x ≈ −0.24

The approximations: 4.236² − 4 · 4.236 − 1 ≈ 0.00 and (−0.236)² − 4 · (−0.236) − 1 ≈ 0.00. Both are correct.

Pitfalls

  • Losing the sign, so that x² − 6x + 8 = 0 gives p = 6.

    The sign belongs to the number: p = −6. Put negative numbers in brackets when you put them into the formula.

  • Using the formula before the equation is in pq form, for example with 2x² still there.

    Check first: does x² have no number in front, and is the right-hand side zero? If not, divide by the number in front of x², or subtract from both sides.

  • Treating (p/2)² as negative, or forgetting that −q becomes plus when q is negative.

    (−3)² = (−3) · (−3) = 9, always positive. And −(−15) = +15.

Practise on your own

0 of 4 correct
  1. Solve the equation x² − 8x + 12 = 0.

  2. Solve the equation x² + 4x − 21 = 0.

  3. Solve the equation 2x² + 4x = 16.

  4. Solve the equation x² + 2x + 5 = 0.

Common questions

What is the difference between the pq formula and the abc formula?

The abc formula solves ax² + bx + c = 0 without us first dividing by a. Both give the same solutions.

Do I have to use the pq formula if q or p is missing?

No. You solve x² − 5x = 0 with the zero product rule. You solve x² = 49 by taking the square root: x = 7 or x = −7.

What is a repeated root?

When the number under the square root is zero, plus and minus give the same answer. Then there is only one solution, called a repeated root or double root.

Keep practising with Somokai

Free to start. Hints and explanations when you get stuck.

Start practising for free

Found a mistake? Get in touch

Svenska