Actually you have proved that, for any positive integer $x$, $x+1$ is invertible modulo $x^3$.
Indeed, $(x+1)(x^2-x+1)=x^3+1\equiv1\pmod{x^3}$.
No need to check that $x^2-x+1>0$ (which it is, and it may be just remarked). If you find $u\in\mathbb{Z}$ such that $xu\equiv 1\pmod{x^3}$, then you also find $v>0$ such that $xv\equiv1\pmod{x^3}$: just keep adding $x^3$ to $u$ until you get past $0$.
A few more notes.
The $x>1$ clause is just to avoid congruences modulo $1$, which however don't pose relevant problems, do they?
By the way, I'd also state that the restriction for $x$ to be a positive integer can be replaced by “$x$ is an integer”. Even $x=0$ is good, because congruence modulo $0$ is just equality and $0+1=1$ is certainly invertible modulo $0$.