Here,f(x)=ex Also, (0,L)= (0,l) ⟹L=l a0=2L∫0Lfx dx a0=2l∫0l ex dx a0=2lex0l a0=2lel-e0 a0=2lel-1 an=2L∫0Lfx cosnπxL dx an=2l∫0lex cos nπxl dx Here, a=1 ; b=nπl an=2lex1+n2 π2l21cosnπl+nπlsinnπl0l an=2ll2l2+n2 π2ex1cosnπl+nπlsinnπl0l an=2ll2l2+n2 π2elcosnπ+nπlsinnπ-e0cos0+nπlsin0 an=2ll2+n2 π2el-1n+nπl0-e01+nπl0 an=2ll2+n2 π2el-1n-1 Now, Fourier series of f(x) is, f(x)=a02+∑n=1∞an cosnπxl ⇒f(x)=1lel-1+∑n=1∞2ll2+n2 π2el-1n-1cosnπxl