Let X be a set. Prove there is an injection from $X \rightarrow 2^X$. Prove that there is not a surjection from $X \rightarrow 2^X$.
My try- Assume to the contrary that $f: X \rightarrow 2^X$. is a surjection and consider the set $M=\{x\in X | x \not\in f(x)\} $. Then show to show that M doesn't have a pre-image. So, there is no surjection.