Explain the law of cosine in detail with a proof