% A function with a period of pi that has a finite Fourier series.
% It is normalized so that the integral from 0 to pi is 1.
function result = periodic1(x)
normalization = 8/(3*pi);
result = normalization * (sin(x)).^4;