Junior Cycle Maths

Algebra and functions · Chapter 17

Quadratic equations and roots

Clear notes, 12 worked examples and 6 questions to try.

01 · Understand the idea

The essentials

Key terms

Root
A value making the polynomial equal to zero.
Discriminant
The expression b2−4ac\displaystyle b^2-4ac used to determine the number of real roots.
Repeated root
One value occurring twice as a quadratic root.

Key ideas

  • Write a quadratic equation in the form ax2+bx+c=0\displaystyle ax^2+bx+c=0, with a≠0\displaystyle a\ne0.
  • Try the guide-number method first when suitable factors are easy to find. After factorising an equation equal to zero, set each bracket equal to zero.
  • The quadratic formula x=−b±b2−4ac2a\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} applies whenever a≠0\displaystyle a\ne0. A negative discriminant means there are no real solutions.
  • The discriminant b2−4ac\displaystyle b^2-4ac is positive for two distinct real roots, zero for a repeated root and negative for no real roots.
  • For integer roots p and q, an equation is (x−p)(x−q)=0\displaystyle (x-p)(x-q)=0. Expand it if required.
  • Answers requested in surd form or to two decimal places often point towards the quadratic formula. It is a reliable choice if factors are not straightforward. The wording alone does not force the formula: for x2=2,\displaystyle x^{2} = 2 , taking square roots is quicker.

03 · Follow the working

Worked examples

Read the question first. Cover the working and decide what you would do next.

New step-by-step examples

Quadratics by factorising

Solve x² − x − 12 = 0.

(x−4)(x+3)=0(x-4)(x+3)=0

The numbers −4 and 3 multiply to −12 and add to −1.

x−4=0orx+3=0x-4=0\quad\text{or}\quad x+3=0

At least one factor must be zero.

Final answerx=4orx=−3x=4\quad\text{or}\quad x=-3
The quadratic formula

Solve 2x² + x − 4 = 0.

a=2,b=1,c=−4a=2,\quad b=1,\quad c=-4

Read the three coefficients.

x=−b±b2−4ac2ax=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}

Use the quadratic formula.

x=−1±1−4(2)(−4)4x=\dfrac{-1\pm\sqrt{1-4(2)(-4)}}{4}

Substitute, with brackets around negative values.

Final answerx=−1±334x=\dfrac{-1\pm\sqrt{33}}{4}
Build a quadratic from its roots

Write a monic quadratic equation with roots −2 and 5.

x−(−2)=x+2x-(-2)=x+2

The negative root gives a plus sign.

(x+2)(x−5)=0(x+2)(x-5)=0

Both factors belong in the equation.

x2−5x+2x−10=0x^2-5x+2x-10=0

Expand the brackets.

Final answerx2−3x−10=0x^2-3x-10=0
01Guide number, then solve each bracket

Solve x2−5x−14=0\displaystyle x^2-5x-14=0.

Why this method? Check for a common factor first. The guide number is a×c\displaystyle a \times c. Find two signed numbers that multiply to a×c\displaystyle a \times c and add to b, then split the middle term and group.

  1. GN=1×(−14)=−14\displaystyle \mathrm{GN}=1\times(-14)=-14
    Why?The required product is −14\displaystyle - 14 and the required sum is −5\displaystyle - 5.
  2. (−7)(2)=−14,−7+2=−5\displaystyle (-7)(2)=-14,\quad -7+2=-5
    Why?The signs matter:−7\displaystyle : - 7 and +2\displaystyle + 2 pass both tests.
  3. x2−7x+2x−14=0\displaystyle x^2-7x+2x-14=0
    Why?Split −5x\displaystyle - 5x into −7x+2x\displaystyle - 7x + 2x.
  4. x(x−7)+2(x−7)=0\displaystyle x(x-7)+2(x-7)=0
    Why?Factor the first pair and the second pair.
  5. (x+2)(x−7)=0\displaystyle (x+2)(x-7)=0
    Why?Take out the shared bracket (x−7)\displaystyle \left(x - 7\right).
  6. x+2=0orx−7=0\displaystyle x+2=0\quad\mathrm{or}\quad x-7=0
    Why?A product is zero only if at least one factor is zero.
  7. x=−2orx=7\displaystyle x=-2\quad\mathrm{or}\quad x=7
    Why?Solve each linear equation.
  8. (−2)2−5(−2)−14=0,72−5(7)−14=0\displaystyle (-2)^2-5(-2)-14=0,\quad 7^2-5(7)-14=0
    Why?Check both answers in the original equation.
