Gregory was initially recognised for his essay
The Foundations of Algebra presented to the
Royal Society of Edinburgh in 1838. On completing his degrees, he served as Moderator in 1842, examiner through May 1843 and was also appointed assistant tutor. At the suggestion of his friend,
Archibald Smith, he founded and was the first editor of the
Cambridge Mathematical Journal in November 1837, helped by
Robert Leslie Ellis who succeeded him as editor. Many of his articles for the
CMJ were collected in
The Mathematical Writings of D. F. Gregory, edited by his friend and colleague William Walton. In 1841 he published his
Examples of the Processes of the Differential and Integral Calculus, which expanded the earlier work of
John Herschel,
George Peacock and
Charles Babbage to include the mathematics used to describe discontinuities observed in
heat transfer explored by the French mathematician
Joseph Fourier, and the
theory of undulatory light, a topic familiar to him. He was elected a member of the
Philological Society 12 May 1843. ==Other disciplines==