Functions and sequences

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. What is a function: one output for each input

Warm-up

Three quick questions from earlier lessons.

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 6, then add 6. Which input gives the output 24?
  2. A function's rule: multiply the input by 4, then add 9. Which input gives the output 21?

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.

2. 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+3f(x) = 2x^2 + 3. Find f(−3)f(-3).
  2. f(x)=4x2+8f(x) = 4x^2 + 8. Find f(−2)f(-2).
  3. f(x)=4x2+2f(x) = 4x^2 + 2. Find f(−5)f(-5).
  4. f(x)=5x2+5f(x) = 5x^2 + 5. Find f(−4)f(-4).
  5. f(x)=3x2+3f(x) = 3x^2 + 3. Find f(−4)f(-4).

Watch out!

Practice ★★

  1. f(x)=x2+3f(x) = x^2 + 3. Find f(2+3)f(2 + 3).
  2. f(x)=x2+2f(x) = x^2 + 2. Find f(4+4)f(4 + 4).
  3. f(x)=x2+7f(x) = x^2 + 7. Find f(4+1)f(4 + 1).
  4. f(x)=x2+3f(x) = x^2 + 3. Find f(3+3)f(3 + 3).
  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+3f(x) = x^2 + 3. Find f(2+3)f(2 + 3).
  2. f(x)=x2+2f(x) = x^2 + 2. Find f(4+4)f(4 + 4).
  3. f(x)=x2+7f(x) = x^2 + 7. Find f(4+1)f(4 + 1).

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

3. Domain and range in interval notation

Warm-up

Three quick questions from earlier lessons.

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.

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

Warm-up

Three quick questions from earlier lessons.

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)=3x2f(x) = 3x^2 from x=0x = 0 to x=6x = 6.
  2. Find the average rate of change of f(x)=4x2f(x) = 4x^2 from x=1x = 1 to x=5x = 5.
  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)=1x2f(x) = 1x^2 from x=1x = 1 to x=4x = 4.

Watch out!

Practice ★★

  1. A tank holds 16 liters at time 0 and 6161 liters after 5 minutes. What is the average rate of change of the volume, in liters per minute?
  2. A tank holds 29 liters at time 0 and 4949 liters after 4 minutes. What is the average rate of change of the volume, in liters per minute?
  3. A tank holds 12 liters at time 0 and 3636 liters after 6 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)=3x2f(x) = 3x^2 from x=0x = 0 to x=6x = 6.
  2. Find the average rate of change of f(x)=4x2f(x) = 4x^2 from x=1x = 1 to x=5x = 5.
  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.

5. Transformations: shifts and reflections

Warm-up

Three quick questions from earlier lessons.

Discover

Move the sliders and watch the graph of y=(x−h)2+ky = (x - h)^2 + k.

The graph of y = (x − h)² + k, a parabola whose vertex is at (h, k) and moves with the sliders.

When hh goes from 0 to 2, which way does the graph move?

  1. To the right
  2. To the left

Key idea

Changing the rule moves or flips the graph without changing its shape.

y=f(x−h)+ky = f(x - h) + k moves the graph of ff by hh units to the right and kk units up. y=−f(x)y = -f(x) reflects it across the xx-axis; y=f(−x)y = f(-x) reflects it across the yy-axis.

A change inside f(… )f(\dots) acts on xx (horizontally); a change outside acts on yy (vertically).

Worked example

Describe y=(x+1)2−3y = (x + 1)^2 - 3 compared with y=x2y = x^2.

1 unit to the left
x + 1 = x − (−1): h = −1.
3 units down
− 3 outside: k = −3.
Vertex: (−1,−3)(-1, -3)
The vertex (0, 0) moves with the graph.

Your turn, guided

Your turn: y=(x−4)2+2y = (x - 4)^2 + 2.

4 units to the right
x − 4: h = 4.
2 units up
+ 2 outside.
The vertex is at x=4x = 4
The vertex moves from x = 0 to x = …

Practice ★

  1. The graph of y=x2y = x^2 is moved 1 units to the right and 6 units down. Write the equation of the new graph.
  2. The graph of y=x2y = x^2 is moved 3 units to the right and 1 units down. Write the equation of the new graph.
  3. The graph of y=x2y = x^2 is moved 4 units to the right and 6 units down. Write the equation of the new graph.
  4. The graph of y=x2y = x^2 is moved 7 units to the right and 1 units down. Write the equation of the new graph.

Watch out!

Practice ★★

  1. Draw the graph of y=(x−1)2−3y = (x - 1)^2 - 3: place the vertex and one more point.
  2. Draw the graph of y=(x−1)2−1y = (x - 1)^2 - 1: place the vertex and one more point.
  1. Match each equation with what it does to the graph of y=f(x)y = f(x).
    1. y=f(x)+3y = f(x) + 3
    2. y=f(x−3)y = f(x - 3)
    3. y=−f(x)y = -f(x)
    4. y=f(−x)y = f(-x)
    1. moves it up 3 units
    2. moves it 3 units to the right
    3. reflects it across the x-axis
    4. reflects it across the y-axis

