Skip to the page
Home Campus
Start free

Graphs of Quadratic Functions

What a quadratic function y=ax2+bx+cy = ax^2 + bx + c is, how to make its table of values and draw its graph to a given scale, and how the sign of aa decides whether the curve opens upwards or downwards.

Before you start

  • In chapter 2 you drew straight-line graphs from a table of values: work out yy for each value of xx, plot the points to the scale given, and join them.
  • Substituting a negative number needs brackets: when x=−2x = -2, x2=(−2)2=4x^2 = (-2)^2 = 4 and −3x=−3×(−2)=6.-3x = -3 \times (-2) = 6\text{.}

Quadratic Functions

In y=x2−2x−3y = x^2 - 2x - 3, each value of xx gives exactly one value of yy: when x=4x = 4, y=16−8−3=5y = 16 - 8 - 3 = 5. We say that yy is a function of xx. Because the highest power of xx is 22, it is a quadratic function.

A quadratic function

A quadratic function is a function y=ax2+bx+cy = ax^2 + bx + c, where aa, bb and cc are numbers and a≠0a \neq 0.

Its graph is a smooth, symmetrical curve called a parabola.

Example 1: Naming aa, bb and cc

State the values of aa, bb and cc for
(a) y=2x2−3y = 2x^2 - 3
(b) y=x2+4xy = x^2 + 4x
(c) y=3+2x−x2y = 3 + 2x - x^2.

Solution

(a) There is no xx term, so b=0b = 0: a=2a = 2, b=0b = 0, c=−3c = -3.

(b) There is no constant term: a=1a = 1, b=4b = 4, c=0c = 0.

(c) Write the terms in order of power: y=−x2+2x+3y = -x^2 + 2x + 3. So a=−1a = -1, b=2b = 2, c=3c = 3.

(a) a=2a = 2, b=0b = 0, c=−3c = -3
(b) a=1a = 1, b=4b = 4, c=0c = 0
(c) a=−1a = -1, b=2b = 2, c=3c = 3

Tables of Values

A question gives the range of xx, such as −2≤x≤4-2 \le x \le 4. Work out yy for every whole number in that range. It helps to work out each term in its own row, and then add the rows.

Example 2: A table, term by term

Complete a table of values for y=x2−2x−3y = x^2 - 2x - 3 for −2≤x≤4-2 \le x \le 4.

Solution

For each xx, work out x2x^2, then −2x-2x, then add them and −3-3. For example, at x=−2x = -2: x2=(−2)2=4x^2 = (-2)^2 = 4, −2x=−2×(−2)=4,-2x = -2 \times (-2) = 4\text{,} so y=4+4−3=5y = 4 + 4 - 3 = 5.

xx−2-2−1-10011223344
x2x^24411001144991616
−2x-2x442200−2-2−4-4−6-6−8-8
−3-3−3-3−3-3−3-3−3-3−3-3−3-3−3-3
yy5500−3-3−4-4−3-30055

Check one value straight from the equation: at x=3x = 3, y=9−6−3=0y = 9 - 6 - 3 = 0 ✓.

The values of yy are 5,0,−3,−4,−3,0,5.5, 0, -3, -4, -3, 0, 5\text{.}

Example 3: A number in front of x2x^2

Complete a table of values for y=2x2−3x−2y = 2x^2 - 3x - 2 for −2≤x≤3-2 \le x \le 3.

Solution

Square first, then multiply by 22: at x=−2x = -2, 2x2=2×4=82x^2 = 2 \times 4 = 8 (not (2×(−2))2=16(2 \times (-2))^2 = 16), and −3x=6-3x = 6. So y=8+6−2=12y = 8 + 6 - 2 = 12.

At x=−1x = -1: 2+3−2=32 + 3 - 2 = 3. At x=0x = 0: −2-2. At x=1x = 1: 2−3−2=−32 - 3 - 2 = -3. At x=2x = 2: 8−6−2=08 - 6 - 2 = 0. At x=3x = 3: 18−9−2=718 - 9 - 2 = 7.

