Quadratic functions and graphs

Quadratic functions and graphs

Spec B3 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The graph of y=ax2+bx+cy=ax^2+bx+c is a parabola: a minimum if a>0a>0, a maximum if a<0a<0.
  • The line of symmetry is x=−b2ax=-\dfrac{b}{2a}, passing through the turning point.
  • Completing the square gives a(x+p)2+qa(x+p)^2+q with turning point (−p, q)(-p,\,q).
  • The discriminant b2−4acb^2-4ac gives two, one or no real roots as it is positive, zero or negative.
  • For an unknown constant kk, write Δ\Delta in terms of kk and solve the inequality.

Quadratic graphs

Find the yy-intercept, the roots, the line of symmetry and the turning point.

A quadratic function has the form f(x)=ax2+bx+cf(x)=ax^2+bx+c with a≠0a\ne0. Its graph is a parabola: U-shaped (a minimum) when a>0a>0, and an inverted U (a maximum) when a<0a<0.

Key features:

  • the yy-intercept: (0,c)(0,c);
  • the roots: solve ax2+bx+c=0ax^2+bx+c=0;
  • the line of symmetry, x=−b2ax=-\frac{b}{2a}, halfway between the roots;
  • the turning point, on the line of symmetry.
−112345−2−1123456xyx = 2(1, 0)(3, 0)(0, 3)(2, −1)y = x² − 4x + 3
y = x² − 4x + 3: roots, y-intercept, turning point and symmetry line.

For y=x2−4x+3y=x^2-4x+3, what is the line of symmetry?

Completing the square

Write the quadratic as a(x+p)2+qa(x+p)^2+q and read the turning point (−p, q)(-p,\,q) directly.

Completing the square rewrites ax2+bx+cax^2+bx+c in the form a(x+p)2+qa(x+p)^2+q.

When a=1a=1: x2+bx+c=(x+b2)2−b24+cx^2+bx+c=\left(x+\frac b2\right)^2-\frac{b^2}{4}+c. When a≠1a\ne1, take out the factor aa from the x2x^2 and xx terms first.

From a(x+p)2+qa(x+p)^2+q the turning point is (−p, q)(-p,\,q) and the line of symmetry is x=−px=-p. It is a minimum if a>0a>0 and a maximum if a<0a<0.

−11234567−2246810121416xy(3, 4)(0, 13)y = (x − 3)² + 4
y = (x − 3)² + 4: minimum value 4, so no x-axis crossing.

Worked example

Complete the square for x2−6x+13x^2-6x+13 and 2x2+8x−32x^2+8x-3.

For 2x2+8x−32x^2+8x-3, writing 2(x+4)22(x+4)^2 is a common slip. Take out the 2 first and halve the 4 afterwards.

What is the turning point of y=(x−3)2+4y=(x-3)^2+4?

The discriminant

The sign of b2−4acb^2-4ac tells you whether the graph crosses, touches or misses the xx-axis.

For ax2+bx+c=0ax^2+bx+c=0 the discriminant is b2−4acb^2-4ac, the part under the root in the quadratic formula.

For x2−6x+13x^2-6x+13: b2−4ac=36−52=−16<0b^2-4ac=36-52=-16<0, so there are no real roots, which agrees with the minimum value 4>04>0.

When substituting, use brackets: (−6)2−4(1)(13)(-6)^2-4(1)(13). State the conclusion in words: 'negative, so no real roots'.

−3−2−112345−4−22468xy(−1, 0)(3, 0)(1, 0)Δ = 16 > 0Δ = 0Δ = −8 < 0
Discriminants 16, 0 and −8: two roots, one repeated root, none.

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

  • Two distinct real roots
  • Crosses the xx-axis twice

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

  • One repeated root
  • Touches the axis at the turning point

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

  • No real roots
  • Does not meet the axis

How many real roots does x2−2x+3=0x^2-2x+3=0 have?

The discriminant with an unknown

Find Δ\Delta in terms of kk, then solve Δ>0\Delta>0, Δ=0\Delta=0 or Δ<0\Delta<0.

When a quadratic contains a constant kk, find Δ\Delta in terms of kk, then use Δ=0\Delta=0, Δ>0\Delta>0 or Δ<0\Delta<0 and solve the resulting equation or inequality.

The critical values are the values of kk where Δ=0\Delta=0; they split the number line into regions. Sketch the graph of Δ\Delta against kk to pick the right regions.

−4−3−2−1012345678-26

Worked example

Find the values of kk for which x2−kx+(k+3)=0x^2-kx+(k+3)=0 has two distinct real roots.

For which values of kk does x2−kx+(k+3)=0x^2-kx+(k+3)=0 have no real roots?

Modelling with quadratics

Write the quantity in terms of one variable, complete the square, and check the answer is within the allowed values.

Maximum and minimum problems often lead to a quadratic. Write the quantity in terms of one variable, complete the square, and read off the turning point.

Remember the domain: the values of the variable must make sense in context.

To find when the area is at least 150, solve 40x−2x2≥15040x-2x^2\ge150 to get 5≤x≤155\le x\le15. A target of 210 is impossible, since the discriminant is negative.

246810121416182050100150200xy(10, 200)(5, 150)(15, 150)A = 40x − 2x²
Area A = 40x − 2x² against x. The area is at least 150 m² for 5 ≤ x ≤ 15.

Worked example

40 m of fencing encloses a rectangular pen against a wall, with the two sides perpendicular to the wall each of length xx. Find the maximum area.

In the fencing problem, why is x=25x=25 not allowed?

Try an exam question

(a) Express x2+8x+5x^2+8x+5 in the form (x+p)2+q(x+p)^2+q and state the coordinates of the turning point of y=x2+8x+5y=x^2+8x+5. (b) Find the values of kk for which x2+kx+9=0x^2+kx+9=0 has equal roots.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of these is f(x)f(x) written in completed square form?

1 mark, marked against the mark scheme

Revision notes