Benamou-Brenier Metric Tensor Formula