let Z be open Subset of REAL ; :: thesis: ( Z c= dom ((- cot ) - cosec ) & ( for x being Real st x in Z holds
( 1 + (cos . x) <> 0 & 1 - (cos . x) <> 0 ) ) implies ( (- cot ) - cosec is_differentiable_on Z & ( for x being Real st x in Z holds
(((- cot ) - cosec ) `| Z) . x = 1 / (1 - (cos . x)) ) ) )
assume that
A1:
Z c= dom ((- cot ) - cosec )
and
A2:
for x being Real st x in Z holds
( 1 + (cos . x) <> 0 & 1 - (cos . x) <> 0 )
; :: thesis: ( (- cot ) - cosec is_differentiable_on Z & ( for x being Real st x in Z holds
(((- cot ) - cosec ) `| Z) . x = 1 / (1 - (cos . x)) ) )
Z c= (dom (- cot )) /\ (dom (sin ^ ))
by A1, VALUED_1:12;
then B:
( Z c= dom (- cot ) & Z c= dom (sin ^ ) )
by XBOOLE_1:18;
then A3:
( Z c= dom cot & Z c= dom (sin ^ ) )
by VALUED_1:8;
then A4:
for x being Real st x in Z holds
sin . x <> 0
by FDIFF_8:2;
then A5:
sin ^ is_differentiable_on Z
by FDIFF_4:40;
for x being Real st x in Z holds
cot is_differentiable_in x
then A6:
cot is_differentiable_on Z
by A3, FDIFF_1:16;
then AA:
( (- 1) (#) cot is_differentiable_on Z & ( for x being Real st x in Z holds
(((- 1) (#) cot ) `| Z) . x = (- 1) * (diff cot ,x) ) )
by B, FDIFF_1:28;
for x being Real st x in Z holds
(((- cot ) - cosec ) `| Z) . x = 1 / (1 - (cos . x))
proof
let x be
Real;
:: thesis: ( x in Z implies (((- cot ) - cosec ) `| Z) . x = 1 / (1 - (cos . x)) )
assume A7:
x in Z
;
:: thesis: (((- cot ) - cosec ) `| Z) . x = 1 / (1 - (cos . x))
then A8:
(
sin . x <> 0 & 1
+ (cos . x) <> 0 & 1
- (cos . x) <> 0 )
by A2, A3, FDIFF_8:2;
(((- cot ) - cosec ) `| Z) . x =
(diff (- cot ),x) - (diff (sin ^ ),x)
by A1, A5, AA, A7, FDIFF_1:27
.=
((((- 1) (#) cot ) `| Z) . x) - (diff (sin ^ ),x)
by AA, A7, FDIFF_1:def 8
.=
((- 1) * (diff cot ,x)) - (diff (sin ^ ),x)
by B, A6, A7, FDIFF_1:28
.=
((- 1) * (- (1 / ((sin . x) ^2 )))) - (diff (sin ^ ),x)
by A8, FDIFF_7:47
.=
(1 / ((sin . x) ^2 )) - (((sin ^ ) `| Z) . x)
by A5, A7, FDIFF_1:def 8
.=
(1 / ((sin . x) ^2 )) - (- ((cos . x) / ((sin . x) ^2 )))
by A4, A7, FDIFF_4:40
.=
(1 / ((sin . x) ^2 )) + ((cos . x) / ((sin . x) ^2 ))
.=
(1 + (cos . x)) / ((((sin . x) ^2 ) + ((cos . x) ^2 )) - ((cos . x) ^2 ))
by XCMPLX_1:63
.=
(1 + (cos . x)) / (1 - ((cos . x) ^2 ))
by SIN_COS:31
.=
(1 + (cos . x)) / ((1 + (cos . x)) * (1 - (cos . x)))
.=
((1 + (cos . x)) / (1 + (cos . x))) / (1 - (cos . x))
by XCMPLX_1:79
.=
1
/ (1 - (cos . x))
by A8, XCMPLX_1:60
;
hence
(((- cot ) - cosec ) `| Z) . x = 1
/ (1 - (cos . x))
;
:: thesis: verum
end;
hence
( (- cot ) - cosec is_differentiable_on Z & ( for x being Real st x in Z holds
(((- cot ) - cosec ) `| Z) . x = 1 / (1 - (cos . x)) ) )
by A1, A5, AA, FDIFF_1:27; :: thesis: verum