I wrote a proof explaining where the cosine went if anyone is interested. I've published on my github at https://github.com/darrenstarr/JupyterNotebooks/blob/master/Dot%20Product%20(law%20of%20cosines)%20Proof.ipynb####[]