Piecewise functions are very useful in the real world. However, it can be quite confusing to understand! So, in this article, we will explain everything you need to know to ace piecewise functions!
Do you feel that your understanding Piecewise Functions looks like a Piecewise Function? Don’t worry! In this article, we’re going to fill in the blanks of your understanding of Piecewise Functions.
This topic allows us to understand functions which have different definitions for different input values.
This is a very useful idea as many real-world systems are not defined the same for all inputs, unlike most polynomials we have seen so far.
An example to illustrate this is tax. the formula for calculating tax is different depending on a person’s income rather than being the same for everyone.
NESA expects students to demonstrate proficiency in the following syllabus outcomes;
Students should already be familiar with function notation, domain and range, inequalities and evaluating and sketching polynomials.
A piecewise function is a function defined separately for different intervals of \(x\) – values (different domains).
The simplest example to illustrate this is the absolute value function, defined by:
y = f(x)=
-x & ;x<0 \\
x & ;x \geq 2
This means that:
Graphically this is:
Evaluating a piecewise function only has one extra step when compared to a regular function, which is to determine which region we are in.
Simply determine which of the inequalities our \(x\) value is consistent with, and you have the equation of the function! Evaluating is now trivial, as all we need to do is substitute in our \(x\) value.
Considering our absolute value example:
For \(x = 5\) we are in the region \(x \geq 0\), so the function is \(f(x) = x\) and \(y = f(5) = 5\)
For \(x = -5\) we are I the region \(x < 0\), so the function is \(f(x) = -x\) and \(y = f(-5) = 5\)
Always be careful when considering values at the edge of a region! Make sure that you choose the correct region based on whichever domain includes the \(x\) value (i.e. \( \geq \) rather than \(>\)).
This is illustrated by the discontinuity in the next section.
Sketching piecewise functions can similarly be made quite easy by considering it as sketching multiple separate functions.
As an example, we will go through the process of sketching:
y = f(x)=
-x^2 & ;x \leq 0 \\
3 & ;0<x<3 \\
x & ;x \geq 3
This may look complicated, but like our first example we can break this down to:
\(y = – x^2 \) when \(x \leq 0\)
\(y = 3\) when \(x\) is between \(0\) and \(3\)
\(y = x\) when \(x \geq 3\)
And now we have \(3\) functions defined over \(3\) separate domains. These are all simple functions and should be recognised as a parabola and \(2\) straight lines, which we already know how to sketch.
Sketch each function in their respective domains, and you have sketched the piecewise function!
An important feature to note is the discontinuity, where the different parts of the function do not meet each other, as at \(x = 0\) in our example.
It is important to indicate which point is a part of the function, and which is not, as we cannot have multiple \(y\) values for the same \(x\) value (a piecewise function is still a function).
This is denoted by using a closed or open circle as you would have done when graphing inequalities on a number line.
Matrix+ online Year 11 Maths Avdanced courses are the expert guided solution to your Maths problems. Learn more.
1. Evaluate the following:
y = f(x)=
x^5+3x^2+5 & ;x \leq 3 \\
6-3x^3 & ;x >3
2. Sketch the following:
-x^3 & ;x>0 \\
x^2 & ;x \leq 0
3. Sketch the following:
2 & ;x \geq 2 \\
x^2 & ;-2<x<2 \\
-2x & ;x \leq -2
1. \(f(0) = 5, f(5) = -369, f(3) = 275\)
Download our free worksheet to see what your strengths and weaknesses are.
© Matrix Education and www.matrix.edu.au, 2021. Unauthorised use and/or duplication of this material without express and written permission from this site’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Matrix Education and www.matrix.edu.au with appropriate and specific direction to the original content.