Solving algebraic equations with a coefficient in front of the variable