02Build an equation from roots

Find a monic quadratic equation with roots 3\displaystyle 3 and −2\displaystyle -2.

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. (x−3)(x+2)=0\displaystyle (x-3)(x+2)=0
    Why?Build the factors
  2. x2−x−6=0\displaystyle x^2-x-6=0
    Why?Multiply every term in one bracket by every term in the other, then collect like terms.
  3. 9−3−6=0\displaystyle 9-3-6=0 and 4+2−6=0\displaystyle 4+2-6=0.
    Why?Check both roots
03Quadratic equations with integer roots

Solve x2−8x+12=0\displaystyle x^{2} - 8x + 12 = 0 by factorising. What is the larger root?

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. GN=1×12=12\displaystyle \mathrm{GN}=1\times12=12
    Why?The coefficient of x is −8,\displaystyle - 8 , so the pair must add to −8\displaystyle - 8.
  2. (−6)(−2)=12,−6−2=−8\displaystyle (-6)(-2)=12,\quad -6-2=-8
    Why?Both numbers must be negative.
  3. x2−6x−2x+12=0\displaystyle x^2-6x-2x+12=0
    Why?Split the middle term.
  4. x(x−6)−2(x−6)=0\displaystyle x(x-6)-2(x-6)=0
    Why?Factor each pair.
  5. (x−2)(x−6)=0\displaystyle (x-2)(x-6)=0
    Why?Factor the common bracket.
  6. x=2orx=6\displaystyle x=2\quad\mathrm{or}\quad x=6
    Why?Set each bracket equal to zero. The larger root is 6\displaystyle 6.

Think about it: Before moving on: why must each bracket be set to zero, not the whole expression to a value?

04Quadratic equations with surd solutions (x² = n)

Solve for x, giving exact answers:x2=2\displaystyle : x^{2} = 2.

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. x=±2\displaystyle x = \pm \sqrt{2}
    Why?Take the square root of both sides, remembering the negative root
  2. x=±2\displaystyle x = \pm \sqrt{2}
    Why?Leave the answer as a surd, because the root is not a whole number

Think about it: Before moving on: why are there two solutions to x2=n\displaystyle x^{2} = n when n is positive?

05Using the quadratic formula, one line at a time

Solve x2−5x+3=0\displaystyle x^2-5x+3=0, giving exact answers.

Why this method? The guide number is 3\displaystyle 3. No integer pair multiplies to 3\displaystyle 3 and adds to −5\displaystyle - 5. Use the quadratic formula. We will give the exact surd answers first, then decimal answers.

  1. a=1\displaystyle a=1, b=−5\displaystyle b=-5, c=3\displaystyle c=3.
    Why?Compare with ax2+\displaystyle {}^{2} + bx +c=0\displaystyle + c = 0. Include the sign of each coefficient.
  2. x=−b±b2−4ac2a\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
    Why?Write the formula before substituting, so the whole numerator and denominator are clear.
  3. x=−(−5)±(−5)2−4(1)(3)2(1)\displaystyle x=\frac{-(-5)\pm\sqrt{(-5)^2-4(1)(3)}}{2(1)}
    Why?Substitute with brackets around the negative value of b.
  4. (−5)2−4(1)(3)=25−12=13\displaystyle (-5)^2-4(1)(3)=25-12=13
    Why?Calculate the discriminant inside the root first.
  5. x=5±132\displaystyle x=\frac{5\pm\sqrt{13}}{2}
    Why?Simplify the signs and denominator. The ± means we must consider both choices.
  6. x=5+132\displaystyle x=\frac{5+\sqrt{13}}{2} or x=5−132\displaystyle x=\frac{5-\sqrt{13}}{2}.
    Why?Write both exact roots. Do not round the surd when exact answers are requested.
  7. x≈4.30orx≈0.70\displaystyle x\approx4.30\quad\mathrm{or}\quad x\approx0.70
    Why?For two decimal places, calculate from the exact roots and round only at the end.
