let Z be open Subset of REAL ; :: thesis: ( Z c= dom (((id Z) ^ ) (#) ln ) & ( for x being Real st x in Z holds
x > 0 ) implies ( ((id Z) ^ ) (#) ln is_differentiable_on Z & ( for x being Real st x in Z holds
((((id Z) ^ ) (#) ln ) `| Z) . x = (1 / (x ^2 )) * (1 - (ln . x)) ) ) )

set f = id Z;
set g = ln ;
assume that
A1: Z c= dom (((id Z) ^ ) (#) ln ) and
A2: for x being Real st x in Z holds
x > 0 ; :: thesis: ( ((id Z) ^ ) (#) ln is_differentiable_on Z & ( for x being Real st x in Z holds
((((id Z) ^ ) (#) ln ) `| Z) . x = (1 / (x ^2 )) * (1 - (ln . x)) ) )

A3: not 0 in Z by A2;
then A4: (id Z) ^ is_differentiable_on Z by Th4;
A5: Z c= (dom ((id Z) ^ )) /\ (dom ln ) by A1, VALUED_1:def 4;
then A6: Z c= dom ln by XBOOLE_1:18;
then A7: ln is_differentiable_on Z by Th19;
A8: Z c= dom ((id Z) ^ ) by A5, XBOOLE_1:18;
now
let x be Real; :: thesis: ( x in Z implies ((((id Z) ^ ) (#) ln ) `| Z) . x = (1 / (x ^2 )) * (1 - (ln . x)) )
assume A9: x in Z ; :: thesis: ((((id Z) ^ ) (#) ln ) `| Z) . x = (1 / (x ^2 )) * (1 - (ln . x))
then ((((id Z) ^ ) (#) ln ) `| Z) . x = ((ln . x) * (diff ((id Z) ^ ),x)) + ((((id Z) ^ ) . x) * (diff ln ,x)) by A1, A4, A7, FDIFF_1:29
.= ((ln . x) * ((((id Z) ^ ) `| Z) . x)) + ((((id Z) ^ ) . x) * (diff ln ,x)) by A4, A9, FDIFF_1:def 8
.= ((ln . x) * (- (1 / (x ^2 )))) + ((((id Z) ^ ) . x) * (diff ln ,x)) by A3, A9, Th4
.= ((ln . x) * (- (1 / (x ^2 )))) + ((((id Z) ^ ) . x) * ((ln `| Z) . x)) by A7, A9, FDIFF_1:def 8
.= ((ln . x) * (- (1 / (x ^2 )))) + ((((id Z) ^ ) . x) * (1 / x)) by A6, A9, Th19
.= ((ln . x) * (- (1 / (x ^2 )))) + ((((id Z) . x) " ) * (1 / x)) by A8, A9, RFUNCT_1:def 8
.= ((ln . x) * (- (1 / (x ^2 )))) + ((1 * (x " )) * (1 / x)) by A9, FUNCT_1:35
.= (- ((1 / (x ^2 )) * (ln . x))) + ((1 / x) * (1 / x)) by XCMPLX_0:def 9
.= (- ((1 / (x ^2 )) * (ln . x))) + (1 / (x ^2 )) by XCMPLX_1:103
.= (1 / (x ^2 )) * (1 - (ln . x)) ;
hence ((((id Z) ^ ) (#) ln ) `| Z) . x = (1 / (x ^2 )) * (1 - (ln . x)) ; :: thesis: verum
end;
hence ( ((id Z) ^ ) (#) ln is_differentiable_on Z & ( for x being Real st x in Z holds
((((id Z) ^ ) (#) ln ) `| Z) . x = (1 / (x ^2 )) * (1 - (ln . x)) ) ) by A1, A4, A7, FDIFF_1:29; :: thesis: verum