Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

Functions

Print Grade 8 only

The lessons of this topic taught in Grade 8, ready for paper.

To save a PDF, choose “Save as PDF” in the print dialog.

1. Function notation: evaluate and read f(x)

Discover

f(x)=x+5f(x) = x + 5 is a rule: it takes a number and adds 5.

What does f(2)f(2) mean?

  1. The output of ff when the input is 2
  2. ff times 2
  3. The input that gives the output 2

Key idea

A function gives exactly one output for each input. We write the output as f(x)f(x).

f(a)f(a) is the output of ff for the input aa. To find it, replace every xx in the rule by (a)(a), with parentheses.

On a graph, f(a)f(a) is the height of the graph above x=ax = a.

Worked example

f(x)=3x2−xf(x) = 3x^2 - x. Find f(−2)f(-2).

f(−2)=3(−2)2−(−2)f(-2) = 3(-2)^2 - (-2)
Replace each x by (−2), with the parentheses.
=3⋅4+2= 3 \cdot 4 + 2
(−2)² = 4, and subtracting −2 adds 2.
=14= 14
Multiply, then add.

Your turn, guided

Your turn: f(x)=2x2+1f(x) = 2x^2 + 1. Fill in the missing line.

f(−3)=2(−3)2+1f(-3) = 2(-3)^2 + 1
Replace x by (−3).
f(−3)=19f(-3) = 19
(−3)² = 9, then 2 · 9 + 1.

Practice ★

  1. f(x)=2x2+7f(x) = 2x^2 + 7. Find f(−2)f(-2).
  2. f(x)=12x2+4f(x) = 12x^2 + 4. Find f(−14)f(-14).
  3. f(x)=3x2+8f(x) = 3x^2 + 8. Find f(−2)f(-2).
  4. f(x)=8x2+5f(x) = 8x^2 + 5. Find f(−8)f(-8).
  5. f(x)=3x2+5f(x) = 3x^2 + 5. Find f(−3)f(-3).

Watch out!

Practice ★★

  1. f(x)=x2+5f(x) = x^2 + 5. Find f(1+2)f(1 + 2).
  2. f(x)=x2+16f(x) = x^2 + 16. Find f(13+9)f(13 + 9).
  3. f(x)=x2+1f(x) = x^2 + 1. Find f(2+2)f(2 + 2).
  4. f(x)=x2+29f(x) = x^2 + 29. Find f(12+6)f(12 + 6).
  1. Here is the graph of y=f(x)y = f(x). Tap the point of the graph that shows f(2)f(2).
  2. Here is the graph of y=f(x)y = f(x). Tap the point of the graph that shows f(2)f(2).

Exit ticket

Three questions to check you have got it.

  1. f(x)=x2+5f(x) = x^2 + 5. Find f(1+2)f(1 + 2).
  2. f(x)=x2+16f(x) = x^2 + 16. Find f(13+9)f(13 + 9).
  3. f(x)=x2+1f(x) = x^2 + 1. Find f(2+2)f(2 + 2).

Summary card

Function notation

  • f(a)f(a) is the output for the input aa.
  • Replace every xx by (a)(a), with parentheses: f(−2)f(-2) for x2x^2 is (−2)2=4(-2)^2 = 4.
  • On a graph: the height above x=ax = a.

Watch out: f(a+b)f(a + b) is not f(a)+f(b)f(a) + f(b).

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. f(x)=x2−9xf(x) = x^2 - 9x. Compute f(7)−f(−7)f(7) - f(-7).

2. Average rate of change; where a function increases or decreases

Warm-up

Three quick questions from earlier lessons.

  1. A candle is 32 cm tall when lit and burns 4 cm per hour. Let yy be its height after xx hours.
    1. Its height after 2 hours, in cm:   ?\;?
    2. An equation for yy: y=  ?y = \;?
    3. After how many hours has it burned down?   ?\;?
    4. Let f(x)f(x) be its height after xx hours. Compute f(1)f(1).
    5. By what percent did its height decrease during the first hour?
    6. For how many hours at most is the candle at least 4 cm tall?
  2. f(x)=2x2+7f(x) = 2x^2 + 7. Find f(−2)f(-2).
  3. f(x)=x2+5f(x) = x^2 + 5. Find f(1+2)f(1 + 2).

Discover

