 Vályi was appointed professor of theoretical physics in 1884, and in 1885 he also became professor of mathematics lecturing on analysis, geometry and number theory.One of his favorite courses was concerned with János Bolyai's "Appendix".He was elected a corresponding member of the Hungarian Academy of Sciences in 1891.