Exit ticket

Three questions to check you have got it.

  1. The graph of y=x2y = x^2 is moved 1 units to the right and 6 units down. Write the equation of the new graph.
  2. The graph of y=x2y = x^2 is moved 3 units to the right and 1 units down. Write the equation of the new graph.
  3. The graph of y=x2y = x^2 is moved 4 units to the right and 6 units down. Write the equation of the new graph.

Summary card

Shifts and reflections

  • f(x−h)f(x - h): hh units right. f(x)+kf(x) + k: kk units up.
  • −f(x)-f(x): flip across the xx-axis. f(−x)f(-x): flip across the yy-axis.
  • Inside f(… )f(\dots) acts on xx; outside acts on yy.

Watch out: f(x+3)f(x + 3) moves the graph left.

6. Sequences: explicit and recursive formulas

Warm-up

Three quick questions from earlier lessons.

Discover

A sequence starts 5,8,11,14,…5, 8, 11, 14, \dots Which rule gives the next term from the one before?

  1. Add 3
  2. Multiply by 3

Key idea

A sequence is a function whose inputs are the whole numbers 1,2,3,…1, 2, 3, \dots: ana_n is its nnth term.

An explicit formula gives ana_n from nn directly (for example an=3n+2a_n = 3n + 2). A recursive formula gives a first term and a rule from one term to the next (for example a1=5a_1 = 5, an+1=an+3a_{n+1} = a_n + 3).

Worked example

a1=2a_1 = 2 and an+1=3an−1a_{n+1} = 3a_n - 1. Find a4a_4.

a2=3⋅2−1=5a_2 = 3 \cdot 2 - 1 = 5
Apply the rule to a₁.
a3=3⋅5−1=14a_3 = 3 \cdot 5 - 1 = 14
Then to a₂.
a4=3⋅14−1=41a_4 = 3 \cdot 14 - 1 = 41
Then to a₃.

Your turn, guided

Your turn: an=n2−1a_n = n^2 - 1. Find a5a_5.

a5=52−1a_5 = 5^2 - 1
Replace n by 5.
a5=24a_5 = 24
25 − 1.

Practice ★

  1. an=n2+5a_n = n^2 + 5. Complete the table.
  2. an=n2+9a_n = n^2 + 9. Complete the table.

Watch out!

Practice ★★

  1. a1=3a_1 = 3 and an+1=2an−7a_{n+1} = 2a_n - 7. Find a3a_3.
  2. a1=6a_1 = 6 and an+1=2an−3a_{n+1} = 2a_n - 3. Find a3a_3.
  3. a1=4a_1 = 4 and an+1=2an−6a_{n+1} = 2a_n - 6. Find a3a_3.
  1. Write a formula for ana_n, starting at n=1n = 1: 1,6,11,16,…1,6, 11, 16, \dots
  2. Write a formula for ana_n, starting at n=1n = 1: 3,10,17,24,…3,10, 17, 24, \dots
  3. Write a formula for ana_n, starting at n=1n = 1: 8,14,20,26,…8,14, 20, 26, \dots

Exit ticket

Three questions to check you have got it.

  1. Write a formula for ana_n, starting at n=1n = 1: 1,6,11,16,…1,6, 11, 16, \dots
  2. Write a formula for ana_n, starting at n=1n = 1: 3,10,17,24,…3,10, 17, 24, \dots
  3. Write a formula for ana_n, starting at n=1n = 1: 8,14,20,26,…8,14, 20, 26, \dots

Summary card

Sequences

  • Explicit: ana_n straight from nn.
  • Recursive: a first term and a rule from ana_n to an+1a_{n+1}.

Watch out: check your formula with n=1n = 1.

7. Arithmetic sequences

Warm-up

Three quick questions from earlier lessons.

Discover

A taxi charges 3 dollars, plus 2 dollars per mile. Mile by mile, the fare is 5,7,9,…5, 7, 9, \dots What does the 10th mile cost in total?

  1. 23 dollars
  2. 25 dollars

Key idea

An arithmetic sequence adds the same number dd (the common difference) each time.

an=a1+(n−1)da_n = a_1 + (n - 1)d. From apa_p to aqa_q there are q−pq - p steps, so d=aq−apq−pd = \dfrac{a_q - a_p}{q - p}.

Worked example

An arithmetic sequence has a3=11a_3 = 11 and a8=31a_8 = 31. Find dd and a20a_{20}.

