let n be Element of NAT ; :: thesis: for Z being open Subset of REAL
for f being PartFunc of REAL ,REAL st Z c= dom ((cos * f) (#) ((#Z n) * cos )) & n >= 1 & ( for x being Real st x in Z holds
f . x = n * x ) holds
( (cos * f) (#) ((#Z n) * cos ) is_differentiable_on Z & ( for x being Real st x in Z holds
(((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x))) ) )
let Z be open Subset of REAL ; :: thesis: for f being PartFunc of REAL ,REAL st Z c= dom ((cos * f) (#) ((#Z n) * cos )) & n >= 1 & ( for x being Real st x in Z holds
f . x = n * x ) holds
( (cos * f) (#) ((#Z n) * cos ) is_differentiable_on Z & ( for x being Real st x in Z holds
(((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x))) ) )
let f be PartFunc of REAL ,REAL ; :: thesis: ( Z c= dom ((cos * f) (#) ((#Z n) * cos )) & n >= 1 & ( for x being Real st x in Z holds
f . x = n * x ) implies ( (cos * f) (#) ((#Z n) * cos ) is_differentiable_on Z & ( for x being Real st x in Z holds
(((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x))) ) ) )
assume A1:
( Z c= dom ((cos * f) (#) ((#Z n) * cos )) & n >= 1 & ( for x being Real st x in Z holds
f . x = n * x ) )
; :: thesis: ( (cos * f) (#) ((#Z n) * cos ) is_differentiable_on Z & ( for x being Real st x in Z holds
(((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x))) ) )
then
Z c= (dom (cos * f)) /\ (dom ((#Z n) * cos ))
by VALUED_1:def 4;
then A2:
( Z c= dom (cos * f) & Z c= dom ((#Z n) * cos ) )
by XBOOLE_1:18;
then
for y being set st y in Z holds
y in dom f
by FUNCT_1:21;
then A3:
Z c= dom f
by TARSKI:def 3;
A4:
for x being Real st x in Z holds
f . x = (n * x) + 0
by A1;
then A5:
( f is_differentiable_on Z & ( for x being Real st x in Z holds
(f `| Z) . x = n ) )
by A3, FDIFF_1:31;
for x being Real st x in Z holds
cos * f is_differentiable_in x
then A7:
cos * f is_differentiable_on Z
by A2, FDIFF_1:16;
A8:
for x being Real st x in Z holds
((cos * f) `| Z) . x = - (n * (sin . (n * x)))
proof
let x be
Real;
:: thesis: ( x in Z implies ((cos * f) `| Z) . x = - (n * (sin . (n * x))) )
assume A9:
x in Z
;
:: thesis: ((cos * f) `| Z) . x = - (n * (sin . (n * x)))
then A10:
f is_differentiable_in x
by A5, FDIFF_1:16;
cos is_differentiable_in f . x
by SIN_COS:68;
then diff (cos * f),
x =
(diff cos ,(f . x)) * (diff f,x)
by A10, FDIFF_2:13
.=
(- (sin . (f . x))) * (diff f,x)
by SIN_COS:68
.=
- ((sin . (f . x)) * (diff f,x))
.=
- ((sin . (n * x)) * (diff f,x))
by A1, A9
.=
- ((sin . (n * x)) * ((f `| Z) . x))
by A5, A9, FDIFF_1:def 8
.=
- (n * (sin . (n * x)))
by A3, A4, A9, FDIFF_1:31
;
hence
((cos * f) `| Z) . x = - (n * (sin . (n * x)))
by A7, A9, FDIFF_1:def 8;
:: thesis: verum
end;
then A11:
(#Z n) * cos is_differentiable_on Z
by A2, FDIFF_1:16;
A12:
for x being Real st x in Z holds
(((#Z n) * cos ) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . x))
now let x be
Real;
:: thesis: ( x in Z implies (((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x))) )assume A14:
x in Z
;
:: thesis: (((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x)))A15:
n - 1 is
Element of
NAT
by A1, NAT_1:21;
(((cos * f) (#) ((#Z n) * cos )) `| Z) . x =
((((#Z n) * cos ) . x) * (diff (cos * f),x)) + (((cos * f) . x) * (diff ((#Z n) * cos ),x))
by A1, A7, A11, A14, FDIFF_1:29
.=
(((#Z n) . (cos . x)) * (diff (cos * f),x)) + (((cos * f) . x) * (diff ((#Z n) * cos ),x))
by A2, A14, FUNCT_1:22
.=
(((cos . x) #Z n) * (diff (cos * f),x)) + (((cos * f) . x) * (diff ((#Z n) * cos ),x))
by TAYLOR_1:def 1
.=
(((cos . x) #Z n) * (((cos * f) `| Z) . x)) + (((cos * f) . x) * (diff ((#Z n) * cos ),x))
by A7, A14, FDIFF_1:def 8
.=
(((cos . x) #Z n) * (- (n * (sin . (n * x))))) + (((cos * f) . x) * (diff ((#Z n) * cos ),x))
by A8, A14
.=
(((cos . x) #Z n) * (- (n * (sin . (n * x))))) + ((cos . (f . x)) * (diff ((#Z n) * cos ),x))
by A2, A14, FUNCT_1:22
.=
(((cos . x) #Z n) * (- (n * (sin . (n * x))))) + ((cos . (n * x)) * (diff ((#Z n) * cos ),x))
by A1, A14
.=
(((cos . x) #Z n) * (- (n * (sin . (n * x))))) + ((cos . (n * x)) * ((((#Z n) * cos ) `| Z) . x))
by A11, A14, FDIFF_1:def 8
.=
(((cos . x) #Z ((n - 1) + 1)) * (- (n * (sin . (n * x))))) + ((cos . (n * x)) * (- ((n * ((cos . x) #Z (n - 1))) * (sin . x))))
by A12, A14
.=
((((cos . x) #Z (n - 1)) * ((cos . x) #Z 1)) * (- (n * (sin . (n * x))))) + ((cos . (n * x)) * (- ((n * ((cos . x) #Z (n - 1))) * (sin . x))))
by A15, TAYLOR_1:1
.=
((((cos . x) #Z (n - 1)) * (cos . x)) * (- (n * (sin . (n * x))))) + ((cos . (n * x)) * (- ((n * ((cos . x) #Z (n - 1))) * (sin . x))))
by PREPOWER:45
.=
- ((n * ((cos . x) #Z (n - 1))) * (((sin . (n * x)) * (cos . x)) + ((cos . (n * x)) * (sin . x))))
.=
- ((n * ((cos . x) #Z (n - 1))) * (sin . (x + (n * x))))
by SIN_COS:79
.=
- ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x)))
;
hence
(((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x)))
;
:: thesis: verum end;
hence
( (cos * f) (#) ((#Z n) * cos ) is_differentiable_on Z & ( for x being Real st x in Z holds
(((cos * f) (#) ((#Z n) * cos )) `| Z) . x = - ((n * ((cos . x) #Z (n - 1))) * (sin . ((n + 1) * x))) ) )
by A1, A7, A11, FDIFF_1:29; :: thesis: verum