Representation Learning With Diffusion Models Math