1.(sin x/ (1+cos x))^2

My work:

2(sin x/ (1+cos x)) * ((1+cos x)(cos x) - sin x (-sin x)) / (1+ cos x)^2

((cos x +(cos x)^2+(sin x) ^2)/ (1+ cos x)^2) * (2sin x/(1+cos x))

Long story short the answer was suppose to be (2 sin x/(1+ cosx)^2).

2.I am suppose to find the 2nd derivative of (1+(1/x))^3

My work:

3(1+(1/x))^2 * -x^(-2)

-(6(-x^(-2))) * (-2x^(-3)... this was the farthest I went since I knew this was not right.

the answer was suppose to be:

(6/x^3) * (1+(1/x)) * (1+(2/x))

Thank you in advance.