Implicit differentiation MS

Implicit differentiation MS