The graph of every qua­dratic func­tion y=ax2+bx+cy = ax^2 + bx + c is a parabola: a U-shaped curve that opens either upwards or down­wards. In this les­son you will rewrite the qua­dratic in a form that shows its low­est or high­est point straight away, learn how the signs of aa and Δ\Delta decide the pic­ture, and then sketch sev­eral parabo­las step by step. These sketches are the tool for solv­ing qua­dratic inequa­tions in the next les­son.

From gen­eral form to ver­tex form

The form y=ax2+bx+cy = ax^2 + bx + c is called the gen­eral form. Com­plet­ing the square turns it into a more use­ful shape:

y=ax2+bx+c=a[x2+bax+ca]=a[(x+b2a)2+ca−b24a2]=a[(x+b2a)2+4ac−b24a2]\displaystyle \begin{aligned} y &= ax^2 + bx + c \\ &= a\left[x^2 + \frac{b}{a}x + \frac{c}{a}\right] \\ &= a\left[\left(x + \frac{b}{2a}\right)^2 + \frac{c}{a} - \frac{b^2}{4a^2}\right] \\ &= a\left[\left(x + \frac{b}{2a}\right)^2 + \frac{4ac - b^2}{4a^2}\right] \end{aligned}

Mul­ti­ply­ing the aa back in,

y=a(x+b2a)2+4ac−b24a\displaystyle y = a\left(x + \frac{b}{2a}\right)^2 + \frac{4ac - b^2}{4a}

This is the ver­tex form. In short it is writ­ten

y=a(x−h)2+k,vertex=(h,k)=(−b2a,4ac−b24a)\displaystyle y = a(x - h)^2 + k, \qquad \text{vertex} = (h, k) = \left(-\frac{b}{2a}, \frac{4ac - b^2}{4a}\right)

The sec­ond coor­di­nate of the ver­tex is sim­ply the value of the func­tion at x=−b2a\displaystyle x = -\frac{b}{2a}, so you can also find it as k=f(−b2a)\displaystyle k = f\left(-\frac{b}{2a}\right). That is often quicker than remem­ber­ing the for­mula.

Upward and down­ward parabo­las

The square (x+b2a)2\displaystyle \left(x + \frac{b}{2a}\right)^2 is never neg­a­tive, and it is zero only at x=−b2a\displaystyle x = -\frac{b}{2a}. This gives two cases.

(i) If a>0a > 0, the curve y=ax2+bx+cy = ax^2 + bx + c is an upward parabola with ver­tex (−b2a,4ac−b24a)\displaystyle \left(-\frac{b}{2a}, \frac{4ac - b^2}{4a}\right). It attains its min­i­mum value at x=−b2a\displaystyle x = -\frac{b}{2a}, and that min­i­mum value is 4ac−b24a\displaystyle \frac{4ac - b^2}{4a}. So for all real xx,

Range=[4ac−b24a,∞)\displaystyle \text{Range} = \left[\frac{4ac - b^2}{4a}, \infty\right)

(ii) If a<0a < 0, the curve is a down­ward parabola with the same ver­tex for­mula. It attains its max­i­mum value 4ac−b24a\displaystyle \frac{4ac - b^2}{4a} at x=−b2a\displaystyle x = -\frac{b}{2a}, and for all real xx,

Range=(−∞,4ac−b24a]\displaystyle \text{Range} = \left(-\infty, \frac{4ac - b^2}{4a}\right]

Where the parabola meets the xx-axis

The parabola meets the xx-axis where y=0y = 0, that is, at the real roots of ax2+bx+c=0ax^2 + bx + c = 0. So the dis­crim­i­nant tells you how many times it meets the axis.

Δ>0\Delta > 0 Δ=0\Delta = 0 Δ<0\Delta < 0
a>0a > 0 (opens up) cuts the xx-axis at two points touches the xx-axis at one point lies wholly above the xx-axis
a<0a < 0 (opens down) cuts the xx-axis at two points touches the xx-axis at one point lies wholly below the xx-axis

Pic­ture each case. An upward U with Δ>0\Delta > 0 dips below the axis between its two roots. With Δ=0\Delta = 0 its low­est point just rests on the axis. With Δ<0\Delta < 0 even its low­est point is above the axis. A down­ward parabola is the same pic­ture turned upside down.

Two more use­ful forms

Fac­tored form. When Δ>0\Delta > 0 the qua­dratic can be writ­ten y=a(x−α)(x−β)y = a(x - \alpha)(x - \beta), where α\alpha and β\beta are the roots. The graph cuts the xx-axis at α\alpha and β\beta. A parabola is sym­met­ric about the ver­ti­cal line through its ver­tex, so the ver­tex lies exactly halfway between the roots, at

x=α+β2,y=f(α+β2)\displaystyle x = \frac{\alpha + \beta}{2}, \qquad y = f\left(\frac{\alpha + \beta}{2}\right)

