MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  recos4p Unicode version

Theorem recos4p 12435
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 12432 . 2  |-  ( A  e.  RR  ->  ( cos `  A )  =  ( Re `  ( exp `  ( _i  x.  A ) ) ) )
2 recn 8843 . . . . 5  |-  ( A  e.  RR  ->  A  e.  CC )
3 efi4p.1 . . . . . 6  |-  F  =  ( n  e.  NN0  |->  ( ( ( _i  x.  A ) ^
n )  /  ( ! `  n )
) )
43efi4p 12433 . . . . 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 15 . . . 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 5545 . . 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 8853 . . . . . . 7  |-  1  e.  RR
8 resqcl 11187 . . . . . . . 8  |-  ( A  e.  RR  ->  ( A ^ 2 )  e.  RR )
98rehalfcld 9974 . . . . . . 7  |-  ( A  e.  RR  ->  (
( A ^ 2 )  /  2 )  e.  RR )
10 resubcl 9127 . . . . . . 7  |-  ( ( 1  e.  RR  /\  ( ( A ^
2 )  /  2
)  e.  RR )  ->  ( 1  -  ( ( A ^
2 )  /  2
) )  e.  RR )
117, 9, 10sylancr 644 . . . . . 6  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  RR )
1211recnd 8877 . . . . 5  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  CC )
13 ax-icn 8812 . . . . . 6  |-  _i  e.  CC
14 3nn0 9999 . . . . . . . . . 10  |-  3  e.  NN0
15 reexpcl 11136 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  3  e.  NN0 )  -> 
( A ^ 3 )  e.  RR )
1614, 15mpan2 652 . . . . . . . . 9  |-  ( A  e.  RR  ->  ( A ^ 3 )  e.  RR )
17 6re 9838 . . . . . . . . . 10  |-  6  e.  RR
18 6pos 9850 . . . . . . . . . . 11  |-  0  <  6
1917, 18gt0ne0ii 9325 . . . . . . . . . 10  |-  6  =/=  0
20 redivcl 9495 . . . . . . . . . 10  |-  ( ( ( A ^ 3 )  e.  RR  /\  6  e.  RR  /\  6  =/=  0 )  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2117, 19, 20mp3an23 1269 . . . . . . . . 9  |-  ( ( A ^ 3 )  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2216, 21syl 15 . . . . . . . 8  |-  ( A  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
23 resubcl 9127 . . . . . . . 8  |-  ( ( A  e.  RR  /\  ( ( A ^
3 )  /  6
)  e.  RR )  ->  ( A  -  ( ( A ^
3 )  /  6
) )  e.  RR )
2422, 23mpdan 649 . . . . . . 7  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  RR )
2524recnd 8877 . . . . . 6  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  CC )
26 mulcl 8837 . . . . . 6  |-  ( ( _i  e.  CC  /\  ( A  -  (
( A ^ 3 )  /  6 ) )  e.  CC )  ->  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) )  e.  CC )
2713, 25, 26sylancr 644 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) )  e.  CC )
2812, 27addcld 8870 . . . 4  |-  ( A  e.  RR  ->  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) )  e.  CC )
29 mulcl 8837 . . . . . 6  |-  ( ( _i  e.  CC  /\  A  e.  CC )  ->  ( _i  x.  A
)  e.  CC )
3013, 2, 29sylancr 644 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  A )  e.  CC )
31 4nn0 10000 . . . . 5  |-  4  e.  NN0
323eftlcl 12403 . . . . 5  |-  ( ( ( _i  x.  A
)  e.  CC  /\  4  e.  NN0 )  ->  sum_ k  e.  ( ZZ>= ` 
4 ) ( F `
 k )  e.  CC )
3330, 31, 32sylancl 643 . . . 4  |-  ( A  e.  RR  ->  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
)  e.  CC )
3428, 33readdd 11715 . . 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 11732 . . . 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 2332 . 2  |-  ( A  e.  RR  ->  (
Re `  ( exp `  ( _i  x.  A
) ) )  =  ( ( 1  -  ( ( A ^
2 )  /  2
) )  +  ( Re `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
381, 37eqtrd 2328 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 1632    e. wcel 1696    =/= wne 2459    e. cmpt 4093   ` cfv 5271  (class class class)co 5874   CCcc 8751   RRcr 8752   0cc0 8753   1c1 8754   _ici 8755    + caddc 8756    x. cmul 8758    - cmin 9053    / cdiv 9439   2c2 9811   3c3 9812   4c4 9813   6c6 9815   NN0cn0 9981   ZZ>=cuz 10246   ^cexp 11120   !cfa 11304   Recre 11598   sum_csu 12174   expce 12359   cosccos 12362
This theorem is referenced by:  cos01bnd  12482
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-rep 4147  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-inf2 7358  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830  ax-pre-sup 8831  ax-addf 8832  ax-mulf 8833
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-int 3879  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-se 4369  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-isom 5280  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-1o 6495  df-oadd 6499  df-er 6676  df-pm 6791  df-en 6880  df-dom 6881  df-sdom 6882  df-fin 6883  df-sup 7210  df-oi 7241  df-card 7588  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-3 9821  df-4 9822  df-5 9823  df-6 9824  df-n0 9982  df-z 10041  df-uz 10247  df-rp 10371  df-ico 10678  df-fz 10799  df-fzo 10887  df-fl 10941  df-seq 11063  df-exp 11121  df-fac 11305  df-hash 11354  df-shft 11578  df-cj 11600  df-re 11601  df-im 11602  df-sqr 11736  df-abs 11737  df-limsup 11961  df-clim 11978  df-rlim 11979  df-sum 12175  df-ef 12365  df-cos 12368
  Copyright terms: Public domain W3C validator