Let X be uniformly distributed in (0,1). Define W=2X^(1/2). Find the density of W.

Let Y= min(1,W). Obtain the distribution of Y.

Here's what I've done so far:

P(W<=w) = P(2X^(1/2)<=w) = P(X<= w^2/4) = F(w^2/4) = w^2/4 because X is uniform.

finally

f(w) = w/2 0<w<2

then for the distribution of Y

P(Y<=y)= P( min(1,W) <=y )

min(1,W)= 1 if W>1 , W if W<=1 , and 0<min(1,W)<1

P( 1<=y ) = 0 if 0<y<1 , 1 if y>=1

and for 0<y<1, P( min(1,W) <=y )= P(1<=y)*P(W>1) + P(W<=1)*P(W<=y) = y^2/16

so P(min(1,W)<=y) = 0 if y<0 , 1 if y>=1 , y^2/16 if 0<y<1

I don't know if what I'm doing to obtain y^2/16 is correct, any help is appreciated.