let Z be open Subset of REAL ; :: thesis: ( Z c= dom (cos (#) cot ) implies ( cos (#) cot is_differentiable_on Z & ( for x being Real st x in Z holds
((cos (#) cot ) `| Z) . x = (- (cos . x)) - ((cos . x) / ((sin . x) ^2 )) ) ) )
assume A1:
Z c= dom (cos (#) cot )
; :: thesis: ( cos (#) cot is_differentiable_on Z & ( for x being Real st x in Z holds
((cos (#) cot ) `| Z) . x = (- (cos . x)) - ((cos . x) / ((sin . x) ^2 )) ) )
then
Z c= (dom cos ) /\ (dom cot )
by VALUED_1:def 4;
then A2:
( Z c= dom cos & Z c= dom cot )
by XBOOLE_1:18;
for x being Real st x in Z holds
cot is_differentiable_in x
then A3:
cot is_differentiable_on Z
by A2, FDIFF_1:16;
for x being Real st x in Z holds
cos is_differentiable_in x
by SIN_COS:68;
then A4:
cos is_differentiable_on Z
by A2, FDIFF_1:16;
A5:
for x being Real st x in Z holds
diff cot ,x = - (1 / ((sin . x) ^2 ))
for x being Real st x in Z holds
((cos (#) cot ) `| Z) . x = (- (cos . x)) - ((cos . x) / ((sin . x) ^2 ))
proof
let x be
Real;
:: thesis: ( x in Z implies ((cos (#) cot ) `| Z) . x = (- (cos . x)) - ((cos . x) / ((sin . x) ^2 )) )
assume A6:
x in Z
;
:: thesis: ((cos (#) cot ) `| Z) . x = (- (cos . x)) - ((cos . x) / ((sin . x) ^2 ))
then ((cos (#) cot ) `| Z) . x =
((diff cos ,x) * (cot . x)) + ((cos . x) * (diff cot ,x))
by A1, A3, A4, FDIFF_1:29
.=
((cot . x) * (- (sin . x))) + ((cos . x) * (diff cot ,x))
by SIN_COS:68
.=
((cot . x) * (- (sin . x))) + ((cos . x) * (- (1 / ((sin . x) ^2 ))))
by A5, A6
.=
(((cos . x) / (sin . x)) * (- ((sin . x) / 1))) - ((cos . x) / ((sin . x) ^2 ))
by A2, A6, RFUNCT_1:def 4
.=
(- ((cos . x) * ((sin . x) / (sin . x)))) - ((cos . x) / ((sin . x) ^2 ))
.=
(- ((cos . x) * 1)) - ((cos . x) / ((sin . x) ^2 ))
by A2, A6, FDIFF_8:2, XCMPLX_1:60
.=
(- (cos . x)) - ((cos . x) / ((sin . x) ^2 ))
;
hence
((cos (#) cot ) `| Z) . x = (- (cos . x)) - ((cos . x) / ((sin . x) ^2 ))
;
:: thesis: verum
end;
hence
( cos (#) cot is_differentiable_on Z & ( for x being Real st x in Z holds
((cos (#) cot ) `| Z) . x = (- (cos . x)) - ((cos . x) / ((sin . x) ^2 )) ) )
by A1, A3, A4, FDIFF_1:29; :: thesis: verum