implicit differentiation stationary points