3 random positions in 3 squares are selected from independent uniform distributions. How to calculate the expected absolute triangle area if the squares are arranged as in the sketch?
The side length of a square $m$ is smaller than the square distance $n$. The squares are parallel and colinear. In each square lies 1 random point.

This is essentially dan_fulea’s solution, but since I’d almost finished it and I wrote it down somewhat differently, I’m posting it anyway.
I'll use coordinates with the origin at the bottom left and the $x$ and $y$ axes in the usual directions.
The signed area is a quadratic function of the coordinates that can be derived e.g. via the cross product of two sides: $A=\frac12((x_2-x_1)(y_3-y_1)-(x_3-x_1)(y_2-y_1))=\frac12(x_3y_1-x_1y_3+x_1y_2-x_2y_1+x_2y_3-x_3y_2)$. The sign changes exactly once across the range of $y_2$, so it’s convenient to do the $y_2$ integration first. Since the integral over the signed area is zero, we can replace the integral of the unsigned area by twice the integral of the signed area over the domain where it is positive:
\begin{eqnarray} && \int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3\int_n^{n+m}\mathrm dx_2\int_0^m\mathrm dy_1\int_0^m\mathrm dy_3\int_0^m\mathrm dy_2\,|A| \\ &=& \int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3\int_n^{n+m}\mathrm dx_2\int_0^m\mathrm dy_1\int_0^m\mathrm dy_3\int_0^{\frac{x_3y_1-x_1y_3-x_2y_1+x_2y_3}{x_3-x_1}}\mathrm dy_2 \\ && (x_3y_1-x_1y_3+x_1y_2-x_2y_1+x_2y_3-x_3y_2) \\ &=& \int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3\int_n^{n+m}\mathrm dx_2\int_0^m\mathrm dy_1\int_0^m\mathrm dy_3\frac12\frac{(x_3y_1-x_1y_3-x_2y_1+x_2y_3)^2}{x_3-x_1} \\ &=& \frac12\int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3\int_n^{n+m}\mathrm dx_2\int_0^m\mathrm dy_1 \\ &&\frac1{x_3-x_1}\left(\frac13(x_2-x_1)^2m^3+(x_2-x_1)(x_3-x_2)y_1m^2+(x_3-x_2)^2y_1^2m\right) \\ &=& \frac12m^4\int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3\int_n^{n+m}\mathrm dx_2 \\ && \frac1{x_3-x_1}\left(\frac13(x_2-x_1)^2+\frac12(x_2-x_1)(x_3-x_2)+\frac13(x_3-x_2)^2\right) \\ &=& \frac1{12}m^4\int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3\int_n^{n+m}\mathrm dx_2 \frac1{x_3-x_1}\left(x_2^2-(x_1+x_3)x_2+2x_1^2+2x_3^2-3x_1x_3\right) \\ &=& \frac1{12}m^4\int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3 \\ && \frac1{x_3-x_1}\left(\frac13(m^3+3m^2n+3mn^2)-\frac12(m^2+2mn)(x_1+x_3)+m(2x_1^2+2x_3^2-3x_1x_3)\right) \\ &=& \frac1{12}m^4\int_0^m\mathrm dx_1\int_{2n-x_1}^{2n+m-x_1}\mathrm du \\ && \frac1u\left(\frac13(m^3+3m^2n+3mn^2)-\frac12(m^2+2mn)(u+2x_1)+m(2x_1^2+2(u+x_1)^2-3x_1(u+x_1))\right) \\ &=& \frac1{12}m^4\int_0^m\mathrm dx_1\left(\left(\frac13(m^3+3m^2n+3mn^2)-(m^2+2mn)x_1+mx_1^2\right)\right. \\ && \left.(\log(2n+m-x_1)-\log(2n-x_1))-\frac12(m^2+2mn)m+m^2x_1+m^3+2m^2(2n-x_1)\right) \\ &=& \frac1{12}m^4\int_0^m\mathrm dx_1\left(\left(\frac13(m^3+3m^2n+3mn^2)-(m^2+2mn)x_1+mx_1^2\right)\right. \\ && \left.(\log(2n+m-x_1)-\log(2n-x_1))+\frac12m^3+3m^2n-m^2x_1\right) \\ &=& \frac1{72}(m^8 + 4m^7n + 6m^6n^2 + 4m^5n^3)\log(2n+m) \\ && -\frac1{72}(m^8 - 4m^7n + 6m^6n^2 - 4m^5n^3)\log(2n-m) \\ && - \frac19(m^7n + m^5n^3)\log(2n)+\frac29m^7n\;. \end{eqnarray}
This we need to divide by
$$ \int_0^m\mathrm dx_1\int_{2n}^{2n+m}\mathrm dx_3\int_n^{n+m}\mathrm dx_2\int_0^m\mathrm dy_1\int_0^m\mathrm dy_3\int_0^m\mathrm dy_2=m^6 $$
to obtain the expected unsigned area,
$$ \frac1{72}\left(m^2 + 4mn + 6n^2 + 4\frac{n^3}m\right)\log(2n+m) \\ -\frac1{72}\left(m^2 - 4mn + 6n^2 - 4\frac{n^3}m\right)\log(2n-m) \\ - \frac19\left(mn + \frac{n^3}m\right)\log(2n)+\frac29mn\;. $$