So i'm studying for my discrete mathematics final, and as I review over surjective/onto functions, i'm having issues explicitly proving functions are onto that don't have a simple inverse to find an plug in. Something like:
$$f(x) = 4x+2$$ is quite easy to prove either onto/not onto because the inverse is easy to find and the internet is littered with examples just like that. But when I come across something like:
$$f(x) = x^3-x$$ or: $$f: \Bbb Z \rightarrow \Bbb Z\ by\ f(x) = 2016x^3-263x$$
finding the inverse can be messy and aggravating. Going thru my notes from the year doesn't help me since our examples never got that difficult(but the exams did) and my prof isn't the most helpful via email.
So, what would be the best way to explicitly prove if these functions are onto? (no induction, please). Thanks!
edit: So here is the proof my professor gave of the second equation, but i'm not sure how it applies outside of this particular problem:
Claim: f(x) is not onto.
We claim that 1 $\in$ range(f).
Suppose not, $\exists a\in\Bbb Z$ such that $f(a) = 1.$
$\Rightarrow$ $2016a^3 - 263a = 1$
$\Rightarrow$ $a(2016a^2-263)$
$\Rightarrow$ ($a = 1$ and $2016a^2 - 263 = 1$)
or ($a = -1$ and $2016a^2 - 263 = -1$)
Both are impossible. End proof.
So is that going under the assumption that you can choose any arbitrary integer k to test for in the range of f? I try doing that for functions I know are onto and yet it doesn't work....so this is why i'm confused.