xx−2-2−1-100112233
yy121233−2-2−3-30077

The values of yy are 12,3,−2,−3,0,712, 3, -2, -3, 0, 7.

Slips to watch for

The square of a negative number is positive: (−2)2=4(-2)^2 = 4, not −4-4.

In −x2-x^2, square first and then take the negative: at x=−3x = -3, −x2=−9-x^2 = -9, not 99.

A minus sign times a negative xx gives a positive term: at x=−2x = -2, −3x=+6-3x = +6.

In 2x22x^2, square first and then multiply: at x=−2x = -2, 2x2=82x^2 = 8, not 1616.

Drawing the Graph

Drawing the graph of a quadratic function

1. Draw and number the axes to the scale the question gives (for example, 2 cm to 1 unit on the xx-axis and 1 cm to 1 unit on the yy-axis), so that they cover the range of xx and every value of yy in the table.

2. Plot every point of the table.

3. Join the points with one smooth curve, drawn freehand through every point. Do not join them with straight lines, and round the bottom (or top) of the curve; it is not a sharp point.

4. Label the curve with its equation.

Example 4: Drawing the graph

Draw the graph of y=x2−2x−3y = x^2 - 2x - 3 for −2≤x≤4-2 \le x \le 4.

Solution

Use the table of Example 2: (−2,5)(-2, 5), (−1,0)(-1, 0), (0,−3)(0, -3), (1,−4)(1, -4), (2,−3)(2, -3), (3,0)(3, 0), (4,5)(4, 5). Here each square is 1 unit on both axes; on graph paper, use the scale the question gives.

The graph of y = x² − 2x − 3 for x from −2 to 4: a smooth U-shaped curve through the seven points of the tablexy−3−2−112345−5−4−3−2−1123456Oy = x² − 2x − 3

The curve passes through every point and is ∪-shaped: it falls, turns at its lowest point, and rises again. The two halves are mirror images of each other. Lesson 5.6 finds the lowest point and the line of symmetry.

The graph is the smooth ∪-shaped curve above, drawn from x=−2x = -2 to x=4x = 4.

Opening Upwards or Downwards

In y=x2−2x−3y = x^2 - 2x - 3 the coefficient of x2x^2 is positive, and the curve opens upwards. Now look at a function whose coefficient of x2x^2 is negative.

Example 5: A negative coefficient of x2x^2

Draw the graph of y=6+x−x2y = 6 + x - x^2 for −3≤x≤4-3 \le x \le 4.

Solution

At x=−3x = -3: 6+(−3)−(−3)2=6−3−9=−6.6 + (-3) - (-3)^2 = 6 - 3 - 9 = -6\text{.} At x=−2x = -2: 6−2−4=06 - 2 - 4 = 0. At x=4x = 4: 6+4−16=−66 + 4 - 16 = -6. The others in the same way:

xx−3-3−2-2−1-10011223344
yy−6-6004466664400−6-6
The graph of y = 6 + x − x² for x from −3 to 4: a smooth upside-down U-shaped curve through the eight points of the tablexy−4−3−2−112345−7−6−5−4−3−2−11234567Oy = 6 + x − x²

The curve is ∩-shaped: it rises, turns at its highest point, and falls. The highest point lies between x=0x = 0 and x=1x = 1, where the table has two equal values, 66; the curve goes a little above 66 there, so do not draw it flat.

The graph is the smooth ∩-shaped curve above.

The shape of the graph of y = ax² + bx + c

If a>0a > 0, the curve is ∪-shaped (it opens upwards) and has a lowest point, its minimum point.

If a<0a < 0, the curve is ∩-shaped (it opens downwards) and has a highest point, its maximum point.

Find aa wherever the x2x^2 term is written: y=6+x−x2y = 6 + x - x^2 has a=−1a = -1, so its graph is ∩-shaped.

