fixed lagrange multiplyer stacking; starting differentiation and integration.