Methods for solving equations