d=31−115=4d = \dfrac{31 - 11}{5} = 4
5 steps from a₃ to a₈.
a1=11−2⋅4=3a_1 = 11 - 2 \cdot 4 = 3
Back 2 steps from a₃.
a20=3+19⋅4=79a_{20} = 3 + 19 \cdot 4 = 79
19 steps from a₁.

Your turn, guided

Your turn: a1=7a_1 = 7, d=5d = 5. Find a12a_{12}.

a12=7+11⋅5a_{12} = 7 + 11 \cdot 5
11 steps.
a12=62a_{12} = 62
7 + 55.

Practice ★

  1. An arithmetic sequence has a1=14a_1 = 14 and common difference 2. Find a43a_{ 43 }.
  2. An arithmetic sequence has a1=17a_1 = 17 and common difference 3. Find a24a_{ 24 }.
  3. An arithmetic sequence has a1=8a_1 = 8 and common difference 5. Find a26a_{ 26 }.
  4. An arithmetic sequence has a1=20a_1 = 20 and common difference 5. Find a28a_{ 28 }.

Watch out!

Practice ★★

  1. In an arithmetic sequence, a4=28a_{ 4 } = 28 and a9=68a_{ 9 } = 68. Find the common difference.
  2. In an arithmetic sequence, a3=18a_{ 3 } = 18 and a7=34a_{ 7 } = 34. Find the common difference.
  3. In an arithmetic sequence, a3=11a_{ 3 } = 11 and a10=25a_{ 10 } = 25. Find the common difference.
  1. What kind of sequence is 3,6,12,24,…3, 6, 12, 24, \dots?
    1. Geometric, with ratio 2
    2. Arithmetic
    3. Neither

Exit ticket

Three questions to check you have got it.

  1. An arithmetic sequence has a1=14a_1 = 14 and common difference 2. Find a43a_{ 43 }.
  2. An arithmetic sequence has a1=17a_1 = 17 and common difference 3. Find a24a_{ 24 }.
  3. An arithmetic sequence has a1=8a_1 = 8 and common difference 5. Find a26a_{ 26 }.

Summary card

Arithmetic sequences

  • Add dd each time: an=a1+(n−1)da_n = a_1 + (n - 1)d.
  • d=aq−apq−pd = \dfrac{a_q - a_p}{q - p}.

Watch out: n−1n - 1 steps from a1a_1 to ana_n.

8. Geometric sequences

Warm-up

Three quick questions from earlier lessons.

Discover

A rumor spreads: 3 people know it on day 1, and each day the number triples. How many know it on day 4?

  1. 81
  2. 12
  3. 243

Key idea

A geometric sequence multiplies by the same number rr (the common ratio) each time.

an=a1⋅r n−1a_n = a_1 \cdot r^{\,n-1}, and r=an+1anr = \dfrac{a_{n+1}}{a_n}.

Worked example

Find a7a_7 for 2,6,18,…2, 6, 18, \dots

r=3r = 3
6 ÷ 2.
a7=2⋅36a_7 = 2 \cdot 3^6
6 multiplications from a₁ to a₇.
a7=1458a_7 = 1458
3⁶ = 729.

Your turn, guided

Your turn: a1=5a_1 = 5, r=2r = 2. Find a6a_6.

a6=5⋅25a_6 = 5 \cdot 2^5
5 multiplications.
a6=160a_6 = 160
5 · 32.

Practice ★

  1. A geometric sequence has a1=3a_1 = 3 and ratio 3. Find a4a_{ 4 }.
  2. A geometric sequence has a1=1a_1 = 1 and ratio 2. Find a8a_{ 8 }.
  3. A geometric sequence has a1=2a_1 = 2 and ratio 3. Find a8a_{ 8 }.
  4. A geometric sequence has a1=4a_1 = 4 and ratio 2. Find a5a_{ 5 }.

Watch out!

Practice ★★

  1. Find the common ratio of the geometric sequence 8,32,128,…8, 32, 128, \dots
  2. Find the common ratio of the geometric sequence 7,21,63,…7, 21, 63, \dots
  1. Write a formula for ana_n, starting at n=1n = 1: 2,8,32,…2, 8, 32, \dots
  2. Write a formula for ana_n, starting at n=1n = 1: 9,36,144,…9, 36, 144, \dots
  3. Write a formula for ana_n, starting at n=1n = 1: 8,40,200,…8, 40, 200, \dots

Exit ticket

Three questions to check you have got it.

  1. Write a formula for ana_n, starting at n=1n = 1: 2,8,32,…2, 8, 32, \dots
  2. Write a formula for ana_n, starting at n=1n = 1: 9,36,144,…9, 36, 144, \dots
  3. Write a formula for ana_n, starting at n=1n = 1: 8,40,200,…8, 40, 200, \dots

Summary card

Geometric sequences

  • Multiply by rr each time: an=a1r n−1a_n = a_1 r^{\,n-1}.
  • rr = a term divided by the one before.

Watch out: the exponent is n−1n - 1.