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

Theorem recos4p 11598
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 11595 . 2  |-  ( A  e.  RR  ->  ( cos `  A )  =  ( Re `  ( exp `  ( _i  x.  A ) ) ) )
2 recn 7848 . . . . 5  |-  ( A  e.  RR  ->  A  e.  CC )
3 efi4p.1 . . . . . 6  |-  F  =  ( n  e.  NN0  |->  ( ( ( _i  x.  A ) ^
n )  /  ( ! `  n )
) )
43efi4p 11596 . . . . 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 5469 . . 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 7860 . . . . . . 7  |-  1  e.  RR
8 resqcl 10468 . . . . . . . 8  |-  ( A  e.  RR  ->  ( A ^ 2 )  e.  RR )
98rehalfcld 9062 . . . . . . 7  |-  ( A  e.  RR  ->  (
( A ^ 2 )  /  2 )  e.  RR )
10 resubcl 8122 . . . . . . 7  |-  ( ( 1  e.  RR  /\  ( ( A ^
2 )  /  2
)  e.  RR )  ->  ( 1  -  ( ( A ^
2 )  /  2
) )  e.  RR )
117, 9, 10sylancr 411 . . . . . 6  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  RR )
1211recnd 7889 . . . . 5  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  CC )
13 ax-icn 7810 . . . . . 6  |-  _i  e.  CC
14 3nn0 9091 . . . . . . . . . 10  |-  3  e.  NN0
15 reexpcl 10418 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  3  e.  NN0 )  -> 
( A ^ 3 )  e.  RR )
1614, 15mpan2 422 . . . . . . . . 9  |-  ( A  e.  RR  ->  ( A ^ 3 )  e.  RR )
17 6re 8897 . . . . . . . . . 10  |-  6  e.  RR
18 6pos 8917 . . . . . . . . . . 11  |-  0  <  6
1917, 18gt0ap0ii 8486 . . . . . . . . . 10  |-  6 #  0
20 redivclap 8587 . . . . . . . . . 10  |-  ( ( ( A ^ 3 )  e.  RR  /\  6  e.  RR  /\  6 #  0 )  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2117, 19, 20mp3an23 1311 . . . . . . . . 9  |-  ( ( A ^ 3 )  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2216, 21syl 14 . . . . . . . 8  |-  ( A  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
23 resubcl 8122 . . . . . . . 8  |-  ( ( A  e.  RR  /\  ( ( A ^
3 )  /  6
)  e.  RR )  ->  ( A  -  ( ( A ^
3 )  /  6
) )  e.  RR )
2422, 23mpdan 418 . . . . . . 7  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  RR )
2524recnd 7889 . . . . . 6  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  CC )
26 mulcl 7842 . . . . . 6  |-  ( ( _i  e.  CC  /\  ( A  -  (
( A ^ 3 )  /  6 ) )  e.  CC )  ->  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) )  e.  CC )
2713, 25, 26sylancr 411 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) )  e.  CC )
2812, 27addcld 7880 . . . 4  |-  ( A  e.  RR  ->  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) )  e.  CC )
29 mulcl 7842 . . . . . 6  |-  ( ( _i  e.  CC  /\  A  e.  CC )  ->  ( _i  x.  A
)  e.  CC )
3013, 2, 29sylancr 411 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  A )  e.  CC )
31 4nn0 9092 . . . . 5  |-  4  e.  NN0
323eftlcl 11567 . . . . 5  |-  ( ( ( _i  x.  A
)  e.  CC  /\  4  e.  NN0 )  ->  sum_ k  e.  ( ZZ>= ` 
4 ) ( F `
 k )  e.  CC )
