General methods for solving physics problems