Solving quadratic equations

Solving quadratic equations

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A quadratic equation has the form ax2+bx+c=0ax^2+bx+c=0 and can have two, one or no real solutions.
  • To solve by factorising: rearrange to =0=0, factorise, set each bracket to zero.
  • The quadratic formula: x=−b±b2−4ac2ax=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}.
  • The discriminant b2−4acb^2-4ac tells you how many solutions there are.
  • Reject impossible solutions, such as negative lengths, in context.

What a quadratic equation is

A quadratic equation can be written ax² + bx + c = 0 and has two, one or no real solutions.

Its solutions are also called roots. Many methods use the zero-product rule: if A×B=0A\times B=0 then A=0A=0 or B=0B=0. This is why the equation must equal 00 before you factorise.

−4−3−2−11234−4−22468xy(-2, 0)(2, 0)(0, 0)y = x² − 4y = x²y = x² + 4
Two solutions, one solution, no solutions

Why can you not solve x2=5x+6x^2=5x+6 by writing x=5x=5 or x=6x=6?

Solving by factorising

Rearrange to equal zero, factorise, then set each bracket equal to zero.

If there is no constant term, take out a common factor: x2−4x=0x^2-4x=0 gives x(x−4)=0x(x-4)=0, so x=0x=0 or x=4x=4.

Watch for the difference of two squares: x2−25=(x−5)(x+5)x^2-25=(x-5)(x+5).

When a≠1a\ne1: 2x2+3x−5=02x^2+3x-5=0 gives (2x+5)(x−1)=0(2x+5)(x-1)=0, so x=−52x=-\frac52 or x=1x=1.

  1. 1

    Rearrange

    Make one side equal to 0

  2. 2

    Factorise

    Write as two brackets

  3. 3

    Set each bracket to zero

    Solve the two linear equations

Solving by factorising

Worked example

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

−4−22468−20−15−10−5510xy(-2, 0)(7, 0)y = x² − 5x − 14
y = x² − 5x − 14 crosses the x-axis at x = −2 and x = 7

Solve x2−4x=0x^2-4x=0.

The quadratic formula

Use it for quadratics that do not factorise neatly.

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

Use brackets when bb or cc is negative so that b2b^2 is always positive.

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

Worked example

Solve 3x2−4x−5=03x^2-4x-5=0 to 3 significant figures.

−2−1.5−1−0.50.511.522.53−8−6−4−2246810xyx = -0.786x = 2.12y = 3x² − 4x − 5
y = 3x² − 4x − 5 crosses the x-axis at x = −0.786 and x = 2.12

What is (−4)2(-4)^2, and what does a calculator give for −42-4^2?

How many solutions?

The discriminant b² − 4ac shows how many solutions there are without solving.

For example, 2x2−3x+5=02x^2-3x+5=0 has 9−40=−31<09-40=-31<0, so there are no real solutions.

−4−3−2−11234−6−4−2246810xy(−2, 0)(2, 0)(0, 0)two solutionsone repeated solutionno real solutions
y = x² − 4 crosses the x-axis twice (b² − 4ac > 0), y = x² touches it once (= 0), y = x² + 4 never reaches it (< 0).

b² − 4ac > 0

Solutions:
Two solutions
Graph:
Crosses the x-axis twice

b² − 4ac = 0

Solutions:
One repeated solution
Graph:
Touches the x-axis

b² − 4ac < 0

Solutions:
No real solutions
Graph:
Does not reach the x-axis

Worked example

How many solutions does x2−6x+9=0x^2-6x+9=0 have?

Does 2x2−3x+5=02x^2-3x+5=0 have real solutions?

Solving graphically

The solutions are the x-coordinates where the graph crosses the x-axis, or where two graphs meet.

Use a graphing calculator or software to draw the curve and find these roots. Two crossing points mean two solutions, a touch means one, and no contact means none.

To solve x2−3x=4x^2-3x=4, plot y=x2−3xy=x^2-3x and y=4y=4 and read the xx-values where they meet.

−3−2−1123456−4−224681012xyx = -1x = 4y = x² − 3xy = 4
x² − 3x = 4 where y = x² − 3x meets y = 4

The curve y=x2−3xy=x^2-3x meets y=4y=4 at x=−1x=-1 and x=4x=4. Check these in x2−3x=4x^2-3x=4.

Quadratics in real life

Define the unknown, write an equation, rearrange to zero and solve, then reject impossible answers.

Always interpret each answer in context. A negative length or time must be rejected before you write your conclusion.

x + 3xABCD
A rectangle of width x and length x + 3 with area 54 m² (x = 6)

Worked example

A rectangle has length x+3x+3 and width xx, and area 5454 m². Find the width.

The solutions of a quadratic in a time problem are t = −2 and t = 5. Which do you use?

Try an exam question

Solve 3x2−4x−5=03x^2-4x-5=0, giving your answers to 33 significant figures.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following is the correct factorised form of x2−5x−14x^2-5x-14?

1 mark, marked against the mark scheme

Revision notes