Assume two inputs give the same output, f(a)=f(b), so a3+a=b3+b. Move everything to one side and group the terms.
(a3−b3)+(a−b)=0
Factor a3−b3=(a−b)(a2+ab+b2) and pull out the shared factor a−b.
(a−b)(a2+ab+b2+1)=0
Complete the square on the second factor: a2+ab+b2=(a+2b)2+43b2≥0, so a2+ab+b2+1≥1 and can never be zero. That forces a−b=0, hence a=b: different inputs give different outputs, and f is one-to-one on all reals.