Solve a square equation.