derivative of (1-cos(x)/(1+cos(x)))
1) Let's differentiate: ddx(1 -cos(x)1 + cos(x))
ⓘ The derivative of a sum is the sum of the derivatives: ddx(1 -cos(x)1 + cos(x)) = 0 + ddx(-cos(x)1 + cos(x))
0 + ddx(-cos(x)1 + cos(x))
We differentiate p1 = cos(x) and q2 = 1 + cos(x) using: ddx(p1q2) = ddx(p1)·q2 -p1·ddx(q2)q22
2) Let's differentiate p1: ddx(cos(x))
ⓘ The derivative of cos(x) is -sin(x): ddx(cos(x)) = -sin(x)
-sin(x)
3) Let's perform the differentiation q2: ddx(1 + cos(x))
ⓘ The derivative of a sum is the sum of the derivatives: ddx(1 + cos(x)) = 0 + ddx(cos(x))
0 + ddx(cos(x))
ⓘ Adding 0 changes nothing: 0 + ddx(cos(x)) = ddx(cos(x))■The derivative of cos(x) is -sin(x): ddx(cos(x)) = -sin(x)
-sin(x)
4) Let's evaluate the resulting derivative (p1q2)': -(-sin(x)·(1 + cos(x)) -cos(x)·(-sin(x))(1 + cos(x))2)
ⓘ Extract the minus signs: an even number of minus signs cancels out, an odd number leaves one minus sign: -cos(x)·(-sin(x)) = cos(x)·sin(x)
-(-sin(x)·(1 + cos(x)) + cos(x)·sin(x)(1 + cos(x))2)
ⓘ The minus sign of the fraction goes into the numerator or the denominator, changing the sign of each of its terms: -(-sin(x)·(1 + cos(x)) + cos(x)·sin(x)(1 + cos(x))2) = sin(x)·(1 + cos(x)) -cos(x)·sin(x)(1 + cos(x))2
sin(x)·(1 + cos(x)) -cos(x)·sin(x)(1 + cos(x))2
ⓘ What the terms have in common is factored out, so that the fraction can be simplified: sin(x)·(1 + cos(x)) -cos(x)·sin(x)(1 + cos(x))2 = sin(x)·((cos(x) + 1) -cos(x))(1 + cos(x))2
sin(x)·((cos(x) + 1) -cos(x))(1 + cos(x))2
ⓘ Like terms are grouped by adding their coefficients: cos(x) -cos(x) = 0
sin(x)·(0 + 1)(1 + cos(x))2
ⓘ Adding 0 changes nothing: 0 + 1 = 1
sin(x)(1 + cos(x))2
5) Then you can continue the derivation:
ⅰ ddx(-cos(x)1 + cos(x)) = sin(x)(1 + cos(x))2
sin(x)(1 + cos(x))2
▶Derivative:   sin(x)(cos(x) + 1)2