Thanks. With this we can proceed using quantifier elimination methods. I predefine the pdfs and cdfs as symbols just to make later code more concise.
pdf2 = Piecewise[{{0, 1 < x < \[Infinity]}, {a*Cos[f*2*\[Pi]*x] + 1,
0 <= x <= 1}, {0, -\[Infinity] < x < 0}}];
MDistribution[f_, a_] =
ProbabilityDistribution[pdf2, {x, -\[Infinity], \[Infinity]}];
pdfM0 = PDF[MDistribution[f, 0]];
pdfU0 = PDF[UniformDistribution[{0, 1}]];
cdfM0 = CDF[MDistribution[f, 0]];
cdfU0 = CDF[UniformDistribution[{0, 1}]];
Resolve
is a useful tool for the ForAll
approach (I do not know of a better one by the way).
In[492]:= Resolve[ForAll[n, pdfM0[n] == pdfU0[n]], n, Reals]
(* Out[492]= True *)
In[493]:= Resolve[ForAll[n, cdfM0[n] == cdfU0[n]], n, Reals]
(* Out[493]= True *)
Reduce
could also be used for these. FullSimplify
is a different beast. Also it seems they are not quite equivalent outside the reals (maybe they are undefined there).