intuitive explanation of the inner product of two functions