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

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

A2: ].(- 1),1.[ c= [.(- 1),1.] by XXREAL_1:25;
then ].(- 1),1.[ c= dom arctan by SIN_COS9:23, XBOOLE_1:1;
then A3: Z c= dom arctan by A1, XBOOLE_1:1;
].(- 1),1.[ c= dom arccot by A2, SIN_COS9:24, XBOOLE_1:1;
then Z c= dom arccot by A1, XBOOLE_1:1;
then Z c= (dom arctan ) /\ (dom arccot ) by A3, XBOOLE_1:19;
then A4: Z c= dom (arctan (#) arccot ) by VALUED_1:def 4;
A5: arctan is_differentiable_on Z by A1, SIN_COS9:81;
A6: arccot is_differentiable_on Z by A1, SIN_COS9:82;
for x being Real st x in Z holds
((arctan (#) arccot ) `| Z) . x = ((arccot . x) - (arctan . x)) / (1 + (x ^2 ))
proof
let x be Real; :: thesis: ( x in Z implies ((arctan (#) arccot ) `| Z) . x = ((arccot . x) - (arctan . x)) / (1 + (x ^2 )) )
assume A8: x in Z ; :: thesis: ((arctan (#) arccot ) `| Z) . x = ((arccot . x) - (arctan . x)) / (1 + (x ^2 ))
((arctan (#) arccot ) `| Z) . x = ((arccot . x) * (diff arctan ,x)) + ((arctan . x) * (diff arccot ,x)) by A4, A5, A6, A8, FDIFF_1:29
.= ((arccot . x) * ((arctan `| Z) . x)) + ((arctan . x) * (diff arccot ,x)) by A5, A8, FDIFF_1:def 8
.= ((arccot . x) * (1 / (1 + (x ^2 )))) + ((arctan . x) * (diff arccot ,x)) by A1, A8, SIN_COS9:81
.= ((arccot . x) * (1 / (1 + (x ^2 )))) + ((arctan . x) * ((arccot `| Z) . x)) by A6, A8, FDIFF_1:def 8
.= ((arccot . x) * (1 / (1 + (x ^2 )))) + ((arctan . x) * (- (1 / (1 + (x ^2 ))))) by A1, A8, SIN_COS9:82
.= ((arccot . x) - (arctan . x)) / (1 + (x ^2 )) ;
hence ((arctan (#) arccot ) `| Z) . x = ((arccot . x) - (arctan . x)) / (1 + (x ^2 )) ; :: thesis: verum
end;
hence ( arctan (#) arccot is_differentiable_on Z & ( for x being Real st x in Z holds
((arctan (#) arccot ) `| Z) . x = ((arccot . x) - (arctan . x)) / (1 + (x ^2 )) ) ) by A4, A5, A6, FDIFF_1:29; :: thesis: verum