06Quadratic equations with rational coefficients

Solve (43)x2+(93)x+(13)=0\displaystyle \left(\frac{4}{3}\right) x^{2} + \left(\frac{9}{3}\right) x + \left(\frac{1}{3}\right) = 0 over the real numbers. Give both exact values; the radical need not be simplified.

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. 4x2+9x+1=0\displaystyle 4x^2+9x+1=0
    Why?Multiply every term, including the right-hand side, by 3\displaystyle 3 to clear the common denominator.
  2. a=4,b=9,c=1\displaystyle a=4,\quad b=9,\quad c=1
    Why?Compare the new equation with ax2+\displaystyle {}^{2} + bx +c=0\displaystyle + c = 0. Use the coefficients of this whole-number equation.
  3. x=−b±b2−4ac2a\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
    Why?Write the quadratic formula.
  4. x=−9±(9)2−4(4)(1)2(4)\displaystyle x=\frac{-9\pm\sqrt{(9)^2-4(4)(1)}}{2(4)}
    Why?Replace a, b and c, keeping the whole numerator above the fraction bar.
  5. x=−9±658\displaystyle x=\frac{-9\pm\sqrt{65}}{8}
    Why?Calculate the discriminant inside the root and the denominator separately.
  6. x=−9−658orx=−9+658\displaystyle x=\frac{-9-\sqrt{65}}{8}\quad\mathrm{or}\quad x=\frac{-9+\sqrt{65}}{8}
    Why?Write both choices of sign. These are exact roots; this question allows the radical to remain unsimplified.

Think about it: Why does multiplying every term by the same non-zero denominator preserve the solutions?

07Quadratic equations with rational coefficients — another example

Solve (52)x2+(82)x+(22)=0\displaystyle \left(\frac{5}{2}\right) x^{2} + \left(\frac{8}{2}\right) x + \left(\frac{2}{2}\right) = 0 over the real numbers. Give both exact values; the radical need not be simplified.

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. 5x2+8x+2=0\displaystyle 5x^2+8x+2=0
    Why?Multiply every term, including the right-hand side, by 2\displaystyle 2 to clear the common denominator.
  2. a=5,b=8,c=2\displaystyle a=5,\quad b=8,\quad c=2
    Why?Compare the new equation with ax2+\displaystyle {}^{2} + bx +c=0\displaystyle + c = 0. Use the coefficients of this whole-number equation.
  3. x=−b±b2−4ac2a\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
    Why?Write the quadratic formula.
  4. x=−8±(8)2−4(5)(2)2(5)\displaystyle x=\frac{-8\pm\sqrt{(8)^2-4(5)(2)}}{2(5)}
    Why?Replace a, b and c, keeping the whole numerator above the fraction bar.
  5. x=−8±2410\displaystyle x=\frac{-8\pm\sqrt{24}}{10}
    Why?Calculate the discriminant inside the root and the denominator separately.
  6. x=−8−2410orx=−8+2410\displaystyle x=\frac{-8-\sqrt{24}}{10}\quad\mathrm{or}\quad x=\frac{-8+\sqrt{24}}{10}
    Why?Write both choices of sign. These are exact roots; this question allows the radical to remain unsimplified.
08Quadratic methods and real-solution checks

Solve (15)x2+(15)x+(2120)=0\displaystyle \left(\frac{1}{5}\right) x^{2} + \left(\frac{1}{5}\right) x + \left(\frac{21}{20}\right) = 0 over the real numbers. Give every distinct solution exactly.

