Sorry if this is a duplicate, but can't find it anywhere. I'm learning some additive number theory and am stuck on showing some bounds. Let $S(\alpha, X) = \displaystyle \sum_{x=1}^{X} e(\alpha x)$ (where $e(\beta)$ just means $e^{2 \pi i \beta}$). First, I need that $|S(\alpha, X)| << (2|| \alpha||)^{-1}$ where $|| \alpha|| = |\alpha \text{ mod } 1|$.
Here is what I've gathered: $S(\alpha, X) = \frac{e(\alpha)-e(\alpha(X+1))}{1-e(\alpha)}$ by the geometric series formula. Then, the magnitude of this is $$|S(\alpha, X)|^2 = \frac{2-e(\alpha X)-e(-\alpha X)}{2-e(\alpha)-e(-\alpha)} = \frac{2-2\cos(2 \pi \alpha X)}{2-2 \cos (2 \pi \alpha)}$$ I'm not sure where to go from here. I thought I remembered at one point getting an expression with a single $\sin (2\pi \alpha)$, which is easy to compare to $||\alpha||^{-1}$.
The other bound I'm stuck with is $$\int_{0}^{1} |S(\alpha, X)| \text{ d} \alpha << \log (2X)$$ Again, I'm not really sure how to proceed except with fiddling with the cosine expression I got above, but I have no idea how to relate that to something like $\log (2X)$.