Rising to the rank of captain in the engineers, he became increasingly interested in physics and, in 1881, resigned his commission to join Alfred Cornu's laboratory at the École Polytechnique, working on spectroscopy.