Let $f(x_1, \dots , x_n)$ be a function of class $C^1$ on the ball $(x_1)^2 + \cdots + (x_n)^2 < 1$, such that all the first order all partial derivatives are zero at every point of the ball. Prove that $f$ is constant.
My instructor gives a hint that '$(x_1,...,x_{j−1},t\cdot x_j,x_{j+1},...,x_n)$ is in the ball, so for $0 ≤ t ≤ 1$, the derivative of the function $g(t) = f(x_1,...,x_{j−1},t\cdot x_j,x_{j+1},...,x_n)$ with respect to $t$ is zero.' However, this doesn't make any sense to me. Anyone can give me more hints or ideas?