Need Help?

Get in touch with us


Piecewise Functions

Grade 10
Sep 16, 2022

Piecewise Function

1. Understand Piecewise-Defined Functions 

How is f(x) = 2|x| related to a linear function?  

Inspect the graph of the function f(x) = 2|x|. The graph has two pieces that meet at the vertex. Each piece is part of a line.  

Find the rule for each piece of the function.  

When x ≥0, the rule is f(x) = 2x.  

When x < 0, the rule is f(x) = -2x.   

Linear Function

You can write this function in terms of its pieces, each defined for a given domain.  

Function in terms
piecewise-defined function

The function is a piecewise-defined function. A piecewise-defined function has different rules for different intervals of its domain.  

The function f(x) = 2|x| has two pieces over two intervals of the domain. For each interval, the piece is a linear function.  

2. Graph Piecewise-Defined Function 

  1. What is the graph of: 
Graph Piecewise

Graph each piece of the function for the given domain.  

Piece of the function
  1. Over what part of the domain is the function increasing? Decreasing? 

The function f increases when x ≤ 2 and decreasing when x > 2.  


3. Analyse the Graph of a Piecewise-Defined Function 

Cheyenne’s mother is reviewing the monthly water bills from the summer. Each monthly bill includes a graph like the one shown, which reflects the different rates charged for water based on usage.  

Several relatives visited Cheyenne’s family in July and their water bill is more than doubled. Assuming that the water consumption did not double that month, what is the possible explanation for the increase?  

Gallons of Water

The graph shows three tiers of pricing for water consumption: from 0 to 5000 gal, from 5001 to 10,000 gal, and more than 10,000 gal.  

The large increase in bill probably resulted from the usage increasing across one boundary of the domain, from Tier 1 to Tier 2, or Tier 2 to Tier 3.  

At the Tier 1- Tier 2 boundary 5,000 gal of usage results in a bill of $5 while using slightly more water results in a bill of at least $10.  

4. Apply a Piecewise-Defined Function  

A gym owner wants to purchase custom wristbands for marketing promotion. She thinks she will need about 75 bands. Her assistant insists that ordering over 100 wristbands will be less expensive than ordering 75. How can the assistant convince the gym owner?  

 custom wristbands


Write a rule to represent each price point.  

Let x = number of wristbands 

Let f(x) = total cost  


Write a piecewise-defined function to represent the situation.  

piecewise-defined function


Evaluate the function for f(75) and f(101).  

f(75) = 75 + 10 = 85  

f(101) = 0.5(101) = 50.5  

The cost for 75 wristbands is $85 and the cost for 101 wristbands is $50.5.  



The gym owner will spend less if she orders more than 100 wristbands.  


Question 1 

Express f(x) = -3|x| as a piecewise-defined function.   


Question 1

Here is the graph of f(x) = -3|x|. 

If x ≥ 0, f(x) = -3x  

If x < 0, f(x) = 3x.   

The graph

Question 2 

Graph the following function:  

Question 2



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

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

x = 0, f(x) = -2  

x = 1, f(x) = -1  

x = 2, f(x) = -1  

x = 3, f(x) = -3  

x = 4, f(x) = -5  

Question 3 

In the example explained in section 1.4, what is the difference in cost between one order of 200 wristbands, two orders of 100 wristbands each, and four orders of 50 wristbands each? 


50 wristbands

x = 200  

f(x) = 0.5x = 0.5 × 200 = 100  

1 order of 200 wristbands costs $100.  

x = 100  

f(x) = x + 10 = 100 + 10 = $110  

2 orders of 100 wristbands cost $220.  

x = 50 

f(x) = 2x + 20 = 2 × 50 + 20 = $120  

4 orders of 50 wristbands cost $480.  


Express the following functions as piecewise-defined functions:

  1. f(x) = 0.6|x|
  2. f(x) = (1/7) |x|
  3. f(x) = Ix – 100I
  4. f(x) = 3|x|
  5. f(x) = 2 |x-1000|
  6. f(x) = (1/3) |x-100|
  7. f(x) = 4.5|x|
  8. f(x) = 0.5|x+10|
  9. f(x) = 10|x|
  10. f(x) = 9|x+100|
Piecewise Functions


Related topics

Addition and Multiplication Using Counters and Bar-Diagrams

Addition and Multiplication Using Counters & Bar-Diagrams

Introduction: We can find the solution to the word problem by solving it. Here, in this topic, we can use 3 methods to find the solution. 1. Add using counters 2. Use factors to get the product 3. Write equations to find the unknown. Addition Equation: 8+8+8 =? Multiplication equation: 3×8=? Example 1: Andrew has […]


Dilation: Definitions, Characteristics, and Similarities

Understanding Dilation A dilation is a transformation that produces an image that is of the same shape and different sizes. Dilation that creates a larger image is called enlargement. Describing Dilation Dilation of Scale Factor 2 The following figure undergoes a dilation with a scale factor of 2 giving an image A’ (2, 4), B’ […]

Numerical Expressions

How to Write and Interpret Numerical Expressions?

Write numerical expressions What is the Meaning of Numerical Expression? A numerical expression is a combination of numbers and integers using basic operations such as addition, subtraction, multiplication, or division. The word PEMDAS stands for: P → Parentheses E → Exponents M → Multiplication D → Division  A → Addition S → Subtraction         Some examples […]

System of linear inequalities

System of Linear Inequalities and Equations

Introduction: Systems of Linear Inequalities: A system of linear inequalities is a set of two or more linear inequalities in the same variables. The following example illustrates this, y < x + 2…………..Inequality 1 y ≥ 2x − 1…………Inequality 2 Solution of a System of Linear Inequalities: A solution of a system of linear inequalities […]


Other topics