I am trying to understand a formula derivation from a physics textbook, and could get the result up until the last step. The author mentions you just need to integrate by parts, however, I'm not able to get his results.
More specifically, I want to show that
$\int_l^d\int_r^dsu(s)ds dr = \int_l^dr(r-l)u(r)dr $,
and $u(s)$ is a potential such that
$u(s)=\int_s^df(s')ds' \ , \ \ \displaystyle \frac{du}{ds}=-f(s) \ , \ \ u(s\ge d)=0 \ , \ \ f(s\ge d)=0 $.
Can anyone help me in understanding that?
Another point-of-view is to see this as a change in integration order à la Fubini. Then $$ \iint_{l<r<s<d}su(s)\,ds\,dr=\iint_{l<r<s<d}su(s)\,dr\,ds =\int_l^d\int_l^s su(s)dr\,ds=\int_l^d(s-l)su(s)\,ds $$ In the second form the integrand is constant for the inner integal, so resolves to the difference of the endpoints. There is no difference if the fineal integration variable is $r$ or $s$.