Problems in the development of mathematical knowledge in the classroom: the case of a calculus lesson