Let $T$ and $A$ be constants, how do I solve the following integral? $$ -\frac{A}{4}\int_0^T \sin\left(\frac{2\pi t}{T} - \frac{4\pi \tau}{T}\right)d\tau $$ The solution of the integral has to be 0.
I have tried to substitute so that the term is equal to $-\frac{A}{4}\int_0^T \sin(u) \left(\frac{T\tau}{2\pi t} - \frac{T}{4\pi}\right) du$
But even if this correct, then I would have to substitute again, so this cannot be the right way.
First notice that $\displaystyle\int_0^{2\pi}\sin(u)du=0\quad$ (same if it was cosinus under the integral).
Shifting the variable doesn't change the value:
$\require{cancel}\displaystyle\begin{align}\int_0^{2\pi}\sin(u+\varphi)du &=\int_{\varphi}^{2\pi+\varphi}\sin(u)du\\ &=\int_{\varphi}^{0}\sin(u)du+\int_{0}^{2\pi}\sin(u)du+\int_{2\pi}^{2\pi+\varphi}\sin(u)du\\ &=-\cancel{\int_0^{\varphi}\sin(u)du}+\int_{0}^{2\pi}\sin(u)du+\cancel{\int_{0}^{\varphi}\underbrace{\sin(u+2\pi)}_{\sin(u)}du}\\ &=\int_{0}^{2\pi}\sin(u)du\end{align}$
And this stays the same if you take the integral over an integer number of periods (I let it as an exercise for you):
$$\int_{0}^{2\pi}\sin(nu+\phi)du=0\quad n\in\mathbb Z^*$$
In the present case $\varphi=\dfrac{2\pi t}T$ is a constant.
And for $\tau\in[0,T]$ then $\dfrac{4\pi\tau}{T}\in[0,4\pi]$ covers $n=2$ times the period.
Therefore your integral is zero without having to do any calculation!