Completing the square and the discriminant

IGCSE Additional Mathematics · Quadratic functions

Completing the square

Write $ax^2+bx+c$ as $a(x+p)^2+q$. Take out $a$ first, halve the coefficient of $x$ inside, then correct the constant.

$2x^2+12x+13=2(x^2+6x)+13=2[(x+3)^2-9]+13=2(x+3)^2-5$

The form reads off the vertex at $(-p,q)$ and the range immediately: since $2(x+3)^2\ge 0$, the minimum value is $-5$.

The discriminant $\Delta=b^2-4ac$

Quadratic inequalities

Factorise, mark the roots, then decide which region satisfies the sign.

$x^2-5x+6\lt 0 \Rightarrow (x-2)(x-3)\lt 0 \Rightarrow 2\lt x\lt 3$

Worked example: finding the condition for a line to be a tangent

Find the values of $k$ for which the line $y=kx+2$ is a tangent to the parabola $y=x^2+3x+6$.

Solution

Step 1 — form the equation for the intersection points. Set the two expressions equal: $x^2+3x+6=kx+2$, and move everything to one side: $x^2+(3-k)x+4=0$.

Step 2 — translate the word ‘tangent’ into an algebraic condition. A tangent touches at exactly one point, so the equation above has a repeated root, that is $\Delta=0$.

Step 3 — solve. $(3-k)^2-4(1)(4)=0$, so $(3-k)^2=16$ and $3-k=\pm4$. Hence $k=-1$ or $k=7$.

Check. For $k=7$: $x^2-4x+4=(x-2)^2=0$, repeated root $x=2$ ✓. For $k=-1$: $x^2+4x+4=(x+2)^2=0$ ✓. Taking both signs when square-rooting is where the most marks are lost on this type.

Common mistake

Trap: reversing the inequality. For $(x-2)(x-3)\lt 0$ the solution is the interval between the two numbers ($2\lt x\lt 3$); for $(x-2)(x-3)>0$ the solution is the two rays outside ($x\lt 2$ or $x>3$). Memory aid: an upward-opening parabola lies below the x-axis between its two roots.

Key takeaway

Complete the square to read off the vertex and range · use the discriminant to count roots · ‘touches’ is always $\Delta=0$ · for inequalities, sketch the parabola quickly then choose the region.

← Inverse functions · All IGCSE Additional Mathematics lessons · Practice IGCSE Additional Mathematics questions (free, instant scoring) · Roots, symmetry and transformations →