Asymptotic analysis of a summation
Assuming all the quantities are positive, just use $\log(Y-iy)\leq \log Y$, expand the brackets and use the standard identities for $\sum_i i$ and $\sum_i i^2$.  The $\log$ term disappears anyway since, asymptotically, it's dominated by the terms polynomial in&nbsp;$i$.