impera Open Impera

IB Diploma Mathematics AA · Functions

Quadratic functions

1The three forms

A quadratic function has $x^2$ as its highest power. Its graph is a parabola.

  • If $a > 0$ it opens upwards (a "smile") and has a minimum.
  • If $a < 0$ it opens downwards and has a maximum.

A quadratic can be written in three forms, each showing different features.

The features of a parabola

  • Standard form: $f(x) = ax^2 + bx + c$. The $y$-intercept is $c$. The axis of symmetry is $x = -\dfrac{b}{2a}$.
  • Factorized form: $f(x) = a(x - p)(x - q)$. The $x$-intercepts are $p$ and $q$.
  • Vertex form: $f(x) = a(x - h)^2 + k$. The vertex (turning point) is $(h, k)$.
Worked example

Reading the features

  1. For $f(x) = x^2 - 4x - 5$: the $y$-intercept is $-5$.
  2. Factorize: $(x - 5)(x + 1)$, so the $x$-intercepts are 5 and $-1$.
  3. Axis of symmetry: $x = -\dfrac{-4}{2} = 2$, halfway between the intercepts.
  4. $f(2) = 4 - 8 - 5 = -9$, so the vertex is $(2, -9)$.
Check yourself

What is the vertex of f(x) = (x − 3)² + 4?

  • (4, 3)

  • (3, 4)

  • (−3, 4)

  • (3, −4)

Show the answer

(3, 4)

In a(x − h)² + k, the vertex is (h, k).

2Completing the square

Completing the square turns standard form into vertex form.

For $x^2 + bx + c$: halve the coefficient of $x$, square it, and adjust.

$$x^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 + c$$

Worked example

Completing the square

  1. Write $x^2 - 6x + 11$ in vertex form.
  2. Half of $-6$ is $-3$: $(x - 3)^2 - 9 + 11$.
  3. $= (x - 3)^2 + 2$. The vertex is $(3, 2)$, a minimum.
Worked example

With a coefficient of x²

  1. Write $2x^2 + 8x + 3$ in vertex form.
  2. Take out the 2 from the first two terms: $2(x^2 + 4x) + 3$.
  3. $= 2\left[(x + 2)^2 - 4\right] + 3 = 2(x + 2)^2 - 5$. The vertex is $(-2, -5)$.
Check yourself

What is x² + 4x written by completing the square?

  • (x + 4)² − 16

  • (x − 2)² − 4

  • (x + 2)² − 4

  • (x + 2)² + 4

Show the answer

(x + 2)² − 4

Halve 4 to get 2, then subtract 2².

3Solving quadratic equations

Three methods solve $ax^2 + bx + c = 0$.

  • Factorizing. If $(x - p)(x - q) = 0$, then $x = p$ or $x = q$.
  • Completing the square.
  • The quadratic formula:

$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

Worked example

Using the formula

  1. Solve $2x^2 - 3x - 1 = 0$. Here $a = 2$, $b = -3$, $c = -1$.
  2. $x = \dfrac{3 \pm \sqrt{9 + 8}}{4} = \dfrac{3 \pm \sqrt{17}}{4}$.
  3. $x = 1.78$ or $x = -0.281$.
Check yourself

Solve (x − 2)(x + 5) = 0.

  • x = 2 or x = 5

  • x = 2 or x = −5

  • x = −2 or x = 5

  • x = 10

Show the answer

x = 2 or x = −5

Each bracket can be zero.

4The discriminant

The discriminant is the expression under the square root in the formula.

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

It tells you how many real roots the equation has, without solving it.

  • $\Delta > 0$: two different real roots. The parabola crosses the $x$-axis twice.
  • $\Delta = 0$: two equal real roots (one repeated root). The parabola touches the $x$-axis.
  • $\Delta < 0$: no real roots. The parabola does not meet the $x$-axis.
Worked example

Using the discriminant

  1. For which values of $k$ does $x^2 + kx + 9 = 0$ have equal roots?
  2. $\Delta = k^2 - 36 = 0$.
  3. $k = 6$ or $k = -6$.

Quadratic inequalities. To solve $x^2 - 4x - 5 < 0$: find the roots, $-1$ and 5. The parabola opens upwards, so it is below the axis between the roots: $-1 < x < 5$.

Check yourself

The discriminant of a quadratic equation is negative. How many real roots does it have?

  • None

  • Two

  • Three

  • One

Show the answer

None

The parabola does not meet the x-axis.

5Quadratic inequalities

To solve a quadratic inequality, find the roots and sketch the parabola.

Worked example

$x^2 - 5x + 6 < 0$

  1. Factorise: $(x - 2)(x - 3) < 0$.
  2. Roots: $x = 2$ and $x = 3$.
  3. The parabola opens upward, so it is below the axis between the roots.
  4. Solution: $2 < x < 3$.

For $x^2 - 5x + 6 > 0$, the solution is $x < 2$ or $x > 3$.

Check yourself

What is the solution to $(x - 1)(x - 4) \le 0$?

  • $1 \le x \le 4$

  • $x \le 4$

  • $x \ge 1$

  • $x \le 1$ or $x \ge 4$

Show the answer

$1 \le x \le 4$

Between the roots.

6Projectile and area problems

Quadratics model many real situations.

Worked example

A rectangular pen

  1. A farmer has 40 m of fencing for three sides of a rectangle against a wall.
  2. With sides $x$, $x$ and $40 - 2x$, area $A = x(40 - 2x) = 40x - 2x^2$.
  3. Vertex: $x = -\frac{b}{2a} = -\frac{40}{-4} = 10$.
  4. Maximum area: $A = 10 \times 20 = 200$ m².
Check yourself

What is the x-coordinate of the vertex of $y = -2x^2 + 40x$?

  • 40

  • 20

  • $-10$

  • 10

Show the answer

10

$-\frac{b}{2a}$.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera