calculus modelling please see attachment