Show that a smooth function y(x) that satisfies y(0)=y′(1)=0 can be written as a Fourier series of the form
y(x)=n=0∑∞ansinλnx,0⩽x⩽1
where the λn should be specified. Write down an integral expression for an.
Hence solve the following differential equation
y′′−α2y=xcosπx
with boundary conditions y(0)=y′(1)=0, in the form of an infinite series.
(i) f(x)=e−a∣x∣, and (ii)g(x)={1,0,∣x∣⩽b∣x∣>b.