Is it defined by ?
For (a), consider ...can be onto? Then examine remaining cases for .
In (b), again concentrate on the value of (parameter acts like a shift, it can't affect whether the function is one-to-one or not). There are not many cases in which the function is not one-to-one, can you see them?