Invention of Calculus was one of the greatest discoveries ever. It permitted the solution to a wide range of mathematical problems by means of a newly invented language or metaphor. It was therefore a great creative breakthrough and it is therefore entirely predictable that the process by which it was invented has never been properly taught to the millions of people who study the calculus.
The history of calculus falls into several distinct time periods, most notably the ancient, medieval, and modern periods. The ancient period introduced some of the ideas of integral calculus, but does not seem to have developed these ideas in a rigorous or systematic way. Calculating volumes and areas, the basic function of integral calculus, can be traced back to the Egyptian Moscow papyrus (c. 1800 BC), in which an Egyptian successfully calculated the volume of a pyramidal frustum. From the school of Greek mathematics, Eudoxus (c. 408-355 BC) used the method of exhaustion, which prefigures the concept of the limit, to calculate areas and volumes while Archimedes (c. 287-212 BC) developed this idea further, inventing heuristics which resemble integral calculus. The method of exhaustion was later used in China by Liu Hui in the 3rd century AD in order to find the area of a circle. It was also used by Zu Chongzhi in the 5th century AD, who used it to find the volume of a sphere.
In the 12th century, the Indian mathematician Bhaskara II developed an early derivative representing infinitesimal change, and he described an early form of "Rolle's theorem". Around AD 1000, the Islamic mathematician Ibn al-Haytham (Alhazen) was the first to derive the formula for the sum of the fourth powers, and using mathematical induction, he developed a method that is readily generalizable to finding the formula for the sum of any integral powers, which was fundamental to the development of integral calculus.