Choose such that almost surely. Equality of the positive moments, together with equality of the zeroth moments , gives
for every polynomial . By the Weierstrass approximation theorem, every continuous function on is a uniform limit of polynomials. Expectations preserve this limit, so and have equal expectations for every continuous function on their common compact support. The moment determinacy on a compact interval therefore gives equality of their laws.
The Laplace transform of a nonnegative random variable determines its probability law. Indeed, takes values in , and . Thus the transform determines every moment of ; moment determinacy on a compact interval determines the law of , and the injective inverse determines the law of .