A car drives 120 miles in 2 hours. What is its average speed?

  1. 60 miles per hour
  2. 160\tfrac{1}{60} hour per mile
  3. 120 miles per hour

Key idea

The average rate of change tells how fast the output changes, per unit of input.

The average rate of change of ff from x=ax = a to x=bx = b is f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}, the slope of the line through the two points of the graph.

ff is increasing on an interval if its graph goes up from left to right there, and decreasing if it goes down.

Worked example

Find the average rate of change of f(x)=x2f(x) = x^2 from x=1x = 1 to x=4x = 4.

f(4)−f(1)=16−1=15f(4) - f(1) = 16 - 1 = 15
Change in the output.
4−1=34 - 1 = 3
Change in the input.
Rate =153=5= \dfrac{15}{3} = 5
Divide: output change per unit of input.

Your turn, guided

Your turn: f(x)=2x2f(x) = 2x^2, from x=0x = 0 to x=3x = 3.

f(3)−f(0)=18f(3) - f(0) = 18
f(3) = 18, f(0) = 0.
Change in xx: 33
3 − 0.
Rate =6= 6
18 ÷ 3.

Practice ★

  1. Find the average rate of change of f(x)=1x2f(x) = 1x^2 from x=0x = 0 to x=7x = 7.
  2. Find the average rate of change of f(x)=8x2f(x) = 8x^2 from x=10x = 10 to x=19x = 19.
  3. Find the average rate of change of f(x)=1x2f(x) = 1x^2 from x=1x = 1 to x=6x = 6.
  4. Find the average rate of change of f(x)=12x2f(x) = 12x^2 from x=5x = 5 to x=18x = 18.

Watch out!

Practice ★★

  1. A tank holds 34 liters at time 0 and 4040 liters after 2 minutes. What is the average rate of change of the volume, in liters per minute?
  2. A tank holds 191 liters at time 0 and 521521 liters after 15 minutes. What is the average rate of change of the volume, in liters per minute?
  3. A tank holds 36 liters at time 0 and 4242 liters after 3 minutes. What is the average rate of change of the volume, in liters per minute?
  1. f(x)=−(x−5)2+8f(x) = -(x - 5)^2 + 8. On which interval is ff increasing?
    1. (−∞,5)(-\infty, 5)
    2. (5,∞)(5, \infty)
    3. (−∞,8)(-\infty, 8)
  2. f(x)=−(x−1)2+7f(x) = -(x - 1)^2 + 7. On which interval is ff increasing?
    1. (−∞,1)(-\infty, 1)
    2. (1,∞)(1, \infty)
    3. (−∞,7)(-\infty, 7)
  3. f(x)=−(x−3)2+2f(x) = -(x - 3)^2 + 2. On which interval is ff increasing?
    1. (−∞,3)(-\infty, 3)
    2. (3,∞)(3, \infty)
    3. (−∞,2)(-\infty, 2)

Exit ticket

Three questions to check you have got it.

  1. Find the average rate of change of f(x)=1x2f(x) = 1x^2 from x=0x = 0 to x=7x = 7.
  2. Find the average rate of change of f(x)=8x2f(x) = 8x^2 from x=10x = 10 to x=19x = 19.
  3. Find the average rate of change of f(x)=1x2f(x) = 1x^2 from x=1x = 1 to x=6x = 6.

Summary card

Average rate of change

  • From aa to bb: f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}, output change over input change.
  • Increasing: the graph rises from left to right.
  • Give intervals of increase with xx-values.

Watch out: change in f(x)f(x) on top, change in xx below.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Find the average rate of change of f(x)=x3f(x) = x^3 on [0,9][0, 9].

3. What is a function: one output for each input

Discover

A vending machine: you press a button (input) and get a snack (output). Pressing B4 sometimes gives chips and sometimes gives a cookie. What is wrong?

  1. One input gives two different outputs
  2. Two buttons might give the same snack

Key idea

A function assigns exactly one output to each input.

A function is a rule that assigns to each input exactly one output. Different inputs may share an output. On a graph, no vertical line meets a function's graph twice. A function can be given by a table, a graph, an equation or words.

Worked example

(1,5),(2,5),(3,7)(1, 5), (2, 5), (3, 7) and (1,5),(1,6),(2,7)(1, 5), (1, 6), (2, 7).

First: a function
Each input once.
Second: not a function
Input 1 has outputs 5 and 6.