Why this method? Complete the square to see whether a real solution is possible. First remove fractions, then make the coefficient of x2\displaystyle x^{2} equal to 1\displaystyle 1.

  1. 4x2+4x+21=0\displaystyle 4x^2+4x+21=0
    Why?Multiply every term by 20,\displaystyle 20 , the common denominator, to clear the fractions.
  2. x2+x+214=0\displaystyle x^2+x+\frac{21}{4}=0
    Why?Divide every term by 4\displaystyle 4 so the coefficient of x2\displaystyle x^{2} is 1\displaystyle 1.
  3. x2+x=−214\displaystyle x^2+x=-\frac{21}{4}
    Why?Subtract the constant term from both sides.
  4. (12)2=14\displaystyle (\frac12)^2=\frac14
    Why?Halve the coefficient of x and square it. This is the missing constant that makes a perfect square.
  5. x2+x+14=−214+14\displaystyle x^2+x+\frac14=-\frac{21}{4}+\frac14
    Why?Add that same quantity to both sides. This preserves equality.
  6. (x+12)2=−5\displaystyle (x+\frac12)^2=-5
    Why?The left-hand side is now a squared bracket. Simplify the right-hand side.
  7. No real solutions.
    Why?A real number squared cannot be negative. Therefore there is no real value of x that can satisfy this equation.

Think about it: Why can a quadratic equation have no real solution, and how would both a graph and a completed square show this?

09Quadratic methods and real-solution checks — another example

Solve (15)x2+(−1)x+(3720)=0\displaystyle \left(\frac{1}{5}\right) x^{2} + \left(- 1\right) x + \left(\frac{37}{20}\right) = 0 over the real numbers. Give every distinct solution exactly.

Why this method? Complete the square to see whether a real solution is possible. First remove fractions, then make the coefficient of x2\displaystyle x^{2} equal to 1\displaystyle 1.

  1. 4x2−20x+37=0\displaystyle 4x^2-20x+37=0
    Why?Multiply every term by 20,\displaystyle 20 , the common denominator, to clear the fractions.
  2. x2−5x+374=0\displaystyle x^2-5x+\frac{37}{4}=0
    Why?Divide every term by 4\displaystyle 4 so the coefficient of x2\displaystyle x^{2} is 1\displaystyle 1.
  3. x2−5x=−374\displaystyle x^2-5x=-\frac{37}{4}
    Why?Subtract the constant term from both sides.
  4. (−52)2=254\displaystyle (-\frac52)^2=\frac{25}{4}
    Why?Halve the coefficient of x and square it. This is the missing constant that makes a perfect square.
  5. x2−5x+254=−374+254\displaystyle x^2-5x+\frac{25}{4}=-\frac{37}{4}+\frac{25}{4}
    Why?Add that same quantity to both sides. This preserves equality.
  6. (x−52)2=−3\displaystyle (x-\frac52)^2=-3
    Why?The left-hand side is now a squared bracket. Simplify the right-hand side.
  7. No real solutions.
    Why?A real number squared cannot be negative. Therefore there is no real value of x that can satisfy this equation.
10Quadratic equations with a repeated rational root

Solve over the real numbers:(−13)x2+(−32)x+(−2716)=0\displaystyle : \left(- \frac{1}{3}\right) x^{2} + \left(- \frac{3}{2}\right) x + \left(- \frac{27}{16}\right) = 0. Give all distinct solutions in simplest fractional form.

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. D=(−32)2−4×(−13)×(−2716)=94−94=0\displaystyle D = \left(- \frac{3}{2}\right)^{2} - 4 \times \left(- \frac{1}{3}\right) \times \left(- \frac{27}{16}\right) = \frac{9}{4} - \frac{9}{4} = 0.
    Why?Calculate the discriminant D=b2−4ac\displaystyle D = b^{2} - 4 a c
  2. x=−b(2a)=−(−32)(2×(−13))=−94\displaystyle x = - \frac{b}{\left(2a\right)} = - \frac{\left(- \frac{3}{2}\right)}{\left(2 \times \left(- \frac{1}{3}\right)\right)} = - \frac{9}{4}.
    Why?A zero discriminant gives one distinct real solution, a repeated root
  3. (−13)×(x−(−94))2=0\displaystyle \left(- \frac{1}{3}\right) \times \left(x - \left(- \frac{9}{4}\right)\right)^{2} = 0. Since −13\displaystyle - \frac{1}{3} is non-zero,x−(−94)=0\displaystyle , x - \left(- \frac{9}{4}\right) = 0. Thus x=−94\displaystyle x = - \frac{9}{4}.
    Why?Check by rewriting as a constant times a square

