Real functions: the vertical line test, domain, range and piecewise rules
Week 1 · Real functions: the vertical line test, domain and range, piecewise-defined functions, finding the domain from a rule and operations on functions · 3 lessons
1
What a real function is: arrow and graph pictures, the vertical line test, and the range of a function drawn on an interval
General Mathematics Sec 2 Term 1, Unit 1, Lesson 1
GoalDecide whether a relation is a function, using the one-output rule and the vertical line test, and find the range of a straight-line rule on an interval.
New words
real function · a rule that gives each number x of its domain exactly one real number f(x)domain and range · the set of inputs, and the set of outputs that really occurvertical line test · a curve is a function only if no vertical line meets it twice
Explanation
A real function takes each number x in its domain and gives exactly one real number f(x). Think of a machine: the same input can never give two different outputs. In an arrow picture, every input has exactly one arrow leaving it (two inputs may share the same output). A graph shows this at a glance: draw a vertical line. It fixes one value of x, so if it meets the curve at two points, that x has two outputs and the curve is not a function (a whole vertical segment fails too, since one x would have many y values). The set of inputs is the domain; the set of outputs is the range. We write the open interval from a to b, ends not included, as ]a, b[ and the closed one as [a, b]. For a straight-line rule on a closed interval, the smallest and largest outputs come from the end points: f(x) = 2x + 3 on [1, 4] gives f(1) = 5 and f(4) = 11, so the range is [5, 11]. An end point that is left out leaves the matching end of the range open as well.
Worked examples
x
1
2
3
f(x)
4
4
7
Arrow picture: 1 → 4, 2 → 4, 3 → 7 is a function (inputs 1 and 2 may share the output 4). But 5 → 1 and 5 → 2 is not: the input 5 has two arrows.
Is the circle x² + y² = 9 the graph of a function? The vertical line x = 1 meets it at A and B, with y = 2.83 and y = −2.83 (since 1 + y² = 9 gives y² = 8). One input, two outputs: not a function. The parabola y = x² passes the test, since each vertical line meets it once.
Range of f(x) = 2x + 3 on [1, 4]: the rule is a line, so the end points decide. f(1) = 5, f(4) = 11, and every value between is reached. Range [5, 11].
g(x) = 4 − x for x in [1, ∞[. The end point 1 is included: g(1) = 3. As x grows, g falls without end. Range ]−∞, 3]. But for x in ]−∞, −1[ the point x = −1 is left out, so 4 − (−1) = 5 is never reached: the range is ]5, ∞[.
Class activity
Draw a vertical pencil line across the graph above and slide it from left to right. How many times does it meet the circle at x = 0? At x = 3? At x = 4? Which values of x give two meeting points?
Practice
1
Is y = 3x − 2 a function of x? Give its range on [0, 2].
Yes: each x gives one y. f(0) = −2, f(2) = 4, range [−2, 4].
2
The relation x = y² has the points (4, 2) and (4, −2). Is it a function of x?
No: the input 4 has two outputs, 2 and −2 (a vertical line at x = 4 meets the curve twice).
3
Find the range of f(x) = 7 − 2x on [−1, 3].
f(−1) = 9, f(3) = 1; the line falls, so the range is [1, 9].
4
Find the range of f(x) = 2x + 1 for x in ]0, ∞[.
x = 0 is left out, so f = 1 is not reached: range ]1, ∞[.
5
Find the range of f(x) = 6 − x for x in ]−∞, 2].
f(2) = 4 is reached and f grows as x falls: range [4, ∞[.