I was asked to find the integral $\iint_A \log(\sin(x-y))dxdy$ where $A$ is the triangle $y=0, x=\pi, y=x$ in the first quadrant.
I was given a hint: evaluate $\int_{0}^{\pi}\log(\sin(t))dt$ using symmetry.
What I did:
I inferred from the hint that the variable change $t=x-y$ is the way to go, so $t=x-y$, and since we integrate by $y$ first, then $x$ is a "constant" and $dt=-dy$, and since $y$ transitions from $0$ to $x$, then $t$ transitions from $x$ to $0$, so we can rewrite the integral:
$$\int_{0}^{\pi} \int_{0}^{x}\log(\sin(x-y))dydx=\int_{0}^{\pi}\int_{x}^{0}-\log(\sin( t))dtdx=\int_{0}^{\pi}\int_{0}^{x}\log(\sin( t))dtdx$$
And here I am stuck. Firstly, I don't know how $\int_{0}^{\pi}\log(\sin(t))dt$ is related to the question, since in the question the limits are $0$ and $x$. not $0$ and $\pi$. They are not the same thing (even though $x$ transitions from $0$ to $\pi$).
But even if I did, how would I evaluate $\int_{0}^{\pi}\log(\sin(t))dt$??
At the point
$$\int_0^\pi \int_0^x \log (\sin t)\,dt\,dx,$$
changing the order of integration is a tempting thing to do:
$$\begin{align} \int_0^\pi \int_0^x \log (\sin t)\,dt\,dx &= \int_0^\pi \int_t^\pi \log (\sin t)\,dx\,dt\\ &= \int_0^\pi (\pi - t)\log (\sin t)\,dt\tag{a}\\ &= \int_0^\pi u\log (\sin (\pi-u))\,du\\ &= \int_0^\pi u\log (\sin u)\,du\tag{b}. \end{align}$$
Now add $(a)$ and $(b)$, and use the symmetry.