Choose a point uniformly at random in a unit square (square of side length 1). Let X be the distance from the point chosen to the nearest edge of

the square.


(a) Find the cumulative distribution function of X .

(b) Find the probability density function of X .