The graph of every quadratic function y=ax2+bx+c is a parabola: a U-shaped curve that opens either upwards or downwards. In this lesson you will rewrite the quadratic in a form that shows its lowest or highest point straight away, learn how the signs of a and Δ decide the picture, and then sketch several parabolas step by step. These sketches are the tool for solving quadratic inequations in the next lesson.
The form y=ax2+bx+c is called the general form. Completing the square turns it into a more useful shape:
y=ax2+bx+c=a[x2+abx+ac]=a[(x+2ab)2+ac−4a2b2]=a[(x+2ab)2+4a24ac−b2]
Multiplying the a back in,
y=a(x+2ab)2+4a4ac−b2
This is the vertex form. In short it is written
y=a(x−h)2+k,vertex=(h,k)=(−2ab,4a4ac−b2)
The second coordinate of the vertex is simply the value of the function at x=−2ab, so you can also find it as k=f(−2ab). That is often quicker than remembering the formula.
Upward and downward parabolas
The square (x+2ab)2 is never negative, and it is zero only at x=−2ab. This gives two cases.
(i) If a>0, the curve y=ax2+bx+c is an upward parabola with vertex (−2ab,4a4ac−b2). It attains its minimum value at x=−2ab, and that minimum value is 4a4ac−b2. So for all real x,
Range=[4a4ac−b2,∞)
(ii) If a<0, the curve is a downward parabola with the same vertex formula. It attains its maximum value 4a4ac−b2 at x=−2ab, and for all real x,
Range=(−∞,4a4ac−b2]
Where the parabola meets the x-axis
The parabola meets the x-axis where y=0, that is, at the real roots of ax2+bx+c=0. So the discriminant tells you how many times it meets the axis.
Picture each case. An upward U with Δ>0 dips below the axis between its two roots. With Δ=0 its lowest point just rests on the axis. With Δ<0 even its lowest point is above the axis. A downward parabola is the same picture turned upside down.
Factored form. When Δ>0 the quadratic can be written y=a(x−α)(x−β), where α and β are the roots. The graph cuts the x-axis at α and β. A parabola is symmetric about the vertical line through its vertex, so the vertex lies exactly halfway between the roots, at
x=2α+β,y=f(2α+β)
If a>0 this is the minimum point; if a<0 it is the maximum point.
Perfect square. When Δ=0 the quadratic is y=a(x−α)2. The graph touches the x-axis at (α,0), which is also the vertex. It opens up if a>0 and down if a<0.
How to sketch a parabola
- Look at the sign of a: up or down.
- Find the vertex, either from the vertex form or as (−2ab,f(−2ab)).
- Find where it meets the x-axis (solve y=0), if it does.
- Put x=0 to find where it cuts the y-axis.
- Use symmetry: a point at the same height appears on the other side of the vertex.
Example 1
Sketch y=(x−2)(x−3).
Here a=1>0, so the parabola opens upwards. It cuts the x-axis at x=2 and x=3.
The vertex is halfway between the roots, at x=25:
f(25)=(25−2)(25−3)=(21)(−21)=−41
So the vertex is (25,−41).
Put x=0: y=(−2)(−3)=6. The curve cuts the y-axis at (0,6). By symmetry about x=25, the point (5,6) is also on the curve.
The sketch is a U through (0,6), down through (2,0) to the lowest point (25,−41), up through (3,0) and on to (5,6).
Example 2
Sketch y=x2−5x+6.
Here a=1, b=−5, c=6, so a>0 and Δ=25−24=1>0: an upward parabola cutting the x-axis twice.
Solving x2−5x+6=0 gives (x−2)(x−3)=0, so x=2 or x=3. Take α=2, β=3. Then 2α+β=25, and
f(25)=425−225+6=425−50+24=−41
The vertex is (25,−41). This is the same curve as Example 1, because x2−5x+6=(x−2)(x−3).
Example 3
Sketch y=x2+2x+1.
This is a perfect square: y=(x+1)2. So Δ=0 and the parabola touches the x-axis where x+1=0, at (−1,0). That point is the vertex.
Put x=0: y=1, so the curve passes through (0,1). By symmetry about x=−1 it also passes through (−2,1).
Example 4
Sketch y=2(x−1)2+3.
This is already in vertex form with a=2, h=1, k=3. It is an upward parabola with vertex (1,3), so its minimum value is 3 and it never meets the x-axis.
Put x=0: y=2(1)+3=5, so the curve passes through (0,5), and by symmetry through (2,5).
Example 5
Sketch y=4x2+4x+1.
Write 4x2+4x+1=(2x)2+2(2x)(1)+12=(2x+1)2, a perfect square. The curve touches the x-axis where 2x+1=0, that is at x=−21. The vertex is (−21,0).
At x=0, y=1; at x=−1, y=1. So the curve passes through (0,1) and (−1,1).
Example 6
Sketch y=x2+x+1.
Here a=b=c=1. So a>0 and Δ=1−4=−3<0: an upward parabola lying wholly above the x-axis.
Vertex=(−2ab,4a4ac−b2)=(−21,44−1)=(−21,43)
At x=0 and at x=−1, y=1. The curve is a U with lowest point (−21,43), through (−1,1) and (0,1).
Example 7
Find the vertex, the maximum value and the range of y=−x2+4x−3.
Here a=−1<0, so the parabola opens downwards. The vertex is at x=−2(−1)4=2, and f(2)=−4+8−3=1. So the vertex is (2,1), the maximum value is 1, and the range is (−∞,1].
Factorising, y=−(x−1)(x−3), so the curve cuts the x-axis at 1 and 3, with the vertex halfway between.
Practice
For questions 1 to 6, find the direction of opening, the vertex, the points where the curve meets the axes, and then sketch the graph.
- y=(x+2)(x−4)
- y=(2x+3)2
- y=2(x−2)2+5
- y=x2+6x+9
- y=x2+2x+3
- y=2x2−5x−3
- Find the maximum value of y=−2x2+8x−5 and the range of this function.
- Find the range of f(x)=x2−6x+11.
Answers
Show answers
- Opens upwards. Cuts the x-axis at −2 and 4. Vertex at x=1, y=(3)(−3)=−9, so (1,−9). y-intercept: (2)(−4)=−8, so (0,−8). Range [−9,∞).
- Opens upwards; a perfect square with Δ=0. Touches the x-axis at (−23,0), which is the vertex. y-intercept (0,9).
- Opens upwards. Vertex (2,5), so the minimum value is 5 and the curve never meets the x-axis. y-intercept: 2(4)+5=13, so (0,13).
- y=(x+3)2. Opens upwards and touches the x-axis at the vertex (−3,0). y-intercept (0,9).
- Opens upwards; Δ=4−12=−8<0, so it lies wholly above the x-axis. Vertex at x=−1, y=1−2+3=2, so (−1,2). y-intercept (0,3).
- Opens upwards; Δ=25+24=49. Roots 45±7, that is 3 and −21. Vertex at x=45 with y=84(2)(−3)−25=−849. y-intercept (0,−3).
- a=−2<0, vertex at x=2, and f(2)=−8+16−5=3. Maximum value 3; range (−∞,3].
- Vertex at x=3, f(3)=9−18+11=2, and a>0. Range [2,∞).