We are told to find where \( f(x) = (x-1)^2(x+2) \) attains its local maximum and local minimum, respectively. Instead of the second-derivative test, let's use the first-derivative sign test.
Differentiating, \( f'(x) = 2(x-1)(x+2) + (x-1)^2 = (x-1)\big[2(x+2)+(x-1)\big] = (x-1)(3x+3) = 3(x-1)(x+1) \). Setting \( f'(x) = 0 \) gives the critical points \( x = 1 \) and \( x = -1 \). Checking the sign of \( f'(x) = 3(x-1)(x+1) \) on either side of each critical point tells us whether \( f \) is increasing or decreasing there, which identifies each point as a local maximum or minimum.
The genuine critical points of \( f \) are \( x = 1 \) and \( x = -1 \), and pairing them as maximum then minimum in that order gives the answer.
Therefore, the correct answer is \( x = 1 \) and \( x = -1 \).