[en] Using stochastic analysis, we prove various gradient estimates and Harnack inequalities for Feynman-Kac semigroups with possibly unbounded potentials. One of the main results is a derivative formula which can be used to characterize a lower bound on Ricci curvature using a potential.