Notice that each is the of the previous segment 1 unit to the right.
Let's write the rule of the first segment and then we can write the rules of the other segments by translating it. The of the first segment is between
-1 and
0. However,
-1 and
0 are not included in the domain, because the endpoints are represented by open points.
Domain-1<x<0
Next, we will write a function rule. We see that the endpoints of segment are
(-1,0) and
(0,2). With this information we can find its using the .
m=x2−x1y2−y1
m=0−(-1)2−0
m=0+12−0
m=12
m=2
The slope of the segment is
2. Notice that one of the endpoints,
(0,2), is on the
y-axis, which means the is
2. In this case we can write the rule of the segment in .
1st segmentf(x)=2x+2
Now that we know the rule for the first segment, we can write the rule for the second one by performing a translation. The second segment is translated 1 unit to the right and that translation is equivalent to
subtracting one from the input.
2nd segment2(x−1)+2⇔2x
Similarly, we can find the rules for the remaining segments by translating the previous segment one unit to the right. To do so, we
subtract one from the input in the rule for the previous segment.
3rd segment:4th segment:5th segment:6th segment: 2(x−1)−2⇔2x−2 2(x−1)−2⇔2x−4 2(x−1)−4⇔2x−6 2(x−1)−6⇔2x−8
Finally, let's write the considering the domain of each piece.
f(x)=⎩⎪⎪⎪⎪⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎪⎪⎪⎪⎧2x+2, for -1<x<02x, for 0<x<12x−2, for 1<x<22x−4, for 2<x<32x−6, for 3<x<42x−8, for 4<x<5