TITLE: Averaged dot product
QUESTION [9 upvotes]: In one of the textbooks I came across this:
"the average over the angles of the scalar product such as $(\vec{n} \cdot \vec{a}) (\vec{n} \cdot \vec{b})$ is equal to $\frac{1}{3}(\vec{a} \cdot \vec{b})$"
The author also gives the average of $(\vec{n} \cdot \vec{a}) (\vec{n} \cdot \vec{b})(\vec{n} \cdot \vec{c}) (\vec{n} \cdot \vec{d})$ which is equal to $\frac{1}{15}[(\vec{a} \cdot \vec{b})(\vec{c} \cdot \vec{d})+(\vec{a} \cdot \vec{d})(\vec{c} \cdot \vec{b})+ (\vec{a} \cdot \vec{c})(\vec{b} \cdot \vec{d})]$.
In all of these $\vec{n} = \vec{r}/r$ and $\vec{a},\vec{b},\vec{c},\vec{d}$ are constant vectors. How to prove it? What does "average over angles" mean, just $d\theta$ and $d\phi$ or the full spherical angle $d\phi \;d\theta \sin \theta$?
Thanks in advance!

REPLY [5 votes]: FIRST IMPRESSION: This problem was written in "Some problems of nuclear theory" by Akchiezer, this is a physics textbook.
Classically trained physicists solve problems with tensors/indices (i.e Einstein Notation) and arguments of symmetry. Using such tools both asserted relations follow in a few lines of algebra. 
GAME PLAN:I will convert the problem into tensor contraction and then I will deduce the answer by symmetry. 
NOTE: I will use explicit summation, rather than Einstein's implicit summation convention.
DERIVATION: Consider $(\vec a \cdot \vec n )(\vec b \cdot \vec n)$.
$$(\vec a \cdot \vec n )(\vec b \cdot \vec n) = \sum_{ij} a_i n_i b_j n_j$$
$$ = \sum_{ij} a_i  b_j n_i n_j$$
Let $M_{ij} \equiv a_i b_j $ and $N_{ij} \equiv n_i n_j$.
$$ = \sum_{ij} M_{ij} N_{ij} \tag{X}$$
Eq.X is how a classically trained physicist sees this problem. As the contraction of 2 different 2-tensors, here $M$ and $N$ are obviously both rank 2 tensors.
By arguments of symmetry (see Appendix), we conclude that 
$$N_{ij}=\frac{1}{3} \delta_{ij} \tag{XX}$$
Combine equations (*), (**), and the definition of $M$ to arrive at:
$$(\vec a \cdot \vec n )(\vec b \cdot \vec n) = \sum_{ij} M_{ij} N_{ij} = \sum_{ij} (a_i b_j) (\frac{1}{3} \delta_{ij})= \frac{1}{3} \sum_{ij} a_i \delta_{ij} b_j  = \frac{a^Tb}{3}$$

REVIEW AND CONNECTIONS: This is exactly, the result already provided by Jean Marie's Method 1 and 2. So this is a third method to arrive at your first relation. It has an interesting connection with Jean's method 2. In this method Jean regroups the vectors as 
$$(\vec{n} \cdot \vec{a}) (\vec{n} \cdot \vec{b}) = \vec{n}^T\vec{a} \vec{b}^T\vec{n}^T$$
and distinguishes the the outer product of vectors $\vec{a} \vec{b}^T$ as a matrix.
Then solves the problem via properties of $M=\vec{a} \vec{b}^T +\vec{b} \vec{a}^T$.
Analogously, I have grouped $$(\vec{n} \cdot \vec{a}) (\vec{n} \cdot \vec{b}) = \vec{a}^T\vec{n} \vec{n}^T\vec{b}^T$$
and distinguished the the outer product of vectors $\vec{n} \vec{n}^T=N$ as a matrix. Then solved the problem via properties of $N$.
These approaches solve the same problem because of commutativity of the inner product.

