Skip to content
IB Diploma ProgrammeSL & HL

Quadratic equations and discriminant

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Quadratic equations and discriminant notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Quadratic equations and discriminant notes as text: skim, search, and jump between subtopics.

~15 min read

1. Roots, zeros and factorising

A quadratic equation has the form ax² + bx + c = 0 with a ≠ 0. Its solutions are called roots. For the function f(x) = ax² + bx + c, the values of x where f(x) = 0 are the zeros of f. Roots and zeros are the same numbers: the x-intercepts of the graph.

To solve by factorisation, first make one side zero. Then write the other side as a product of brackets. A product is zero only when one of its factors is zero, so set each bracket equal to zero.

If f is already given as a product, its zeros can be read from the brackets. A quadratic has at most two zeros.

(x - p)(x - q) = 0 ⇒ x = p or x = q

Worked example 15 marks

Consider the quadratic function f(x) = -(x + 2)(x - 4), for x ∈ R. The following diagram shows part of the graph of f.(a)(i) Find the x-coordinate of each of the x-intercepts.(ii) Find the coordinates of the vertex.

  1. 1

    setting f(x) = 0: -(x + 2)(x - 4) = 0 (M1) [1]

  2. 2

    x = -2 and x = 4 (A1) [1]

  3. 3

    the vertex is midway between the intercepts: x = (-2 + 4)/2 = 1 (A1) [1]

  4. 4

    substituting x = 1 into f: f(1) = -(3)(-3) (M1) [1]

  5. 5

    y = 9, so the vertex is (1, 9) (A1) [1]

2. Completing the square

Completing the square rewrites x² + bx + c as a bracket squared plus a constant. Half of b goes in the bracket. Then subtract the square of that half so the expression is unchanged.

The result (x - h)² + k is the vertex form. For a function f(x) = a(x - h)² + k, the vertex of the graph is the point (h, k). In block 1, f(x) = -(x - 1)² + 9 has h = 1 and k = 9, the vertex found there.

To solve an equation, move the constant across, then take the positive and negative square root. This works when factorising does not, and it gives exact answers.

x² + bx + c = (x + b/2)² - b²/4 + c

(x - h)² = d ⇒ x = h ± √d

Worked example 14 marks

Do not use a calculator. Solve x² - 6x + 4 = 0 by completing the square. Give your answers in exact form.

  1. 1

    halves the coefficient of x and subtracts its square: (x - 3)² - 9 + 4 (M1) [1]

  2. 2

    (x - 3)² - 5 = 0 (A1) [1]

  3. 3

    (x - 3)² = 5, so x - 3 = ±√5 (M1) [1]

  4. 4

    x = 3 + √5 or x = 3 - √5 (A1) [1]

3. The quadratic formula

Use the quadratic formula when the equation does not factorise easily. It solves any equation ax² + bx + c = 0. It is in the data booklet.

First write the equation in the form ax² + bx + c = 0 and identify a, b and c with their signs. Substitute with brackets round negative numbers. The whole numerator is divided by 2a.

The ± gives two values. Keep the exact form, such as (5 ± √37)/6, until the last line. Round only then, to three significant figures.

x = (-b ± √(b² - 4ac))/2a

Worked example 14 marks

Solve 3x² - 5x - 1 = 0. Give your answers correct to three significant figures.

  1. 1

    a = 3, b = -5, c = -1: substitutes into the formula, x = (-(-5) ± √((-5)² - 4(3)(-1)))/(2(3)) (M1) [1]

  2. 2

    x = (5 ± √37)/6 (A1) [1]

  3. 3

    x = (5 + √37)/6 = 1.85 (A1) [1]

  4. 4

    x = (5 - √37)/6 = -0.180 (A1) [1]

4. Forming the quadratic, then solving it

Some questions never show ax² + bx + c = 0. A quadratic hides inside an equation of two expressions in x. Expand the brackets, collect every term on one side, and leave zero on the other. Then choose factorising, completing the square or the formula.

Look for the simplest method first. If the numbers are whole and the equation is x² - 4x + 3 = 0, factorising takes one line. If it does not factorise quickly, use the quadratic formula or complete the square.

Write the equation you formed on a line of its own before solving. The mark scheme gives an accuracy mark for the correct equation, and the solving marks follow from it.

Last, check each root against any condition the question gives, such as 0 ≤ x ≤ 7. A root outside the allowed interval is rejected.

Worked example 16 marks

Consider two events, A and B.

It is given that P(A ∩ B') = (5 + x)/24, P(A ∩ B) = (7 - x)/12 and P(A' ∩ B) = 1/6, where 0 ≤ x ≤ 7.

