Dr. Pinter's "A Book of Abstract Algebra" presents this exercise:
Prove/disprove whether the following function $f$ (with inputs/outputs of real numbers) is injective and/or surjective: $$f(x)=x^{3}+1.$$
Using this helpful answer, I solved for $$f(a)=f(b)\colon$$
$$f(a)=a^{3}+1$$ $$f(b)=b^{3}+1$$ $$a^{3}+1=b^{3}+1$$ $$a^{3}=b^{3} \text{ subtract 1 from each side}$$ $$(a^{3})^{1/3}=(b^{3})^{1/3} \text{ take the cubic root of each side}$$ $$a=b$$
Therefore, $f$ is injective.
Again, following that helpful answer, solve for $x$, and then plug into $f(x)$:
$$y=x^{3}+1$$ $$y-1=x^{3}$$ $$x=(y-1)^{\frac{1}{3}}$$
Now, plug $x$ into $f$, and check if result equals $y$, which would prove the surjective property.
$$f(x)=x^{3}+1$$ $$y=((y-1)^{1/3})^{3}+1 \text{ use $y$ rather than $f(x)$}$$ $$y=y-1+1$$ $$y=y$$
Therefore, it's also surjective.
Is this right?