Developing basic recursive algorithms for differentiation.