ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  recos4p Unicode version

Theorem recos4p 11726
Description: Separate out the first four terms of the infinite series expansion of the cosine of a real number. (Contributed by Paul Chapman, 19-Jan-2008.) (Revised by Mario Carneiro, 30-Apr-2014.)
Hypothesis
Ref Expression
efi4p.1  |-  F  =  ( n  e.  NN0  |->  ( ( ( _i  x.  A ) ^
n )  /  ( ! `  n )
) )
Assertion
Ref Expression
recos4p  |-  ( A  e.  RR  ->  ( cos `  A )  =  ( ( 1  -  ( ( A ^
2 )  /  2
) )  +  ( Re `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
Distinct variable groups:    A, k, n   
k, F
Allowed substitution hint:    F( n)

Proof of Theorem recos4p
StepHypRef Expression
1 recosval 11723 . 2  |-  ( A  e.  RR  ->  ( cos `  A )  =  ( Re `  ( exp `  ( _i  x.  A ) ) ) )
2 recn 7943 . . . . 5  |-  ( A  e.  RR  ->  A  e.  CC )
3 efi4p.1 . . . . . 6  |-  F  =  ( n  e.  NN0  |->  ( ( ( _i  x.  A ) ^
n )  /  ( ! `  n )
) )
43efi4p 11724 . . . . 5  |-  ( A  e.  CC  ->  ( exp `  ( _i  x.  A ) )  =  ( ( ( 1  -  ( ( A ^ 2 )  / 
2 ) )  +  ( _i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) ) )  +  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) )
52, 4syl 14 . . . 4  |-  ( A  e.  RR  ->  ( exp `  ( _i  x.  A ) )  =  ( ( ( 1  -  ( ( A ^ 2 )  / 
2 ) )  +  ( _i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) ) )  +  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) )
65fveq2d 5519 . . 3  |-  ( A  e.  RR  ->  (
Re `  ( exp `  ( _i  x.  A
) ) )  =  ( Re `  (
( ( 1  -  ( ( A ^
2 )  /  2
) )  +  ( _i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) ) )  +  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
7 1re 7955 . . . . . . 7  |-  1  e.  RR
8 resqcl 10587 . . . . . . . 8  |-  ( A  e.  RR  ->  ( A ^ 2 )  e.  RR )
98rehalfcld 9164 . . . . . . 7  |-  ( A  e.  RR  ->  (
( A ^ 2 )  /  2 )  e.  RR )
10 resubcl 8220 . . . . . . 7  |-  ( ( 1  e.  RR  /\  ( ( A ^
2 )  /  2
)  e.  RR )  ->  ( 1  -  ( ( A ^
2 )  /  2
) )  e.  RR )
117, 9, 10sylancr 414 . . . . . 6  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  RR )
1211recnd 7985 . . . . 5  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  CC )
13 ax-icn 7905 . . . . . 6  |-  _i  e.  CC
14 3nn0 9193 . . . . . . . . . 10  |-  3  e.  NN0
15 reexpcl 10536 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  3  e.  NN0 )  -> 
( A ^ 3 )  e.  RR )
1614, 15mpan2 425 . . . . . . . . 9  |-  ( A  e.  RR  ->  ( A ^ 3 )  e.  RR )
17 6re 8999 . . . . . . . . . 10  |-  6  e.  RR
18 6pos 9019 . . . . . . . . . . 11  |-  0  <  6
1917, 18gt0ap0ii 8584 . . . . . . . . . 10  |-  6 #  0
20 redivclap 8687 . . . . . . . . . 10  |-  ( ( ( A ^ 3 )  e.  RR  /\  6  e.  RR  /\  6 #  0 )  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2117, 19, 20mp3an23 1329 . . . . . . . . 9  |-  ( ( A ^ 3 )  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2216, 21syl 14 . . . . . . . 8  |-  ( A  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
23 resubcl 8220 . . . . . . . 8  |-  ( ( A  e.  RR  /\  ( ( A ^
3 )  /  6
)  e.  RR )  ->  ( A  -  ( ( A ^
3 )  /  6
) )  e.  RR )
2422, 23mpdan 421 . . . . . . 7  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  RR )
2524recnd 7985 . . . . . 6  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  CC )
26 mulcl 7937 . . . . . 6  |-  ( ( _i  e.  CC  /\  ( A  -  (
( A ^ 3 )  /  6 ) )  e.  CC )  ->  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) )  e.  CC )
2713, 25, 26sylancr 414 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) )  e.  CC )
2812, 27addcld 7976 . . . 4  |-  ( A  e.  RR  ->  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) )  e.  CC )
29 mulcl 7937 . . . . . 6  |-  ( ( _i  e.  CC  /\  A  e.  CC )  ->  ( _i  x.  A
)  e.  CC )
3013, 2, 29sylancr 414 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  A )  e.  CC )
31 4nn0 9194 . . . . 5  |-  4  e.  NN0
323eftlcl 11695 . . . . 5  |-  ( ( ( _i  x.  A
)  e.  CC  /\  4  e.  NN0 )  ->  sum_ k  e.  ( ZZ>= ` 
4 ) ( F `
 k )  e.  CC )
