From characteristic function to distribution function: a simple framework for the theory