I'm required to show $ E(Y^2) = \dfrac{\alpha(\alpha + 1)}{(\alpha + \beta + 1)(\alpha + \beta)} $ for the beta distribution using the definition of expectation.
Now so far I have $ \int\limits_0^1 {y^2 \dfrac{\Gamma\left( \alpha + \beta \right)}{\Gamma \left( \alpha \right)\Gamma \left( \beta \right)} y^{\alpha-1}(1-y)^{\beta-1} dy} $ and I simplified it so that I pulled the gamma constants out front of the integral and combined $ y^2y^{\alpha-1} $ to be $ y^{\alpha+1} $. I'm not too sure where to continue from here... can anyone help me out?
You need to know the "beta function integral": $$ \int_0^1 y^{a-1}(1-y)^{b-1}\,dy = \frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)}. $$ This is also exactly how the normalization factor for the beta distribution is calculated, and also why the distribution is called the beta distribution.