Both Newton and Leibniz had come up with the idea of the integral when they had formulated calculus, but the Riemann integral is kind of the most mainstream formal, or I would say rigorous, definition of what an integral is. 