Docsity

Piecewise Functions: Finding Domains and Graphs, Exams of Reasoning

Toggle sidebar
bg1
Piecewise functions
Nick Egbert
MA 158 Lesson 9
Warm-up. Find and simplify the difference quotient
f(4 + h)−f(4)
h,
where f(x) = 13x2+ 6.
Solution.
13(4 + h)2+ 6 −13(42)+6
h=13(16 + 8h+h2)+6−13 ·16 −6
h
=13 ·16 + 13 ·8h+ 13h2+ 6 −13 ·16 −6
h
=
104
z}|{
13 ·8h
h+13h2
h= 104 + 13h
Overview
This lesson is mainly concerned with finding domains of piecewise functions, and coming
up with piecewise functions for application problems. Let’s first look at the graph of
fbelow. In case it is not clear in the picture, there is a hollow circle at (−3,2) and a
filled-in circle at (−3,−4).We can break up f(x) into two functions f1(x), f2(x),and
then we can then ask some questions:
1. f1(x) = 3
2xfor what values of x?
2. f2(x) = 2 for what values of x?
3. What is the range of f?
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Piecewise Functions: Finding Domains and Graphs and more Exams Reasoning in PDF only on Docsity!

Piecewise functions

Nick Egbert

MA 158 Lesson 9

Warm-up. Find and simplify the difference quotient

f (4 + h) − f (4) h

where f (x) = 13x^2 + 6.

Solution.

13(4 + h)^2 + 6 −

13(4^2 ) + 6

h

13(16 + 8h + h^2 ) + 6 − 13 · 16 − 6 h = 13 · 16 + 13 · 8 h + 13h^2 + 6 − 13 · 16 − 6 h

︷ ︸︸ ︷^104

13 · 8 h h

13 h^2 h

= 104 + 13h

Overview

This lesson is mainly concerned with finding domains of piecewise functions, and coming up with piecewise functions for application problems. Let’s first look at the graph of f below. In case it is not clear in the picture, there is a hollow circle at (− 3 , 2) and a filled-in circle at (− 3 , −4). We can break up f (x) into two functions f 1 (x), f 2 (x), and then we can then ask some questions:

  1. f 1 (x) = 32 x for what values of x?
  2. f 2 (x) = 2 for what values of x?
  3. What is the range of f?

− 10. − 8. − 6. − 4. − 2. 2. 4. 6.

− 6.

− 4.

− 2.

0

f

Graph of f

Solution. For 1., looking at the graph, we see that x ≥ −3 is the domain for 32 x. We include −3 since the circle is filled in. For 2., the domain is x < − 3. In interval notation, these would be (− 3 , ∞) and (−∞, −3), respectively. For 3., place your pencil on the graph horizontally. If your pencil would eventually hit some part of the graph, then that value is in the range. We can certainly do this going up to ∞ since the graph goes up to the right forever. And we can keep going down all the way until y = − 4. 5. So the range is [− 4. 5 , ∞).

Remark. Remember that we always read the values off the graph from left to right, from bottom to top. Additionally, we always write intervals from smallest value to largest value.

Drawing piecewise functions

Example 1. Sketch the graph and find the following.

f (x) =

2 x + 14, if x ≤ − 3 16 − 2 x, if x > − 3

(a) Domain of f

(b) Range of f

(c) f (−12)

(d) f (−3)

(e) f (10)

More examples

Example 2. Sketch the graph of h and find the following.

h(x) =

x^2 + 5, if − 5 < x < 0 5 , if 0 ≤ x ≤ 3 9 − x, if 3 < x ≤ 10

(a) Domain of h

(b) Range of h

(c) h(−5)

(d) h(10)

(e) h(0)

(f) h(3)

(g) h(−10)

(h) h(4)

Solution. Below is the graph for f.

− 4. − 2. 2. 4. 6. 8.

− 2.

0

f

(a) We need to be careful here. Unlike the previous examples, this graph doesn’t go off to ±∞. Looking at the first inequality in the definition of h, the smallest x can be is − 5 , but not including − 5. And the largest x can be is 10, looking at the last inequality. So the domain of h is (− 5 , 10].

(b) The lowest point is when x = 10, and the y-value here is −1 (plug x into the last equation.) The highest point is when x = − 5 , and this has a y-value of (−5)^2 + 5 =

  1. But since −5 is not included in the domain, 30 is not included in the range. So the range of h is (30, −1].

(c) Since −5 was not included in the domain, h(−5) does not exist.

(d) When x = 10, we are in the 3rd^ line for h. So h(10) = − 1.

(e) When x = 0, we are in the 2nd^ line, and here h = 5, so h(0) = 5.

(f) For the same reasoning in (e), h(3) = 5.

(g) For the same reasoning in (c), h(−10) does not exist.

(h) Again, we are in the 3rd^ line, so h(4) = 9 − 4 = 5.

Example 3. Same instructions as before.

f (x) =

− 5 , if 2 < x ≤ 3 − 4 , if 3 < x < 4 − 3 , if 4 ≤ x ≤ 5 − 2 , if 5 < x ≤ 6 − 1 , if 6 < x < 7

(a) Domain of f

(b) Range of f

(c) f (2)

(d) f (3)

(e) f (7)

(f) f (3.18)

(g) f (

Solution. The graph of f is just horizontal lines at the y-values for each of the intervals specified. Make sure that you have a filled in circle on the inequalities ≤, ≥ and an open circle on the inequalities <, >.

(a) If you look closely at the inequality signs, you will see that every x is covered between 2 and 7, but 2 and 7 are not included in the domain of f , so the domain is (2, 7).

(b) Since we have just these 5 horizontal lines, there are only 5 y-values, so the range of f is {− 5 } ∪ {− 4 } {− 3 } ∪ {− 2 } ∪ {− 1 }. Note that we use the curly braces whenever we have a single point instead of an interval.

Now putting these together, we get

CB (t) =

60 , if 0 ≤ t ≤ 200

. 2 t + 20, if t > 200

(c) To find out when B becomes less expensive, it is easiest to find out when the plans are equal. To do this, we need to be careful since these are piecewise-defined functions. It should be clear that CA(t) < CB (t) for t ≤ 150. When t = 200, then CB (200) = 60 and CA(200) = .27(200) − .5 = 54 − .5 = 53. 5 < 60. So the equal each other for some t > 200. To see when they are equal we set CA(t) = CB (t) for t > 200

. 27 t − .5 =. 2 t + 20 . 07 t = 20. 5 t = 20. 5 /. 07 ≈ 292. 86 ≈ 293.

So when t > 293 , Plan B will cost less than Plan A.

Example 5. A certain county has a tax code, where 10% tax is paid on all income up to the first $10,000, a 15% tax is paid for any income over $10,000 and up to $15,000, and a tax rate of 25% is paid on all income over $25,000. Find a piecewise function to calculate the total tax T (x) on an income of x dollars.

Solution. For x ≤ 10 , 000 the rate is .1, so T (x) =. 1 x on this interval. For 10, 000 < x ≤ 25 , 000 , the rate is .15. Similar to the previous example, we need to find a point. When x = 10, 000 , then y =. 1 · 10 , 000 = 1, 000. Now using point-slope form,

T (x) = .15(x − 10 , 000) + 1, 000 (1) =. 15 x − 1500 + 1000 (2) =. 15 x − 500. (3)

Similarly for the rate of .25, we get T (x) =. 25 x − 3000 when x > 25 , 000. Putting these together,

T (x) =

. 1 x, if x ≤ 10 , 000 . 15 x, if 10, 000 < x ≤ 25 , 000 . 25 x, if x > 25 , 000

Example 6. A car rental agency has two different rental plans. Plan A costs $100 per day and includes 150 miles, and then charges $0.75 for each mile driven over 150 miles. Plan B costs $175 per day and includes 200 miles, and then charges $0.50 for each mile driven over 200 miles.

(a) Find a piecewise defined function for one day with Plan A and Plan B in terms of the number of miles driven x.

(b) After how many miles will Plan B cost less than Plan A?

Solution. (a) For Plan A, we have a flat rate of $100 for 0 ≤ x ≤ 150 , so CA(x) = 100 on this interval. For x > 150 , we have a rate (slope) of. 75 , and a point on this line is (150, 100). So the equation of the line is given by

y = .75(x − 150) + 100 =. 75 x − 112 .5 + 100 =. 75 x − 12. 5.

So CA(x) =

100 , if 0 ≤ x ≤ 150

. 75 x − 12. 5 , if x > 150

For B we do the same thing. For 0 ≤ x ≤ 200 , CB (x) = 175. Now (200, 175) is the point where the function starts increasing with a slope of. 5. So for x > 200 , we use point-slope form again:

y = .5(x − 200) + 175 =. 5 x − 100 + 175 =. 5 x + 75.

Putting this together,

CB (x) =

175 , if 0 ≤ x ≤ 200

. 5 x + 175, if x > 200

(b) If we plug in 200 to the cost function for A, we see that CA(200) = 137. 5 < 175. So for up to 200 miles, Plan A is still cheaper than Plan B. To see when B will become cheaper, we check when they are equal.

. 75 x − 12 .5 =. 5 x + 75 . 25 x = 87. 5 x = 350.

So when x = 350, the cost of each plan is equal. So for x > 350 miles, Plan B will be cheaper.

Example 7. A salesman working on commission earns 10% on all sales made up to $5000. He can then earn 15% commission on the next $10,000 in sales, and 20% on all sales above that. Find a piecewise function C for the salesman’s commission on the total sales of x dollars.

Solution. For 0 ≤ x ≤ 5000, he gets a rate of .1. So on this interval C(x) =. 1 x. Then for 5000 < x ≤ 10 , 000 , that rate changes to. 15. We need a point on this line to figure out the equation. (5000, 500) is a point on the line since when the sales total $5000,