Abstract
A Lagrangian is obtained by deriving the path-integral representation of the diffusion process. It can be applied, e.g., to nonequilibrium thermodynamics and to quantized motion in general relativity. In second quantization it is shown to lead to a particularly well-behaved energy-momentum tensor as a source of gravity.