I'm currently reading the textbook "Statistics for Mathematician" from Victor Panaretos. On page 65, the author presents the following equation for the Cramér-Rao Lower Bound (Note: I set the numerator to 1 by assuming an unbiased estimator)
$$\text{Var}(T) \geq \frac{1}{n\int_{\mathcal{X}}(\frac{\partial}{\partial\theta}\text{log }f(x;\theta))²\:f(x;\theta)dx}=\frac{1}{n\mathbb{E}[\frac{\partial}{\partial\theta}\text{log }f(x;\theta) ]^2}$$
However, I don't understand the equality in the denominator, namely why $$\int_{\mathcal{X}}(\frac{\partial}{\partial\theta}\text{log }f(x;\theta))²\:f(x;\theta)dx = \mathbb{E}[\frac{\partial}{\partial\theta}\text{log }f(x;\theta) ]^2$$ holds.
Shouldn't it rather be $\int_{\mathcal{X}}(\frac{\partial}{\partial\theta}\text{log }f(x;\theta))²\:f(x;\theta)dx = \mathbb{E}[(\frac{\partial}{\partial\theta}\text{log }f(x;\theta))^2]$?