Login

What are Piecewise Functions?

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: How to Find the Domain of Piecewise Functions

You're on a roll. Keep up the good work!

Take Quiz Watch Next Lesson
 Replay
Your next lesson will play in 10 seconds
  • 0:06 What's Your Function?
  • 0:38 Specific Types of…
  • 1:21 Examples of Piecewise…
  • 2:30 Evaluating Piecewise Functions
  • 4:10 Real World Piecewise…
  • 6:28 Lesson Summary
Add to Add to Add to

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Login or Sign up

Timeline
Autoplay
Autoplay
Create an account to start this course today
Try it free for 5 days!
Create An Account

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Jennifer Beddoe
A piecewise function is a certain type of function that is made up of different parts. This lesson will define and describe piecewise functions and teach you how to identify them and how to write them.

What's your Function?

When we talk about a person's function, we are talking about their job or role, the thing that they do. In math, a function is defined as a set of outputs related to specific inputs. This really just means that a function is an equation with a specific job to do. When you input a certain number into the equation, you will get a specific and unique number from the equation. Just like, for example, the function of the letter carrier. They get the mail (input) and deliver it to the proper address (output).

Specific Types of Mathematical Functions

There are many different types of functions, just as there are multiple different types of career options. One type of mathematical function is called a piecewise function. A piecewise function is a function that has different parts, or pieces. Each part of the piecewise function has its own specific job that it performs when the conditions are correct.

For example:

f(x) = x - 2, x < 3

f(x) = (x - 1)2, x ≥ 3

This function behaves differently if the input is < 3 than it does if the input is ≥ 3. The most common piecewise function is the absolute value function.

null

Examples of Piecewise Functions

Here are some more examples of piecewise functions. As you can see, they do not have to be limited to only two equations, they can have many parts.

For example:

f(x) = 4 - x, x ≤ -4

f(x) = (x + 2)/2, x > -4

Or how about:

f(x) = -3, x > 1

f(x) = -2x, x = 1

f(x) = x/2, x < 1

And how about this one:

f(x) = -x, x < 0

f(x) = x2, 0 ≤ x < 4

f(x) = x - 5, 4 ≤ x < 6

f(x) = x/2, x ≥ 6

Evaluating Piecewise Functions

At some point, you may need to evaluate a piecewise function, that is, determine the output value when given certain input values. Take this function for example:

f(x) = 4 - x, x ≤ -4

f(x) = (x + 2)/2, x > -4

If you were asked to evaluate this function when x = 2 and x = -5, where would you start?

This first thing to do is determine which function describes x at 2 and which one describes x at -5.

By looking at the equations, we see that when x > -4, the equation used is f(x) = (x + 2)/2. So, for our first number x = 2, this is the equation we will use since 2 > -4. Solve this equation by plugging 2 in for x to get f(2) = (2 + 2)/2 = 4/2 = 2. The first evaluation gives us the point (2, 2).

For the next number x = -5, we want to use the equation f(x) = 4 - x because -5 < -4. Solving this equation gives us f(-5) = 4 - (-5) = 4 + 5 = 9. This gives us the point (-5, 9).

Real World Piecewise Functions

Piecewise functions are not just mathematical exercises. They do have practical applications. Take this example.

Your dog groomer charges you based on the weight of your dog. If your dog is 40 pounds or less, she charges $30 for a wash, but if your dog is over 40 pounds, she charges $30 plus $2 for every pound over 40. Write a piecewise equation to describe her fees. What would she charge to wash a 65 pound Dalmatian?

To unlock this lesson you must be a Study.com Member.
Create your account

Register for a free trial

Are you a student or a teacher?
I am a teacher
What is your educational goal?
 Back

Unlock Your Education

See for yourself why 30 million people use Study.com

Become a Study.com member and start learning now.
Become a Member  Back

Earning College Credit

Did you know… We have over 95 college courses that prepare you to earn credit by exam that is accepted by over 2,000 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it free for 5 days!
Create An Account
Support