let p be real number ; ( cos is_differentiable_in p & diff cos ,p = - (sin . p) )
reconsider p = p as Real by XREAL_0:def 1;
deffunc H2( Element of REAL ) -> Element of REAL = - ($1 * (Im ((Sum (($1 * <i> ) P_dt )) * ((cos . p) + ((sin . p) * <i> )))));
consider Cr being Function of REAL ,REAL such that
A1:
for th being Real holds Cr . th = H2(th)
from FUNCT_2:sch 4();
A2:
for hy1 being convergent_to_0 Real_Sequence holds
( (hy1 " ) (#) (Cr /* hy1) is convergent & lim ((hy1 " ) (#) (Cr /* hy1)) = 0 )
proof
let hy1 be
convergent_to_0 Real_Sequence;
( (hy1 " ) (#) (Cr /* hy1) is convergent & lim ((hy1 " ) (#) (Cr /* hy1)) = 0 )
A3:
for
n being
Element of
NAT holds
((hy1 " ) (#) (Cr /* hy1)) . n = - (Im ((Sum (((hy1 . n) * <i> ) P_dt )) * ((cos . p) + ((sin . p) * <i> ))))
deffunc H3(
Real)
-> Element of
REAL =
- (Im ((Sum (((hy1 . $1) * <i> ) P_dt )) * ((cos . p) + ((sin . p) * <i> ))));
consider rseq being
Real_Sequence such that A11:
for
n being
Element of
NAT holds
rseq . n = H3(
n)
from SEQ_1:sch 1();
deffunc H4(
Element of
NAT )
-> Element of
COMPLEX =
(Sum (((hy1 . $1) * <i> ) P_dt )) * ((cos . p) + ((sin . p) * <i> ));
consider cq1 being
Complex_Sequence such that A12:
for
n being
Element of
NAT holds
cq1 . n = H4(
n)
from COMSEQ_1:sch 1();
A13:
for
q being
Real st
q > 0 holds
ex
k being
Element of
NAT st
for
m being
Element of
NAT st
k <= m holds
|.((cq1 . m) - 0c ).| < q
A27:
cq1 is
convergent
by A13, COMSEQ_2:def 4;
A28:
lim cq1 = 0c
by A13, A27, COMSEQ_2:def 5;
A29:
lim (- cq1) = - 0c
by A27, A28, COMSEQ_2:22;
A30:
for
n being
Element of
NAT holds
(Im (- cq1)) . n = rseq . n
A34:
for
n being
Element of
NAT holds
rseq . n = ((hy1 " ) (#) (Cr /* hy1)) . n
A36:
rseq = (hy1 " ) (#) (Cr /* hy1)
by A34, FUNCT_2:113;
A37:
(hy1 " ) (#) (Cr /* hy1) = Im (- cq1)
by A30, A36, FUNCT_2:113;
thus
(
(hy1 " ) (#) (Cr /* hy1) is
convergent &
lim ((hy1 " ) (#) (Cr /* hy1)) = 0 )
by A27, A29, A37, COMPLEX1:12, COMSEQ_3:41;
verum
end;
reconsider PR = Cr as REST by A2, FDIFF_1:def 3;
deffunc H3( Element of REAL ) -> Element of REAL = - ($1 * (sin . p));
consider CL being Function of REAL ,REAL such that
A38:
for th being Real holds CL . th = H3(th)
from FUNCT_2:sch 4();
A39:
ex r being Real st
for q being Real holds CL . q = r * q
reconsider PL = CL as LINEAR by A39, FDIFF_1:def 4;
A42:
ex N being Neighbourhood of p st
( N c= dom cos & ( for r being Real st r in N holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p)) ) )
proof
A43:
for
r being
Real st
r in ].(p - 1),(p + 1).[ holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p))
take
].(p - 1),(p + 1).[
;
( ].(p - 1),(p + 1).[ is Neighbourhood of p & ].(p - 1),(p + 1).[ c= dom cos & ( for r being Real st r in ].(p - 1),(p + 1).[ holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p)) ) )
thus
(
].(p - 1),(p + 1).[ is
Neighbourhood of
p &
].(p - 1),(p + 1).[ c= dom cos & ( for
r being
Real st
r in ].(p - 1),(p + 1).[ holds
(cos . r) - (cos . p) = (PL . (r - p)) + (PR . (r - p)) ) )
by A43, Th27, RCOMP_1:def 7;
verum
end;
A46:
cos is_differentiable_in p
by A42, FDIFF_1:def 5;
A47: PL . 1 =
- (1 * (sin . p))
by A38
.=
- (sin . p)
;
thus
( cos is_differentiable_in p & diff cos ,p = - (sin . p) )
by A42, A46, A47, FDIFF_1:def 6; verum