How to calculate the integral of this fraction So I have this fairly complicated fraction, and I am trying to find its antiderivative.
$$
\int \frac{7xe^{2x}}{(1+2x)^2} dx
$$
I am not sure where to start. I was thinking using integration by parts, but then I tried substituting it with $u$'s:
$$
u = 1+2x, du = 2 dx \to dx=\frac{du}{2} \\
= \int \frac{\frac{7u-7}{2}e^{u-1}}{u^2}\color{red}{\frac{ du}{2} }\\
= \frac{7}{4}\int \frac{e^{u-1}}{u} du - \frac{7}{4}\int \frac{e^{u-1}}{u^2} du
$$
But now I am stuck and I can't go any further. Can someone please guide me through this problematic integration? Thanks!
 A: First, let's pull out the constant factor $7$.  The denominator being a square suggests trying to find functions $f(x)$, $g(x)$ such that $$\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{g(x)^2} = \frac{xe^{2x}}{(1+2x)^2}.$$  This in turn suggests trying $g(x) = 1+2x$, so that the numerator becomes $$(1+2x)f'(x)- 2f(x) = xe^{2x}.$$  If $f(x) = h(x) e^{2x}$ for some polynomial $h$, then $f'(x) = h'(x)e^{2x} + 2h(x) e^{2x} = (h'(x)+2h(x))e^{2x}$, hence $$xe^{2x} = (4xh(x) + (1+2x)h'(x))e^{2x}.$$  This is easily satisfied with the choice $h(x) = 1/4$, so $f(x) = e^{2x}/4$ and an antiderivative is $$7 \frac{f(x)}{g(x)} + C = \frac{7e^{2x}}{4(1+2x)} + C.$$  Of course, this method doesn't always work, but it is an interesting approach.
A: $$
= \frac{7e^{-1}}{4}\bigg\{\color{red}{\int \frac{e^{u}}{u} du} - \int \frac{e^{u}}{u^2} du\bigg\}\\
= \frac{7e^{-1}}{4}\bigg\{\color{red}{\frac{e^{u}}{u}-\int \frac{-e^{u}}{u^2} du }- \int \frac{e^{u}}{u^2} du+c\bigg\}\ \text{integration by parts}\\
=\frac{7e^{-1}}{4}\frac{e^{u}}{u}+c
=\frac{7e^{u-1}}{4u}+c
=\frac{7e^{2x+1-1}}{4(2x+1)}+c
=\frac{7e^{2x}}{4(2x+1)}+c
 $$
A: $$\frac{d(e^{2x}f(x))}{dx}=e^{2x}f'(x)+2e^{2x}f(x)=e^{2x}[f'(x)+2f(x)]$$
If we choose $\displaystyle f'(x)=\frac{2A}{(1+2x)^2}, f(x)=-\frac A{1+2x}$
$$\frac{d\left[e^{2x}\cdot\frac{-A}{1+2x}\right]}{dx}=e^{2x}\left[\frac{2A}{(1+2x)^2}-2\frac A{1+2x}\right]=2Ae^{2x}\cdot \frac{1-(1+2x)}{(1+2x)^2}= \frac{-4Ax e^{2x}}{(1+2x)^2}$$
Compare with the given integral to find $-4A=7$
A: d/dx(7*e^2/4*(2x+1))=7xe^2/x(1+2x)^2
=>d(7*e^2/4*(2x+1))=(7xe^2/x(1+2x)^2)dx
Hence you get the required integral. 
