Lesson 4: Piece-wise functions

Evaluate, sketch and describe a piece-wise function

SkillsPiece-wise functionsDomain and range

Worked example

  • Complex familiar
  • Technology free
f(x)={x+3,x<−1x2,−1≤x≤26−x,x>2f(x) = \begin{cases} x + 3, & x < -1 \\ x^2, & -1 \le x \le 2 \\ 6 - x, & x > 2 \end{cases}

(a) Find f(−3)f(-3), f(−1)f(-1), f(2)f(2) and f(4)f(4). (b) Sketch the graph of y=f(x)y = f(x). (c) State the domain and range of ff.

1 of 6 steps
  1. Step 1: Match each input to its piece

    −3<−1-3 < -1, so f(−3)f(-3) uses x+3x + 3. Both −1-1 and 22 satisfy −1≤x≤2-1 \le x \le 2, so they use x2x^2. 4>24 > 2, so f(4)f(4) uses 6−x6 - x.

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. For each input, find the piece whose domain contains it, then use that rule only.

  2. Sketch each piece only over its own domain, with open or closed endpoints.

  3. The domain is the union of the pieces' domains; the range is the union of their outputs.

Watch out for

  • Using x+3x + 3 for f(−1)f(-1) and getting 22.

  • Stating the range as [0,4][0, 4] by looking at the middle piece only.

Save your progress with a free account