Ritchie's publications led to his appointment to the professorship of natural philosophy at the Royal Institution, where he delivered a course of probationary lectures in 1829. In 1832 he was appointed professor of natural philosophy in London University.