In this article https://mrtrix.readthedocs.io/en/dev/concepts/spherical_harmonics.html the following statement is given:
Spherical harmonics are special functions defined on the surface of a sphere. They form a complete orthonormal set and can therefore be used to represent any well-behaved spherical function.
I have two questions:
1. What does it means "functions defined on the surface of a sphere"? Functions whose domain is given by $(\theta,\phi)$ with $\theta \in [0, \pi]$ and $\phi \in [0,2\pi]$?
2. Why spherical harmonics form an orthonormal basis for the space of functions defined on the sphere? Since spherical harmonics are also simultaneous eigenfunctions of operators $L^2$ and $L_z$, don't they form a basis for any function?