Hi, this is probably ultra trivial, but here it goes

We know that , where etc.

Now pdf for uniform dist is defined as:

so I apply the above formula, which yields 1+1 = 2

i.e.

and similarly 1 for the other one as well.

But all the probability books I'm checking says that

Can anybody explain me what am I doing wrong?

Thanks