I am currently doing integration and cannot seem to understand this question
$x\cos\left({\pi}x\right)$
I have tried following the following
Formula I have used:$∫f g′= f g − ∫ f′g$
f = $x$
f'= $1$
g = $\dfrac{\sin\left({\pi}x\right)}{{\pi}}$
g'= $cos({\pi}x)$
The end result should be the following:
$\dfrac{{\pi}x\sin\left({\pi}x\right)+\cos\left({\pi}x\right)}{{\pi}^2}$
I cannot seem to understand how that ends up being the end result.