Your turn, guided

Your turn: the rule “triple the input, then subtract 4”. The output for input 5.

1111
15 − 4.

Practice ★

  1. A table pairs inputs xx with outputs yy: (x,y)=(5,1),(5,2),(9,3)(x, y) = (5, 1), (5, 2), (9, 3). Is yy a function of xx?
    1. No: the input 5 has two different outputs
    2. Yes: every input has an output
    3. Yes: the outputs are all different
  2. A table pairs inputs xx with outputs yy: (x,y)=(4,1),(4,2),(6,3)(x, y) = (4, 1), (4, 2), (6, 3). Is yy a function of xx?
    1. No: the input 4 has two different outputs
    2. Yes: every input has an output
    3. Yes: the outputs are all different
  1. A table pairs inputs xx with outputs yy: (x,y)=(1,5),(5,5),(9,5)(x, y) = (1, 5), (5, 5), (9, 5). Is yy a function of xx?
    1. Yes: each input has exactly one output
    2. No: the output 5 repeats
    3. No: a function needs a formula

Watch out!

Practice ★★

  1. A function's rule: multiply the input by 2, then add 7. Which input gives the output 9?
  2. A function's rule: multiply the input by 16, then add 31. Which input gives the output 255?

Exit ticket

Three questions to check you have got it.

  1. A table pairs inputs xx with outputs yy: (x,y)=(5,1),(5,2),(9,3)(x, y) = (5, 1), (5, 2), (9, 3). Is yy a function of xx?
    1. No: the input 5 has two different outputs
    2. Yes: every input has an output
    3. Yes: the outputs are all different
  2. A table pairs inputs xx with outputs yy: (x,y)=(4,1),(4,2),(6,3)(x, y) = (4, 1), (4, 2), (6, 3). Is yy a function of xx?
    1. No: the input 4 has two different outputs
    2. Yes: every input has an output
    3. Yes: the outputs are all different
  3. A table pairs inputs xx with outputs yy: (x,y)=(2,1),(2,2),(8,3)(x, y) = (2, 1), (2, 2), (8, 3). Is yy a function of xx?
    1. No: the input 2 has two different outputs
    2. Yes: every input has an output
    3. Yes: the outputs are all different

Summary card

Functions

Exactly one output for each input.

Watch out: shared outputs are fine; two outputs for one input are not.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. ff multiplies by 5, then adds 1. Which number xx satisfies f(f(x))=0f(f(x)) = 0?

4. Fixed points

Discover

Type any number into a calculator and press the cos key again and again (in radians). The display settles at about 0.739. Why does it stop changing?

  1. It has reached a number with cos⁡x=x\cos x = x
  2. The calculator runs out of digits

Key idea

Fixed points.

A fixed point of ff is a number xx with f(x)=xf(x) = x.

For f(x)=ax+bf(x) = ax + b with a≠1a \ne 1: ax+b=xax + b = x gives x=b1−ax = \dfrac{b}{1 - a}.

Worked example

Find the fixed point of f(x)=3x−8f(x) = 3x - 8.

3x−8=x3x - 8 = x
Set f(x)=xf(x) = x.
x=4x = 4, and indeed f(4)=4f(4) = 4
Solve.

Your turn, guided

Your turn: find the fixed point of f(x)=2x−5f(x) = 2x - 5.

x=5x = 5
2x−5=x2x - 5 = x.

Practice ★

  1. Find the fixed point of f(x)=3x−10f(x) = 3x - 10.
  2. Find the fixed point of f(x)=4x−12f(x) = 4x - 12.
  3. Find the fixed point of f(x)=2x−8f(x) = 2x - 8.

Practice ★★

  1. f(x)=x2+7f(x) = \dfrac{x}{2} + 7. Start at 0 and apply ff again and again: 0,7,…0, 7, \dots Which number do the values approach?
  2. f(x)=x2+4f(x) = \dfrac{x}{2} + 4. Start at 0 and apply ff again and again: 0,4,…0, 4, \dots Which number do the values approach?

Exit ticket

Two questions to check.

  1. Find the fixed point of f(x)=3x−10f(x) = 3x - 10.
  2. Find the fixed point of f(x)=4x−12f(x) = 4x - 12.

Summary card

Fixed points

  • Solve f(x)=xf(x) = x.
  • Applying ff again and again can lead to a fixed point.

