I just started working with Big-O notation.
Proof: for which $x$ is $\sum_{i=1}^{n}x ^i=O(n)$ true.
First case: $x>1$
$\sum_{i=1}^{n}x ^i=s_n=x\frac{x^{n+1}-1}{x-1}$ and $\lim_{n->\infty} \frac{s_n}{n}= \frac{x(x^{n+1}-1)}{n(x-1)}$.
Now I used L’Hospital
$\lim_{n->\infty} \frac{\lg(x) x^{n+1}}{(x-1)}=\infty $
$\sum_{i=1}^{n}x ^i \neq O(n)$
Edit: for x =1
Is that correct? $\sum_{i=1}^{n}1 ^i=n=O(n)$ ->true
For x<1, i have no idea, how to solve it?
Let $$f_x(n)=\sum_{i=1}^n x^i.$$ Recall that $f_x(n)\in\mathcal O(n)$ if and only if there exist $C>0$ and and a positive integer $n_0$ such that $|f_x(n)|\leqslant Cn$ for all $n\geqslant n_0$. If $|x|=1$, then clearly $|f_x(n)|=n$ so $f_x(n)\in\mathcal O(n)$. If $|x|\ne1$, then $$ f_x(n) = \frac{x(1-x^{n+1})}{1-x}.$$ If $|x|<1$, then $\lim_{n\to\infty}f_x(n)=\frac1{1-x}$, so choosing $n_0=\max\left\{1, \left\lceil\frac1{1-x} \right\rceil\right\}$ and $C=2$ we see that $f_x(n)\in\mathcal O(n)$.
If $|x|>1$, then $\lim_{n\to\infty}|f_x(n)|=\infty$, but $$\lim_{n\to\infty}\frac{|f_x(n)|}{n} = \infty,$$ as you showed, so $f_x(n)\notin\mathcal O(n)$.