23

2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Embed Size (px)

Citation preview

Page 1: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented
Page 2: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

2.7 Piecewise Functions

p. 114

Page 3: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Up to now, we’ve been looking at functions represented by a single equation.

In real life, however, functions are represented by a combination of equations, each corresponding to a part of the domain.

These are called piecewise functions.

Page 4: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

1 ,13

1 ,12

xifx

xifxxf

•One equation gives the value of f(x) when x ≤ 1•And the other when x>1

Page 5: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Evaluate f(x) when x=0, x=2, x=4

2 ,12

2 ,2)(

xifx

xifxxf

•First you have to figure out which equation to use•You NEVER use both

X=0This one fitsInto the top equation

So:0+2=2f(0)=2

X=2This one fits hereSo:2(2) + 1 = 5f(2) = 5

X=4

This one fits hereSo:2(4) + 1 = 9f(4) = 9

Page 6: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Graph:

1 ,3

1 ,)( 2

321

xifx

xifxxf

•For all x’s < 1, use the top graph (to the left of 1)

•For all x’s ≥ 1, use the bottom graph (to the •right of 1)

Page 7: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

1 ,3

1 ,)( 2

321

xifx

xifxxf

x=1 is the breakingpoint of the graph.

To the left is the topequation.

To the right is thebottom equation.

Page 8: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Graph:

2 ,1

2 ,32

32

)(xifx

xifxxf

Page 9: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Step Functions

43 ,432 ,321 ,210 ,1

)(

xifxifxifxif

xf

Page 10: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

43,432,321,210,1

)(

xifxifxifxif

xf

Page 11: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Graph :

01,412,323,234,1

)(

xifxifxifxif

xf

Page 12: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented
Page 13: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented
Page 14: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

2.7 (continued)Writing Equations for Piecewise Functions and Word Problemsp. 115

Page 15: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Writing a piecewise function given the graph.

The break in the graphIs at x=0.

To the left of x=0 the graph is part of the line thru (-2,0) & (0,2)

An equation of this line is:y = x + 2 y = x + 2

To the right of x=0, theGraph is part of the Line thru (0,0) & (2,2)

y = x +0y = x

Notice where the circle & dot are!!

Page 16: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

The piecewise function is:

0 ,

0 ,2)(

xifx

xifxxf

(open dot)

(closed dot)

Page 17: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Write the equation of:

1 ,21

21

1 ,2)(

xifx

xifxxf

Page 18: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

You have a summer job that pays time and a half for overtime. (If you work more than 40 hours) After that it is 1.5 times your hourly rate of $7.00/hr.

1. Write and graph a piecewise function that gives your weekly pay P in terms of the number hours you work h.

2. How much will you make if you work 45 hours?

Page 19: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

From 0 to 40 hours you get $7.00/hr: 7h

over 40 you get: 7(40) + (1.5)(7)(h-40) = 7(40) + 10.5(h-40)=10.5h - 140The function is:

40 ,1405.10

400 ,7)(

hifh

hifhhP

Page 20: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

So the graph is:

Page 21: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

2. P(h) = 10.5h - 140

P(45) = 10.5(45) - 140

= $332.50 for 45 hours of work

Page 22: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Assignment

Page 23: 2.7 Piecewise Functions p. 114 Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented

Assignment