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.

Comparing functions

Print the chapter

Every lesson of the chapter, ready for paper. Exercise sets are lettered A, B, C… and answered at the end.

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

1. Domain and range in interval notation

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

Which numbers can you put into f(x)=xf(x) = \sqrt{x}?

  1. 0 and the positive numbers
  2. Every number
  3. Only the positive numbers, not 0

Key idea

The domain is the set of inputs a function accepts. The range is the set of outputs it gives.

Leave out of the domain every xx that makes a denominator 00 or puts a negative number under a square root. A square bracket includes the end: [2,∞)[2, \infty) contains 2; a parenthesis leaves it out: (2,∞)(2, \infty) does not.

Worked example

Find the domain of f(x)=x+2f(x) = \sqrt{x + 2}.

x+2≥0x + 2 \ge 0
The inside of a square root must not be negative.
x≥−2x \ge -2
Subtract 2 from both sides.
Domain: [−2,∞)[-2, \infty)
−2 is allowed (√0 = 0), so use a square bracket.

Your turn, guided

Your turn: f(x)=x−5f(x) = \sqrt{x - 5}. Fill in the missing line.

x−5≥0x - 5 \ge 0
The inside must not be negative.
The domain starts at x=5x = 5: [5,∞)[5, \infty)
Add 5 to both sides: the domain starts at this number.

Practice ★

  1. What is the domain of f(x)=x−9f(x) = \sqrt{x - 9}? Give it as an interval.
  2. What is the domain of f(x)=x−5f(x) = \sqrt{x - 5}? Give it as an interval.
  3. What is the domain of f(x)=x−6f(x) = \sqrt{x - 6}? Give it as an interval.
  4. What is the domain of f(x)=x−4f(x) = \sqrt{x - 4}? Give it as an interval.

Watch out!

Practice ★★

  1. What is the domain of f(x)=9x−6f(x) = \dfrac{ 9 }{x - 6}? Give it as an interval or a union of intervals.
  2. What is the domain of f(x)=6x−5f(x) = \dfrac{ 6 }{x - 5}? Give it as an interval or a union of intervals.
  3. What is the domain of f(x)=4x−3f(x) = \dfrac{ 4 }{x - 3}? Give it as an interval or a union of intervals.
  1. What is the range of f(x)=(x−5)2+9f(x) = (x - 5)^2 + 9? Give it as an interval.
  2. What is the range of f(x)=(x−3)2+6f(x) = (x - 3)^2 + 6? Give it as an interval.
  3. What is the range of f(x)=(x−5)2+4f(x) = (x - 5)^2 + 4? Give it as an interval.

Exit ticket

Three questions to check you have got it.

  1. What is the range of f(x)=(x−5)2+9f(x) = (x - 5)^2 + 9? Give it as an interval.
  2. What is the range of f(x)=(x−3)2+6f(x) = (x - 3)^2 + 6? Give it as an interval.
  3. What is the range of f(x)=(x−5)2+4f(x) = (x - 5)^2 + 4? Give it as an interval.

Summary card

Domain and range

  • Domain: the inputs. Leave out zero denominators and negatives under a square root.
  • Range: the outputs.
  • [a,∞)[a, \infty) includes aa; (a,∞)(a, \infty) does not.

Watch out: the range uses yy-values, not the xx of a vertex.

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

Challenge ★★★

  1. The domain of f(x)=x−4+11−xf(x) = \sqrt{x - 4} + \sqrt{ 11 - x} is an interval. How long is it?

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. Linear or exponential: equal differences or equal factors

Warm-up

Three quick questions from earlier lessons.

  1. Find the xx-intercept of 1x+2y=21x + 2y = 2 (the value of xx where the line crosses the xx-axis).
  2. What is the slope of the line 8x+9y=178x + 9y = 17?
  3. The point (1,y)(1, y) is a solution of 3x+y=143x + y = 14. Find yy.

Discover

Offer A: 1,000 dollars a day for 30 days. Offer B: 1 cent the first day, then double every day. Which pays more on day 30?

  1. Offer B
  2. Offer A

Key idea

Linear adds, exponential multiplies.

Over equal steps in xx, a linear function changes by equal differences (add mm); an exponential function changes by equal factors (multiply by bb). A growing exponential eventually overtakes any linear function.

Worked example

yy: 3, 6, 12, 24.

Not linear
Differences 3, 6, 12: not equal.
Exponential, factor 2
Ratios 2, 2, 2.
24⋅2=4824 \cdot 2 = 48
Next value.

Your turn, guided

Your turn: an exponential function has g(0)=5g(0) = 5, g(1)=15g(1) = 15. Find g(2)g(2).

4545
Factor 3.

Practice ★

  1. A table gives x=0,1,2,3x = 0, 1, 2, 3 and y=4,12,36,108y = 4, 12, 36, 108. What kind of relationship is it?
    1. Exponential: yy is multiplied by 3 at each step
    2. Linear: yy goes up by 8 at each step
    3. Neither
  2. A table gives x=0,1,2,3x = 0, 1, 2, 3 and y=8,24,72,216y = 8, 24, 72, 216. What kind of relationship is it?
    1. Exponential: yy is multiplied by 3 at each step
    2. Linear: yy goes up by 16 at each step
    3. Neither
  1. An exponential function has g(0)=5g(0) = 5 and g(1)=10g(1) = 10. Find g(3)g(3).

Watch out!