3330, 31, 32sylancl 410 . . . 4  |-  ( A  e.  RR  ->  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
)  e.  CC )
3428, 33readdd 10841 . . 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 10858 . . . 4  |-  ( A  e.  RR  ->  (
Re `  ( (
1  -  ( ( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) ) ) )  =  ( 1  -  ( ( A ^
2 )  /  2
) ) )
3635oveq1d 5833 . . 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 2194 . 2  |-  ( A  e.  RR  ->  (
Re `  ( exp `  ( _i  x.  A
) ) )  =  ( ( 1  -  ( ( A ^
2 )  /  2
) )  +  ( Re `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
381, 37eqtrd 2190 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 1335    e. wcel 2128   class class class wbr 3965    |-> cmpt 4025   ` cfv 5167  (class class class)co 5818   CCcc 7713   RRcr 7714   0cc0 7715   1c1 7716   _ici 7717    + caddc 7718    x. cmul 7720    - cmin 8029   # cap 8439    / cdiv 8528   2c2 8867   3c3 8868   4c4 8869   6c6 8871   NN0cn0 9073   ZZ>=cuz 9422   ^cexp 10400   !cfa 10581   Recre 10722   sum_csu 11232   expce 11521   cosccos 11524
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1427  ax-7 1428  ax-gen 1429  ax-ie1 1473  ax-ie2 1474  ax-8 1484  ax-10 1485  ax-11 1486  ax-i12 1487  ax-bndl 1489  ax-4 1490  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-13 2130  ax-14 2131  ax-ext 2139  ax-coll 4079  ax-sep 4082  ax-nul 4090  ax-pow 4134  ax-pr 4168  ax-un 4392  ax-setind 4494  ax-iinf 4545  ax-cnex 7806  ax-resscn 7807  ax-1cn 7808  ax-1re 7809  ax-icn 7810  ax-addcl 7811  ax-addrcl 7812  ax-mulcl 7813  ax-mulrcl 7814  ax-addcom 7815  ax-mulcom 7816  ax-addass 7817  ax-mulass 7818  ax-distr 7819  ax-i2m1 7820  ax-0lt1 7821  ax-1rid 7822  ax-0id 7823  ax-rnegex 7824  ax-precex 7825  ax-cnre 7826  ax-pre-ltirr 7827  ax-pre-ltwlin 7828  ax-pre-lttrn 7829  ax-pre-apti 7830  ax-pre-ltadd 7831  ax-pre-mulgt0 7832  ax-pre-mulext 7833  ax-arch 7834  ax-caucvg 7835
This theorem depends on definitions:  df-bi 116  df-dc 821  df-3or 964  df-3an 965  df-tru 1338  df-fal 1341  df-nf 1441  df-sb 1743  df-eu 2009  df-mo 2010  df-clab 2144  df-cleq 2150  df-clel 2153  df-nfc 2288  df-ne 2328  df-nel 2423  df-ral 2440  df-rex 2441  df-reu 2442  df-rmo 2443  df-rab 2444  df-v 2714  df-sbc 2938  df-csb 3032  df-dif 3104  df-un 3106  df-in 3108  df-ss 3115  df-nul 3395  df-if 3506  df-pw 3545  df-sn 3566  df-pr 3567  df-op 3569  df-uni 3773  df-int 3808  df-iun 3851  df-br 3966  df-opab 4026  df-mpt 4027  df-tr 4063  df-id 4252  df-po 4255  df-iso 4256  df-iord 4325  df-on 4327  df-ilim 4328  df-suc 4330  df-iom 4548  df-xp 4589  df-rel 4590  df-cnv 4591  df-co 4592  df-dm 4593  df-rn 4594  df-res 4595  df-ima 4596  df-iota 5132  df-fun 5169  df-fn 5170  df-f 5171  df-f1 5172  df-fo 5173  df-f1o 5174  df-fv 5175  df-isom 5176  df-riota 5774  df-ov 5821  df-oprab 5822  df-mpo 5823  df-1st 6082  df-2nd 6083  df-recs 6246  df-irdg 6311  df-frec 6332  df-1o 6357  df-oadd 6361  df-er 6473  df-en 6679  df-dom 6680  df-fin 6681  df-pnf 7897  df-mnf 7898  df-xr 7899  df-ltxr 7900  df-le 7901  df-sub 8031  df-neg 8032  df-reap 8433  df-ap 8440  df-div 8529  df-inn 8817  df-2 8875  df-3 8876  df-4 8877  df-5 8878  df-6 8879  df-n0 9074  df-z 9151  df-uz 9423  df-q 9511  df-rp 9543  df-ico 9780  df-fz 9895  df-fzo 10024  df-seqfrec 10327  df-exp 10401  df-fac 10582  df-ihash 10632  df-cj 10724  df-re 10725  df-im 10726  df-rsqrt 10880  df-abs 10881  df-clim 11158  df-sumdc 11233  df-ef 11527  df-cos 11530
This theorem is referenced by:  cos01bnd  11637
  Copyright terms: Public domain W3C validator