Recall (dot product)

let , be is the same in .

Dot product of .

so

Properties of dot products:

Fact: where is the angle between and .

Proof (law of cosine)

after reduction..

Corrolary:

Ex: Find the angle between u=[-1\\1\\2] and v[2\\1\\-1]

dot product works out to:

-2 + 1 - 2 = -3

plug into