let Z be open Subset of REAL; :: thesis: ( Z c= dom (tan (#) arccot) & Z c= ].(- 1),1.[ implies ( tan (#) arccot is_differentiable_on Z & ( for x being Real st x in Z holds
((tan (#) arccot) `| Z) . x = ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2))) ) ) )

assume that
A1: Z c= dom (tan (#) arccot) and
A2: Z c= ].(- 1),1.[ ; :: thesis: ( tan (#) arccot is_differentiable_on Z & ( for x being Real st x in Z holds
((tan (#) arccot) `| Z) . x = ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2))) ) )

A3: arccot is_differentiable_on Z by A2, SIN_COS9:82;
Z c= (dom tan) /\ (dom arccot) by A1, VALUED_1:def 4;
then A4: Z c= dom tan by XBOOLE_1:18;
for x being Real st x in Z holds
tan is_differentiable_in x
proof end;
then A5: tan is_differentiable_on Z by A4, FDIFF_1:9;
for x being Real st x in Z holds
((tan (#) arccot) `| Z) . x = ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2)))
proof
let x be Real; :: thesis: ( x in Z implies ((tan (#) arccot) `| Z) . x = ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2))) )
assume A6: x in Z ; :: thesis: ((tan (#) arccot) `| Z) . x = ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2)))
then A7: cos . x <> 0 by A4, FDIFF_8:1;
((tan (#) arccot) `| Z) . x = ((arccot . x) * (diff (tan,x))) + ((tan . x) * (diff (arccot,x))) by A1, A5, A3, A6, FDIFF_1:21
.= ((arccot . x) * (1 / ((cos . x) ^2))) + ((tan . x) * (diff (arccot,x))) by A7, FDIFF_7:46
.= ((arccot . x) / ((cos . x) ^2)) + ((tan . x) * ((arccot `| Z) . x)) by A3, A6, FDIFF_1:def 7
.= ((arccot . x) / ((cos . x) ^2)) + ((tan . x) * (- (1 / (1 + (x ^2))))) by A2, A6, SIN_COS9:82
.= ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2))) ;
hence ((tan (#) arccot) `| Z) . x = ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2))) ; :: thesis: verum
end;
hence ( tan (#) arccot is_differentiable_on Z & ( for x being Real st x in Z holds
((tan (#) arccot) `| Z) . x = ((arccot . x) / ((cos . x) ^2)) - ((tan . x) / (1 + (x ^2))) ) ) by A1, A5, A3, FDIFF_1:21; :: thesis: verum