verify that the solution $u''=f(x)$, $u(0)=u(1)=0$ is given by $u(x)=\int_0^1k(x,y)f(y)dy$ where
$k(x,y) = \begin{cases} y(x-1), & \text{ $0\leq y<x\leq 1$} \\[2ex] x(y-1), & \text{ $0 \leq x<y\leq 1$} \end{cases}$
EDIT according to feedback
Solution:
Suppose $0\leq a \leq 1$ and assume f(x) is continuous \begin{align} u(x) &= \int_0^a y(x-1)f(y)dy+\int_a^1 x(y-1)f(y)dy\\ u'(x) &= \frac{d}{dx}(\int_0^a y(x-1)f(y)dy+\int_a^1 x(y-1)f(y)dy)\\ & = \int_0^ayf(y)dy+\int_a^1(y-1)f(y)dy\\ u'' &= 0 \end{align}
which is not the solution given. Where did I go wrong?
To split the integrand into two continuous function make $a$ a function of $x$: \begin{align*} a(x) = x. \end{align*}
Then \begin{align*} \int_0^1 k(x,y) f(y) dy &= \int_0^x y(x-1) f(y) \ dy + \int_x^1 x(y-1) f(y)\ dy. \end{align*}
To evaluate derivatives of integrals with variable limits use the Leibniz integral rule. The first and second terms are \begin{align*} \frac{d}{dx} \int_0^x y(x-1) f(y) dy &= \int_0^x yf(y) \ dy + x(x-1)\\ \frac{d}{dx} \int_x^1 x(y-1) dy &= \int_x^1(y-1)f(y) \ dy - x(x-1). \end{align*}
Summing these and using linearity to collect terms $yf(y)$, \begin{align*} u'(x) = \int_0^1 y f(y) \ dy - \int_x^1 f(y) dy. \end{align*}
The first term is a constant and the second term can be differentiated by the Fundamental Theorem of Calculus to get \begin{align*} u''(x) = f(x). \end{align*}
And the boundary conditions are satisfied because $k(0,y)=k(1,y)=0$ for $y\in(0,1)$.