Think about it: Why does the ± sign give only one distinct solution when the discriminant is zero?

11Quadratic equations with a repeated rational root — another example

Solve over the real numbers:(25)x2+(−225)x+(12110)=0\displaystyle : \left(\frac{2}{5}\right) x^{2} + \left(- \frac{22}{5}\right) x + \left(\frac{121}{10}\right) = 0. Give all distinct solutions in simplest fractional form.

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. D=(−225)2−4×(25)×(12110)=48425−48425=0\displaystyle D = \left(- \frac{22}{5}\right)^{2} - 4 \times \left(\frac{2}{5}\right) \times \left(\frac{121}{10}\right) = \frac{484}{25} - \frac{484}{25} = 0.
    Why?Calculate the discriminant D=b2−4ac\displaystyle D = b^{2} - 4 a c
  2. x=−b(2a)=−(−225)(2×(25))=112\displaystyle x = - \frac{b}{\left(2a\right)} = - \frac{\left(- \frac{22}{5}\right)}{\left(2 \times \left(\frac{2}{5}\right)\right)} = \frac{11}{2}.
    Why?A zero discriminant gives one distinct real solution, a repeated root
  3. (25)×(x−(112))2=0\displaystyle \left(\frac{2}{5}\right) \times \left(x - \left(\frac{11}{2}\right)\right)^{2} = 0. Since 25\displaystyle \frac{2}{5} is non-zero,x−(112)=0\displaystyle , x - \left(\frac{11}{2}\right) = 0. Thus x=112\displaystyle x = \frac{11}{2}.
    Why?Check by rewriting as a constant times a square
12The constant term from integer roots

A quadratic equation x2+\displaystyle x^{2} + bx +c=0\displaystyle + c = 0 has roots 3\displaystyle 3 and 8\displaystyle 8. What is the value of c?

Why this method? Put the equation equal to zero. Start with factorising when possible; otherwise choose a method that can find all real roots.

  1. (x−3)(x−8)=0\displaystyle \left(x - 3\right) \left(x - 8\right) = 0
    Why?The roots give the factors (x)\displaystyle \left(x\right) root)
  2. c=3×8=24\displaystyle c = 3 \times 8 = 24
    Why?Expand: the constant term is the product of the roots

Think about it: Before moving on: which part of the expanded quadratic comes from the sum of the roots, and which from the product?

Common mistake

Dividing only the square-root part by 2a\displaystyle 2a in the quadratic formula. The whole numerator is divided: x=−b±b2−4ac2a\displaystyle x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}. Keep both terms above the same fraction bar.

Exam technique

The guide-number method can be quicker when suitable factors are easy to find. The quadratic formula is always available for a quadratic equation. Keep surds exact, or round only the final answers to the requested decimal places.

Show your method, use units where appropriate and check whether the question asks for an exact or rounded answer.

04 · Try it yourself

Self-check questions

Work on paper first, then open the answer. These are practice questions, not submitted homework.

Question 1

