I want to solve the following integral $$\int_{0}^{t}\cos x\sin (t-x)dx$$
What I tried to do is integration by parts twice, but it just brought me straight back to $$\int_{0}^{t}\cos x\sin (t-x)dx=\int_{0}^{t}\cos x\sin (t-x)dx$$ Not very informative indeed.
Is there any way to do this without resorting to trigonometric identities?
Let $x \mapsto t-x$ then
$\displaystyle I = \int_0^t \cos{x}\sin(t-x) \;{dx} = \int_0^t \sin{x}\cos(t-x) \;{dx} $
So $ \displaystyle 2I = \int_0^t [\cos{x}\sin(t-x)+\sin{x}\cos(t-x)]\;{dx}$
But $ \displaystyle \cos{x}\sin(t-x)+\sin{x}\cos(t-x) = \sin(x+t-x) = \sin(t)$.
So $I \displaystyle = \frac{1}{2}\int_0^t \sin{x}\;{dx} = \frac{1}{2}(t\sin{t}).$