proof:law of sine and cosine added