Practice ★★

  1. f(x)=57x+380f(x) = 57x + 380 and g(x)=1.04xg(x) = 1.04^x. For very large xx, which is greater?
    1. gg: exponential growth eventually overtakes linear growth
    2. ff: it is greater now and grows faster
    3. They stay about equal
  2. f(x)=73x+397f(x) = 73x + 397 and g(x)=1.04xg(x) = 1.04^x. For very large xx, which is greater?
    1. gg: exponential growth eventually overtakes linear growth
    2. ff: it is greater now and grows faster
    3. They stay about equal

Exit ticket

Three questions to check you have got it.

  1. An exponential function has g(0)=5g(0) = 5 and g(1)=10g(1) = 10. Find g(3)g(3).
  2. An exponential function has g(0)=7g(0) = 7 and g(1)=28g(1) = 28. Find g(3)g(3).
  3. An exponential function has g(0)=12g(0) = 12 and g(1)=60g(1) = 60. Find g(3)g(3).

Summary card

Linear or exponential?

Equal differences: linear. Equal factors: exponential.

Watch out: exponential growth wins in the end.

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

Challenge ★★★

  1. Two plants are 1 cm tall today. The first grows 8 cm every week; the second doubles its height every week. After how many whole weeks is the second plant taller for the first time?

4. Write an exponential function from a description or two points

Warm-up

Three quick questions from earlier lessons.

  1. A culture starts with 3 grams of algae. Each week, the amount is multiplied by 3. How many grams are there after 3 weeks?
  2. A photo is 8000 pixels wide. Each time it is resized, its width loses 40%. Write the width W(t)W(t) after tt resizes.
  3. The amount of algae starts at 5 m² and is multiplied by 4 each week. Complete the table.
    WeekArea (m²)
    0055
    11
    22
    33

Discover

A table shows a function: f(0)=4f(0) = 4, f(1)=12f(1) = 12, f(2)=36f(2) = 36, f(3)=108f(3) = 108.

What do you multiply by to go from one value to the next? Can you write one formula that gives all four values?

Key idea

An exponential function can be written

f(x)=a⋅bxf(x) = a \cdot b^x, where a=f(0)a = f(0) and bb is the factor for each increase of 1 in xx

If the quantity is multiplied by bb every nn units instead, divide the input by nn: f(x)=a⋅bxnf(x) = a \cdot b^{\frac{x}{n}}.

Worked example

Write ff for the table above.

a=4a = 4
The starting value is f(0).
b=3b = 3
Divide consecutive values: 12 ÷ 4 = 3.
f(x)=4⋅3xf(x) = 4 \cdot 3^x
Put them in the form a · b^x.

Your turn, guided

Your turn: f(0)=5f(0) = 5 and f(1)=10f(1) = 10. Fill in the missing line.

a=5a = 5, b=2b = 2
10 ÷ 5 = 2.
f(x)=5⋅2xf(x) = 5 \cdot 2^x
Use the form a · b^x.

Practice ★

  1. Plot the points of the graph of f(x)=4⋅2xf(x) = 4 \cdot 2^x at x=0x = 0 and x=1x = 1.
  2. Plot the points of the graph of f(x)=3⋅4xf(x) = 3 \cdot 4^x at x=0x = 0 and x=1x = 1.
  1. An exponential function ff has f(0)=7f(0) = 7, and each time xx increases by 1, the value of ff is multiplied by 2. Write f(x)f(x).
  2. An exponential function ff has f(0)=11f(0) = 11, and each time xx increases by 1, the value of ff is multiplied by 8. Write f(x)f(x).
  3. An exponential function ff has f(0)=9f(0) = 9, and each time xx increases by 1, the value of ff is multiplied by 3. Write f(x)f(x).
  4. An exponential function ff has f(0)=41f(0) = 41, and each time xx increases by 1, the value of ff is multiplied by 8. Write f(x)f(x).
  5. An exponential function ff has f(0)=2f(0) = 2, and each time xx increases by 1, the value of ff is multiplied by 3. Write f(x)f(x).

Watch out!

Practice ★★

  1. A population is 7 thousand at t=0t = 0 and is multiplied by 3 every 4 years. Write the population P(t)P(t), in thousands, after tt years.
  2. A population is 8 thousand at t=0t = 0 and is multiplied by 3 every 3 years. Write the population P(t)P(t), in thousands, after tt years.
  3. A population is 4 thousand at t=0t = 0 and is multiplied by 2 every 3 years. Write the population P(t)P(t), in thousands, after tt years.
  4. A population is 8 thousand at t=0t = 0 and is multiplied by 2 every 2 years. Write the population P(t)P(t), in thousands, after tt years.
  5. A population is 9 thousand at t=0t = 0 and is multiplied by 3 every 5 years. Write the population P(t)P(t), in thousands, after tt years.

Exit ticket

Three questions to check you have got it.

  1. A population is 7 thousand at t=0t = 0 and is multiplied by 3 every 4 years. Write the population P(t)P(t), in thousands, after tt years.
  2. A population is 8 thousand at t=0t = 0 and is multiplied by 3 every 3 years. Write the population P(t)P(t), in thousands, after tt years.
  3. A population is 4 thousand at t=0t = 0 and is multiplied by 2 every 3 years. Write the population P(t)P(t), in thousands, after tt years.

Summary card

Writing an exponential function

  • f(x)=a⋅bxf(x) = a \cdot b^x: a=f(0)a = f(0), b=f(1)f(0)b = \dfrac{f(1)}{f(0)}.
  • Multiplied by bb every nn units: f(x)=a⋅bxnf(x) = a \cdot b^{\frac{x}{n}}.

Watch out: the starting value is f(0)f(0), and it goes in front, not in the base.

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

Challenge ★★★

  1. An exponential function has f(1)=18f(1) = 18 and f(3)=72f(3) = 72. Find f(0)f(0).

5. 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.

6. 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").