The size of aa changes the width: the graph of y=2x2y = 2x^2 is narrower than that of y=x2y = x^2, and the graph of y=12x2y = \frac{1}{2}x^2 is wider.

Where the Curve Cuts the y-Axis

On the yy-axis, x=0x = 0. Then y=a(0)2+b(0)+c=c.y = a(0)^2 + b(0) + c = c\text{.} So the graph of y=ax2+bx+cy = ax^2 + bx + c cuts the yy-axis at (0,c)(0, c), and cc is called the yy-intercept. In Example 4 the curve cuts the yy-axis at (0,−3)(0, -3); in Example 5, at (0,6)(0, 6).

The sign of aa and the value of cc together are often enough to tell graphs apart.

Example 6: Matching graphs to equations

The curves AA, BB, CC and DD are the graphs of these four equations, in some order:
(1) y=x2+2x−3y = x^2 + 2x - 3
(2) y=−x2+2x+3y = -x^2 + 2x + 3
(3) y=x2−2x+3y = x^2 - 2x + 3
(4) y=−x2−2xy = -x^2 - 2x. Match each curve to its equation.

Curves A and B: A is an upside-down U-shaped curve, B is a U-shaped curvexy−4−3−2−11234−5−4−3−2−112345OABCurves C and D: C is an upside-down U-shaped curve, D is a U-shaped curvexy−4−3−2−11234−5−4−3−2−112345OCD

Solution

Equations (1) and (3) have a=1>0a = 1 > 0, so their graphs are ∪-shaped: BB and DD. Equations (2) and (4) have a=−1<0a = -1 < 0: AA and CC.

Now the yy-intercepts. BB cuts the yy-axis at −3-3, so BB is (1), with c=−3c = -3; DD cuts it at 33, so DD is (3).

AA cuts the yy-axis at 33, so AA is (2); CC passes through the origin, so CC is (4), with c=0c = 0.

Check one point: (2) at x=3x = 3 gives −9+6+3=0-9 + 6 + 3 = 0, and AA does cross the xx-axis at 33 ✓.

AA is (2), BB is (1), CC is (4) and DD is (3).

Finding an Unknown Coefficient

A point lies on a curve exactly when its coordinates make the equation true. So if you know a point on the curve, you can substitute it to find a missing coefficient.

Example 7: A point on the curve

The curve y=x2+bx−3y = x^2 + bx - 3 passes through the point (2,5)(2, 5). Find bb.

Solution

Substitute x=2x = 2 and y=5y = 5: 5=22+2b−35 = 2^2 + 2b - 3, so 5=1+2b5 = 1 + 2b.

Subtract 11: 2b=42b = 4, so b=2b = 2.

Check: y=x2+2x−3y = x^2 + 2x - 3 at x=2x = 2 gives 4+4−3=54 + 4 - 3 = 5 ✓

b=2b = 2, so the curve is y=x2+2x−3y = x^2 + 2x - 3.

Common Mistakes

  • Joining the points with straight lines. A quadratic graph is one smooth curve.
  • Drawing the bottom (or top) of the curve as a sharp point, or flat between two equal values. It is rounded, and it may go beyond the table’s values, as in Example 5.
  • Squaring a negative number wrongly: (−2)2=4(-2)^2 = 4. And in −x2-x^2 at x=−3x = -3, the value is −9-9.
  • Plotting a point with the wrong sign, such as (−2,−5)(-2, -5) for (−2,5)(-2, 5). A point far off a smooth curve is a sign of a slip: check its value.
  • Counting squares instead of reading the numbers on an axis whose scale is not 1 unit to a square.
  • Drawing the curve beyond the range of xx given, or stopping short of it.

Practice Questions

Use graph paper for the questions that ask you to draw. The questions get harder as you go.

Question 1

