In a book I have found this example, where:
$$ \alpha (x) = \begin{cases} 0, & \mbox{if } x < 1, \\ x^2-2x+2, & \mbox{if } 1\le x < 2, \\ 3, & \mbox{if } x = 2, \\ x+2, & \mbox{if } x > 2 \end{cases} $$ Then after some computation: $$\int_{[0,3)}x^2 d\alpha = \dfrac{109}{6}$$
How $\alpha (x)$ is computed here and for what $f(x)$? Does $x^2$ mean some $f(x)^2$?