I have $\phi: \mathbb{R} \to \mathbb{R}$ continuous, bounded, and integrable. I'm going through a book which makes the following calculation: $$\frac{1}{2\pi}\int\limits_{-\infty}^{\infty}e^{-itx}\phi(t)dt = \lim\limits_{T\to \infty} \frac{1}{2\pi}\int\limits_{-T}^{T}\left(1 - \frac{|t|}T \right)e^{-itx}\phi(t)dt = \lim\limits_{T\to \infty} \frac{1}{2\pi T}\int\limits_{0}^{T} \int\limits_{0}^{T} e^{-i(t-s)x}\phi(t-s)dtds. $$ The first equality holds by the Dominated Convergence Theorem and the second is supposed to hold by a change of variables.
Can someone please show me how this change of variables goes?
Edit: If it helps, this is in the book of Varadhan in the proof of Bochner's theorem. This computation is being made to use the positive-definiteness of $\phi$.
Let's prove it backwards. We have a function $A(y)=e^{-iyx}\phi(y)$ which we want to integrate over a region. $$ \int_0^T \int_0^T A(t-s)dt ds $$
The integrating region is a square $[0,T]\times [0,T]$, however our function has certain symmetry, it is not any function in two variables $t,s$ but a function in one variable $t-s$. This means that it is constant on level curves of $C(t,s)=t-s$, i.e., on lines of slope ${45}^\circ$.
Let's introduce a change of variables $$ u = t - s\\ v = t + s $$ We have $dtds =\tfrac{1}{2} dudv$. The variables are constrained by $u\in[-T,T]$ and $v\in [|u|,2T-|u|]$, you can see this by drawing the region over which you integrate. Therefore after change of variables we obtain $$ \int_0^T \int_0^T A(t-s)dt ds = \int_{-T}^T \int_{|u|}^{2T-|u|}A(u) \tfrac{1}{2}dvdu =\\ \int_{-T}^T \left(\int_{|u|}^{2T-|u|} \tfrac{dv}{2}\right )A(u)du = \int_{-T}^T (\tfrac{2T - 2|u|}{2})A(u)du = T\int_{-T}^T\left(1-\frac{|u|}{T}\right) A(u)du. $$
Plugging in the correspoiding limits and constant, dividing everything by $T$ and renaming $u$ to $t$ gives the full solution.