For each function, state aa, bb and cc, say whether its graph is ∪-shaped or ∩-shaped, and give the point where it cuts the yy-axis.
(a) y=x2−5x+4y = x^2 - 5x + 4
(b) y=3−2x2y = 3 - 2x^2
(c) y=−x2+xy = -x^2 + x
(d) y=7+x2y = 7 + x^2

ShowHide solution

(a) a=1a = 1, b=−5b = -5, c=4c = 4. a>0a > 0: ∪-shaped. It cuts the yy-axis at (0,4)(0, 4).

(b) y=−2x2+3y = -2x^2 + 3: a=−2a = -2, b=0b = 0, c=3c = 3. a<0a < 0: ∩-shaped. (0,3)(0, 3).

(c) a=−1a = -1, b=1b = 1, c=0c = 0. ∩-shaped. (0,0)(0, 0), the origin.

(d) y=x2+7y = x^2 + 7: a=1a = 1, b=0b = 0, c=7c = 7. ∪-shaped. (0,7)(0, 7).

(a) ∪, (0,4)(0, 4)
(b) ∩, (0,3)(0, 3)
(c) ∩, (0,0)(0, 0)
(d) ∪, (0,7)(0, 7)

Question 2

Copy and complete the table for y=x2−4x+1y = x^2 - 4x + 1, and draw the graph for −1≤x≤5-1 \le x \le 5.

xx−1-1001122334455
yy66−3-366
ShowHide solution

At x=0x = 0: 11. At x=1x = 1: 1−4+1=−21 - 4 + 1 = -2. At x=3x = 3: 9−12+1=−29 - 12 + 1 = -2. At x=4x = 4: 16−16+1=116 - 16 + 1 = 1.

xx−1-1001122334455
yy6611−2-2−3-3−2-21166
The graph of y = x² − 4x + 1 for x from −1 to 5, through the seven points of the tablexy−2−1123456−4−3−2−11234567Oy = x² − 4x + 1

The missing values are 1,−2,−2,11, -2, -2, 1; the graph is the ∪-shaped curve above.

Question 3

Make a table of values for y=4x−x2y = 4x - x^2 for −1≤x≤5-1 \le x \le 5, and draw the graph. Is it ∪-shaped or ∩-shaped, and why?

ShowHide solution

At x=−1x = -1: −4−1=−5-4 - 1 = -5. At x=0x = 0: 00. At x=1x = 1: 4−1=34 - 1 = 3. At x=2x = 2: 8−4=48 - 4 = 4. At x=3x = 3: 12−9=312 - 9 = 3. At x=4x = 4: 00. At x=5x = 5: 20−25=−520 - 25 = -5.

xx−1-1001122334455
yy−5-50033443300−5-5
The graph of y = 4x − x² for x from −1 to 5, through the seven points of the tablexy−2−1123456−6−5−4−3−2−112345Oy = 4x − x²

It is ∩-shaped, because the coefficient of x2x^2 is −1-1, which is negative.

yy: −5,0,3,4,3,0,−5;-5, 0, 3, 4, 3, 0, -5\text{;} ∩-shaped, since a=−1<0a = -1 < 0.

Question 4

Make a table of values for y=2x2+x−6y = 2x^2 + x - 6 for −3≤x≤2-3 \le x \le 2, and draw the graph, with each square on the yy-axis standing for 2 units.

ShowHide solution

At x=−3x = -3: 2×9−3−6=92 \times 9 - 3 - 6 = 9. At x=−2x = -2: 8−2−6=08 - 2 - 6 = 0. At x=−1x = -1: 2−1−6=−52 - 1 - 6 = -5. At x=0x = 0: −6-6. At x=1x = 1: 2+1−6=−32 + 1 - 6 = -3. At x=2x = 2: 8+2−6=48 + 2 - 6 = 4.

