Break a stick of unit length at a uniformly chosen random point. Then take the shorter of the two pieces and break it into two again at a uniformly chosen random point. Let X denote the shortest of the final three pieces. Find the probability density function of X.
I let the shorter one on the first break be x, which should be between (0, $1/2$), so the pdf should be $$f(x)=2, 0<y<\frac{1}{2}$$ then the conditional probability of $f(x|y)$ should be (since it is another uniform distribution) $$f(x|y)=\frac{1}{y/2-0}=\frac{2}{y}$$ by applying conditional probability formular $$f_X(x)=\int_0^{1/2}f_{X|Y}(x|y)f_Y{y}dy=\int_0^{1/2}\frac{2}{y}\times2dy=4ln(y)|^{1/2}_0$$
I stopped here since it is impossible. Can someone help?

The last integral should be taken from $x$ to $1/2$, since $f(x \mid y)$ is zero when $x > y$.