Fourier Series Method

We can write

(3)            

and
(4)            
 

The an terms can be determined by constructing an even function for n2(x).

Substituting eqn 3 and 4 into eqn 2 we obtain

(5)            
                                            

Collecting all the terms with the same spatial frequency on the left hand side of eqn 5 and the setting the same spatial frequency on the left hand side equal to zero, we obtain

(6)            

and

(7)            

where E and  denote respectively the transposes of {E0,E1,E2,...,EN} and {E1,E2,...,EN}.  The matrices A, D and W are defined as

(8)            

(9)            

(10)            
 

Note that aN+1=aN+2=...=a2N=0.  Also aN=0 for a non-trivial solution.