AutoDiff of function inverse?

Just as comment, there was a similar question in the past