$f\colon R \rightarrow R$
$ f(x) = \begin{cases}x^3+1\text{ if} \ x \leq 0\\ \frac{1}{x^2}\ +1 \text{ if}\ x>0 \end{cases} $
Is $f$ a bijection?
Injective:
I graphed the piecewise function
It satisfies the horizontal line test so it is injective
Surjective
$ \lim{x\to-\infty} \ f(x) = - \infty $
but because $\lim{x\to+\infty} \ f(x) = 1$ it is not surjective so the function is not bijective.
Is this correct?
I would look at the image of each piece (for its respective domain) Show that each piece is one to one and onto its respective image.
The two images are disjoint. And the union of the two make the real numbers.
$x^3 + 1$ is one-to-one and onto mapping from $(-\infty,0] \to (-\infty, 1]$
and
$\frac {1}x^2 + 1$ is one to one and onto from $(0,\infty) \to (1,\infty)$
and $\mathbb R = (-\infty, 1]\cup (1,\infty)$