Part(a) established that P(A) = (19 - x)/24.

It is given that A and B are independent.

(b) Find the possible values of x.

  1. 1

    P(B) = (7 - x)/12 + 1/6 = (9 - x)/12 (seen anywhere) (A1) [1]

  2. 2

    attempt to use P(A ∩ B) = P(A)P(B) to form an equation in x (M1) [1]

  3. 3

    (7 - x)/12 = (19 - x)/24 × (9 - x)/12 (A1) [1]

  4. 4

    168 - 24x = x² - 28x + 171, so x² - 4x + 3 = 0 (A1) [1]

  5. 5

    attempt to solve their quadratic equation (M1) [1]

  6. 6

    x = 1, x = 3: both lie in 0 ≤ x ≤ 7 (A1) [1]

5. Quadratic inequalities

To solve an inequality such as x² - 2x - 8 > 0, first solve the related equation x² - 2x - 8 = 0. Its roots mark where the graph crosses the x-axis.

Then sketch the parabola. When the x² coefficient is positive it opens upwards. The graph is below the axis between the roots and above the axis outside them. Read off the x-values that fit the inequality.

Two separate ranges are joined with the word or, never "and". With ≤ or ≥ the roots are included.

x² - 2x - 8 > 0 ⇒ x < -2 or x > 4

Worked example 14 marks

Do not use a calculator. Solve the inequality x² - 2x - 8 > 0.

  1. 1

    solves the related equation: (x - 4)(x + 2) = 0 (M1) [1]

  2. 2

    zeros at x = -2 and x = 4 (A1) [1]

  3. 3

    the x² coefficient is positive, so the graph opens upwards and is above the x-axis outside the zeros (R1) [1]

  4. 4

    x < -2 or x > 4 (A1) [1]

6. The discriminant and the nature of the roots

The discriminant of ax² + bx + c = 0 is Δ = b² - 4ac. It is the expression under the square root in the quadratic formula.

Its sign tells the nature of the roots. If Δ > 0 there are two distinct real roots. If Δ = 0 there are two equal real roots. If Δ < 0 there are no real roots, because the square root of a negative number is not real.

On a graph, two distinct roots mean the parabola cuts the x-axis twice. Equal roots mean it touches the axis at one point. No real roots mean it does not meet the axis.

Δ = b² - 4ac

Δ > 0: two distinct real roots Δ = 0: two equal real roots Δ < 0: no real roots

Worked example 14 marks

Consider the quadratic function f(x) = -(x + 2)(x - 4), for x ∈ R. Consider the equation -x² + 2x + 8 - p = 0, where p ∈ R.(d) By considering the graph of f, or otherwise, find the range of possible values of p such that this equation has(i) two distinct real roots;(ii) two distinct positive real roots.

  1. 1

    the discriminant with a = -1, b = 2, c = 8 - p is positive: (2)² - 4(-1)(8 -p) > 0 (M1) [1]

  2. 2

    36 - 4p > 0, so p < 9 (A1) [1]

  3. 3

    the equation is f(x) = p, so the roots are where the line y = p meets the graph. For positive roots the line must meet the right of the y-axis twice, so p is above f(0)

  4. 4

    f(0) = 8 (A1) [1]

  5. 5

    8 < p < 9 (A1) [1]

7. Finding a parameter from the discriminant

When the equation holds an unknown such as k, write a, b and c in terms of k and build Δ. The discriminant becomes an expression in k.

Then set the condition for each case. For two distinct real roots use Δ > 0. For two equal real roots use Δ = 0. For no real roots use Δ < 0. Solving Δ > 0 or Δ < 0 is a quadratic inequality in k, so sketch or use the method in block 5.

If a contains k, the equation is quadratic only when a ≠ 0. State any value of k that must be excluded.

3kx² + 2x + k = 0: a = 3k, b = 2, c = k

Worked example 16 marks

Do not use a calculator. Consider the equation 3kx² + 2x + k = 0, where k ≠ 0. Find the values of k for which the equation has(a) two distinct real roots;(b) two equal real roots;(c) no real roots.

  1. 1

    a = 3k, b = 2, c = k, so the discriminant is Δ = 2² - 4(3k)(k) (M1) [1]

  2. 2

    Δ = 4 - 12k² (A1) [1]

  3. 3

    (a) Δ > 0: 4 - 12k² > 0, so k² < 1/3 (M1) [1]

  4. 4

    -(√3)/3 < k < (√3)/3, with k ≠ 0 (A1) [1]

  5. 5

    (b) Δ = 0: k = ±(√3)/3 (A1) [1]

  6. 6

    (c) Δ < 0: k < -(√3)/3 or k > (√3)/3 (A1) [1]

