Here are the orthogonal functions.
Clear[u,v,L]
u[x_,L_,n_]:=Cos[n Pi x/L]
ColumnForm[Table[u[x,L,k],{k,0,10}]]Note that u[x,L,0]=1 and this will be used.
v[x_,L_,n_]:=Sin[n Pi x/L]
ColumnForm[Table[v[x,L,k],{k,0,10}]]Note that v[x,L,0]=0 and will not be used.
Discussion
Example
Go up to Calculus and Differential Equations Project Description
Exercise