After Cavalieri died in November 1647, Mengoli had been appointed to his chair at the University of Bologna. Mengoli held a number of chairs at the University of Bologna where he taught all his life. He was professor of arithmetic from 1648 to 1649, then professor of mechanics from 1649 to 1668 and, finally, professor of mathematics from 1668 until his death in 1686. In addition to these chairs he was also a priest in the parish of Santa Maria Maddelena in Bologna from 1660.
His role in the development of mathematics is described in :-
Mengoli's mathematics was superficially conservative. He did not subscribe to the innovations of Torricelli, and his own discoveries were set out in abstruse Latin that made his works laborious to read. His books were nevertheless widely distributed in the seventeenth century, and were known to Collins, Wallis, and Leibniz; they were then almost forgotten, so that Mengoli's work has been studied again only recently. His significance to the history of science lies in the transitional position of his mathematics, midway between Cavalieri's method of indivisibles and Newton's fluxions and Leibniz's differentials.Mengoli used infinite series to good effect in Novae quadraturae arithmeticae, seu de additione fractionum Ⓣ published in Bologna in 1650, developing ideas which had first been investigated by Cataldi. He begins with the summation of geometric series, then shows that the harmonic series does not converge. In doing so he became the first person to prove that it was possible for a series whose terms tend to zero to be made larger than any given number. He also investigated the harmonic series with alternating signs which he proved converges to log(2). This series was also investigated by Nicolaus Mercator.
Other interesting results about series in Novae quadraturae arithmeticae Ⓣ include a study of the sum of reciprocals of the triangular numbers ½n(n+1). Mengoli showed that
r = 2, S = 3/4
r = 3, S = 11/18
r = 4, S = 25/48
r = 5, S = 137/300
r = 6, S = 49/120
r = 7, S = 363/980
r = 8, S = 761/2240
r = 9, S = 7129/22680
r = 10, S = 7381/25200
Mengoli also wrote Geometriae speciosae elementa Ⓣ (1659) on limits of geometrical figures. This work, which is examined in detail in , is particularly interesting for it contains a definition of a definite integral in terms of the area of a plane figure rigorously given by constructing circumscribing and inscribing parallelograms which sum to equal limits. He defines limits of positive variable quantities using ideas that he had used in looking at limits of series. He called a positive variable quantity quasi-infinite if it could be made larger than any given number, quasi-nil if it could be made smaller than any given positive number, and quasi-a if it could be made smaller than any number greater than a and greater than any number less than a. By examining the limits of sums, products and quotients of variable quantities, Mengoli was setting up the basic rules if the calculus thirty years before Newton and Leibniz. Both of these were influenced by his contribution, in the case of Leibniz the influence was direct as he read Mengoli's work while in the case of Newton he knew of it indirectly through studying Wallis.
In Circolo (1672) Mengoli found an infinite product expansion for π/2. He also computed the definite integral from 0 to 1 of xm/2(1 - x)n/2.
Other work by Mengoli included work on astronomy, work on refraction in the atmosphere and a book Speculazioni musicali (1670) on the theory of music. In this Mengoli's criticises of the theory of resonance set out by Galileo. For details of this work see  where the author describes the "amazing" assumption that the human ear has two drums and places this idea in the context of Mengoli's natural philosophy.
The paper  examines correspondence by Mengoli in which he discusses problems due to Ozanam. This gives new insight into Mengoli's mathematics. The authors:-
... analyse a little-known aspect of Pietro Mengoli's mathematical activity: the difficulties he faced in trying to solve some problems in Diophantine analysis suggested by J Ozanam. Mengoli's recently published correspondence reveals how he cherished his prestige as a scholar. At the same time, however, it also shows that his insufficient familiarity with algebraic methods prevented him, as well as other Italian mathematicians of his time, from solving the so-called 'French' problems.
Article by: J J O'Connor and E F Robertson