👉 Learn how to graph piecewise functions. A piecewise function is a function that has more than one sub-functions for different sub-intervals(sub-domains) of the function's domain. To graph a piecewise function, we graph the different sub-functions for the different sub-intervals of the function's domain.
👨👩👧👧 About Me: I make short, to-the-point online math tutorials. I struggled with math growing up and have been able to use those experiences to help students improve in math through practical applications and tips. Find more here: https://www.freemathvideos.com/about-me/
all right what i'd like to show you is
how to grab a piecewise function given
this function i'm giving kind of three
expressions and i'm given three
constraints so all the piecewise
function is is really kind of three
different now lines that we have to
graph and now they have constraints on
them because usually when we graph
linear lines they go from negative
infinity to infinity
and we're both your domain and your
range but now what we've done with the
piecewise functions is we've made
constraints on our lines so what i'm
going to first do is i'm going to
rewrite each one of these expressions in
a y equals m x plus b form so then i can
just kind of get my mind set up in what
they actually mean so this graph this
expression be y
equals a negative 1. this would be y
equals 2x
and this can be read as y equals 6. so
now i'm starting to think of these i
need to say all right well if i remember
my y equals mx plus b form
i need to say all right what is going to
be the y-intercept for each one of these
equations and then what is going to be
the slope
if i look at this first one i notice
that there is no x so therefore i have
no slope
and my y-intercept is going to give me a
negative 1. therefore this is going to
be a constant line at negative 1. now
when graphing a linear equation i notice
that
i have constraints this graph is only
true
when x is less than or equal to 0.
okay so
i don't write it so what i can do
there's a couple ways you can do it you
can just graph it
as when it's only true or you can maybe
just graph the whole equation and then
start erasing where it's not true and
i'm going to go through that just so you
guys can kind of see what the whole
graph will look like
so um
i have x equals negative two actually
samantha could you uh glue my
actually you see that red marker right
on the in the folders in my folders in
my folders to the right
you see a red marker yep you throw it
well underhand toss it
you know you're making a video
okay
so if i was going to graph this at
negative 1 i'd go down to negative 1.
all right
then i now i say all right it's only
true though when x is less than or equal
to zero
well where is zero where x is zero is
right at the y intercept so therefore
this graph
i'm only going to shade in
where it's true we're not going to shape
we're not going to draw where it's false
we don't care about where it's false we
don't care about where this equation is
true so it's only true when x is less
than or equal to since it's equal to
it's going to be a closed circle
next point y equals 2x what does that
graph look like well i know that
my slope now has a slope of 2 over 1 and
i do not have a y-intercept i'm sorry my
y-intercept
is 0 since it's not labeled up there so
i do have y intercept at zero but it's
not shown in the equation so therefore i
know it's it's zero
so therefore on this to graph it if my
slope is now two over one that means i'm
going to rise to
go over one
rise two over one so our down two to the
left one and down two
down two to the left one and then down
two to the left one
so again i'm just going to dot a line
just so i know
just so i approximately know what my
graph is going to look like
then it says this however this graph is
only true from 0
when 0 is less than x or less than or
equal to 3. so therefore
since it's just less than
i know it's going to be
um
since it's just uh
x is greater than
is going to be an open circle
and it's going to be between 0 and 3. so
i'm going to go over 3 1 2 3 and i'm
going to follow that up to my graph and
now this is going to be
x is less than or equal to 3 so it's
going to be a closed dot and i'm just
going to shade in this graph here
so that is between 0 and 3 is only when
this equation makes sense that's the
only time that equation is true all
these this values over here and these
values are here it's not true under
these constraints so
i'm not going to include them in my
graph
and then lastly i have y equals six
again it's just like y equals negative
one the y intercept is at six
and it says it's only true when x is
equal to zero
or i'm sorry x is greater than three
so therefore at three again i'm at
all right my three
that dot really should be about there
sorry guys i don't have graph paper on
my board so i gotta be close to as
proximate as possible
um
and x would be at three
one two three
and x greater than three this dine this
lot would look like this
however i'm only concerned about when
it's greater than or equal to three
so it's roughly going to be right there
i understand from home you guys can see
that
you know my graph right here is not
going to be the best in the world
because i'm just making up my my scaling
is not exact but your graph should
roughly look something into this format
and now guys you can see the blue is all
i'm concerned with so i'm just going to
simply
just race away my red
because those are points that do not
meet the constraints of my piecewise
function so there's no point having them
on there i just used them as a template
to graph my rest of my equations all
right so that is how you graph a
piecewise function
when given
when given your equations and your
constraints