extracting square roots formula