If a>0a > 0 this is the min­i­mum point; if a<0a < 0 it is the max­i­mum point.

Per­fect square. When Δ=0\Delta = 0 the qua­dratic is y=a(x−α)2y = a(x - \alpha)^2. The graph touches the xx-axis at (α,0)(\alpha, 0), which is also the ver­tex. It opens up if a>0a > 0 and down if a<0a < 0.

How to sketch a parabola

  1. Look at the sign of aa: up or down.
  2. Find the ver­tex, either from the ver­tex form or as (−b2a,f(−b2a))\displaystyle \left(-\frac{b}{2a}, f\left(-\frac{b}{2a}\right)\right).
  3. Find where it meets the xx-axis (solve y=0y = 0), if it does.
  4. Put x=0x = 0 to find where it cuts the yy-axis.
  5. Use sym­me­try: a point at the same height appears on the other side of the ver­tex.

Exam­ple 1

Sketch y=(x−2)(x−3)y = (x - 2)(x - 3).

Here a=1>0a = 1 > 0, so the parabola opens upwards. It cuts the xx-axis at x=2x = 2 and x=3x = 3.

The ver­tex is halfway between the roots, at x=52\displaystyle x = \frac{5}{2}:

f(52)=(52−2)(52−3)=(12)(−12)=−14\displaystyle f\left(\frac{5}{2}\right) = \left(\frac{5}{2} - 2\right)\left(\frac{5}{2} - 3\right) = \left(\frac{1}{2}\right)\left(-\frac{1}{2}\right) = -\frac{1}{4}

So the ver­tex is (52,−14)\displaystyle \left(\frac{5}{2}, -\frac{1}{4}\right).

Put x=0x = 0: y=(−2)(−3)=6y = (-2)(-3) = 6. The curve cuts the yy-axis at (0,6)(0, 6). By sym­me­try about x=52\displaystyle x = \frac{5}{2}, the point (5,6)(5, 6) is also on the curve.

The sketch is a U through (0,6)(0, 6), down through (2,0)(2, 0) to the low­est point (52,−14)\displaystyle \left(\frac{5}{2}, -\frac{1}{4}\right), up through (3,0)(3, 0) and on to (5,6)(5, 6).

Exam­ple 2

Sketch y=x2−5x+6y = x^2 - 5x + 6.

Here a=1a = 1, b=−5b = -5, c=6c = 6, so a>0a > 0 and Δ=25−24=1>0\Delta = 25 - 24 = 1 > 0: an upward parabola cut­ting the xx-axis twice.

Solv­ing x2−5x+6=0x^2 - 5x + 6 = 0 gives (x−2)(x−3)=0(x - 2)(x - 3) = 0, so x=2x = 2 or x=3x = 3. Take α=2\alpha = 2, β=3\beta = 3. Then α+β2=52\displaystyle \frac{\alpha + \beta}{2} = \frac{5}{2}, and

f(52)=254−252+6=25−50+244=−14\displaystyle f\left(\frac{5}{2}\right) = \frac{25}{4} - \frac{25}{2} + 6 = \frac{25 - 50 + 24}{4} = -\frac{1}{4}

The ver­tex is (52,−14)\displaystyle \left(\frac{5}{2}, -\frac{1}{4}\right). This is the same curve as Exam­ple 1, because x2−5x+6=(x−2)(x−3)x^2 - 5x + 6 = (x - 2)(x - 3).

Exam­ple 3

Sketch y=x2+2x+1y = x^2 + 2x + 1.

This is a per­fect square: y=(x+1)2y = (x + 1)^2. So Δ=0\Delta = 0 and the parabola touches the xx-axis where x+1=0x + 1 = 0, at (−1,0)(-1, 0). That point is the ver­tex.

Put x=0x = 0: y=1y = 1, so the curve passes through (0,1)(0, 1). By sym­me­try about x=−1x = -1 it also passes through (−2,1)(-2, 1).

Exam­ple 4

Sketch y=2(x−1)2+3y = 2(x - 1)^2 + 3.

This is already in ver­tex form with a=2a = 2, h=1h = 1, k=3k = 3. It is an upward parabola with ver­tex (1,3)(1, 3), so its min­i­mum value is 33 and it never meets the xx-axis.

Put x=0x = 0: y=2(1)+3=5y = 2(1) + 3 = 5, so the curve passes through (0,5)(0, 5), and by sym­me­try through (2,5)(2, 5).

Exam­ple 5

Sketch y=4x2+4x+1y = 4x^2 + 4x + 1.

Write 4x2+4x+1=(2x)2+2(2x)(1)+12=(2x+1)24x^2 + 4x + 1 = (2x)^2 + 2(2x)(1) + 1^2 = (2x + 1)^2, a per­fect square. The curve touches the xx-axis where 2x+1=02x + 1 = 0, that is at x=−12\displaystyle x = -\frac{1}{2}. The ver­tex is (−12,0)\displaystyle \left(-\frac{1}{2}, 0\right).