Recap

  • A quadratic equation is ax² + bx + c = 0 with a ≠ 0. Its solutions are the roots, and the zeros of f are the same values.
  • Make one side zero before factorising. A product equal to zero means a factor is zero.
  • Completing the square gives (x - h)² + k. Subtract the square of half of b. Take both roots.
  • The quadratic formula is x = (-b ± √(b² - 4ac))/2a. Divide the whole numerator by 2a and keep the signs of b and c.
  • For an inequality, solve the equation, sketch the parabola, and read the region. Two ranges are joined by or.
  • Δ = b² - 4ac. Positive: two distinct real roots. Zero: two equal real roots. Negative: no real roots.
  • With a parameter, write a, b, c in terms of it, build Δ, then use the condition. Exclude any value that makes a = 0.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. The discriminant of a quadratic equation is -5. State the nature of its roots.1 mark
    Answer
    1. Δ < 0, so there are no real roots (A1)

    Trap: A negative discriminant does not mean "one root" or "two negative roots": no real number satisfies the equation, and *state* needs only that answer.

  2. Do not use a calculator. Solve x² = 3x + 10.2 marks
    Answer
    1. rearranges to zero: x² - 3x - 10 = 0 (M1)
    2. (x - 5)(x + 2) = 0, so x = 5 or x = -2 (A1)

    Trap: Writing x(x - 3) = 10 and then x = 10 is wrong. A product equal to 10 does not make a factor 10. Make one side zero first.

  3. Do not use a calculator. Calculate the discriminant of 3x² - 4x - 2 = 0 and state the nature of its roots.3 marks
    Answer
    1. Δ = (-4)² - 4(3)(-2) (M1)
    2. Δ = 16 + 24 = 40 (A1)
    3. Δ > 0, so two distinct real roots (A1)

    Trap: c = -2, so -4ac = +24. Writing 16 - 24 = -8 gives the wrong conclusion of no real roots.

  4. Solve 2x² + 7x - 3 = 0. Give your answers correct to three significant figures.3 marks
    Answer
    1. x = (-7 ± √(7² - 4(2)(-3)))/(2(2)) = (-7 ± √73)/4 (M1)
    2. x = 0.386 (A1)
    3. x = -3.89 (A1)

    Trap: The whole numerator is divided by 2a = 4, not only the square root. Rounding √73 early can change the third significant figure.

  5. Do not use a calculator. (a) Write x² + 8x + 3 in the form (x + h)² + k. (b) Hence solve x² + 8x + 3 = 0. Give your answers in the form a ± √b.4 marks
    Answer
    1. (a)
    2. (x + 4)² - 16 + 3 (M1)
    3. (x + 4)² - 13 (A1)
    4. (b)
    5. (x + 4)² = 13 (M1)
    6. x = -4 ± √13 (A1)

    Trap: Completing the square adds 16, so subtract 16. Writing (x + 4)² + 3 leaves the expression changed.

  6. Do not use a calculator. Solve the inequality 2x² - x - 6 ≤ 0.3 marks
    Answer
    1. (2x + 3)(x - 2) = 0 (M1)
    2. zeros x = -3/2 and x = 2 (A1)
    3. the graph opens upwards and is below or on the axis between the zeros: -3/2 ≤ x ≤ 2 (A1)

    Trap: The region for ≤ 0 is between the zeros, not outside. The zeros give 0, which satisfies ≤, so they are included.

  7. Do not use a calculator. The equation x² + kx + 9 = 0 has two equal real roots. Find the possible values of k.3 marks
    Answer
    1. Δ = k² - 4(1)(9) (M1)
    2. Δ = 0, so k² = 36 (A1)
    3. k = 6 or k = -6 (A1)

    Trap: Taking the square root gives two values. Giving only k = 6 loses the mark: x² - 6x + 9 = (x - 3)² also has equal roots.

  8. Show that the equation (k + 1)x² + 2kx + (k - 1) = 0 has two distinct real roots for every value of k except k = -1.4 marks
    Answer
    1. Δ = (2k)² - 4(k + 1)(k - 1) (M1)
    2. = 4k² - 4(k² - 1) (A1)
    3. = 4 (A1)
    4. 4 > 0 for every k, so there are two distinct real roots; k = -1 makes a = 0 and the equation linear (R1) AG

    Trap: -4(k² - 1) = -4k² + 4. Writing -4k² - 4 gives Δ = -8, the wrong conclusion.

  9. Do not use a calculator. Consider the equation (k - 2)x² + 4x + (k + 1) = 0, where k ≠ 2. (a) Find the set of values of k for which the equation has two distinct real roots. (b) Find the set of values of k for which the equation has no real roots.6 marks
    Answer
    1. a = k - 2, b = 4, c = k + 1, so Δ = 4² - 4(k - 2)(k + 1) (M1)
    2. Δ = 16 - 4(k² - k - 2) = -4k² + 4k + 24 (A1)
    3. (a) -4k² + 4k + 24 > 0; dividing by -4 reverses the sign: k² - k - 6 < 0 (M1)
    4. (k - 3)(k + 2) < 0, critical values k = -2 and k = 3 (A1)
    5. -2 < k < 3, k ≠ 2 (A1)
    6. (b) Δ < 0: k < -2 or k > 3 (A1)

    Trap: Dividing by -4 without reversing the inequality swaps the answers to (a) and (b); and k = 2 must be left out of (a), because there the equation is 4x + 3 = 0, which is linear.

  10. A rectangle has a perimeter of 28 m. Its length is x metres and its area is A m². (a) Show that x² - 14x + A = 0. (b) Hence determine the set of values of A for which such a rectangle exists. (c) Write down the length and width of the rectangle when A takes its greatest value.7 marks
    Answer
    1. (a)
    2. length + width = 14, so the width is 14 - x and x(14 - x) = A (M1)
    3. 14x - x² = A, so x² - 14x + A = 0 (A1) AG
    4. (b)
    5. x must be real: Δ = (-14)² - 4(1)(A) ≥ 0, with equal roots allowed (M1)
    6. 196 - 4A ≥ 0, so A ≤ 49 (A1)
    7. the graph of y = x² - 14x + A has its vertex at x = 7, so both roots are positive only if y(0) = A > 0 (R1)
    8. 0 < A ≤ 49 (A1)
    9. (c)
    10. A = 49: (x - 7)² = 0, so length 7 m and width 7 m (A1)

    Trap: Using Δ > 0 (two distinct roots) loses A = 49, where the two equal roots give a square; and, as in the f(0) step of the markscheme, the lengths must also be positive, so A > 0.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
