I have
$\int{\frac{2x+1}{x^2+4x+4}}dx$
Factorising the denominator I have
$\int{\frac{2x+1}{(x+2)(x+2)}}dx$
From there I split the top term into two parts to make it easier to integrate
$\int{\frac{2x+1}{(x+2)(x+2)}}dx$ = $\int{\frac{A}{(x+2)}+\frac{B}{(x+2)}}dx$
=$\int{\frac{A(x+2)}{(x+2)^2}+\frac{B(x+2)}{(x+2)^2}}dx$
Therefore
$2x+1 = A(x+2) +B(x+2)$
This is where I would normally use a substitution method to eliminate either the A term or B term by letting x = something like -2, which would get rid of the A and usually leave me with the B term to solve. However since they are the same I'm not sure what to do.
I've been told to try evaluate the co-efficients, but am not sure how.
You want to try a split like
$$\frac{2 x+1}{(x+2)^2} = \frac{A}{x+2} + \frac{B x}{(x+2)^2}$$
Then $A+B=2$ and $2 A=1$. The decomposition is then
$$\frac{2 x+1}{(x+2)^2} = \frac12 \frac1{x+2} + \frac{3}{2} \frac{x}{(x+2)^2}$$