A new perspective on mathematics education coming from history: the example of integral calculus