22
Piecewise Functions • Objective: Students will be able to graph, write and evaluate piecewise functions.

Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Embed Size (px)

Citation preview

Page 1: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Piecewise Functions

• Objective: Students will be able to graph, write and evaluate piecewise functions.

Page 2: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Relation – a mapping of input and output values

Function - a relation that has a unique output for each input ( every x has a unique y )

vertical line test – a relation is a function if and only if no vertical line intersects the graph of the relation at more than one point.

Domain – the input values, x values, independent variable

Range – the output values, y values, dependent variable

Page 3: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

• 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: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Piecewise FunctionsA function made up of a combination of

equations, each corresponding to a part of the domain.

Page 5: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

1 ,13

1 ,12

xifx

xifxxf

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

Page 6: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

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 7: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

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 8: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

12

3, 1

2( )3, 1

x if xf x

x if x

x=1 is the breakingpoint of the graph.

To the left is the topequation.

To the right is thebottom equation.

Page 9: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Graph:

1, 2( )

1, 2

x if xf x

x if x

Point of Discontinuity

Page 10: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Step Functions

43 ,432 ,321 ,210 ,1

)(

xifxifxifxif

xf

Page 11: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

43,432,321,210,1

)(

xifxifxifxif

xf

Page 12: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Graph :

01,412,323,234,1

)(

xifxifxifxif

xf

Page 13: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions
Page 14: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Graphing a Piecewise Function

Graph each part of the function individually but put them on the same graph

Graph this function:

-x + 3, if x ≥ 1

1,2

3

2

1)( ifxxxf

Page 15: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Evaluating a Piecewise Function Evaluate f(x) when:

x = 0, 2 and 4

f(x) = x + 2, if x <2 2x + 1, if x ≥ 2

Page 16: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Snowstorm

• During a ten hour snowstorm it snows at a rate of 1 inch per hour for the first 3 hours, at a rate of 2 inches per hour for the next six hours and 1 inch per hour for the final hour.

• Write and graph a piecewise function that gives the depth of snow during the snowstorm. How many inches of snow accumulate from the storm?

Page 17: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

The Absolute Value Function

The Absolute

An Absolute Value Function is a famous Piecewise Function.It has two pieces:•below zero: -x

•from 0 onwards: x

f(x) = |x|

Page 18: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Step Functionsthe graphs resemble a set of stair steps

The greatest integer function is a step functionFor every real number x, g(x) is the greatest integer less

than or equal to x

Page 19: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Writing a piecewise function

Page 20: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

Using a step function

A parking garage charges $3 for the first hour and $8 for a maximum of twelve hours

($3 for the first hour and $8 for hours 2-12)Write and graph a piecewise function for the parking charges.

Page 21: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

You have a summer job that pays time and a half for overtime. If you work more than 40 hours per week, your hourly wage for the extra hours is 1.5 times your normal hourly wage of $7.

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

How much will you get paid if you work 45 hours?

Page 22: Piecewise Functions Objective: Students will be able to graph, write and evaluate piecewise functions

14.

You have a summer job that pays time and a half for overtime. If you work more than 40 hours per week, your hourly wage for the extra hours is 1 1/2 times your normal hourly wage of $10.

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

b.) How much will you get paid if you work 46 hours?