At x=0x = 0, y=1y = 1; at x=−1x = -1, y=1y = 1. So the curve passes through (0,1)(0, 1) and (−1,1)(-1, 1).

Exam­ple 6

Sketch y=x2+x+1y = x^2 + x + 1.

Here a=b=c=1a = b = c = 1. So a>0a > 0 and Δ=1−4=−3<0\Delta = 1 - 4 = -3 < 0: an upward parabola lying wholly above the xx-axis.

Vertex=(−b2a,4ac−b24a)=(−12,4−14)=(−12,34)\displaystyle \text{Vertex} = \left(-\frac{b}{2a}, \frac{4ac - b^2}{4a}\right) = \left(-\frac{1}{2}, \frac{4 - 1}{4}\right) = \left(-\frac{1}{2}, \frac{3}{4}\right)

At x=0x = 0 and at x=−1x = -1, y=1y = 1. The curve is a U with low­est point (−12,34)\displaystyle \left(-\frac{1}{2}, \frac{3}{4}\right), through (−1,1)(-1, 1) and (0,1)(0, 1).

Exam­ple 7

Find the ver­tex, the max­i­mum value and the range of y=−x2+4x−3y = -x^2 + 4x - 3.

Here a=−1<0a = -1 < 0, so the parabola opens down­wards. The ver­tex is at x=−42(−1)=2\displaystyle x = -\frac{4}{2(-1)} = 2, and f(2)=−4+8−3=1f(2) = -4 + 8 - 3 = 1. So the ver­tex is (2,1)(2, 1), the max­i­mum value is 11, and the range is (−∞,1](-\infty, 1].

Fac­toris­ing, y=−(x−1)(x−3)y = -(x - 1)(x - 3), so the curve cuts the xx-axis at 11 and 33, with the ver­tex halfway between.

Prac­tice

For ques­tions 1 to 6, find the direc­tion of open­ing, the ver­tex, the points where the curve meets the axes, and then sketch the graph.

  1. y=(x+2)(x−4)y = (x + 2)(x - 4)
  2. y=(2x+3)2y = (2x + 3)^2
  3. y=2(x−2)2+5y = 2(x - 2)^2 + 5
  4. y=x2+6x+9y = x^2 + 6x + 9
  5. y=x2+2x+3y = x^2 + 2x + 3
  6. y=2x2−5x−3y = 2x^2 - 5x - 3
  7. Find the max­i­mum value of y=−2x2+8x−5y = -2x^2 + 8x - 5 and the range of this func­tion.
  8. Find the range of f(x)=x2−6x+11f(x) = x^2 - 6x + 11.

Answers

Show answers
  1. Opens upwards. Cuts the xx-axis at −2-2 and 44. Ver­tex at x=1x = 1, y=(3)(−3)=−9y = (3)(-3) = -9, so (1,−9)(1, -9). yy-inter­cept: (2)(−4)=−8(2)(-4) = -8, so (0,−8)(0, -8). Range [−9,∞)[-9, \infty).
  2. Opens upwards; a per­fect square with Δ=0\Delta = 0. Touches the xx-axis at (−32,0)\displaystyle \left(-\frac{3}{2}, 0\right), which is the ver­tex. yy-inter­cept (0,9)(0, 9).
  3. Opens upwards. Ver­tex (2,5)(2, 5), so the min­i­mum value is 55 and the curve never meets the xx-axis. yy-inter­cept: 2(4)+5=132(4) + 5 = 13, so (0,13)(0, 13).
  4. y=(x+3)2y = (x + 3)^2. Opens upwards and touches the xx-axis at the ver­tex (−3,0)(-3, 0). yy-inter­cept (0,9)(0, 9).
  5. Opens upwards; Δ=4−12=−8<0\Delta = 4 - 12 = -8 < 0, so it lies wholly above the xx-axis. Ver­tex at x=−1x = -1, y=1−2+3=2y = 1 - 2 + 3 = 2, so (−1,2)(-1, 2). yy-inter­cept (0,3)(0, 3).
  6. Opens upwards; Δ=25+24=49\Delta = 25 + 24 = 49. Roots 5±74\displaystyle \frac{5 \pm 7}{4}, that is 33 and −12\displaystyle -\frac{1}{2}. Ver­tex at x=54\displaystyle x = \frac{5}{4} with y=4(2)(−3)−258=−498\displaystyle y = \frac{4(2)(-3) - 25}{8} = -\frac{49}{8}. yy-inter­cept (0,−3)(0, -3).
  7. a=−2<0a = -2 < 0, ver­tex at x=2x = 2, and f(2)=−8+16−5=3f(2) = -8 + 16 - 5 = 3. Max­i­mum value 33; range (−∞,3](-\infty, 3].
  8. Ver­tex at x=3x = 3, f(3)=9−18+11=2f(3) = 9 - 18 + 11 = 2, and a>0a > 0. Range [2,∞)[2, \infty).