When deriving the Law of Cosines, the equation h squared is equal to A squared minus x squared is created using the Pythagorean theorem. Use substitution to replace h squared in the equation given and then simplify. c squared is equal to h squared plus b squared minus 2 b x plus x squared