C2=A2+B2−2ABcosθ Can be derived by finding dot product of c=a−b with itself θ is the angle between a and b