in a previous question, I mistakenly attempted to subtract one cardinal number from another. Anyway, this got me to thinking, suppose I have two sets $X$ and $Y$, with $Y\subseteq X$. Suppose also that $|X|=|Y|=|X-Y|=\kappa$ for some cardinal number $\kappa$. Does there exist some bijection $f\colon X\to X$ such that $Y$ consists of all fixed points of $f$?
I thought the easiest example comes from working with countable sets. If $X=\mathbb{Z}$ and $Y$ is the set of even integers, then we could take $f$ to be $$ f(x)=\begin{cases} x, &\text{if }x\text{ is even} \\ x+2, &\text{if }x\text{ is odd} \\ \end{cases} $$
Of course, we could do the same thing with the set of odds. I wasn't able to think of any more examples.
But I'm curious, is it possible to do this in the more general sense, for any sets where $|X|=|Y|=|X-Y|=\kappa$, and $Y\subseteq X$? That is, can we prove there exists a bijection on $X$ such that $Y=\{x\in X\ |\ f(x)=x\}$? After thinking about it, I suppose it suffices to find a derangement $g$ (I hope I'm using that term correctly, I've only seen it used in combinatorics on finite sets) on $X-Y$, and then we could let $f=g\cup id|_Y$. Thanks!
Of course, as Arturo points out, the axiom of choice is enough to show what you are asking for. A slightly simpler way to show it is this: Let $Z$ be an infinite set. Since by the axiom of choice we have $|Z\times 2|=|Z|$ take a function $g$ such that $g(a,0)=(a,1)$ and $g(a,1)=(a,0)$ for every $a\in Z$. Then $id\cap g=\varnothing$. Composing a bijection $f:Z\to Z\times2$ with $g$ and then with $f^{-1}$ you get what you want.
On the other hand I have constructed a model in which the countable axiom of choice is true (also the axiom of dependent choice is true) while there exists a subset of real numbers for which no such function you are looking for exists. The construction is done either through forcing or using atoms. You can find about generic models and symmetric models in Jech's "Set Theory" or Jech's "The Axiom of Choice".
The basic idea is to add regular many Cohen reals ($\aleph_1$ for example) through the notion of forcing (or have $\aleph_1$ atoms). Then take a normal filter on the group of permutations of $\aleph_1$ (or of the atoms) that is generated by the countable subsets of $\aleph_1$ ( i.e. generated by $\{\pi\in\mathcal{G} : \pi_{\upharpoonright E}=id\}$ for $E\subset\aleph_1$ and $|E|\leq\aleph_0$ and $\mathcal{G}$ the permutations of $\aleph_1$).
Then functions with countable domain will remain inside the symmetric submodel and thus countable choice and dependant choice will be satisfied by the symmetric model. But a permutation of all the Cohen reals that isn't finally constant will be impossible to exist inside the symmetric submodel thus making what you are asking for impossible and a fortiori making $|Z|+|Z|=|Z|$ fail inside the model.
Edit: As Asaf points out in the comments this easily generalizes (for every cardinal $\kappa$) to make $AC_\kappa$ hold in the symmetric model while there exists a counterexample to what you are looking for.