The inner product formula