Answer
(a) shift $f(x)$ right 5 units and up 2 units
(b) shift $f(x)$ left 1 unit and down 1 unit
Work Step by Step
(a) We can obtain $f(x-5)+2$ by shifting the graph of $f(x)$ right 5 units and up 2 units.
(b) We can obtain $f(x+1)-1$ by shifting the graph of $f(x)$ left 1 unit and down 1 unit.