Real functions: the vertical line test, domain, range and piecewise rules
الأسبوع 1 · الدوال الحقيقية: اختبار الخط الرأسي ومجال الدالة ومداها والدالة متعددة التعريف وإيجاد المجال من القاعدة والعمليات على الدوال · 3 دروس
2
Piecewise-defined functions: one rule on each part of the domain, graphing them with open and closed end points and reading the domain and range
General Mathematics Sec 2 Term 1, Unit 1, Lesson 1
GoalGraph a function that has a different rule on each part of its domain, and read its domain and range.
New words
piecewise function · a function with a different rule on each part of its domainopen circle · a point that the curve approaches but does not includeclosed dot · a point that belongs to the graph
Explanation
Many real rules change with the input: a parcel price, a bus fare, a tax. A piecewise function gives one rule for each part of the domain, written with the condition on x beside each rule. To graph it, treat each piece alone. Plot the end points of the piece. If the end point is included (≤ or ≥), draw a closed dot. If it is left out (< or >), draw an open circle at the place where the piece stops. To read the domain, join all the parts: they are the x-values the pieces cover. To read the range, find the outputs of each piece and join them, noting that different pieces can give the same output. Always check that each x belongs to exactly one piece, so that the vertical line test is passed.
Worked examples
Let f(x) = 4 − x for −1 ≤ x < 2 and f(x) = x − 1 for 2 ≤ x ≤ 6. Then f(−1) = 5, f(0) = 4, f(2) = 1 (second rule, since 2 is in the second piece), f(3) = 2. Domain [−1, 6]. First piece: outputs from 5 down to near 2, not including 2, so ]2, 5]. Second piece: [1, 5]. Range: [1, 5].
A parcel bus charges, in LE, c(x) = 20 for 0 < x ≤ 5 kg, c(x) = 4x for 5 < x ≤ 15, and a flat 70 for 15 < x ≤ 30. A 12 kg parcel costs 4 × 12 = 48 LE; 15 kg costs 60 LE; 16 kg costs 70 LE. The jump at 15 kg shows as an open circle at (15, 70). Range: {20}, ]20, 60] and {70} together, that is [20, 60] ∪ {70}.
h(x) = x + 2 for x < 0 and h(x) = 2 for x ≥ 0. Then h(−3) = −1 and h(0) = 2. Domain R. Range: the first piece gives ]−∞, 2[ and the second gives {2}, so the range is ]−∞, 2].
Class activity
Make your own: a piece of rule 3 for x < 1 and a piece of rule x + 2 for x ≥ 1. Plot a closed dot or an open circle at x = 1 for each piece. What is the value at x = 1? What do you notice about the two pieces?
Practice
1
For f(x) = 4 − x on [−1, 2[ and x − 1 on [2, 6] (the example above), find f(1), f(4) and f(6).