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 Algebra I only

The lessons of this topic taught in Algebra I, ready for paper.

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. Piecewise-defined functions and absolute value

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 parking lot charges 5 dollars for up to 2 hours, and 9 dollars for a longer stay. What does a stay of exactly 2 hours cost?

  1. 5 dollars
  2. 9 dollars

Key idea

A piecewise function uses a different formula on different parts of its domain.

To find f(a)f(a): first find which condition aa satisfies, then use that piece's formula. Check the boundary carefully (<< or ≤\le).

The absolute value is piecewise: ∣x∣=x|x| = x if x≥0x \ge 0, and ∣x∣=−x|x| = -x if x<0x < 0.

Worked example

f(x)={x2if x<12x+3if x≥1f(x) = \begin{cases} x^2 & \text{if } x < 1 \\ 2x + 3 & \text{if } x \ge 1 \end{cases}. Find f(1)f(1).

Use the second piece, 2x+32x + 3
Check the conditions first: 1 is not less than 1, but 1 ≥ 1.
f(1)=2⋅1+3=5f(1) = 2 \cdot 1 + 3 = 5
Replace x by 1.

Your turn, guided

Your turn, with the same ff: find f(−2)f(-2).

Use the first piece, x2x^2
−2 < 1.
f(−2)=4f(-2) = 4
(−2)² = 4.

Practice ★

  1. f(x)={x+8if x<62xif x≥6f(x) = \begin{cases} x + 8 & \text{if } x < 6 \\ 2x & \text{if } x \ge 6 \end{cases}. Find f(0)f(0).
  2. f(x)={x+42if x<109xif x≥10f(x) = \begin{cases} x + 42 & \text{if } x < 10 \\ 9x & \text{if } x \ge 10 \end{cases}. Find f(1)f(1).
  3. f(x)={x+9if x<83xif x≥8f(x) = \begin{cases} x + 9 & \text{if } x < 8 \\ 3x & \text{if } x \ge 8 \end{cases}. Find f(2)f(2).
  4. f(x)={x+25if x<1012xif x≥10f(x) = \begin{cases} x + 25 & \text{if } x < 10 \\ 12x & \text{if } x \ge 10 \end{cases}. Find f(1)f(1).

Watch out!

Practice ★★

  1. f(x)={x+2if x<12xif x≥1f(x) = \begin{cases} x + 2 & \text{if } x < 1 \\ 2x & \text{if } x \ge 1 \end{cases}. Find f(1)f(1).
  2. f(x)={x+43if x<127xif x≥12f(x) = \begin{cases} x + 43 & \text{if } x < 12 \\ 7x & \text{if } x \ge 12 \end{cases}. Find f(12)f(12).
  3. f(x)={x+6if x<23xif x≥2f(x) = \begin{cases} x + 6 & \text{if } x < 2 \\ 3x & \text{if } x \ge 2 \end{cases}. Find f(2)f(2).
  4. f(x)={x+32if x<129xif x≥12f(x) = \begin{cases} x + 32 & \text{if } x < 12 \\ 9x & \text{if } x \ge 12 \end{cases}. Find f(12)f(12).
  1. For x<7x < 7, which expression is equal to ∣x−7∣|x - 7|?
    1. 7−x7 - x
    2. x−7x - 7
    3. −x−7-x - 7
  2. For x<5x < 5, which expression is equal to ∣x−5∣|x - 5|?
    1. 5−x5 - x
    2. x−5x - 5
    3. −x−5-x - 5

Exit ticket

Three questions to check you have got it.

  1. f(x)={x+2if x<12xif x≥1f(x) = \begin{cases} x + 2 & \text{if } x < 1 \\ 2x & \text{if } x \ge 1 \end{cases}. Find f(1)f(1).
  2. f(x)={x+43if x<127xif x≥12f(x) = \begin{cases} x + 43 & \text{if } x < 12 \\ 7x & \text{if } x \ge 12 \end{cases}. Find f(12)f(12).
  3. f(x)={x+6if x<23xif x≥2f(x) = \begin{cases} x + 6 & \text{if } x < 2 \\ 3x & \text{if } x \ge 2 \end{cases}. Find f(2)f(2).

Summary card

Piecewise functions

  1. Find the piece whose condition the input satisfies.
  2. Use that piece's formula.
  3. ∣x∣=x|x| = x for x≥0x \ge 0, and −x-x for x<0x < 0.

Watch out: at a boundary, read << and ≥\ge carefully.

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

Challenge ★★★

  1. f(x)={x+aif x<14xif x≥1f(x) = \begin{cases} x + a & \text{if } x < 1 \\ 4x & \text{if } x \geq 1 \end{cases}. For which aa does the graph have no jump?

3. Transformations: shifts and reflections

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

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 1 units down. Write the equation of the new graph.
  2. The graph of y=x2y = x^2 is moved 14 units to the right and 33 units down. Write the equation of the new graph.
  3. 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.
  4. The graph of y=x2y = x^2 is moved 27 units to the right and 47 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 1 units down. Write the equation of the new graph.
  2. The graph of y=x2y = x^2 is moved 14 units to the right and 33 units down. Write the equation of the new graph.
  3. 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.

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.

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

Challenge ★★★

  1. The graph of y=(x−8)2+8y = (x - 8)^2 + 8 is reflected in the xx-axis and then shifted up 8. Give the new equation.

4. Inverse functions

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=2x+6f(x) = 2x + 6 and g(x)=x2−3g(x) = x^2 - 3. Find f(g(2))f(g(2)).
  2. f(x)=2x+9f(x) = 2x + 9 and g(x)=x+2g(x) = x + 2. Write f(g(x))f(g(x)).
  3. g(1)=5g(1) = 5, g(5)=7g(5) = 7, f(1)=7f(1) = 7 and f(5)=1f(5) = 1. Find f(g(1))f(g(1)).

Discover

f(x)=x+7f(x) = x + 7 adds 7. Which function undoes it, and gives back the number you started with?

  1. x−7x - 7
  2. 1x+7\dfrac{1}{x + 7}
  3. x+7x + 7

Key idea

The inverse function f−1f^{-1} undoes ff: it swaps inputs and outputs.

If f(a)=bf(a) = b, then f−1(b)=af^{-1}(b) = a. To find f−1(x)f^{-1}(x): write y=f(x)y = f(x), solve for xx, then rename. The graph of f−1f^{-1} is the reflection of the graph of ff across the line y=xy = x.

f−1(x)f^{-1}(x) is not 1f(x)\dfrac{1}{f(x)}: the −1-1 is not an exponent here.

Worked example

f(x)=3x−5f(x) = 3x - 5. Find f−1(x)f^{-1}(x).

y=3x−5y = 3x - 5
Name the output y.
y+5=3xy + 5 = 3x
f subtracts 5 last, so undo that first: add 5.
x=y+53x = \dfrac{y + 5}{3}
Then undo × 3: divide by 3.
f−1(x)=x+53f^{-1}(x) = \dfrac{x + 5}{3}
Rename the input x.

Your turn, guided

Your turn: f(x)=2x+6f(x) = 2x + 6.

y=2x+6y = 2x + 6
Name the output y.
y−6=2xy - 6 = 2x
Undo + 6 first.
f−1(x)=x−62f^{-1}(x) = \dfrac{x - 6}{2}
Divide by 2, then rename.

Practice ★

  1. f(x)=2x+1f(x) = 2x + 1. Find f−1(x)f^{-1}(x).
  2. f(x)=25x+61f(x) = 25x + 61. Find f−1(x)f^{-1}(x).
  3. f(x)=2x+8f(x) = 2x + 8. Find f−1(x)f^{-1}(x).
  4. f(x)=28x+84f(x) = 28x + 84. Find f−1(x)f^{-1}(x).

Watch out!

Practice ★★

  1. f(x)=3x+5f(x) = 3x + 5. Find f−1(14)f^{-1}(14).
  2. f(x)=6x+99f(x) = 6x + 99. Find f−1(195)f^{-1}(195).
  3. f(x)=2x+6f(x) = 2x + 6. Find f−1(12)f^{-1}(12).
  1. The point (2,7)(2, 7) is on the graph of ff. Tap the point that must be on the graph of f−1f^{-1}.
  2. The point (5,7)(5, 7) is on the graph of ff. Tap the point that must be on the graph of f−1f^{-1}.

Exit ticket

Three questions to check you have got it.

  1. f(x)=2x+1f(x) = 2x + 1. Find f−1(x)f^{-1}(x).
  2. f(x)=25x+61f(x) = 25x + 61. Find f−1(x)f^{-1}(x).
  3. f(x)=2x+8f(x) = 2x + 8. Find f−1(x)f^{-1}(x).

Summary card

Inverse functions

  1. Write y=f(x)y = f(x).
  2. Solve for xx, undoing the last operation first.
  3. Rename: f−1(x)f^{-1}(x). Check that f(f−1(x))=xf(f^{-1}(x)) = x.

Watch out: f−1(x)f^{-1}(x) is not 1f(x)\dfrac{1}{f(x)}.

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

Challenge ★★★

  1. f(x)=1x−2f(x) = \dfrac{1}{x - 2} for x>2x > 2. Find f−1(x)f^{-1}(x) for x>0x > 0.