Junior Cycle Mathematics14.4 Graphing quadratic functions

All books

14.4 Graphing quadratic functions — Learn

Prerequisites: plotting points and drawing a graph from Section 14.3, multiplying two brackets from Section 11.3, and factorising a quadratic from Section 11.5.

Objectives: make a table of values for a quadratic function; draw the curve; find the roots from the graph; read the highest or lowest point; build a quadratic from its roots.

By the end of this section, you can draw the graph of a quadratic function and read its roots and its highest or lowest point.

The simplest quadratic

A quadratic function has an x2x^2 in its rule. The simplest one is y=x2y=x^2.

Example 1. Make a table of values for y=x2y=x^2 for x=−3x=-3, −2-2, −1-1, 00, 11, 22 and 33.

xx −3-3 −2-2 −1-1 00 11 22 33
yy 9 4 1 0 1 4 9

Plot the points. The graph is a smooth curve, not a set of straight segments. It is called a parabola, and it looks like a letter U.

The lowest point is (0,0)(0,0). It is the minimum of the graph, and it is where the curve turns around.

The curve is symmetrical

Look at the table again. The value for x=−2x=-2 is 4, and the value for x=2x=2 is also 4. The value for x=−3x=-3 is 9, and so is the value for x=3x=3.

The left side of the curve is a mirror image of the right side. The curve is symmetrical about the vertical line through its lowest point. For y=x2y=x^2 that line is the vertical axis.

A square hides the sign of its input, so (−2)2(-2)^2 and 222^2 are equal. That is where the symmetry comes from.

The roots

A root of a function is an input for which the output is 0. On the graph, a root is a place where the curve crosses the horizontal axis.

For y=x2−4y=x^2-4, the roots are the solutions of

x2−4=0x^2-4 = 0 x2=4x^2 = 4 x=−2orx=2x = -2 \quad \text{or} \quad x = 2

The curve crosses the horizontal axis at x=−2x=-2 and at x=2x=2. Between those two values the curve is below the axis, so the output is negative there.

Building a quadratic from its roots

If you know the roots, you can write down the function.

A root at x=2x=2 means that the output is 0 when the input is 2. The bracket (x−2)(x-2) is 0 at x=2x=2, so (x−2)(x-2) is a factor. In the same way, a root at x=5x=5 gives the factor (x−5)(x-5).

Example 2. A quadratic has roots 2 and 5. Write its rule and expand it.

y=(x−2)(x−5)y = (x-2)(x-5)

Multiply the two brackets.

y=x2−7x+10y = x^2-7x+10

Check: at x=2x=2, 4−14+10=04-14+10=0. At x=5x=5, 25−35+10=025-35+10=0. Both roots work.

Example 3. A quadratic has roots −3-3 and 11. Write its rule and expand it.

A root at −3-3 gives the factor (x+3)(x+3), because substituting −3-3 makes that bracket zero.

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

A quadratic that opens downwards

When the number in front of x2x^2 is negative, the curve opens downwards. Its highest point is the maximum of the graph.

The garden bed has a rule like this. Its area is

A(x)=12x−2x2A(x) = 12x-2x^2

The number in front of x2x^2 is −2-2, so the curve opens downwards and has a maximum.

Example 4. Make a table for A(x)=12x−2x2A(x)=12x-2x^2 for x=0x=0, 11, 22, 33, 44, 55 and 66.

xx 0 1 2 3 4 5 6
A(x)A(x) 0 10 16 18 16 10 0

Plot the points and join them with a smooth curve. The curve rises from (0,0)(0,0) to a highest point, and then falls back to (6,0)(6,0).

  • The greatest area is 18 m218\ \text{m}^2, at a width of 3 m. That is the maximum point.
  • The roots are 0 and 6, where the curve crosses the horizontal axis.
  • The curve is symmetrical about the vertical line through the maximum, so the widths 2 m and 4 m give the same area, and the widths 1 m and 5 m do the same.

Example 5. Find the greatest area from the table.

The largest value in the bottom row is 18, at x=3x=3.

A(3)=12×3−2×32=36−18=18A(3) = 12\times3-2\times3^2 = 36-18 = 18

The greatest area is 18 m218\ \text{m}^2, and the width that gives it is 3 m. The fenced length is then 12−6=612-6=6 m.

Progress check

Return to the chapter problem. The area of the garden bed is A(x)=12x−2x2A(x)=12x-2x^2 square metres.

  1. Copy and complete the table for x=0x=0, 11, 22, 33, 44, 55 and 66.
  2. Plot the points and draw the smooth curve.
  3. Read the greatest area from the graph, and the width that gives it.
  4. Read the two roots from the graph, and say what they mean for the bed.

In Section 14.5 you will read this graph as the story of the garden bed, and compare it with other graphs from real situations.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.