Discrete-time 'inversion' and derivative estimation for Markov chains