Grade by GradeEssential student suppliesSign in
C. Content · Foundations of Mathematics and Pre-calculus 10: Powers, Polynomials, Linear Functions, Trigonometry and Pay

Relations and Functions: Domain, Range and Function Notation

BC FMPC 10: domain and range BC FMPC 10: function notationAbout 65 minutes
Learning goals
  • I can tell whether a relation is a function from a list, table, arrow diagram, graph or equation.
  • I can state the domain and range of a relation, in context and without context.
  • I can use function notation to evaluate a function and to find an input for a given output.
  • I can connect a graph to the situation it describes.

Words to know

relation
A connection between two sets of values, often shown as ordered pairs (x, y).
function
A relation in which each input (x-value) has exactly one output (y-value).
domain
The set of all possible input values (x-values) of a relation.
range
The set of all possible output values (y-values) of a relation.
function notation
f(x), read 'f of x', means the output of function f when the input is x.
vertical line test
A graph is a function if no vertical line crosses it more than once.

Relations and functions

A relation pairs inputs with outputs, for example (student, birth month) or (hours worked, pay). A relation can be shown as ordered pairs, a table, an arrow diagram, a graph or an equation.

A function is a special relation: every input has exactly one output. Two different inputs may share an output (two students can be born in May), but one input cannot have two outputs.

A: a functionB: not a functioninput1234output579input1234output579
Arrow diagrams. In A, every input has exactly one arrow (3 and 4 share the output 9, which is allowed), so A is a function. In B, the input 4 has two arrows (to 5 and to 9), so B is not a function.

Tests for a function

  • Ordered pairs or a table: look for a repeated x-value with different y-values. {(1, 2), (2, 3), (1, 4)} is not a function: x = 1 goes to 2 and 4.
  • Graph: use the vertical line test. A circle fails it; a non-vertical line passes it.
  • Equation: solve for y. If one x can give two y-values (as in x^2 + y^2 = 25, where x = 0 gives y = 5 or y = -5), it is not a function.

Domain and range

The domain is every allowed input; the range is every resulting output. In a situation, think about which values make sense.

  • Listed values: {-2, 2, 3}.
  • An interval, written in words, with inequalities or in set notation: {x | 0 ≤ x ≤ 20, x ∈ R} means 'all real numbers x from 0 to 20'.
  • A whole line y = 2x + 1 has domain and range of all real numbers: {x | x ∈ R} and {y | y ∈ R}.
  • Discrete data (such as numbers of tickets) use only certain values; continuous data (such as time) use every value in an interval.

Function notation

Instead of y = 3x - 5, you can write f(x) = 3x - 5. Then f(4) means 'the output when x = 4': f(4) = 3(4) - 5 = 7. The point (4, 7) is on the graph.

f(x) does not mean f times x. It is a name for the output.

Worked example

Example 1: Using function notation

For f(x) = 3x - 5, find (a) f(4), (b) f(-2) and (c) the value of x for which f(x) = 10.

  1. (a) f(4) = 3(4) - 5 = 12 - 5 = 7.
  2. (b) f(-2) = 3(-2) - 5 = -6 - 5 = -11.
  3. (c) Set the output equal to 10: 3x - 5 = 10, so 3x = 15 and x = 5.
  4. Check (c): f(5) = 15 - 5 = 10.

(a) 7 (b) -11 (c) x = 5

Worked example

Example 2: Domain and range in context

A 5000 L hot tub drains at a constant 250 L per minute. The volume left is V(t) = 5000 - 250t, where t is the time in minutes. State the domain and range in context.

  1. The tub is empty when V = 0: 5000 - 250t = 0, so t = 20 min.
  2. Time can't be negative and the model stops when the tub is empty: domain {t | 0 ≤ t ≤ 20, t ∈ R}.
  3. The volume goes from 5000 L down to 0 L: range {V | 0 ≤ V ≤ 5000, V ∈ R}.
  4. Time and volume are continuous, so every value in each interval is allowed.

Domain: 0 ≤ t ≤ 20 minutes; range: 0 ≤ V ≤ 5000 litres.

510152020040060080010000tdwalksvisitsbikes
Connecting a graph and a story. The distance d from home (in metres) over time t (in minutes): a teen walks 800 m to a friend's place in 10 min, visits for 5 min, then bikes home in 5 min. The flat part means distance is not changing; the steeper part means faster travel.
SituationShape of the graphDiscrete or continuous?
Cost of movie tickets at $14 eachseparate points rising in a linediscrete (whole tickets)
Water level in a draining tubsolid line or curve going downcontinuous
Waiting at a red light (distance from home)flat sectioncontinuous
Number of people on a ferry at each sailingseparate pointsdiscrete
Matching situations to graphs: the shape tells the story, and the type of data decides between points and a solid line.

Domain and range in context

For domain and range in a situation, ask: Can this quantity be negative? Can it be a fraction? Is there a maximum? Those three questions usually settle it.

Hands-on activity

Graph a story

Sketch a distance-time graph for your trip to school (or another trip you take): include any stops, slow parts and fast parts. Swap with a family member or classmate without saying what happened, and have them tell your story from the graph. State the domain and range of your graph.

Just for fun

The notation f(x) was popularized in the 1700s by the Swiss mathematician Leonhard Euler, who also made the symbols e, i and π standard. He kept producing major work even after losing most of his eyesight.

Your turn

1

Is {(1, 2), (2, 3), (1, 4)} a function? Explain.

2

Is {(-2, 4), (2, 4), (3, 9)} a function? State its domain and range.

3

For g(x) = x^2 - 4, find g(-3) and g(0).

4

For h(x) = -2x + 7, find x when h(x) = -3.

5

Is the relation x^2 + y^2 = 25 (a circle) a function? Explain.

6

Tickets cost $14 each, and a family buys between 0 and 6 tickets. Give the domain and range of cost C(n) = 14n.

More practice

1

For f(x) = 4 - x, find f(a + 1).

2

For f(x) = 2x + 1, find f(3) + f(-1).

3

A graph is a line segment from (-2, 1) to (4, 7), including both endpoints. State the domain and range.

4

A tree planter is paid by the number of trees planted. Name the independent and dependent variables.

5

In the walking and biking graph above, what is the range? Interpret it.

Check your understanding

Quiz

1.

Which relation is a function?

2.

If f(x) = 5 - 2x, what is f(-3)?

3.

A phone battery drains from 100% to 0% over 16 hours. What is a reasonable domain for battery level as a function of time t?

4.

For g(x) = 3x + 1, which x gives g(x) = 13?

For parents and teachers

How to help: Ask your teen for everyday examples of relations that are and are not functions (a person and their birth date is a function; a person and their phone numbers may not be). Have them read f(x) aloud as 'f of x' so they don't treat it as multiplication.

Common mistakes:

  • Thinking a function can't have repeated y-values. Only repeated x-values with different y-values break the rule.
  • Mixing up domain (x, inputs) and range (y, outputs).
  • Reading f(4) = 7 as 'f times 4'.
  • Using a solid line for discrete data, or listing whole numbers only for continuous data.