Using the summary ( Calculation of scalar product in N dim ), calculation would proceed as follows. where

We put together the expression for : Mathematica Test 1a