Let $x_i=(\sin i\pi/n,\cdots,\sin (n-1)i\pi/n)$ for $i=1,\cdots,n-1$. I want to show that $x_i \cdot x_j=\delta_{ij} n/2$. Why is it true? I tried $\sin a \sin b=-[\cos(a+b)-\cos(a-b)]/2$ but don't know how to clean the terms.
Edit This is from 1d poisson equation on interval: $\Delta u = f, u(0)=u(1)=0$. If we partition the interval and use approximation $\Delta u(t) \simeq (u(t+h)+u(t-h)-2u(t))/h^2$, we have a matrix equation $Ax=b$ where $A$ is the tridiagonal matrix with $a_{ii}=2, a_{i,i+1}=a_{i+1,i}=1$. $x_i$ are eigenvectors of $A$.