These two particular integrals are doing my head in ....

$$\int_{}^{} (4x+4)/(2x^2+4x+5) dx$$

which worked out to be ln(2x^2 + 4x + 5) + c

and

$$\int_{}^{} (x+1)/(2x^2+4x+5) dx$$

which worked out to be

1/ 4ln(2x^2 + 4x + 5) + c

these where the answers in the worksheet answers ..I understand that when there's a fraction we need to us the natural log ...and then put the top x value over the bottom x value out the front of the natural log in the answer ,but the powers in the denominators have got me totally confused ....why don't we integrate that as well...?