circuit training - implicit differentiation