Hello,

For the domain, it's just the values x can take.

For the range... if x<=-1, then f(x)=-1. Thus the range contains -1.

f(x)=3x+2 if -1<x<1, that is to say -1<3x+2<5. This is part of the range too.

f(x)=7-2x if x>=1, that is to say 7-2x<=5. This actually gives the whole range.