Evaluate the integral: $\int\frac{xe^{2x}}{(1+2x)^2}\ dx$ $\int\frac{xe^{2x}}{(1+2x)^2}\ dx$
This an integration by parts problem. I am asking for assistance with my method. I was taught to use the LIATE (Logarithmic function, Inverse Trig Function, Algebraic Function, Trigonometric Function, and Exponential function)  mnemonic to decide which function would be "u" and "dv" so as to be utilized in the following formula:
$\int udv= uv-\int v\ du$
u would be what ever first letter of a function which came first in the mnemonic and dv would be the latter. 
Now this problem is not fitting into my instructions, and I am bit confused as to how to solve it. Please do not leave answers without a clear written explanation in clear English.  You do not have to solve the problem. I just would like to know if my method is correct. 
No disrespect intended. 
 A: Let $u=xe^{2x}$ and let $dv=\frac{dx}{(1+2x)^2}$. Then $du=(1+2x)e^{2x}\,dx$.
We need to find $v$. So we need to find $\int \frac{dx}{(1+2x)^2}$. Let $y=1+2x$. Then $dy=2\,dx$, and therefore $dx=\frac{dy}{2}$. Thus
$$\int\frac{dx}{(1+2x)^2}=\int \frac{dy}{2y^2}=-\frac{1}{2y}+C.$$ We will take $C=0$. So we are taking $v=-\frac{1}{2(1+2x)}$.
Now using the integration by parts formula, we find that our integral is $uv-\int v\,du$. Thus we get
$$-\frac{xe^{2x}}{2(1+2x)}+\int \frac{(1+2x)e^{2x}}{2(1+2x)}\,dx.$$
Note the cancellation. We need to find $\int \frac{e^{2x}}{2}\,dx$. By substitution or by inspection, the integral is $\frac{e^{2x}}{4}+C$. 
Putting things together, we get 
$$\frac{e^{2x}}{4}-\frac{xe^{2x}}{2(1+2x)}+C.$$
We can make this look a little nicer by using a common denominator $4(1+2x)$. We get
$$e^{2x}\frac{(1+2x)-2x}{4(1+2x)}+C,$$
or equivalently
$$\frac{e^{2x}}{4(1+2x)}+C.$$
Remark: Things "worked out" because the derivative of $xe^{2x}$ had a $1+2x$ "in it," giving us magic cancellation later. I don't like this problem, because if we replace $e^{2x}$ by $e^{3x}$, and leave everything else unchanged, we get an integral that cannot be solved using elementary functions. 
A: Hint
Whenever there is $e^{g(x)}$ terms involved i always try making use of this property: 

$\int e^{g(x)}[f'(x) + g'(x)f(x)] dx = f(x) e^{g(x)}$

This formula is actually the brother of one of the most commonly used formula 
$\int e^{x} [f(x) + f'(x)]= e^{x}f(x)$
Here $\displaystyle  f(x) = \frac{1}{2x+1} $
A: $$
\begin{aligned}
\int \frac{x e^{2 x}}{(1+2 x)^{2}} d x &-\frac{1}{2}\int x e^{2 x} d\left(\frac{1}{1+2 x}\right)\\
=&-\frac{x e^{2 x}}{2(1+2 x)}+\frac{1}{2} \int \frac{2 x e^{2 x}+e^{2 x}}{1+2 x} d x \\
=&-\frac{x e^{2 x}}{2(1+2 x)}+\frac{1}{2} \int e^{2 x} d x \\
=&-\frac{x e^{2 x}}{2(1+2 x)}+\frac{1}{4} e^{2 x}+C \\
=& \frac{e^{2 x}}{4(1+2 x)}+C
\end{aligned}
$$
