I need to show that the function is bijective. I already showed that it is injective but I struggle to show that it is surjective
A function $F\colon X\to Y$ is called surjective, if for all $y$ belongs to $Y$, there exists an $x$ belongs to $X$ such that $f(x)=y$.
$$\begin{align}&y=(x-1)^3+2\\ &y-2=(x-1)^3\\ &\sqrt[3]{y-2}=x-1\\ &\sqrt[3]{y-2}+1=x\end{align}$$
I know that after, I need to set what I have in $f(x)$ but I have some problems to finish it.