3330, 31, 32sylancl 413 . . . 4  |-  ( A  e.  RR  ->  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
)  e.  CC )
3428, 33readdd 10967 . . 3  |-  ( A  e.  RR  ->  (
Re `  ( (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) )  +  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) )  =  ( ( Re `  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) ) )  +  ( Re
`  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) ) )
3511, 24crred 10984 . . . 4  |-  ( A  e.  RR  ->  (
Re `  ( (
1  -  ( ( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) ) ) )  =  ( 1  -  ( ( A ^
2 )  /  2
) ) )
3635oveq1d 5889 . . 3  |-  ( A  e.  RR  ->  (
( Re `  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) ) )  +  ( Re
`  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) )  =  ( ( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( Re
`  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) ) )
376, 34, 363eqtrd 2214 . 2  |-  ( A  e.  RR  ->  (
Re `  ( exp `  ( _i  x.  A
) ) )  =  ( ( 1  -  ( ( A ^
2 )  /  2
) )  +  ( Re `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
381, 37eqtrd 2210 1  |-  ( A  e.  RR  ->  ( cos `  A )  =  ( ( 1  -  ( ( A ^
2 )  /  2
) )  +  ( Re `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1353    e. wcel 2148   class class class wbr 4003    |-> cmpt 4064   ` cfv 5216  (class class class)co 5874   CCcc 7808   RRcr 7809   0cc0 7810   1c1 7811   _ici 7812    + caddc 7813    x. cmul 7815    - cmin 8127   # cap 8537    / cdiv 8628   2c2 8969   3c3 8970   4c4 8971   6c6 8973   NN0cn0 9175   ZZ>=cuz 9527   ^cexp 10518   !cfa 10704   Recre 10848   sum_csu 11360   expce 11649   cosccos 11652
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-13 2150  ax-14 2151  ax-ext 2159  ax-coll 4118  ax-sep 4121  ax-nul 4129  ax-pow 4174  ax-pr 4209  ax-un 4433  ax-setind 4536  ax-iinf 4587  ax-cnex 7901  ax-resscn 7902  ax-1cn 7903  ax-1re 7904  ax-icn 7905  ax-addcl 7906  ax-addrcl 7907  ax-mulcl 7908  ax-mulrcl 7909  ax-addcom 7910  ax-mulcom 7911  ax-addass 7912  ax-mulass 7913  ax-distr 7914  ax-i2m1 7915  ax-0lt1 7916  ax-1rid 7917  ax-0id 7918  ax-rnegex 7919  ax-precex 7920  ax-cnre 7921  ax-pre-ltirr 7922  ax-pre-ltwlin 7923  ax-pre-lttrn 7924  ax-pre-apti 7925  ax-pre-ltadd 7926  ax-pre-mulgt0 7927  ax-pre-mulext 7928  ax-arch 7929  ax-caucvg 7930
This theorem depends on definitions:  df-bi 117  df-dc 835  df-3or 979  df-3an 980  df-tru 1356  df-fal 1359  df-nf 1461  df-sb 1763  df-eu 2029  df-mo 2030  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-nel 2443  df-ral 2460  df-rex 2461  df-reu 2462  df-rmo 2463  df-rab 2464  df-v 2739  df-sbc 2963  df-csb 3058  df-dif 3131  df-un 3133  df-in 3135  df-ss 3142  df-nul 3423  df-if 3535  df-pw 3577  df-sn 3598  df-pr 3599  df-op 3601  df-uni 3810  df-int 3845  df-iun 3888  df-br 4004  df-opab 4065  df-mpt 4066  df-tr 4102  df-id 4293  df-po 4296  df-iso 4297  df-iord 4366  df-on 4368  df-ilim 4369  df-suc 4371  df-iom 4590  df-xp 4632  df-rel 4633  df-cnv 4634  df-co 4635  df-dm 4636  df-rn 4637  df-res 4638  df-ima 4639  df-iota 5178  df-fun 5218  df-fn 5219  df-f 5220  df-f1 5221  df-fo 5222  df-f1o 5223  df-fv 5224  df-isom 5225  df-riota 5830  df-ov 5877  df-oprab 5878  df-mpo 5879  df-1st 6140  df-2nd 6141  df-recs 6305  df-irdg 6370  df-frec 6391  df-1o 6416  df-oadd 6420  df-er 6534  df-en 6740  df-dom 6741  df-fin 6742  df-pnf 7993  df-mnf 7994  df-xr 7995  df-ltxr 7996  df-le 7997  df-sub 8129  df-neg 8130  df-reap 8531  df-ap 8538  df-div 8629  df-inn 8919  df-2 8977  df-3 8978  df-4 8979  df-5 8980  df-6 8981  df-n0 9176  df-z 9253  df-uz 9528  df-q 9619  df-rp 9653  df-ico 9893  df-fz 10008  df-fzo 10142  df-seqfrec 10445  df-exp 10519  df-fac 10705  df-ihash 10755  df-cj 10850  df-re 10851  df-im 10852  df-rsqrt 11006  df-abs 11007  df-clim 11286  df-sumdc 11361  df-ef 11655  df-cos 11658
This theorem is referenced by:  cos01bnd  11765
  Copyright terms: Public domain W3C validator