Generalized Pythagorean Equation

given: triangle with an angle C with adjacent sides a and b and opposite side c.