2.7 Quadratic equations, inequalities and the discriminant

2.7 Quadratic equations, inequalities and the discriminant

IB Maths: Analysis and Approaches HL: 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).
  • The discriminant Δ=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.

Factorising

Write the equation as ax2+bx+c=0ax^2+bx+c=0, factorise, then set each factor to zero.

If pq=0pq=0 then p=0p=0 or q=0q=0. So 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 33. The solutions are the roots of the equation, the zeros of the function and the xx-intercepts of its graph.

Always rearrange to =0=0 first. Dividing x2=5xx^2=5x by xx loses the root x=0x=0; write x(x−5)=0x(x-5)=0.

−2−11234−551015xy(−½, 0)(3, 0)(0, −3)y = 2x² − 5x − 3
f(x)=2x2−5x−3f(x)=2x^2-5x-3 crosses the xx-axis at its roots.

Worked example

Solve 3x2+7x−6=03x^2+7x-6=0.

Solve x2=7xx^2=7x.

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 take square roots with ±\pm.

For example x2−6x+14=(x−3)2+5x^2-6x+14=(x-3)^2+5. It gives the vertex (3,5)(3,5) and shows at once that the graph cannot cross the xx-axis, since (x−3)2+5≥5(x-3)^2+5\ge5.

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. Do not forget the ±\pm. If a≠1a\ne1, take aa out first: 2x2−12x+1=2(x−3)2−172x^2-12x+1=2(x-3)^2-17.

1234562468101214161820xyx = 3vertex (3, 5)(0, 14)y = (x − 3)² + 5
Vertex (3,5)(3,5) lies above the axis, so there are no real roots.

Write x2+8x+3x^2+8x+3 in the form (x+p)2+q(x+p)^2+q.

The quadratic formula

For ax2+bx+c=0ax^2+bx+c=0, x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.

It is in the formula booklet and works for every quadratic, including those that do 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. Divide the whole numerator −b±Δ-b\pm\sqrt\Delta by 2a2a, not just the root. Watch signs: with b=−5b=-5, −b=5-b=5 and b2=25b^2=25.

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

Worked example

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

For x2−5x+2=0x^2-5x+2=0, what is b2−4acb^2-4ac?

The discriminant

The discriminant Δ=b2−4ac\Delta=b^2-4ac decides how many real roots there are.

Δ>0\Delta>0: two distinct real roots (crosses the axis twice). Δ=0\Delta=0: two equal real roots (touches the axis at the vertex). Δ<0\Delta<0: no real roots.

For 3kx2+2x+k=03kx^2+2x+k=0 with k≠0k\ne0, Δ=4−12k2\Delta=4-12k^2. Two distinct roots when −13<k<13-\frac1{\sqrt3}<k<\frac1{\sqrt3}, k≠0k\ne0; equal roots when k=±13k=\pm\frac1{\sqrt3}. "Real roots" alone means Δ≥0\Delta\ge0.

−3−2−1123−22468xy(−1, 0)(1, 0)(0, 0)y = x² − 1 (Δ = 4 > 0)y = x² (Δ = 0)y = x² + 1 (Δ = −4 < 0)
Three parabolas with Δ>0\Delta>0, Δ=0\Delta=0 and Δ<0\Delta<0.

Worked example

Find the values of kk for which x2+kx+9=0x^2+kx+9=0 has equal roots.

What does Δ=−31\Delta=-31 tell you about 2x2−3x+5=02x^2-3x+5=0?

Quadratic inequalities

Find the critical values, then use the shape: an upward parabola is negative between the roots and positive outside.

Solve f(x)=0f(x)=0 to find the critical values. If a>0a>0 the parabola opens upwards, so f(x)<0f(x)<0 between the roots and f(x)>0f(x)>0 outside them. For 2x2−5x−3<02x^2-5x-3<0: −12<x<3-\frac12<x<3. For ≥0\ge0: x≤−12x\le-\frac12 or x≥3x\ge3.

Write an "outside" region as two separate intervals, never −12≥x≥3-\frac12\ge x\ge3. The same method solves inequalities in a parameter, such as k2−4k−12<0⇒−2<k<6k^2-4k-12<0\Rightarrow-2<k<6.

−3−2−1012345-1/23
−3−2−1012345-1/23

Worked example

Solve x2−x−6>0x^2-x-6>0.

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

Lines, curves and maximum values

Equate a line and a curve; the discriminant counts the intersections and Δ=0\Delta=0 means tangent.

Where y=mx+cy=mx+c meets a quadratic, equate to get a quadratic in xx. Δ>0\Delta>0 gives two points, Δ=0\Delta=0 a tangent, Δ<0\Delta<0 none. When Δ=0\Delta=0 the repeated root x=−b2ax=-\frac b{2a} is the point of contact.

In context the discriminant finds greatest values: if 2x2−40x+A=02x^2-40x+A=0 must have real xx, then 1600−8A≥01600-8A\ge0, so the largest area is 200.

−3−2−11234−2246810xy(1, 1)y = x²y = 2x − 1
The line y=2x−1y=2x-1 is a tangent to y=x2y=x^2 at (1,1)(1,1).

Worked example

Find kk so that the line y=2x+ky=2x+k is a tangent to y=x2y=x^2.

An area AA satisfies 2x2−40x+A=02x^2-40x+A=0 for a real length xx. What is the largest possible AA?

Try an exam question

Solve the inequality 2x2−5x−3<02x^2-5x-3<0.

[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