Real functions: the vertical line test, piecewise rules, domains, operations and composition
الأسبوع 1 · الدوال الحقيقية: اختبار الخط الرأسي ومجال الدالة ومداها والدالة متعددة التعريف وإيجاد المجال من القاعدة والعمليات على الدوال وتركيبها · 3 دروس
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.