algebraic equations in math