My question refers to the section "4.1 Optimizing EI in the TPE algorithm" on page 4 of the paper Algorithms for Hyperparameter Optimization (PDF).
The authors provide the following step, where $\gamma := p(y < y^*)$:
$$\ell(x) \int_{-\infty}^{y^*} (y^* - y) p(y)dy = \gamma y^* \ell(x) - \ell(x) \int_{-\infty}^{y^*}p(y)dy$$
However, this is where I arrive:
\begin{align} \ell(x) \int_{-\infty}^{y^*} (y^* - y) p(y)dy &= \left[ \ell(x) \int_{-\infty}^{y^*} y^* p(y)dy \right] - \left[ \ell(x) \int_{-\infty}^{y^*} y p(y)dy \right]\\ &= \left[y^* \ell(x) \int_{-\infty}^{y^*} p(y)dy \right] - \left[ \ell(x) \int_{-\infty}^{y^*} y p(y)dy \right]\\ &= y^* \ell(x) p(y < y ^*) - \left[ \ell(x) \int_{-\infty}^{y^*} y p(y)dy \right]\\ &= y^* \ell(x) \gamma - \left[ \ell(x) \int_{-\infty}^{y^*} y p(y)dy \right]\\ &= \gamma y^* \ell(x) - \ell(x) \int_{-\infty}^{y^*} y p(y)dy \\ \end{align}
The difference between my result and the authors' result is that I still have a $y$ in the remaining integral. I got $\int_{-\infty}^{y^*} y p(y)dy$ but the authors got $\int_{-\infty}^{y^*}p(y)dy$.
Why are they different?