xx−3-3−2-2−1-1001122
yy9900−5-5−6-6−3-344
The graph of y = 2x² + x − 6 for x from −3 to 2, with 2 units to a square on the y-axisxy−4−3−2−1123−8−6−4−2246810Oy = 2x² + x − 6

The point (−3,9)(-3, 9) lies halfway between the grid lines for 88 and 1010, and (−1,−5)(-1, -5) halfway between −4-4 and −6-6. The lowest point of the curve is a little below −6-6, between x=−1x = -1 and x=0x = 0.

yy: 9,0,−5,−6,−3,4;9, 0, -5, -6, -3, 4\text{;} the graph is the ∪-shaped curve above.

Question 5

Ahmad worked out y=−x2−3x+4y = -x^2 - 3x + 4 at x=−2x = -2 like this: “−x2=4-x^2 = 4 and −3x=−6-3x = -6, so y=4−6+4=2y = 4 - 6 + 4 = 2.” Find his two mistakes and the correct value of yy.

ShowHide solution

First mistake: −x2-x^2 means the negative of x2x^2. x2=(−2)2=4x^2 = (-2)^2 = 4, so −x2=−4-x^2 = -4, not 44.

Second mistake: −3x=−3×(−2)=+6,-3x = -3 \times (-2) = +6\text{,} not −6-6.

So y=−4+6+4=6y = -4 + 6 + 4 = 6.

y=6y = 6

Question 6

Priya drew the graph of y=x2−2x−3y = x^2 - 2x - 3 for −2≤x≤4-2 \le x \le 4 like this. Give three things that are wrong.

Priya’s drawing: seven points joined by straight lines, the first point plotted at (−2, −5)xy−3−2−112345−6−5−4−3−2−1123456O
ShowHide solution

At x=−2x = -2, y=4+4−3=5y = 4 + 4 - 3 = 5. She plotted (−2,−5)(-2, -5) instead of (−2,5)(-2, 5).

She joined the points with straight lines. The graph should be one smooth curve through the points.

Her graph has a sharp point at (1,−4)(1, -4). The curve should be rounded at its lowest point.

She has also not labelled the graph with its equation. Any three of these four faults is a full answer.

Compare it with the correct graph in Example 4.

Any three of: the point (−2,5)(-2, 5) is plotted as (−2,−5)(-2, -5); the points are joined by straight lines; the bottom is a sharp point instead of a rounded curve; the graph is not labelled with its equation.

Question 7

The curve y=x2−3x+cy = x^2 - 3x + c passes through (4,1)(4, 1). Find cc, and write down where the curve cuts the yy-axis.

ShowHide solution

Substitute: 1=16−12+c1 = 16 - 12 + c, so 1=4+c1 = 4 + c, and c=−3c = -3.

The curve cuts the yy-axis at (0,c)=(0,−3)(0, c) = (0, -3).

Check: 16−12−3=116 - 12 - 3 = 1 ✓

c=−3c = -3; the curve cuts the yy-axis at (0,−3)(0, -3).

Question 8

The curve y=2x2+bx+1y = 2x^2 + bx + 1 passes through (−1,5)(-1, 5). Find bb.

ShowHide solution

Substitute: 5=2(−1)2+b(−1)+1=2−b+1=3−b.5 = 2(-1)^2 + b(-1) + 1 = 2 - b + 1 = 3 - b\text{.}

So b=3−5=−2b = 3 - 5 = -2.

Check: y=2x2−2x+1y = 2x^2 - 2x + 1 at x=−1x = -1 gives 2+2+1=52 + 2 + 1 = 5 ✓

b=−2b = -2

Question 9

A ball is thrown straight up. Its height, hh metres, after tt seconds is given by h=20t−5t2h = 20t - 5t^2. Make a table of values for t=0,1,2,3,4t = 0, 1, 2, 3, 4 and draw the graph of hh against tt, with 5 m to a square on the hh-axis.

ShowHide solution

