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

Theorem resin4p 12744
Description: Separate out the first four terms of the infinite series expansion of the sine 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
resin4p  |-  ( A  e.  RR  ->  ( sin `  A )  =  ( ( A  -  ( ( A ^
3 )  /  6
) )  +  ( Im `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
Distinct variable groups:    A, k, n    k, F
Allowed substitution hint:    F( n)

Proof of Theorem resin4p
StepHypRef Expression
1 resinval 12741 . 2  |-  ( A  e.  RR  ->  ( sin `  A )  =  ( Im `  ( exp `  ( _i  x.  A ) ) ) )
2 recn 9085 . . . . 5  |-  ( A  e.  RR  ->  A  e.  CC )
3 efi4p.1 . . . . . 6  |-  F  =  ( n  e.  NN0  |->  ( ( ( _i  x.  A ) ^
n )  /  ( ! `  n )
) )
43efi4p 12743 . . . . 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 16 . . . 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 5735 . . 3  |-  ( A  e.  RR  ->  (
Im `  ( exp `  ( _i  x.  A
) ) )  =  ( Im `  (
( ( 1  -  ( ( A ^
2 )  /  2
) )  +  ( _i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) ) )  +  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
7 1re 9095 . . . . . . 7  |-  1  e.  RR
8 resqcl 11454 . . . . . . . 8  |-  ( A  e.  RR  ->  ( A ^ 2 )  e.  RR )
98rehalfcld 10219 . . . . . . 7  |-  ( A  e.  RR  ->  (
( A ^ 2 )  /  2 )  e.  RR )
10 resubcl 9370 . . . . . . 7  |-  ( ( 1  e.  RR  /\  ( ( A ^
2 )  /  2
)  e.  RR )  ->  ( 1  -  ( ( A ^
2 )  /  2
) )  e.  RR )
117, 9, 10sylancr 646 . . . . . 6  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  RR )
1211recnd 9119 . . . . 5  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  CC )
13 ax-icn 9054 . . . . . 6  |-  _i  e.  CC
14 3nn0 10244 . . . . . . . . . 10  |-  3  e.  NN0
15 reexpcl 11403 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  3  e.  NN0 )  -> 
( A ^ 3 )  e.  RR )
1614, 15mpan2 654 . . . . . . . . 9  |-  ( A  e.  RR  ->  ( A ^ 3 )  e.  RR )
17 6re 10081 . . . . . . . . . 10  |-  6  e.  RR
18 6pos 10093 . . . . . . . . . . 11  |-  0  <  6
1917, 18gt0ne0ii 9568 . . . . . . . . . 10  |-  6  =/=  0
20 redivcl 9738 . . . . . . . . . 10  |-  ( ( ( A ^ 3 )  e.  RR  /\  6  e.  RR  /\  6  =/=  0 )  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2117, 19, 20mp3an23 1272 . . . . . . . . 9  |-  ( ( A ^ 3 )  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
2216, 21syl 16 . . . . . . . 8  |-  ( A  e.  RR  ->  (
( A ^ 3 )  /  6 )  e.  RR )
23 resubcl 9370 . . . . . . . 8  |-  ( ( A  e.  RR  /\  ( ( A ^
3 )  /  6
)  e.  RR )  ->  ( A  -  ( ( A ^
3 )  /  6
) )  e.  RR )
2422, 23mpdan 651 . . . . . . 7  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  RR )
2524recnd 9119 . . . . . 6  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  CC )
26 mulcl 9079 . . . . . 6  |-  ( ( _i  e.  CC  /\  ( A  -  (
( A ^ 3 )  /  6 ) )  e.  CC )  ->  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) )  e.  CC )
2713, 25, 26sylancr 646 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  ( A  -  ( ( A ^ 3 )  / 
6 ) ) )  e.  CC )
2812, 27addcld 9112 . . . 4  |-  ( A  e.  RR  ->  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) )  e.  CC )
29 mulcl 9079 . . . . . 6  |-  ( ( _i  e.  CC  /\  A  e.  CC )  ->  ( _i  x.  A
)  e.  CC )
3013, 2, 29sylancr 646 . . . . 5  |-  ( A  e.  RR  ->  (
_i  x.  A )  e.  CC )
31 4nn0 10245 . . . . 5  |-  4  e.  NN0
323eftlcl 12713 . . . . 5  |-  ( ( ( _i  x.  A
)  e.  CC  /\  4  e.  NN0 )  ->  sum_ k  e.  ( ZZ>= ` 
4 ) ( F `
 k )  e.  CC )
3330, 31, 32sylancl 645 . . . 4  |-  ( A  e.  RR  ->  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
)  e.  CC )
3428, 33imaddd 12025 . . 3  |-  ( A  e.  RR  ->  (
Im `  ( (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) )  +  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) )  =  ( ( Im `  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) ) )  +  ( Im
`  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) ) )
3511, 24crimd 12042 . . . 4  |-  ( A  e.  RR  ->  (
Im `  ( (
1  -  ( ( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) ) ) )  =  ( A  -  ( ( A ^
3 )  /  6
) ) )
3635oveq1d 6099 . . 3  |-  ( A  e.  RR  ->  (
( Im `  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) ) )  +  ( Im
`  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) )  =  ( ( A  -  (
( A ^ 3 )  /  6 ) )  +  ( Im
`  sum_ k  e.  (
ZZ>= `  4 ) ( F `  k ) ) ) )
376, 34, 363eqtrd 2474 . 2  |-  ( A  e.  RR  ->  (
Im `  ( exp `  ( _i  x.  A
) ) )  =  ( ( A  -  ( ( A ^
3 )  /  6
) )  +  ( Im `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
381, 37eqtrd 2470 1  |-  ( A  e.  RR  ->  ( sin `  A )  =  ( ( A  -  ( ( A ^
3 )  /  6
) )  +  ( Im `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1653    e. wcel 1726    =/= wne 2601    e. cmpt 4269   ` cfv 5457  (class class class)co 6084   CCcc 8993   RRcr 8994   0cc0 8995   1c1 8996   _ici 8997    + caddc 8998    x. cmul 9000    - cmin 9296    / cdiv 9682   2c2 10054   3c3 10055   4c4 10056   6c6 10058   NN0cn0 10226   ZZ>=cuz 10493   ^cexp 11387   !cfa 11571   Imcim 11908   sum_csu 12484   expce 12669   sincsin 12671
This theorem is referenced by:  sin01bnd  12791
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-rep 4323  ax-sep 4333  ax-nul 4341  ax-pow 4380  ax-pr 4406  ax-un 4704  ax-inf2 7599  ax-cnex 9051  ax-resscn 9052  ax-1cn 9053  ax-icn 9054  ax-addcl 9055  ax-addrcl 9056  ax-mulcl 9057  ax-mulrcl 9058  ax-mulcom 9059  ax-addass 9060  ax-mulass 9061  ax-distr 9062  ax-i2m1 9063  ax-1ne0 9064  ax-1rid 9065  ax-rnegex 9066  ax-rrecex 9067  ax-cnre 9068  ax-pre-lttri 9069  ax-pre-lttrn 9070  ax-pre-ltadd 9071  ax-pre-mulgt0 9072  ax-pre-sup 9073  ax-addf 9074  ax-mulf 9075
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2712  df-rex 2713  df-reu 2714  df-rmo 2715  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-pss 3338  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-tp 3824  df-op 3825  df-uni 4018  df-int 4053  df-iun 4097  df-br 4216  df-opab 4270  df-mpt 4271  df-tr 4306  df-eprel 4497  df-id 4501  df-po 4506  df-so 4507  df-fr 4544  df-se 4545  df-we 4546  df-ord 4587  df-on 4588  df-lim 4589  df-suc 4590  df-om 4849  df-xp 4887  df-rel 4888  df-cnv 4889  df-co 4890  df-dm 4891  df-rn 4892  df-res 4893  df-ima 4894  df-iota 5421  df-fun 5459  df-fn 5460  df-f 5461  df-f1 5462  df-fo 5463  df-f1o 5464  df-fv 5465  df-isom 5466  df-ov 6087  df-oprab 6088  df-mpt2 6089  df-1st 6352  df-2nd 6353  df-riota 6552  df-recs 6636  df-rdg 6671  df-1o 6727  df-oadd 6731  df-er 6908  df-pm 7024  df-en 7113  df-dom 7114  df-sdom 7115  df-fin 7116  df-sup 7449  df-oi 7482  df-card 7831  df-pnf 9127  df-mnf 9128  df-xr 9129  df-ltxr 9130  df-le 9131  df-sub 9298  df-neg 9299  df-div 9683  df-nn 10006  df-2 10063  df-3 10064  df-4 10065  df-5 10066  df-6 10067  df-n0 10227  df-z 10288  df-uz 10494  df-rp 10618  df-ico 10927  df-fz 11049  df-fzo 11141  df-fl 11207  df-seq 11329  df-exp 11388  df-fac 11572  df-hash 11624  df-shft 11887  df-cj 11909  df-re 11910  df-im 11911  df-sqr 12045  df-abs 12046  df-limsup 12270  df-clim 12287  df-rlim 12288  df-sum 12485  df-ef 12675  df-sin 12677
  Copyright terms: Public domain W3C validator