Solving quadratic equations

Solving quadratic equations

IB MYP Maths Standard: 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 with a≠0a\ne0, and has two, one or no real solutions (roots).
  • Rearrange to =0=0 first, because the zero-product rule needs one side to be zero.
  • Quadratic formula: x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.
  • The discriminant b2−4acb^2-4ac gives the number of solutions: positive two, zero one, negative none.
  • Roots are where the graph crosses the xx-axis; reject impossible answers in context.

What a quadratic equation is

It is an equation with x2x^2 as its highest power; its solutions are the roots, where the graph crosses the xx-axis.

A quadratic equation can be written ax2+bx+c=0ax^2+bx+c=0 where a≠0a\neq0. Its solutions are also called roots. A quadratic can have two, one or no real solutions.

Many methods rely on the zero-product rule: if A×B=0A\times B=0 then A=0A=0 or B=0B=0. This is why we must get the equation equal to 00 before we factorise.

−3−2−112345678−10−551015xy(−1, 0)(6, 0)(0, −6)y = x² − 5x − 6
y = x² − 5x − 6 crosses the x-axis at the roots

What is the correct first step to solve x2=5x+6x^2=5x+6?

Solving by factorising

Rearrange to =0=0, factorise, and set each bracket equal to 00.

Example: x2−5x−14=0x^2-5x-14=0. Two numbers that multiply to −14-14 and add to −5-5 are −7-7 and 22, so (x−7)(x+2)=0(x-7)(x+2)=0 and x=7x=7 or x=−2x=-2.

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\neq1, e.g. 2x2+3x−5=02x^2+3x-5=0, split the middle term: (2x+5)(x−1)=0(2x+5)(x-1)=0, so x=−52x=-\frac52 or x=1x=1.

  1. 1

    Rearrange

    so one side is 0

  2. 2

    Factorise

    into two brackets

  3. 3

    Set each bracket to 0

    using the zero-product rule

  4. 4

    Solve and check

    substitute back

Solving by factorising

Worked example

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

Solve x2−3x−10=0x^2-3x-10=0.

The quadratic formula

Identify aa, bb and cc and substitute into the formula, using brackets for negatives.

Some quadratics do not factorise neatly. For ax2+bx+c=0ax^2+bx+c=0 the quadratic formula gives the solutions.

3x2−4x−5=03x^2-4x-5=0 has a=3a=3, b=−4b=-4, c=−5c=-5. Then x=4±16+606=4±766x=\frac{4\pm\sqrt{16+60}}{6}=\frac{4\pm\sqrt{76}}{6}, so x=2.12x=2.12 or x=−0.786x=-0.786 (3 s.f.). Use brackets when bb or cc is negative so that b2b^2 is always positive.

−2−11234−551015xyx ≈ 2.12x ≈ −0.786y = 3x² − 4x − 5
y = 3x² − 4x − 5 crosses the x-axis at the solutions x = 2.12 and x = −0.786 (3 s.f.)
  • 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 s.f.

Solve x2+4x+1=0x^2+4x+1=0 to 3 s.f.

The discriminant

The discriminant b2−4acb^2-4ac tells you without solving: positive two, zero one, negative none.

The expression under the square root, b2−4acb^2-4ac, is the discriminant.

2x2−3x+5=02x^2-3x+5=0 has 9−40=−31<09-40=-31<0, so no real solutions. When the discriminant is 00 there is one repeated root, x=−b2ax=-\frac{b}{2a}.

−1123456−4−2246810xyy = x² − 4x + c
Move the slider: how many times does y = x² − 4x + c meet the x-axis?

b2−4ac>0b^2-4ac>0

  • Two different solutions
  • Graph crosses the axis twice

b2−4ac=0b^2-4ac=0

  • One repeated solution
  • Graph touches the axis

b2−4ac<0b^2-4ac<0

  • No real solutions
  • Graph never reaches the axis

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

Solving graphically

Find where the graph crosses the xx-axis, or where two graphs meet.

The solutions of ax2+bx+c=0ax^2+bx+c=0 are the xx-coordinates where the graph of y=ax2+bx+cy=ax^2+bx+c crosses the xx-axis. Use a graphing calculator or software to draw the parabola and find these roots.

Two crossing points mean two solutions, a curve that just touches the axis means one solution, and a curve that never reaches the axis 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
Solving x² − 3x = 4 by plotting y = x² − 3x and y = 4

A curve just touches the x-axis at one point. How many solutions does the equation have?

Quadratics in real life

Define the unknown, form an equation, solve it, and reject answers that are impossible.

To model a situation: define the unknown, write an equation from the information (area, product, height), rearrange to =0=0 and solve.

A rectangle has length x+3x+3 and width xx, and area 5454 m2^2. Then x(x+3)=54x(x+3)=54, so x2+3x−54=0x^2+3x-54=0 and (x+9)(x−6)=0(x+9)(x-6)=0. Reject x=−9x=-9 because a length cannot be negative, so the width is 66 m. Always interpret each answer in context.

9 m6 mABCD
Rectangle with width 6 m and length 9 m

Worked example

A rectangle has length (x+3)(x+3) m, width xx m and area 54 m2^2. Find the width.

A rectangle has length (x+2)(x+2) m, width xx m and area 35 m2^2. What is xx?

Try an exam question

(a) Solve x2−7x+10=0x^2-7x+10=0 by factorising. (b) Use the quadratic formula to solve 2x2+3x−4=02x^2+3x-4=0, giving your answers to 3 significant figures.

[4 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