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

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

A3: for x being Real st x in Z holds
sin . (arccot . x) <> 0
proof
let x be Real; :: thesis: ( x in Z implies sin . (arccot . x) <> 0 )
assume x in Z ; :: thesis: sin . (arccot . x) <> 0
then arccot . x in dom cosec by A1, FUNCT_1:11;
hence sin . (arccot . x) <> 0 by RFUNCT_1:3; :: thesis: verum
end;
A4: for x being Real st x in Z holds
cosec * arccot is_differentiable_in x
proof end;
then A7: cosec * arccot is_differentiable_on Z by A1, FDIFF_1:9;
for x being Real st x in Z holds
((cosec * arccot) `| Z) . x = (cos . (arccot . x)) / (((sin . (arccot . x)) ^2) * (1 + (x ^2)))
proof
let x be Real; :: thesis: ( x in Z implies ((cosec * arccot) `| Z) . x = (cos . (arccot . x)) / (((sin . (arccot . x)) ^2) * (1 + (x ^2))) )
assume A8: x in Z ; :: thesis: ((cosec * arccot) `| Z) . x = (cos . (arccot . x)) / (((sin . (arccot . x)) ^2) * (1 + (x ^2)))
then A9: sin . (arccot . x) <> 0 by A3;
sin . (arccot . x) <> 0 by A3, A8;
then A10: cosec is_differentiable_in arccot . x by FDIFF_9:2;
A11: arccot is_differentiable_on Z by A2, SIN_COS9:82;
then A12: arccot is_differentiable_in x by A8, FDIFF_1:9;
((cosec * arccot) `| Z) . x = diff ((cosec * arccot),x) by A7, A8, FDIFF_1:def 7
.= (diff (cosec,(arccot . x))) * (diff (arccot,x)) by A12, A10, FDIFF_2:13
.= (- ((cos . (arccot . x)) / ((sin . (arccot . x)) ^2))) * (diff (arccot,x)) by A9, FDIFF_9:2
.= - (((cos . (arccot . x)) / ((sin . (arccot . x)) ^2)) * (diff (arccot,x)))
.= - (((cos . (arccot . x)) / ((sin . (arccot . x)) ^2)) * ((arccot `| Z) . x)) by A8, A11, FDIFF_1:def 7
.= - (((cos . (arccot . x)) / ((sin . (arccot . x)) ^2)) * (- (1 / (1 + (x ^2))))) by A2, A8, SIN_COS9:82
.= ((cos . (arccot . x)) / ((sin . (arccot . x)) ^2)) * (1 / (1 + (x ^2)))
.= ((cos . (arccot . x)) * 1) / (((sin . (arccot . x)) ^2) * (1 + (x ^2))) by XCMPLX_1:76
.= (cos . (arccot . x)) / (((sin . (arccot . x)) ^2) * (1 + (x ^2))) ;
hence ((cosec * arccot) `| Z) . x = (cos . (arccot . x)) / (((sin . (arccot . x)) ^2) * (1 + (x ^2))) ; :: thesis: verum
end;
hence ( cosec * arccot is_differentiable_on Z & ( for x being Real st x in Z holds
((cosec * arccot) `| Z) . x = (cos . (arccot . x)) / (((sin . (arccot . x)) ^2) * (1 + (x ^2))) ) ) by A1, A4, FDIFF_1:9; :: thesis: verum