Firstly lets calculate probability density function of chosing a point on a unit length stick -- the point has a constant probability between 0 and 1 (uniform distribution) and 0 otherwise.
so
$$
\int_1^0 c \, dx
$$
which makes c=1
Now lets say i break a stick at x, then stick is divided into two parts of length x and 1-x.
but i want the shorter stick, upto 0 to 0.5 the shorter length is x and from 0.5 to 1 the shorter length is 1-x.
so integration of cx from 0 to 0.5 + c(1-x) from 0.5 to 1
$$
\int_0^{0.5} c x \, dx + \int_{0.5}^1 c(1 - x) \, dx
$$
substitute c=1, and this uses lotus (law of unconscious statistician) and ans = 1/4 or 0.25