Book a free chat

Topic explainer · MYP 4–5

Solving quadratic equations

How to solve quadratic equations by factorizing and with the quadratic formula, plus what the discriminant tells you, with worked examples and practice.

By Rachel Bodily · Last updated 27 November 2026

Created with AI assistance, reviewed by our IB educators.

To solve a quadratic equation, rearrange it so that one side is zero: ax2+bx+c=0. Then factorize and set each bracket equal to zero, or use the quadratic formula:

x=−b±b2−4ac2a

A quadratic can have two, one or no real solutions.

The key idea

xy−3−2

Solving means finding where the graph crosses the x-axis. The graph of

y=x2+5x+6

is a parabola that opens upwards (concave up). It crosses the x-axis at x=−3 and x=−2, so these are the solutions of x2+5x+6=0.

Why do we make it equal zero?

On the x-axis, y=0. So the points where the graph crosses the axis are exactly where x2+5x+6=0.

Zero also has a special property: if two numbers multiply to give 0, one of them must be 0. That only works with zero. If (x+3)(x+2)=6, we learn nothing about either bracket, because 1×6, 2×3 and 0.5×12 all make 6.

How many solutions? Check the discriminant

The part under the square root, b2−4ac, is called the discriminant. Its sign tells you how many times the parabola meets the x-axis.

b2−4ac>0
Two solutionsCrosses twice
b2−4ac=0
One solutionTouches once
b2−4ac<0
No real solutionsNever reaches it

Worked examples

  1. Example 1
    Solve x2+5x+6=0.
    Factorize, then set each bracket to zero
    x2+5x+6=0Already = 0(x+3)(x+2)=03 and 2 go into the brackets
    x+3=0x=−3
    or
    x+2=0x=−2
    One bracket must be 0, so solve each one
    Side working
    Multiply to 6, add to 5
    2×3=62+3=5
    The numbers are 2 and 3.
    xy−3−2
    Checkx=−3: (−3)2+5(−3)+6=9−15+6=0 ✓x=−2: (−2)2+5(−2)+6=4−10+6=0 ✓
    Answer: x=−3 or x=−2
  2. Example 2
    Solve 2x2−3x−4=0.
    It doesn’t factorize, so use the quadratic formula
    x=−b±b2−4ac2aFormulax=−(−3)±(−3)2−4(2)(−4)2(2)Substitutex=3±414Evaluate
    x=3+414x≈2.35
    or
    x=3−414x≈−0.851
    + and − give two answers (3 s.f.)
    Side working
    a=2b=−3c=−4
    xy−0.8512.35
    CheckThe graph crosses the x-axis at about −0.85 and 2.35 ✓
    Answer: x≈−0.851 or x≈2.35 (3 significant figures)
  3. Example 3
    A ball is thrown upwards. Its height in meters after t seconds is h=20t−5t2. When does it land?
    Set the height to zero and factorize
    20t−5t2=0It lands when h=05t(4−t)=0Take out the common factor
    5t=0t=0
    or
    4−t=0t=4
    One factor must be 0
    Side working
    Both terms share 5t
    20t=5t×45t2=5t×t
    t (s)h (m)04
    Checkt=4: 20(4)−5(4)2=80−80=0 ✓t=0 is the moment the ball is thrown, so it is not the landing time.
    Answer: the ball lands after 4 seconds.
  4. Example 4
    How many real solutions does x2+2x+5=0 have?
    Work out the discriminant
    b2−4ac=(2)2−4(1)(5)Substitute=4−20=−16Negative

    The discriminant is negative, so the formula would need the square root of −16. No real number squares to give a negative, so there are no real solutions.

    Side working
    a=1b=2c=5
    xy
    CheckThe graph of y=x2+2x+5 has its lowest point at (−1,4), above the x-axis, so it never crosses ✓
    Answer: no real solutions.

Common mistakes

  • Factorizing before the equation equals zeroFor x2+5x=−6, first add 6 to both sides to get x2+5x+6=0. Then factorize.
  • Dividing both sides by x and losing a solutionx2=3x has two solutions. Rearrange to x2−3x=0 and factorize to x(x−3)=0, so x=0 or x=3. Dividing by x loses x=0.
  • Sign errors when b is negativePut every value in brackets when you substitute. With b=−3: −b=−(−3)=3 and b2=(−3)2=9, not −9.

In an MYP task

Projectiles (Criterion D)

In a real-life task, students often get two solutions and must decide which ones make sense. In the ball example, t=0 is the moment the ball is thrown, so the landing time is t=4. In other tasks one solution may be negative, such as a time before the throw or a negative length, and that one is rejected.

Explaining that choice in context is what lifts a response into the higher levels of Criterion D.

Practice questions

  1. x2−7x+12=0
    Show answer
    (x−3)(x−4)=0
    x=3 or x=4
  2. x2+2x−15=0
    Show answer
    (x+5)(x−3)=0
    x=−5 or x=3
  3. x2=5x
    Show answer
    x2−5x=0x(x−5)=0
    x=0 or x=5
  4. x2+4x+1=0 (to 3 significant figures)
    Show answer
    x=−(4)±(4)2−4(1)(1)2(1)x=−4±122
    x≈−0.268 or x≈−3.73

More topic explainers

Find more free resources, or look up command terms in the glossary.

Back to all free resources