let Z be open Subset of REAL ; :: thesis: ( (id Z) (#) cos is_differentiable_on Z & ( for x being Real st x in Z holds
(((id Z) (#) cos ) `| Z) . x = (cos . x) - (x * (sin . x)) ) )

A1: Z = dom ((id Z) (#) cos )
proof
dom ((id Z) (#) cos ) = (dom (id Z)) /\ REAL by SIN_COS:27, VALUED_1:def 4
.= dom (id Z) by XBOOLE_1:28
.= Z by RELAT_1:71 ;
hence Z = dom ((id Z) (#) cos ) ; :: thesis: verum
end;
then Z c= (dom (id Z)) /\ (dom cos ) by VALUED_1:def 4;
then A2: ( Z c= dom (id Z) & Z c= dom cos ) by XBOOLE_1:18;
A3: for x being Real st x in Z holds
(id Z) . x = (1 * x) + 0 by FUNCT_1:35;
for x being Real st x in Z holds
(id Z) . x = (1 * x) + 0 by FUNCT_1:35;
then A4: ( id Z is_differentiable_on Z & ( for x being Real st x in Z holds
((id Z) `| Z) . x = 1 ) ) by A2, FDIFF_1:31;
A5: cos is_differentiable_on Z by FDIFF_1:34, SIN_COS:72;
now
let x be Real; :: thesis: ( x in Z implies (((id Z) (#) cos ) `| Z) . x = (cos . x) - (x * (sin . x)) )
assume A6: x in Z ; :: thesis: (((id Z) (#) cos ) `| Z) . x = (cos . x) - (x * (sin . x))
hence (((id Z) (#) cos ) `| Z) . x = ((cos . x) * (diff (id Z),x)) + (((id Z) . x) * (diff cos ,x)) by A1, A4, A5, FDIFF_1:29
.= ((cos . x) * (((id Z) `| Z) . x)) + (((id Z) . x) * (diff cos ,x)) by A4, A6, FDIFF_1:def 8
.= ((cos . x) * 1) + (((id Z) . x) * (diff cos ,x)) by A2, A3, A6, FDIFF_1:31
.= ((cos . x) * 1) + (((id Z) . x) * (- (sin . x))) by SIN_COS:68
.= (cos . x) + (x * (- (sin . x))) by A6, FUNCT_1:35
.= (cos . x) - (x * (sin . x)) ;
:: thesis: verum
end;
hence ( (id Z) (#) cos is_differentiable_on Z & ( for x being Real st x in Z holds
(((id Z) (#) cos ) `| Z) . x = (cos . x) - (x * (sin . x)) ) ) by A1, A4, A5, FDIFF_1:29; :: thesis: verum