Let $f:[0, 1] \to \mathbb{R}$, $f(x) = -x^3+2x$. Prove using the definition of uniform continuity that the function is uniformly continuous.
By definition $\forall \varepsilon >0$ $\exists \delta>0$ such that, $|f(x)-f(y)|< \varepsilon$ whenever $x,y, \in \mathbb{R}$ and $|x-y|< \delta$.
Using this I get $|-x^3+2x+y^3-2y| = |-x^3+y^3 +2x-2y|$. How should I continue from here? I'm a bit stuck.
The triangle inequality yields $$ |y^3-x^32+2x-2y|\leq |y^3-x^3|+2|x-y|<|y-x||y^2+yx+x^2|+2\delta<3\delta+2\delta=5\delta. $$ So given any $\epsilon>0$, let $\delta=\epsilon/5$