vertex stated as f(1) = 9, with no coordinatesvertex written as the coordinates (1, 9)
Δ = 0 or Δ ≥ 0 for two distinct real rootsΔ > 0 for two distinct real roots, Δ = 0 for two equal real roots
p < 9 for two distinct positive real roots8 < p < 9: the line must also be above f(0) = 8

Frequently asked questions

What is the quadratic formula and when should I use it?
The quadratic formula solves ax² + bx + c = 0 when factorising is not easy: x = (-b ± √(b² - 4ac))/2a. Identify a, b and c with their signs, and divide the whole numerator by 2a. For 3x² - 5x - 1 = 0 the roots are 1.85 and -0.180 to three significant figures. Keep the exact form until the last line, and round only then.
How do I solve a quadratic by completing the square?
Halve the coefficient of x and subtract its square. For x² - 6x + 4 = 0, this gives (x - 3)² - 9 + 4, which is (x - 3)² - 5 = 0. Then (x - 3)² = 5, so x - 3 = ±√5. The roots are x = 3 + √5 and x = 3 - √5, in exact form.
What does the discriminant tell me about the roots of a quadratic?
The discriminant is Δ = b² - 4ac. If Δ > 0 there are two distinct real roots, if Δ = 0 there are two equal real roots, and if Δ < 0 there are no real roots. On a graph, the parabola cuts the x-axis twice, touches it at one point, or does not meet it. For 3x² - 4x - 2 = 0, c = -2, so -4ac = +24, not -24.
How do I find the values of k that give equal roots?
Write a, b and c in terms of k, build the discriminant, and set Δ = 0. Taking the square root gives two values. For x² + kx + 9 = 0, giving only k = 6 loses the mark, because x² - 6x + 9 = (x - 3)² also has equal roots. Exclude any value of k that makes a = 0.
How do I solve a quadratic inequality?
Solve the related equation first, then sketch the parabola. For x² - 2x - 8 > 0, the equation (x - 4)(x + 2) = 0 gives the zeros -2 and 4. Since a > 0 the graph is above the x-axis outside the zeros, so x < -2 or x > 4. Join two separate ranges with 'or', never 'and'.
Why do I get the wrong roots when solving x² = 3x + 10?
A common error is writing x(x - 3) = 10 and then concluding x = 10. A product equal to 10 does not make one factor 10. Make one side zero first, so the equation becomes x² - 3x - 10 = 0. Then factorise and set each bracket equal to zero, since a product is zero only when one of its factors is zero.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters