let Z be open Subset of REAL ; :: thesis: ( Z c= dom (ln * sin ) & ( for x being Real st x in Z holds
sin . x > 0 ) implies ( ln * sin is_differentiable_on Z & ( for x being Real st x in Z holds
((ln * sin ) `| Z) . x = cot x ) ) )

assume that
A1: Z c= dom (ln * sin ) and
A2: for x being Real st x in Z holds
sin . x > 0 ; :: thesis: ( ln * sin is_differentiable_on Z & ( for x being Real st x in Z holds
((ln * sin ) `| Z) . x = cot x ) )

A3: sin is_differentiable_on Z by FDIFF_1:34, SIN_COS:73;
A4: for x being Real st x in Z holds
ln * sin is_differentiable_in x
proof end;
then A7: ln * sin is_differentiable_on Z by A1, FDIFF_1:16;
for x being Real st x in Z holds
((ln * sin ) `| Z) . x = cot x
proof
let x be Real; :: thesis: ( x in Z implies ((ln * sin ) `| Z) . x = cot x )
assume A8: x in Z ; :: thesis: ((ln * sin ) `| Z) . x = cot x
then A9: sin is_differentiable_in x by A3, FDIFF_1:16;
sin . x > 0 by A2, A8;
then diff (ln * sin ),x = (diff sin ,x) / (sin . x) by A9, TAYLOR_1:20
.= (cos . x) / (sin . x) by SIN_COS:69
.= (cos x) / (sin . x) by SIN_COS:def 23
.= (cos x) / (sin x) by SIN_COS:def 21
.= cot x by SIN_COS4:def 2 ;
hence ((ln * sin ) `| Z) . x = cot x by A7, A8, FDIFF_1:def 8; :: thesis: verum
end;
hence ( ln * sin is_differentiable_on Z & ( for x being Real st x in Z holds
((ln * sin ) `| Z) . x = cot x ) ) by A1, A4, FDIFF_1:16; :: thesis: verum