You can check your answers by differentiating the answer you got when you integrate.
If you differentiate 5/2 x^2 sin 5x you don't get cos(5x), but if you differentiate (1/5)sin(5x) you do.
i'm not sure where you made your mistake, but i think you were mixing up the product rule somewhere in all this, but you don't have a product