Solve (24)x2+(−84)x+(−64)=0\displaystyle \left(\frac{2}{4}\right) x^{2} + \left(- \frac{8}{4}\right) x + \left(- \frac{6}{4}\right) = 0 over the real numbers. Give both exact values; the radical need not be simplified.

  1. x=(8−16)4\displaystyle x = \frac{\left(8 - \sqrt{16}\right)}{4} or x=(8+16)4\displaystyle x = \frac{\left(8 + \sqrt{16}\right)}{4}
  2. x=(8−112)2\displaystyle x = \frac{\left(8 - \sqrt{112}\right)}{2} or x=(8+112)2\displaystyle x = \frac{\left(8 + \sqrt{112}\right)}{2}
  3. x=(8−112)4\displaystyle x = \frac{\left(8 - \sqrt{112}\right)}{4} or x=(8+112)4\displaystyle x = \frac{\left(8 + \sqrt{112}\right)}{4}
  4. x=(−8−112)4\displaystyle x = \frac{\left(- 8 - \sqrt{112}\right)}{4} or x=(−8+112)4\displaystyle x = \frac{\left(- 8 + \sqrt{112}\right)}{4}
Show answer & check
x=(8−112)4\displaystyle x = \frac{\left(8 - \sqrt{112}\right)}{4} or x=(8+112)4\displaystyle x = \frac{\left(8 + \sqrt{112}\right)}{4}

Correct.

Question 2

Solve (16)x2+(−116)x+(13324)=0\displaystyle \left(\frac{1}{6}\right) x^{2} + \left(- \frac{11}{6}\right) x + \left(\frac{133}{24}\right) = 0 over the real numbers. Give every distinct solution exactly.

  1. x=112−3\displaystyle x = \frac{11}{2} - \sqrt{3} or x=112+3\displaystyle x = \frac{11}{2} + \sqrt{3}
  2. x=112\displaystyle x = \frac{11}{2}
  3. All real x.
  4. No real solutions.
Show answer & check
No real solutions.

Correct.

Question 3

Solve over the real numbers:(−14)x2+(−74)x+(−4916)=0\displaystyle : \left(- \frac{1}{4}\right) x^{2} + \left(- \frac{7}{4}\right) x + \left(- \frac{49}{16}\right) = 0. Give all distinct solutions in simplest fractional form.

  1. x=−7\displaystyle x = - 7
  2. x=−72\displaystyle x = - \frac{7}{2} or x=72\displaystyle x = \frac{7}{2}
  3. x=−72\displaystyle x = - \frac{7}{2}
  4. x=72\displaystyle x = \frac{7}{2}
Show answer & check
x=−72\displaystyle x = - \frac{7}{2}

Correct.

Question 4

Solve for x, giving exact answers:x2=31\displaystyle : x^{2} = 31.

  1. x=±312\displaystyle x = \pm \frac{31}{2}
  2. x=±31\displaystyle x = \pm 31
  3. x=±31\displaystyle x = \pm \sqrt{31}
  4. x=31\displaystyle x = \sqrt{31}
Show answer & check
x=±31\displaystyle x = \pm \sqrt{31}

Correct:31\displaystyle : 31 is not a perfect square, so both roots are surds.

Question 5

Solve x2−11x+24=0\displaystyle x^{2} - 11x + 24 = 0 by factorising. What is the larger root?

Show answer & check
8\displaystyle 8

Compare your result with the answer. If it differs, revisit a worked example and check each step.

Question 6

A quadratic equation x2+\displaystyle x^{2} + bx +c=0\displaystyle + c = 0 has roots 6\displaystyle 6 and 7\displaystyle 7. What is the value of c?

Show answer & check
42\displaystyle 42

Compare your result with the answer. If it differs, revisit a worked example and check each step.

Watch an explanation

Videos for this chapter

Choose one explanation, pause to work an example, then return to the notes. All Maths videos →

Corbettmaths · Start here

Quadratics: solving (factorising)

The YouTube player loads only when you choose this button.

Open on YouTube ↗

Cognito · Next step

The Quadratic Formula

Use the signs of a, b and c exactly as shown in our worked examples, including brackets around negative numbers.

Watch on Cognito ↗

Classroom resources

Open slides & animated PowerPoint →
Open full-size image ↗
Enlarged maths diagram