Re: Discrete Maths Sem 2 2016
Well the second function isn't well-defined because the given "codomain" isn't really a codomain at all (a codomain should contain all the function values, but it clearly doesn't here. I.e. if f: X -> Y is a well-defined function, we should have f(x) ∈ Y for all x ∈ X, but that's not the case for your second Q., since e.g. f(-1) = (-1)^3 = -1, which is not in [0, ∞).).
Which thing was confusing you?Wait what? Now I'm confused.
I resolved my question mainly based off something like this:
I was wondering why something like this 'function' is not surjective:
But then I realised that it's not a function because when x<0, there are no output values.
(Edit: Or maybe I do actually. I think I might've abused the term "range")
Well the second function isn't well-defined because the given "codomain" isn't really a codomain at all (a codomain should contain all the function values, but it clearly doesn't here. I.e. if f: X -> Y is a well-defined function, we should have f(x) ∈ Y for all x ∈ X, but that's not the case for your second Q., since e.g. f(-1) = (-1)^3 = -1, which is not in [0, ∞).).