At t=1t = 1: 20−5=1520 - 5 = 15. At t=2t = 2: 40−20=2040 - 20 = 20. At t=3t = 3: 60−45=1560 - 45 = 15. At t=4t = 4: 80−80=080 - 80 = 0.

tt0011223344
hh0015152020151500
The graph of h = 20t − 5t² for t from 0 to 4: an upside-down U-shaped curve through (0, 0), (1, 15), (2, 20), (3, 15) and (4, 0)t (s)h (m)12345510152025Oh = 20t − 5t²

The coefficient of t2t^2 is −5-5, so the curve is ∩-shaped: the ball rises, then falls back to the ground at t=4t = 4.

hh: 0,15,20,15,00, 15, 20, 15, 0; the graph is the ∩-shaped curve above.

Question 10

A rectangle has sides xx cm and (6−x)(6 - x) cm. Its area, AA cm², is A=6x−x2A = 6x - x^2. Make a table of values for x=0,1,2,3,4,5,6x = 0, 1, 2, 3, 4, 5, 6 and draw the graph of AA against xx.

ShowHide solution

At x=1x = 1: 6−1=56 - 1 = 5. At x=2x = 2: 12−4=812 - 4 = 8. At x=3x = 3: 18−9=918 - 9 = 9. At x=4x = 4: 24−16=824 - 16 = 8. At x=5x = 5: 30−25=530 - 25 = 5. At x=0x = 0 and x=6x = 6: 00.

xx00112233445566
AA00558899885500
The graph of A = 6x − x² for x from 0 to 6, through the seven points of the tablex (cm)A (cm²)123456712345678910OA = 6x − x²

The curve is ∩-shaped (the coefficient of x2x^2 is −1-1). Only values of xx between 00 and 66 make sense: both sides, xx and 6−x6 - x, must be more than 0 cm. The end points, where the area is 00, complete the curve.

AA: 0,5,8,9,8,5,00, 5, 8, 9, 8, 5, 0; the graph is the ∩-shaped curve above.

Question 11

Without drawing, match each function to its description. Functions:
(a) y=x2−4y = x^2 - 4
(b) y=4−x2y = 4 - x^2
(c) y=x2+4xy = x^2 + 4x
(d) y=−x2+4x−5y = -x^2 + 4x - 5.
Descriptions:
(1) ∩-shaped, cuts the yy-axis at (0,−5)(0, -5)
(2) ∪-shaped, passes through the origin
(3) ∩-shaped, cuts the yy-axis at (0,4)(0, 4)
(4) ∪-shaped, cuts the yy-axis at (0,−4)(0, -4).

ShowHide solution

(a) a=1>0a = 1 > 0, c=−4c = -4: ∪-shaped through (0,−4)(0, -4), which is (4).

(b) a=−1<0a = -1 < 0, c=4c = 4: ∩-shaped through (0,4)(0, 4), which is (3).

(c) a=1>0a = 1 > 0, c=0c = 0: ∪-shaped through the origin, which is (2).

(d) a=−1<0a = -1 < 0, c=−5c = -5: ∩-shaped through (0,−5)(0, -5), which is (1).

(a) and (4);
(b) and (3);
(c) and (2);
(d) and (1)

Key Points

  • A quadratic function is y=ax2+bx+cy = ax^2 + bx + c with a≠0a \neq 0; its graph is a smooth curve called a parabola.
  • Make a table for every whole number in the range of xx given; take care with negative values of xx.
  • Draw the axes to the scale given, plot every point, and join them with one smooth curve; label it.
  • If a>0a > 0 the graph is ∪-shaped with a minimum point; if a<0a < 0 it is ∩-shaped with a maximum point.
  • The graph cuts the yy-axis at (0,c)(0, c).
  • A point lies on the curve when its coordinates make the equation true; use this to find a missing coefficient.

‹ 5.3 Solving Quadratic Equations Involving Squares 5.5 Roots and the x-Intercepts of a Quadratic Graph ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons, practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.