Diffusion models have been used to solve probabilistic inverse problems in computer vision and scientific machine learning.This study introduces a new approach to derive diffusion models using ideas from linear partial differential equations.The new approach enables a unified derivation of multiple formulations and sampling strategies.The study also explores the applications of conditional diffusion models in solving density estimation problems and inverse problems.