I am trying to integrate the following indefinite integral. 1/(x^2+2x+2)^2. I have this equal to 1/((x+1)^2+1)^2. The sides of the triangle are thus: hypotenuse = (x+1)^2+1,side A = x+1,side B = 1. Therefore with trig substitution I get the following equation to integrate: secant^2 theta/secant^2 theta. However I should get secant^2 theta/secant^4 theta. Can somebody point out where I have screwed up?