Equations for solving algebraic expressions