let Z be open Subset of REAL ; :: thesis: for f being PartFunc of REAL ,REAL st Z c= dom (- (ln * (f - exp_R ))) & ( for x being Real st x in Z holds
( f . x = 1 & (f - exp_R ) . x > 0 ) ) holds
( - (ln * (f - exp_R )) is_differentiable_on Z & ( for x being Real st x in Z holds
((- (ln * (f - exp_R ))) `| Z) . x = (exp_R . x) / (1 - (exp_R . x)) ) )

let f be PartFunc of REAL ,REAL ; :: thesis: ( Z c= dom (- (ln * (f - exp_R ))) & ( for x being Real st x in Z holds
( f . x = 1 & (f - exp_R ) . x > 0 ) ) implies ( - (ln * (f - exp_R )) is_differentiable_on Z & ( for x being Real st x in Z holds
((- (ln * (f - exp_R ))) `| Z) . x = (exp_R . x) / (1 - (exp_R . x)) ) ) )

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

A3: for x being Real st x in Z holds
f . x = (0 * x) + 1 by A2;
A4: Z c= dom (ln * (f - exp_R )) by A1, VALUED_1:8;
then for y being set st y in Z holds
y in dom (f - exp_R ) by FUNCT_1:21;
then A5: Z c= dom (f - exp_R ) by TARSKI:def 3;
then Z c= (dom exp_R ) /\ (dom f) by VALUED_1:12;
then A6: Z c= dom f by XBOOLE_1:18;
then A7: f is_differentiable_on Z by A3, FDIFF_1:31;
A8: exp_R is_differentiable_on Z by FDIFF_1:34, TAYLOR_1:16;
then A9: f - exp_R is_differentiable_on Z by A5, A7, FDIFF_1:27;
for x being Real st x in Z holds
ln * (f - exp_R ) is_differentiable_in x
proof end;
then A10: ln * (f - exp_R ) is_differentiable_on Z by A4, FDIFF_1:16;
A11: for x being Real st x in Z holds
((f - exp_R ) `| Z) . x = - (exp_R . x)
proof
let x be Real; :: thesis: ( x in Z implies ((f - exp_R ) `| Z) . x = - (exp_R . x) )
assume A12: x in Z ; :: thesis: ((f - exp_R ) `| Z) . x = - (exp_R . x)
hence ((f - exp_R ) `| Z) . x = (diff f,x) - (diff exp_R ,x) by A5, A7, A8, FDIFF_1:27
.= (diff f,x) - (exp_R . x) by SIN_COS:70
.= ((f `| Z) . x) - (exp_R . x) by A7, A12, FDIFF_1:def 8
.= 0 - (exp_R . x) by A6, A3, A12, FDIFF_1:31
.= - (exp_R . x) ;
:: thesis: verum
end;
A13: for x being Real st x in Z holds
((- (ln * (f - exp_R ))) `| Z) . x = (exp_R . x) / (1 - (exp_R . x))
proof
let x be Real; :: thesis: ( x in Z implies ((- (ln * (f - exp_R ))) `| Z) . x = (exp_R . x) / (1 - (exp_R . x)) )
assume A14: x in Z ; :: thesis: ((- (ln * (f - exp_R ))) `| Z) . x = (exp_R . x) / (1 - (exp_R . x))
then A15: (f - exp_R ) . x = (f . x) - (exp_R . x) by A5, VALUED_1:13
.= 1 - (exp_R . x) by A2, A14 ;
A16: ( f - exp_R is_differentiable_in x & (f - exp_R ) . x > 0 ) by A2, A9, A14, FDIFF_1:16;
(((- 1) (#) (ln * (f - exp_R ))) `| Z) . x = (- 1) * (diff (ln * (f - exp_R )),x) by A1, A10, A14, FDIFF_1:28
.= (- 1) * ((diff (f - exp_R ),x) / ((f - exp_R ) . x)) by A16, TAYLOR_1:20
.= (- 1) * ((((f - exp_R ) `| Z) . x) / ((f - exp_R ) . x)) by A9, A14, FDIFF_1:def 8
.= (- 1) * ((- (exp_R . x)) / (1 - (exp_R . x))) by A11, A14, A15
.= ((- 1) * (- (exp_R . x))) / (1 - (exp_R . x)) by XCMPLX_1:75
.= (exp_R . x) / (1 - (exp_R . x)) ;
hence ((- (ln * (f - exp_R ))) `| Z) . x = (exp_R . x) / (1 - (exp_R . x)) ; :: thesis: verum
end;
Z c= dom ((- 1) (#) (ln * (f - exp_R ))) by A1;
hence ( - (ln * (f - exp_R )) is_differentiable_on Z & ( for x being Real st x in Z holds
((- (ln * (f - exp_R ))) `| Z) . x = (exp_R . x) / (1 - (exp_R . x)) ) ) by A10, A13, FDIFF_1:28; :: thesis: verum