Let X,Y be i.i.d. exponentially distributed with parameter $\lambda$. Show that for $Z:=X+Y$ and a measurable, non-negative function $h$ we have:
$\mathbb{E}(h(X)|Z)=\frac{1}{Z}\int_0^Zh(u)\mathrm{du}$.
I know that $Z$ is gamma-distributed with shape $2$ and rate $\lambda$. Then using the joint distribution of $X$ and $Y$ I calculated the joint density of $X$ and $Z$ to be $f_{X,Z}(x,z)=\chi_{z\ge x}\lambda^2\exp(-\lambda z)$. Using this, and the formula for conditional expectation, I got $\mathbb{E}(h(X)|Z=z)=\int_0^\infty h(u)\cdot f_{X,Z}(x,z)/f_Z(z) \mathrm{du}=\int_0^Zh(u)\mathrm{du}$. I can't see why I didn't get the correct result. Also, do we need the assumption that $h$ is non-negative?
Edit: Of course, right after posting this, I find that a accidentally lost the $1/z$ along the way in the last equality. The second part of the question is still not clear to me though.