let A be closed-interval Subset of REAL ; :: thesis: for Z being open Subset of REAL st A c= Z holds
integral (sin + ((id Z) (#) cos )),A = (((id Z) (#) sin ) . (upper_bound A)) - (((id Z) (#) sin ) . (lower_bound A))

let Z be open Subset of REAL ; :: thesis: ( A c= Z implies integral (sin + ((id Z) (#) cos )),A = (((id Z) (#) sin ) . (upper_bound A)) - (((id Z) (#) sin ) . (lower_bound A)) )
assume A: A c= Z ; :: thesis: integral (sin + ((id Z) (#) cos )),A = (((id Z) (#) sin ) . (upper_bound A)) - (((id Z) (#) sin ) . (lower_bound A))
A1: dom ((id Z) (#) sin ) = Z
proof
dom ((id Z) (#) sin ) = (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 dom ((id Z) (#) sin ) = Z ; :: thesis: verum
end;
A2: Z = dom (sin + ((id Z) (#) cos ))
proof
dom (sin + ((id Z) (#) cos )) = REAL /\ (dom ((id Z) (#) cos )) by SIN_COS:27, VALUED_1:def 1
.= dom ((id Z) (#) cos ) by XBOOLE_1:28
.= (dom (id Z)) /\ REAL by SIN_COS:27, VALUED_1:def 4
.= dom (id Z) by XBOOLE_1:28 ;
hence Z = dom (sin + ((id Z) (#) cos )) by RELAT_1:71; :: thesis: verum
end;
Z = (dom sin ) /\ (dom ((id Z) (#) cos )) by A2, VALUED_1:def 1;
then D: ( Z c= dom sin & Z c= dom ((id Z) (#) cos ) ) by XBOOLE_1:18;
then ( Z c= dom sin & Z c= (dom (id Z)) /\ (dom cos ) ) by VALUED_1:def 4;
then AA: ( Z c= dom sin & Z c= dom (id Z) & Z c= dom cos ) by XBOOLE_1:18;
AB: for x being Real st x in Z holds
(id Z) . x = (1 * x) + 0 by FUNCT_1:35;
B: for x being Real st x in Z holds
(sin + ((id Z) (#) cos )) . x = (sin . x) + (x * (cos . x))
proof
let x be Real; :: thesis: ( x in Z implies (sin + ((id Z) (#) cos )) . x = (sin . x) + (x * (cos . x)) )
assume C: x in Z ; :: thesis: (sin + ((id Z) (#) cos )) . x = (sin . x) + (x * (cos . x))
then (sin + ((id Z) (#) cos )) . x = (sin . x) + (((id Z) (#) cos ) . x) by A2, VALUED_1:def 1
.= (sin . x) + (((id Z) . x) * (cos . x)) by VALUED_1:5
.= (sin . x) + (x * (cos . x)) by C, FUNCT_1:35 ;
hence (sin + ((id Z) (#) cos )) . x = (sin . x) + (x * (cos . x)) ; :: thesis: verum
end;
C1: id Z is_differentiable_on Z by AA, AB, FDIFF_1:31;
C2: sin is_differentiable_on Z by FDIFF_1:34, SIN_COS:73;
cos is_differentiable_on Z by FDIFF_1:34, SIN_COS:72;
then (id Z) (#) cos is_differentiable_on Z by D, C1, FDIFF_1:29;
then (sin + ((id Z) (#) cos )) | Z is continuous by A2, C2, FDIFF_1:26, FDIFF_1:33;
then (sin + ((id Z) (#) cos )) | A is continuous by A, FCONT_1:17;
then A3: ( sin + ((id Z) (#) cos ) is_integrable_on A & (sin + ((id Z) (#) cos )) | A is bounded ) by A, A2, INTEGRA5:10, INTEGRA5:11;
A4: (id Z) (#) sin is_differentiable_on Z by A1, FDIFF_4:45;
A5: for x being Real st x in dom (((id Z) (#) sin ) `| Z) holds
(((id Z) (#) sin ) `| Z) . x = (sin + ((id Z) (#) cos )) . x
proof
let x be Real; :: thesis: ( x in dom (((id Z) (#) sin ) `| Z) implies (((id Z) (#) sin ) `| Z) . x = (sin + ((id Z) (#) cos )) . x )
assume x in dom (((id Z) (#) sin ) `| Z) ; :: thesis: (((id Z) (#) sin ) `| Z) . x = (sin + ((id Z) (#) cos )) . x
then A6: x in Z by A4, FDIFF_1:def 8;
then (((id Z) (#) sin ) `| Z) . x = (sin . x) + (x * (cos . x)) by A1, FDIFF_4:45
.= (sin + ((id Z) (#) cos )) . x by B, A6 ;
hence (((id Z) (#) sin ) `| Z) . x = (sin + ((id Z) (#) cos )) . x ; :: thesis: verum
end;
dom (((id Z) (#) sin ) `| Z) = dom (sin + ((id Z) (#) cos )) by A2, A4, FDIFF_1:def 8;
then ((id Z) (#) sin ) `| Z = sin + ((id Z) (#) cos ) by A5, PARTFUN1:34;
hence integral (sin + ((id Z) (#) cos )),A = (((id Z) (#) sin ) . (upper_bound A)) - (((id Z) (#) sin ) . (lower_bound A)) by A, A1, A3, FDIFF_4:45, INTEGRA5:13; :: thesis: verum