Right, it seems like I misunderstood the text. Thank you for explaining it to me.
You misunderstand the text. Equation (9) defines a function TC. Equation (10) is not the derivative of TC. It is the value of theta that makes the derivative of TC equal to zero. Mariusz has shown that the result is correct.
TC
theta