Integral expressions for arbitrary phase shift differences