2.7 Quadratic equations, inequalities and the discriminant

2.7 Quadratic equations, inequalities and the discriminant

IB Maths: Analysis and Approaches SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Solve quadratics by factorising, completing the square or the quadratic formula (in the booklet).
  • Δ=b2−4ac\Delta=b^2-4ac: >0>0 two distinct real roots, =0=0 two equal roots, <0<0 no real roots.
  • For inequalities, find the critical values, then use the shape of the parabola.
  • Line meets curve: equate, rearrange to =0=0, then use Δ\Delta.
  • Check that a parameter multiplying x2x^2 is non-zero.

Solving by factorising

Write the equation as ax2+bx+c=0ax^2+bx+c=0, factorise, and use: if pq=0pq=0 then p=0p=0 or q=0q=0.

2x2−5x−3=0⇒(2x+1)(x−3)=0⇒x=−122x^2-5x-3=0\Rightarrow(2x+1)(x-3)=0\Rightarrow x=-\frac12 or x=3x=3. The solutions are the roots of the equation, the zeros of ff and the xx-intercepts of its graph.

Always rearrange to =0=0 first: x2=5xx^2=5x gives x(x−5)=0x(x-5)=0, so x=0x=0 or 55.

−3−2−112345−5510xy(−½, 0)(3, 0)(0, −3)y = 2x² − 5x − 3
The roots are where the graph crosses the xx-axis.

Solve x2−7x+10=0x^2 - 7x + 10 = 0.

Completing the square

Rewrite x2+bxx^2+bx as (x+b2)2−(b2)2\left(x+\frac b2\right)^2-\left(\frac b2\right)^2, then square-root both sides.

x2−6x+14=(x−3)2−9+14=(x−3)2+5x^2-6x+14=(x-3)^2-9+14=(x-3)^2+5. To solve x2−6x+4=0x^2-6x+4=0: (x−3)2=5(x-3)^2=5, so x=3±5x=3\pm\sqrt5.

This also gives the vertex (h,k)(h,k) of y=a(x−h)2+ky=a(x-h)^2+k, and shows at once whether the graph can cross the axis: (x−3)2+5≥5(x-3)^2+5\ge5. If a≠1a\ne1, take aa out first.

−112345675101520xyvertex (3, 5)(0, 14)y = (x − 3)² + 5
x² − 6x + 14 = (x − 3)² + 5: the vertex is (3, 5), so the curve never reaches the x-axis.
  • x2+bxx^2+bx(x+b2)2−(b2)2\left(x+\dfrac b2\right)^2-\left(\dfrac b2\right)^2

Solve (x+1)2=9(x + 1)^2 = 9.

The quadratic formula

For ax2+bx+c=0ax^2+bx+c=0 the roots are x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}. It works for every quadratic.

The formula is in the formula booklet and works even when the quadratic does not factorise. On Paper 1 give exact answers (surds); on Paper 2 a GDC may be used and answers are given to 3 significant figures.

−112345−4−2246xyx = 22 − √32 + √3y = x² − 4x + 1
The roots of x² − 4x + 1 = 0 are x = 2 ± √3, symmetric about x = 2 (the line x = −b/2a).
  • ax2+bx+c=0ax^2+bx+c=0x=−b±b2−4ac2ax=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}

Worked example

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

In 3x2−5x+1=03x^2 - 5x + 1 = 0, what is b2−4acb^2 - 4ac?

The discriminant

The discriminant Δ=b2−4ac\Delta=b^2-4ac, the part under the square root, tells you how many real roots there are.

  • Δ>0\Delta>0: two distinct real roots; the graph crosses the xx-axis twice.
  • Δ=0\Delta=0: two equal real roots; the graph touches the axis at its vertex.
  • Δ<0\Delta<0: no real roots.

For 3kx2+2x+k=03kx^2+2x+k=0 (k≠0k\ne0), Δ=4−12k2\Delta=4-12k^2: two roots when −13<k<13-\frac1{\sqrt3}<k<\frac1{\sqrt3}, k≠0k\ne0; equal when k=±13k=\pm\frac1{\sqrt3}; none otherwise.

−4−3−2−11234−4−2246810xy(0, 0)Δ > 0Δ = 0Δ < 0
Three parabolas: two, one and no intersections with the xx-axis.

For x2+4x+5=0x^2 + 4x + 5 = 0, how many real roots are there?

Quadratic inequalities

Solve f(x)=0f(x)=0 for the critical values, then use the shape: for a>0a>0, f<0f<0 between the roots and f>0f>0 outside them.

2x2−5x−3<0⇒−12<x<32x^2-5x-3<0\Rightarrow-\frac12<x<3, while 2x2−5x−3≥0⇒x≤−122x^2-5x-3\ge0\Rightarrow x\le-\frac12 or x≥3x\ge3.

The same method works for a parameter: k2−4k−12<0⇒−2<k<6k^2-4k-12<0\Rightarrow-2<k<6. The critical values are the roots of the related equation.

−3−2−1012345-1/23

Above: 2x2−5x−3<02x^2-5x-3<0. The outside region (≥0\ge0) is two separate intervals.

−3−2−1012345-1/23

Solve x2−4x−5>0x^2 - 4x - 5 > 0.

Lines, curves and greatest values

Equate a line and a curve to get a quadratic; its discriminant counts the intersection points.

Δ>0\Delta>0: two points; Δ=0\Delta=0: the line is a tangent; Δ<0\Delta<0: no intersection. When Δ=0\Delta=0 the repeated root x=−b2ax=-\frac{b}{2a} gives the point of contact.

In context, if an area satisfies 2x2−40x+A=02x^2-40x+A=0, real lengths exist only when 1600−8A≥01600-8A\ge0, so the largest area is 200200.

−2−11234−22468xy(1, 1)y = x²y = 2x − 1
y=2x−1y=2x-1 touches y=x2y=x^2 at (1,1)(1,1): x2−2x+1=0x^2-2x+1=0 has Δ=0\Delta=0.

For what value of kk does x2+kx+9=0x^2 + kx + 9 = 0 have equal roots (with k>0k > 0)?

Try an exam question

Find the values of kk for which the equation 3x2+kx+3=03x^2+kx+3=0 has no real roots.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the solutions of the equation f(x)=0f(x) = 0.

1 mark, marked against the mark scheme

Revision notes