Integration by parts is done when you have two terms (with x) being multipled together such as xe^x, xlnx, 3xsinx, 5xcosx, 2x^7sinx and so fourth. You call one of your term 'u' and the other term 'dv'. The term that you pick to be your 'u' should be the term that has a derivative that becomes more simple. In this case with xe^2x, when you take the derivative of x, that becomes more simple. Taking the derivative of e^2x doesnt make it any more simple but since we know how to take its antiderivatve, it's okay to use e^2x as our dv. Now that we have our u and our dv, we take the derivatve of u to find the du and the antiderivative of dv to find v. Then all we have to do is plug in the formula.
Note: For a problem such as x^2e^2x you would work it out the same but you would have to do two intergration by parts. I am saying this to let you now that it is possible to have to do multiple integration by parts in a single problem which is why some people prefer tabular integration.
I'll show you a problem with two integration by parts in a second but I won't explain it in depth since you can see the explanation for the previous problem. Then I'll show tabluar integration.