Real functions: the vertical line test, piecewise rules, domains, operations and composition
Week 1 Β· Real functions: the vertical line test, domain and range from a graph, piecewise-defined functions, the domain of a rule, operations on functions and composition Β· 3 lessons
2
Piecewise-defined functions, and the domain of a rule: no zero denominator, no negative under an even root
Pure Mathematics Sec 2 Term 1, Unit 1, Lesson 1
GoalEvaluate and graph a rule given in pieces, and find the domain of a rule.
New words
piecewise function Β· a function with a different formula on each part of its domainexcluded value Β· an input that must be removed from the domain
Explanation
Many real rules change. A felucca owner charges 40 LE an hour for the first 3 hours and 30 LE for each extra hour. So the rule is 40h for 0 β€ h β€ 3, and 120 + 30(h β 3) for 3 < h β€ 8. Each input belongs to exactly one piece, so it is still a function. To find f(a), first decide which piece contains a. When we draw it, each piece is drawn only on its own part of the domain. A piece may stop at an open end: the curve comes as close as we like but the point is not on the graph, so it can change the range. Now the domain of a rule such as 1/(xΒ² β 16) or β(5 β x), when nobody tells us. Two things are impossible: dividing by zero, and taking an even root (such as a square root) of a negative number. So we remove every x that makes a denominator 0 and keep only the x that make the number under an even root at least 0. An odd root, such as a cube root, accepts every real number.
Worked examples
Felucca hire: how much for 2 hours, 5 hours and 8 hours? 2 is in the first piece: 40 Γ 2 = 80 LE. 5 is in the second piece: 120 + 30 Γ 2 = 180 LE. 8: 120 + 30 Γ 5 = 270 LE. At h = 3 both pieces give 120 LE, so the two parts meet.
f(x) = x + 1 for β1 β€ x < 2 and f(x) = 4 β x for 2 β€ x β€ 3. First piece: values from 0 up to, but not including, 3 (the point (2, 3) is an open end: it is not on the graph). Second piece: f(2) = 2 down to f(3) = 1. The range is [0, 3[ and the domain is [β1, 3].
Domain of f(x) = (x + 1)/(xΒ² β 16): xΒ² β 16 = 0 for x = 4 and x = β4, so the domain is R β {β4, 4}. Domain of g(x) = β(5 β x): 5 β x β₯ 0, so x β€ 5 and the domain is ]ββ, 5].
Class activity
Remove or keep. For which x is x β 7 inside a square root allowed? And for which x is 1/(x β 7) allowed? Say why the answers differ at x = 7.
Practice
1
Using the felucca rule, find the cost of 3 hours and of 7 hours.
3 hours: 40 Γ 3 = 120 LE. 7 hours: 120 + 30 Γ 4 = 240 LE.
2
f(x) = 2x for x < 1 and f(x) = 5 for x β₯ 1. Find f(β3), f(1) and f(4).
f(β3) = β6 (first piece). f(1) = 5 and f(4) = 5 (second piece, because 1 β₯ 1).
3
Find the domain of 1/(xΒ² β 9x + 20).
xΒ² β 9x + 20 = (x β 4)(x β 5) = 0 at x = 4 and 5, so the domain is R β {4, 5}.
4
Find the domain of β(2x + 6) and of the cube root of (2x + 6).
2x + 6 β₯ 0 gives x β₯ β3: domain [β3, β[. The cube root accepts every number: domain R.
5
For which k does 1/(xΒ² β 4x + k) have the domain R β {2}?
The denominator must be zero only at x = 2, a double root: xΒ² β 4x + 4 = (x β 2)Β². So k = 4.