Consider the following statements in respect of the function f(x) = \(\left\{\begin{array}{rc}|x|+1, & 0<|x| \leqslant 3 \\ 1, & x = 0\end{array}\right.\)
1. The function attains maximum value only at x = 3
2. The function attains local minimum only at x = 0
Which of the statements given above is/are correct ?
1
1 only
2
2 only
3
Both 1 and 2
4
Neither 1 nor 2