Consider the following statements:
1. The relation f defined by \(f(x)= \begin{cases}x^3, & 0 \leq x \leq 2 \\ 4 x, & 2 \leq x \leq 8\end{cases}\) is a function.
2. The relation g defined by \(g(x)= \begin{cases}x^2, & 0 \leq x \leq 4 \\ 3 x, & 4 \leq x \leq 8\end{cases}\) is a function.
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