Step 1: Understanding the Concept
Critical points satisfy \(f'(x)=0\); the sign of \(f''(x)\) tells maximum or minimum.
Step 2: First derivative
\(f'(x)=(x+2)^2+2(x-1)(x+2)=(x+2)(3x)\), so \(x=-2\) or \(x=0\).
Step 3: Second derivative
\(f(x)=x^3+3x^2-4\), \(f''(x)=6x+6\). \(f''(-2)=-6<0\) (maximum), \(f''(0)=6>0\) (minimum).
Step 4: Values
\(f(-2)=0\) and \(f(0)=(-1)(4)=-4\).
Final Answer:
The local maximum is 0 and the local minimum is \(-4\).
\[ \boxed{\text{(B) }0,-4} \]