Lesson 4: Piece-wise functions
Evaluate, sketch and describe a piece-wise function
SkillsPiece-wise functionsDomain and range
Worked example
(a) Find , , and . (b) Sketch the graph of . (c) State the domain and range of .
Step 1: Match each input to its piece
, so uses . Both and satisfy , so they use . , so uses .
Step 2: Evaluate
, , and .
Step 3: Find where each piece starts and stops
The line heads towards but stops short of it: an open circle. The parabola runs from to , with closed dots at both ends. The line starts just after .
Strict inequalities (, ) give open circles; and give closed dots.
Step 4: Sketch the three pieces
Draw the rising line to the left of , the parabola arc from to , and the falling line to the right of , and label the endpoints. The graph jumps at and joins up at .
Step 5: State the domain
The three pieces cover every real number exactly once, so the domain is .
Step 6: Combine the ranges of the pieces
The first piece gives , the parabola gives and the last piece gives . Together they give .
The value is reached at by the parabola, so it is included.
Answer
, , and . The domain is and the range is .
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
Method
For each input, find the piece whose domain contains it, then use that rule only.
Sketch each piece only over its own domain, with open or closed endpoints.
The domain is the union of the pieces' domains; the range is the union of their outputs.
Watch out for
Using for and getting .
Stating the range as by looking at the middle piece only.