Solution (source code)

= Solution

The function is a <probability density function>, rather than a cumulative distribution: its integral over both intervals must be one. Thus $2\alpha+2\alpha=1$ and
$$
\boxed{\alpha=\frac14.}
$$