Functions from X to Y: How many are there?

  • Thread starter Thread starter Gale
  • Start date Start date
  • Tags Tags
    Algebra Proof
Gale
Messages
682
Reaction score
2

Homework Statement

Let X = \{0,1 \} and let Y =\{a, b, c\} (where we assume that a, b, c are three distinct elements of Y .

(i) Write down all functions from X to Y , by writing down the set of all subsets of X \times Y which are the graphs of the corresponding functions. How many functions are there? How many are injective? How many are surjective? Bijective? For each function f fi nd the image f(X) the preimage f^{-1} (\{a,c\}); the preimage f^{-1}(a).

(ii) Write down all functions from X to Y , by writing down the set of all subsets of X \times Y which are the graphs of the corresponding functions. How many functions are there? How many are injective? How many are surjective? Bijective? For each function g, fi nd: the image g(Y); the preimage g^{-1}(\{1\}) = g^{-1}(1).


Homework Equations





The Attempt at a Solution



Part i)
Ok, so I just started class and I'm not very familiar with the wording of this or what I'm supposed to do. I started thinking like this:

\{f: X \rightarrow Y | \forall x \in X, \exists y \in Y: f(x) =y \} But I don't really think that I'm saying anything with that... Nor do I know if I'm even working towards the right sort of answer.

As for how many are there? Well, I figured I could just count. The first element of X can map to the first element of Y, then the second element of X can then map to the first as well, or the second, or third. So three options. Similarly, the first element of X can map to the second element of Y, but there are still 3 options for the second element of X. And again you have three options if the first element maps to the third element. So 9 options. I figured it was easy enough to count, though I think mathematically it would be \# Y^{\#X} or in this case 3^2= 9. I think?

None of the functions can be surjective because since the cardinality of X is bigger than Y not every element can be mapped to.

For Injective, the domain can only map to the same element in Y 3 times, and since there are 9 total functions, 6 must be injective?

None are bijective because their cardinalities are different.

I don't know if those are rigorous enough proofs. I'd like to hold off on the rest until I'm sure I'm doing the first parts right. So thanks for any help!
 
Physics news on Phys.org
Why don't you start by first listing all the pairs of ##X\times Y##? Then literally list the subsets of that that represent the 9 (you are correct, there are 9) functions as it asks you to do. That will make it easy to answer all the parts of (i). Then you can start on (ii).
 
LCKurtz said:
Why don't you start by first listing all the pairs of ##X\times Y##? Then literally list the subsets of that that represent the 9 (you are correct, there are 9) functions as it asks you to do. That will make it easy to answer all the parts of (i). Then you can start on (ii).

Ok, so I started over. I wrote out all the ordered pairs from X \times Y. Then I wrote out every function, ie f_1= \{(0,a),(1,a)\} \ , \ f_2= \{(0,a),(1,b)\}... etc. Then I just individually answered whether each function was surjective, injective, bijective individually.

The image and pre-images were easy... I think. For example Imf_1= \{a\} , f^{-1}_1(\{a,c\})= \{0,1\} , f^{-1}_1(\{a\})= \{0,1\} , Imf_2= \{a,b\} , f^{-1}_2 (\{a,c\})= \{0\}, f^{-1}_2(\{a\})= \{0\}... so on.

If that's all right, I basically just did the same thing for part ii, except that I got 8 possible functions. 6 are surjective, and none are injective or bijective.
 
Last edited:
Looks good. Makes it easy, eh?
 
LCKurtz said:
Looks good. Makes it easy, eh?

Too easy... I thought it was a much more complicated problem... hah.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top