So Integration by Parts can be used when you can split what is to be integrated into a "v" part and a "du/dx" part. It's useful when you can split into one which is "easy" to differentiate. In this case v=x is easy to differentiate right? dv/dx=1 !!!
So all you need then is the other part, the bit which you want to integrate.
So you have arbitrarily chosen v=x to "work" using ingtegation by parts. You've chosen the v so as to be nice to differentiate.
In general integration by parts is like a riddle. You need to trial and error sometimes to get the two bits. If you can find something which differentiates to a constant, as in this case, then all you need is the bit which integrates. Combine the two using the formula for integration by parts. It's trickier as there is no "standard" procedure and you could chose many "v" and "du/dx" all getting back to the same answer. Similarly, sometimes there is no easy answer. Dont forget that the integration by parts formula includes an integration term in itelf, which is why getting a constant in the forumla is "nice".
int(v*du)=uv-int(u*
dv)
The dv I have highlighted is ideally a constant, in your example 1. This makes the int(u*dv) nicer. Notice that the formula includes both the v and dv terms, but you are integrating over the dv term. And integration over a contant is much much easier so try and get a v which differentiates to a constant.
If you cant find a "nice" v which differentiates to a constant then you can get into an infinite loop quickly in that your answer includes another integral which may need integration by parts. Hope you follow? So look for a constant in the dv term