I read the book The Mathematics of Diffusion by John Crank. In a case, the solution is as a trigonometrical series of

$x$ is the distance, what is the term $f(x')$?
Shouldn't we calculate the series for any given value of $x$? Then, what is $x'$?
How can the last integral be calculated?