Consider a differentiable function \(f(x)\) on the set of real numbers such that \(f(-1)=0\) and \(|f'(x)|\leq 2\). Given these conditions, which one of the following inequalities is necessarily true for all \(x\in [-2,2]\)?
- A\(f(x)\leq \frac{1}{2}|x+1|\)
- B\(f(x)\leq 2|x+1|\)
- C\(f(x)\leq \frac{1}{2}|x|\)
- D\(f(x)\leq 2|x|\)