←

the law of cosines