I'm having difficulty formulating a proof detailing that every eigenfunction of $D^2$ is either a constant or of the form $a$cos$(nx)$ + $b$sin($nx$) for some value $n$.
I understand that the Fourier basis B = {1/√2, cos(nx),sin(nx)} consists of eigenfunctions of D$^2$ on the space of piecewise smooth 2π-periodic functions with corresponding eigenvalues of $-n^2$, but I am confused as to how that relates to the given form above. Can anyone help?
A function $y:\>{\mathbb R}\to{\mathbb C}$ is an eigenfunction of $D^2$ if there is a $\lambda\in{\mathbb C}$ such that $$y''(x)=\lambda y(x)\tag{1}$$ for all $x\in{\mathbb R}$. Set up the full space $E_\lambda$ of all solutions of $(1)$ for a given $\lambda$, and find out which values of $\lambda$ lead to solutions of period $2\pi$ (since you seem to impose this condition). Finally you can sieve out the real solutions of this kind.