Let's observe the given .
f(x)=⎩⎪⎪⎪⎪⎨⎪⎪⎪⎪⎧-1,-0,-1,-2,if 0≤x<3if 3≤x<6if 6≤x<9if 9≤x<12
Graphing the Function
To think about how to draw the graph, let's look at the first piece of the . The restriction on the tells us that
f(x) equals
1 when
x is
greater than or equal to 0 and
less than 3.
f(x)=1 if 0≤x<3
To graph this, we draw a at
y=1 extending from
x=0 to
x=3. To indicate that
x=0 is contained in the solution set, we place a closed circle at that . To indicate that
x=3 is not contained in the , we use an open circle.
Following a similar process, we can graph the other pieces of the function.
Domain and Range
Now that we have graphed the function, we can describe its domain and .
Domain
The domain of a function is the set of
x-values for which the function is defined. From the graph (and the function rule), we can see that
x can equal any value from
0 to
12, but not including
12.
0≤x<12
Range
The range of a function is the set of
y-values for which the function is defined. From the graph (and the function rule), we can see that
y can
only equal
-2, -1, 0, and
1.
{-2,-1,0,1}