I will comment on your attempt to prove rather then how to prove.
- Let $x$ be the eigenvalue of the matrix $CD$ with the eigenvector $v$. Then $CDv=xv$. Now let $y=Dv$. Then $DCy=DCDv=xDv=xy$. This shows that $y$ is the eigenvector of $DC$ with the eigenvalue $x$.
It does not show yet that $y$ is an eigenvector of $DC$, because by definition an eigenvector must be non-zero, however, you have not shown that $y\ne 0$, and as a matter of fact, it may happen that $y=0$, $x=0$, so no contradiction. You assume in what follows that $x\ne 0$, but it is too late. It should be done earlier. For example,
- Assume that $x\ne 0$ is an eigenvalue of $CD$, and $v$ is a corresponding eigenvector, i.e. $CDv=xv$. Now let $y=Dv$, then $DCy=DCDv=xDv=xy$. Since by assumption $x\ne 0$ and $v\ne 0$ as an eigenvector, we have $Cy=CDv=xv\ne 0$, which implies $y\ne 0$. This shows that $y$ is the eigenvector of $DC$ with the eigenvalue $x$.
Now about the second part of the proof.
- This implies that $DC$ and $CD$ have the same non-zero eigenvalues
Let's see if you can really say that. All you have proved so far is that if $x\ne 0$ is an eigenvalue of $CD$ then $x$ is an eigenvalue of $DC$. For example, it can still happen that $CD$ has eigenvalues $0,1,1,1$ and $DC$ has $0,1,2,3$, no contradiction. To rule it out you need to remark that
- Exchanging the roles of $C$ and $D$ we can conclude from above that the non-zero eigenvalues of $CD$ and $DC$ are the same.
Can we say now the following?
- ... which also means that $\phi(CD,x)=\phi(DC,x)$ provided $x\ne 0$.
First of all, you need to define what $\phi$ is. I guess that you mean the characteristic polynomials.
So can we say that it is true? Why the following situation is not possible that the eigenvalues of $CD$ are $0,1,1,1$ and the eigenvalues of $DC$ are $0,0,0,1$? It is not obvious. The argument above does not say anything about the multiplicities of the non-zero eigenvalues, so the conclusion about the polynomials being the same is too early. Honestly, I do not see a simple trick to save the argument without appealing to heavier machinery. What is possible to do is
a) show that the eigenvalues can be made simple by an arbitrary small perturbations in $C$ and $D$ and use the continuity of determinant argument (but on this way we could assume from the beginning that, for example, $D$ is invertible and have a much easier proof: the matrices $DC$ and $CD$ are similar as $D(CD)D^{-1}=DC$).
b) count multiplicities for all generalized eigenvalues (Jordan normal form? does not sound simple).
c) something very different from your approach (eigenvalues), like using the properties of determinant, e.g. Sylvester theorem.