that comes from Euler's formula [tex]e^{i\alpha}=\cos\alpha+i\sin\alpha[/tex], substituted into the general solution with the e's, some constant renaming and some trickery to show that if the new solution (with the cos + isin stuff) is a complex solution to the DE, then the same thing without the i is also a solution. But that was mostly hand-waving.