This is more of a general question, than it is a homework problem. If I have a triangle, angles A, B, and C, and corresponding sides a, b, and c, and I want to solve for any one side I understand we use the law of cosines. So far I have been able to derive two of the formulae by dropping a vertical line to divide side b into two parts, x, and b-x. Sides a and c form the hypotenuses of the two right triangles formed by dividing b. Doing a little algebraic magic, I get: a^2 = b^2 + c^2 - 2bc cos A and c^2 = a^2 + b^2 - 2ab cos C I am hung up on how to do this for side b and angle B. Side b does not form the hypotenuse of right triangle, and so I'm confused as to how to go about this. Anyone have a pointer?