Search engines rank web pages by finding a fixed point of a huge function.

5. History of functions: from Oresme to Dirichlet

Discover

In the 1300s, the French scholar Nicole Oresme drew a quantity that changes, such as a speed, as heights above a line. What did he invent?

  1. An early kind of graph
  2. The letter xx for an unknown

Key idea

How the idea of a function grew.

14001500160017001800c. 1350Oresme draws one quantity against anotherc. 1350Oresme draws one quantity againstanother
  1. Step 114001500160017001800c. 1350Oresme draws one quantity against anotherc. 1350Oresme draws one quantity againstanotherNicole Oresme c. 1320 – 1382Unknown artist, 1400–1420. Public domain1300s: Oresme draws how one quantity depends on another, as heights above a line.
  2. Step 214001500160017001800c. 1350Oresme draws one quantity against another1673Leibniz: the word 'function'c. 1350Oresme draws one quantity againstanother1673Leibniz: the word 'function'Gottfried Wilhelm Leibniz 1646–1716Christoph Bernhard Francke, before 1729. Public domain1673: Leibniz uses the word 'function', still in a narrow sense.
  3. Step 314001500160017001800c. 1350Oresme draws one quantity against another1673Leibniz: the word 'function'1734Euler writes f(x)1748Euler's Introductioc. 1350Oresme draws one quantity againstanother1673Leibniz: the word 'function'1734Euler writes f(x)1748Euler's IntroductioLeonhard Euler 1707–1783Jakob Emanuel Handmann, 1753. Public domain1734: Euler writes f(x). In 1748 his Introductio puts functions at the center of analysis.
  4. Step 414001500160017001800c. 1350Oresme draws one quantity against another1673Leibniz: the word 'function'1734Euler writes f(x)1748Euler's Introductio1837Dirichlet's definitionc. 1350Oresme draws one quantity againstanother1673Leibniz: the word 'function'1734Euler writes f(x)1748Euler's Introductio1837Dirichlet's definitionJohann Peter Gustav Lejeune Dirichlet 1805–1859Unknown artist, before 1859. Public domain1837: Dirichlet: each x gives exactly one y, by any rule at all.

Euler wrote f(x)f(x) in 1734. In 1837 Dirichlet gave the definition we use: yy is a function of xx when each value of xx gives, by some rule, exactly one value of yy.

Source

Functio quantitatis variabilis est expressio analytica quomodocunque composita ex illa quantitate variabili et numeris seu quantitatibus constantibus.

A function of a variable quantity is an analytic expression made up, in any way at all, of that variable quantity and of numbers or constant quantities.

Leonhard Euler, Introductio in analysin infinitorum, 1748, § 4: the original Latin, then our own translation

For Euler in 1748, what is a function?

  1. An expression, a formula, made of the variable and numbers
  2. Any correspondence at all, even without a formula

Worked example

Dirichlet even allowed rules with no formula: D(x)=0D(x) = 0 if xx is rational, D(x)=1D(x) = 1 if not.

D(12)=0D\left(\tfrac{1}{2}\right) = 0
12\tfrac{1}{2} is rational.
D(2)=1D(\sqrt{2}) = 1
2\sqrt{2} is irrational.

Practice ★

  1. Who first wrote a function as f(x)f(x), in 1734?
    1. Leonhard Euler
    2. Nicole Oresme
    3. Lejeune Dirichlet
  1. Dirichlet's function: D(x)=0D(x) = 0 if xx is rational, D(x)=1D(x) = 1 if not. Compute D(13)+D(2)+D(3)D\left(\tfrac{1}{ 3 }\right) + D(\sqrt{2}) + D(3).
  2. Dirichlet's function: D(x)=0D(x) = 0 if xx is rational, D(x)=1D(x) = 1 if not. Compute D(18)+D(2)+D(8)D\left(\tfrac{1}{ 8 }\right) + D(\sqrt{2}) + D(8).
  1. In Euler's notation, f(x)=2x+8f(x) = 2x + 8. Compute f(f(1))f(f(1)).

Summary card

Functions today

  • A spreadsheet column computed from another is a function.
  • Apps and programs are built from functions: input in, one output out.
  • Graphs of temperature, prices or heart rate are Oresme's idea, everywhere.

Sources: MacTutor history topic on the function concept; biographies of Oresme, Euler and Dirichlet (see "Sources and credits").