First thing's first - we need to derive it! We have a product of two functions, so let's apply the product rule:
 + cos(2x)\cdot 5 = 5cos(2x) - 10xsin(2x))
Now, the next part can only be solved with integration by parts - normally. See, methods has this little trick called "integration by recognition", which is baby integration by parts. Here's how you do these questions:
1) Re-write what you just found:
 = 5cos(2x) - 10xsin(2x))
2) Set up an integral for the whole thing
\:dx=\int\limits_0^{\frac{\pi}{4}}5cos(2x)\:dx - \int\limits_0^{\frac{\pi}{4}}10xsin(2x)\:dx)
3) See if anything in there looks sort of like what you want to find, and solve for that:
\:dx-\int\limits_0^{\frac{\pi}{4}}5cos(2x)\:dx = -\int\limits_0^{\frac{\pi}{4}}10xsin(2x)\:dx<br />\\ 5\int\limits_0^{\frac{\pi}{4}}-2xsin(2x)\:dx=\int\limits_0^{\frac{\pi}{4}}\frac{d}{dx}5xcos(2x)\:dx-\int\limits_0^{\frac{\pi}{4}}5cos(2x)\:dx<br />\\ \int\limits_0^{\frac{\pi}{4}}-2xsin(2x)\:dx=\frac{1}{5}(\int\limits_0^{\frac{\pi}{4}}\frac{d}{dx}5xcos(2x)\:dx-\int\limits_0^{\frac{\pi}{4}}5cos(2x)\:dx))
4) Integrate, knowing that the integral and derivative are basically the inverse of each other and just cancel out (but remember the terminals!)
EDIT: Beaten by Zealous, but I'll keep this here just because I've outlined the steps.
