Video Transcript
In this lesson, weโll learn how to
graph and analyze a piecewise-defined function and study itโs different
characteristics.
Sometimes we come across a function
that requires more than one function in order to obtain the given output. We call this a piecewise
function. And these are functions in which
more than one function is used to define the output over different parts of the
domain. Each subfunction is then
individually defined over its own domain.
For instance, letโs take ๐ of ๐ฅ,
which is a piecewise-defined function. And itโs given by two ๐ฅ plus one
if ๐ฅ is less than negative one and three ๐ฅ if ๐ฅ is greater than or equal to
negative one. We see that for values of ๐ฅ
strictly less than negative one, we use the function ๐ of ๐ฅ equals two ๐ฅ plus
one. For instance, ๐ of negative two
would be evaluated as two times negative two plus one, which is negative three. But then, with values of ๐ฅ greater
than or equal to negative one, we use the function ๐ of ๐ฅ equals three ๐ฅ. So, for instance, ๐ of zero would
be three times zero, which is simply zero.
We need to make sure that we can
identify the graphs of these functions as well as sketch them and define the
function when given a graph. So letโs see what that would look
like with an example.
What kind of function is depicted
in the graph? Is it (A) an even function, (B) a
logarithmic function, (C) a piecewise function, or (D) a polynomial function?
Letโs begin by providing a
definition for each of these terms. If a function ๐ of ๐ฅ satisfies
the criteria ๐ of negative ๐ฅ equals ๐ of ๐ฅ for all ๐ฅ within the domain of the
function, then itโs said to be even. We also know that these functions
have reflectional symmetry about the ๐ฆ-axis or the line ๐ฅ equals zero. Then we look at logarithmic
functions. These are of the form log base ๐
of ๐ฅ. Theyโre the inverse to exponential
functions. Itโs worth also noting that the
domain of a logarithmic function is the set of positive real numbers, and then the
range is the set of all real numbers.
Then we have piecewise
functions. And these are functions in which
more than one subfunction is used to define the output over different parts of the
domain. Each subfunction is then
individually defined over its own domain. Finally, we have polynomial
functions. Now, these are ones made up of the
sum or difference of constant terms, variables, and positive integer exponents such
as two ๐ฅ cubed plus five ๐ฅ. The domain of a polynomial function
is the set of all real numbers. And we know that their graphs are
both continuous and smooth. In other words, there are no gaps
in the graph, which we might call a discontinuity, and there are no sharp corners on
the graph. So letโs look at our graph and
compare these definitions to it.
Firstly, we note that there is no
symmetry about the line ๐ฅ equals zero. And so we see that the function
cannot be an even function. We also see that our graph is
certainly defined for values of ๐ฅ greater than or equal to negative 10 and less
than or equal to eight. It might even be defined outside of
this interval, but we canโt be sure at this stage. What this does tell us is that the
domain is different to that of a logarithmic function, which is simply positive real
numbers. And so our graph cannot be the
graph of a logarithmic function.
And so weโre limited to piecewise
functions and polynomial functions. Now, in fact, we said that the
graph of a polynomial function is smooth; there are no sharp corners. And that means itโs differentiable
at every point. We can quite clearly see that our
graph has two sharp corners. And so itโs not smooth. Our graph cannot therefore be a
polynomial function. And so weโre left with (C) a
piecewise function. In fact, if we look carefully, we
see that there are three parts to this piecewise function. The first part is for values of ๐ฅ
less than negative three. We then have values of ๐ฅ between
negative three and zero. And finally, our third subfunction
is values of ๐ฅ greater than zero and certainly, from what we can see, up to
eight.
So weโve seen what the graph of a
piecewise-defined function might look like. Weโre now going to see how we might
determine the domain of a piecewise-defined function given its graph.
Determine the domain of the
function represented by the given graph.
Letโs begin by recalling what we
mean by the word โdomain.โ The domain of a function is the set
of possible inputs that will yield real outputs. In other words, itโs the set of
๐ฅ-values that we can substitute into the function. Now, when we look at the graph of a
function, we can establish its domain by considering the spread of values in the
๐ฅ-direction. We will need to be a little bit
careful because if we look at the graph of our function, we notice we have these
empty circles. Sometimes called an open circle, it
tells us that the function canโt be defined by this part of the line at this
point. Since we have a piecewise-defined
function, that is, a function thatโs defined by more than one subfunction, weโll
find the domain of each subfunction first.
We see we have one subfunction that
takes values less than negative four. Then we have another subfunction
that takes values greater than negative four. Since the initial or starting point
of each line of our subfunction is represented by that open circle, we see that ๐ฅ
equals negative four is not defined within the domain of our function. And so the domain is actually going
to be the set of real numbers not including this number. One way to represent that would be
to use inequality notation and write ๐ฅ can be less than negative four and ๐ฅ can be
greater than negative four.
Alternatively, we can use set
notations, where this funny-looking โ represents the set of real numbers and these
squiggly brackets or braces tell us the set contains one single element, and thatโs
negative four. And so the domain of this function
is the set of real numbers not including the set containing the element negative
four.
Now that weโve established that the
spread of values in the ๐ฅ-direction tells us the domain of the function, letโs look
at how to find the range of a piecewise-defined function.
Find the range of the function.
Letโs begin by recalling what we
mean by the range of a function. Just as the domain is the set of
possible inputs to our function, the range is the set of possible outputs. In other words, itโs the set of
๐ฆ-values we achieve when the domain of ๐ฅ-values have been substituted into the
function. This means that graphically weโre
looking at the spread of values in the ๐ฆ-direction to help us calculate the range
of the function.
Looking at the graph, we see that
the values of ๐ฆ begin at negative one. And thatโs when we input ๐ฅ-values
less than or equal to four. Then at ๐ฅ equals four, the values
of ๐ฆ steadily increase, and this arrow here tells us that the increase to โ. We can therefore say that the
range, the set of possible outputs, is all values of ๐ฆ greater than or equal to
negative one. To use set notation to define the
same interval, we use the left-closed right-open interval from negative one to
โ. Note that the round bracket tells
us that โ isnโt really a defined number. And so the range of this function,
which is the set of possible ๐ฆ-values, is the left-closed right-open interval from
negative one to โ.
Up until this stage, weโve
considered what it means for a function to be piecewise-defined and how to determine
its domain and range from its graph. Weโll now look at how to define the
entire piecewise function given the graph of that function.
Give the piecewise definition of
the function โ whose graph is shown.
Weโre told that the graph weโre
given is a piecewise-defined function. And we know that a
piecewise-defined function is made up of multiple subfunctions. In fact, by looking at the graph of
this function, we might notice that there are going to be two subfunctions. These are also going to be linear
since the graph of each subfunction is a straight line. And so this means that if we can
calculate the slope ๐ and find one point which each line passes through, we can use
the equation ๐ฆ minus ๐ฆ one equals ๐ times ๐ฅ minus ๐ฅ one to find the equation of
each line.
Letโs begin with the first part of
this subfunction. We notice that this subfunction is
defined up to and including ๐ฅ-values of two. So that will give us a hint as to
what its domain is. Then we could use the formula for
slope ๐ equals ๐ฆ two minus ๐ฆ one over ๐ฅ two minus ๐ฅ one to find the slope of
this line. Alternatively, we can use the
triangle method. Choosing a point on the line, in
this case, the ๐ฆ-intercept, and then moving exactly one unit to the right, we see
we have to move one unit down to get back to our point on the line. That means the slope of this line
must be negative one. It also passes through the point
zero, three. Remember, this is the ๐ฆ-intercept
of the line.
And so substituting everything we
know about this first function into our equation for a straight line, we get ๐ฆ
minus three equals negative one times ๐ฅ minus zero. Distributing the parentheses on the
right-hand side, and we get negative ๐ฅ. And then weโre going to make ๐ฆ the
subject by adding three to both sides. Remember, ๐ฆ is the output. So itโs going to be โ of ๐ฅ
essentially. And so the first line is defined by
the equation ๐ฆ equals three minus ๐ฅ.
Letโs repeat this process with the
second line. Now we always need to be a little
bit careful using the triangle method for fractional slope values. In this case, when we pick a point
on the line, move one unit to the right, we then have to move a half a unit up to
get back to our point on the line, meaning that the slope of our second line is
one-half. To convince ourselves that this is
true, we could choose the two points given on the line, which have coordinates four,
two and six, three, respectively. Then ๐ฆ two minus ๐ฆ one over ๐ฅ
two minus ๐ฅ one, which is change in ๐ฆ over change in ๐ฅ, is three minus two over
six minus four, which is one-half as we saw.
Then letโs pick this point. We know our line passes through the
point with coordinates two, one. And so the equation of our line is
๐ฆ minus one equals a half times ๐ฅ minus two. Then when we distribute the
parentheses on the right-hand side, we get that one-half times ๐ฅ minus two is the
same as one-half ๐ฅ or ๐ฅ over two minus one. We can then finally add one to both
sides, eliminating that negative one. And so the second line has the
equation ๐ฆ equals ๐ฅ over two. Now that we have the equations that
represent our subfunctions, weโre going to pop this back together using piecewise
definition.
โ is given by three minus ๐ฅ for
values of ๐ฅ less than two. And ๐ฅ over two of ๐ฅ is greater
than or equal to two, which of course is the same as writing two is less than or
equal to ๐ฅ. Note, of course, that the function
could have been defined at the point ๐ฅ equals two by either subfunction. Itโs generally convention that we
choose the second function to define that point, although it would have been just as
correct to write three minus ๐ฅ if ๐ฅ is less than or equal to two and ๐ฅ over two
if ๐ฅ is greater than two. The piecewise definition of โ is
three minus ๐ฅ if ๐ฅ is less than two and ๐ฅ over two if two is less than or equal
to ๐ฅ.
In our final example, weโll look at
how to define a piecewise function given a graph that also includes a
discontinuity.
Give the piecewise definition of
the function ๐ whose graph is shown.
Weโre told that this graph
represents the graph of a piecewise-defined function. And this makes a lot of sense. We see that itโs made up of three
different parts. We have a linear function over here
given by a single straight line and a other linear function here given by another
straight line. But then we have something really
strange here. We have a single dot at this
point. And weโll consider what that means
for our piecewise definition in a moment.
For now, weโre going to begin by
finding the equation of our two straight lines. We use the formula ๐ฆ minus ๐ฆ one
equals ๐ times ๐ฅ minus ๐ฅ one, where ๐ is the slope of the graph and ๐ฅ one, ๐ฆ
one is a single point it passes through. Then the slope is given by change
in ๐ฆ divided by change in ๐ฅ, which is ๐ฆ two minus ๐ฆ one over ๐ฅ two minus ๐ฅ
one. And so letโs begin by finding the
slope of our first line, we can choose any two points on this line. Letโs choose the points with
coordinates negative three, six and one, two. Then change in ๐ฆ divided by change
in ๐ฅ is six minus two over negative three minus one. Of course, we could write two minus
six over one minus negative three and get the same result.
This gives us four divided by
negative four, which is negative one. Then substituting everything we
know about our first straight line into the formula for a straight line, and we get
๐ฆ minus six equals negative one times ๐ฅ minus negative three. Distributing the parentheses on the
right-hand side, and this simplifies to negative ๐ฅ minus three. Finally, we add six to both sides,
and we find ๐ฆ is equal to negative ๐ฅ plus three or three minus ๐ฅ. And so for values of ๐ฅ strictly
less than two, we can use the equation ๐ฆ equals three minus ๐ฅ to draw its
graph.
Next, we choose two points on our
second line. Letโs choose the points with
coordinates four, four and six, five. Change in ๐ฆ divided by change in
๐ฅ here is five minus four over six minus four, which is equal to one-half. So the slope of our second line is
one-half. Substituting then ๐ equals
one-half and ๐ฅ one, ๐ฆ one equals four, four into our formula for a straight line,
and we get ๐ฆ minus four equals a half times ๐ฅ minus four. And that right-hand side simplifies
to ๐ฅ over two minus two. Then we add four to both sides. And we see that our second line has
the equation ๐ฆ equals ๐ฅ over two plus two. Now, this time, thatโs for values
of ๐ฅ strictly greater than two. So we now have the equations of our
two straight lines. These are three minus ๐ฅ if ๐ฅ is
less than two and ๐ฅ over two plus two if ๐ฅ is greater than two.
Weโre not finished though; there
was a third subfunction that weโre interested in. And this subfunction is represented
graphically by a single point. This point has coordinates two,
two. In other words, if ๐ฅ is exactly
equal to two, the function yields an output of two. And so that is our third
subfunction. Noting that we can alternatively
write the domain on our third line as two is less than ๐ฅ, we now have the piecewise
definition of our function. Itโs ๐ of ๐ฅ is equal to three
minus ๐ฅ if ๐ฅ is less than two, two of ๐ฅ is equal to two, and ๐ฅ over two plus two
if two is less than ๐ฅ.
Weโll now recap some of the key
points from our lesson. In this lesson, we learned that a
piecewise-defined function is a function defined by multiple subfunctions. We then saw how each one of those
subfunctions is defined over a given interval of the main functions domain. We can call that a subdomain. And we saw how by carefully
considering their definition, we can identify the domain and range from a function
and from its graph.