Now I will prove the second statement.
GAME PLAN: Exactly as before, I will convert the problem into a tensor contraction and then I will deduce the answer by symmetry. 
DERIVATION: Consider 
$$(\vec{n} \cdot \vec{a}) (\vec{n} \cdot \vec{b})(\vec{n} \cdot \vec{c}) (\vec{n} \cdot \vec{d}) = \sum_{ijkl} a_i n_i b_j n_j c_k n_k d_l n_l $$
Let $M_{ijkl} = a_i b_j c_k d_l$ and $N_{ijkl}=n_i n_j n_k n_l$.
$$= \sum_{ijkl} M_{ijkl}N_{ijkl} \tag{*}$$
We now reduced the right hand side to a contraction of $4$-tensors 
As before, by arguments of symmetry (see appendix)
$$N_{ijkl}=n_i n_j n_k n_l = \frac{1}{15}(\delta_{ij}\delta_{kl}+\delta_{ik}\delta_{jl} + \delta_{il}\delta_{jk} ) \tag{**}$$.
Combining Eq.**, Eq.*, and the definition of $M$, we arrive at the solution
$$\sum_{ijkl} M_{ijkl}N_{ijkl} = \sum_{ijkl} ( a_i b_j c_k d_l ) \frac{1}{15}(\delta_{ij}\delta_{kl}+\delta_{ik}\delta_{jl} + \delta_{il}\delta_{jk} )$$
$$ =\frac{1}{15}[(\vec{a} \cdot \vec{b})(\vec{c} \cdot \vec{d})+(\vec{a} \cdot \vec{d})(\vec{c} \cdot \vec{b})+ (\vec{a} \cdot \vec{c})(\vec{b} \cdot \vec{d})]$$
-----------------ARGUMENTS OF SYMMETRY------------------
Consider a rotated vector $n'$ where $n'_i=\sum_{j} R_{ij} n_j = R \vec n$ (Here $R$ is defined as a rotation matrix - https://en.wikipedia.org/wiki/Rotation_matrix). Then the rotated 2-tensor $N'$ is defined as,
$$N' = R \vec{n} (R \vec n)^T = R \vec{n} \vec{n}^T R^T =R N R^{-1}$$
Thus the rotation of $\vec n$ results in a basis transformation of $N$ (https://en.wikipedia.org/wiki/Matrix_similarity).
NOW HERE'S THE SYMMETRY, Since the random vector $\vec n$ is sampled from spherically symmetric distribution on a sphere, then $N$ must invariant w.r.t. rotations, thus
$$N'=N$$
$$N'_{ij}= R_{ik}n_k R_{jl} n_l = R_{ik} R_{jl} n_k n_l = R_{ik} R_{jl} \delta_{kj} n_j \delta_{li} n_i =  R_{ij} R_{ji} n_i n_j = \delta_{ij} n_i n_j = N_{ij}$$
Thus, we conclude the only such two 2-tensors are proportional to the identity so that $N_{ij} = c_0 \delta_{ij}$. 
Furthermore, $\vec n$ is normalized. Thus $\sum_i n_i n_i =1$ which is equivalently, $tr\{ N\} = \sum_{ij} N_{ij} \delta_{ij} = \sum_i c_0  \delta_{ij} \delta_{ij} = 3*c_0$, it follows that,
$$N_{ij}=\frac{1}{3} \delta_{ij} \tag{XX}$$
This is result Eq.XX
Now consider the second problem, Eq.**, which is a generalization of the first. As before we still have spherical symmetry, so
$$N_{ijkl}=n_i n_j n_k n_l = N'_{ijkl}$$
$$N'_{ijkl}=\sum_{wxyz} R_{iw}n_w R_{jx}n_x R_{ky}n_y R_{lz} n_z = N_{ijkl}$$
$$N'_{ijkl}=\sum_{wxyz} R_{iw}R_{jx} R_{ky} R_{lz} n_w n_x n_y n_z = N_{ijkl}$$
Now unlike above we have freedom to mix indices contractions, I could insert $n_z = \delta_{zk} n_k$ or $n_z = \delta_{zj} n_j$ or $n_z = \delta_{zi} n_i$, (from here commutativity determines all other possible combinations) and arrive at 
$$N_{ijkl}= c_1 (\delta_{ij}\delta_{kl}+\delta_{ik}\delta_{jl} + \delta_{il}\delta_{jk} )$$
As before the normalization condition is,
$$1 =\sum_i n_i n_i$$
$$= \sum_i n_i n_i \sum_k n_k n_k $$
$$= \sum_{ijkl} c_1 (\delta_{ij}\delta_{kl}+\delta_{ik}\delta_{jl} + \delta_{il}\delta_{jk} ) \delta_{ij}\delta_{kl}$$
$$=9+3+3$$
Thus, we conclude that 
$c_1 = \frac{1}{15}$