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

Theorem resin4p 12515
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 12512 . 2  |-  ( A  e.  RR  ->  ( sin `  A )  =  ( Im `  ( exp `  ( _i  x.  A ) ) ) )
2 recn 8917 . . . . 5  |-  ( A  e.  RR  ->  A  e.  CC )
3 efi4p.1 . . . . . 6  |-  F  =  ( n  e.  NN0  |->  ( ( ( _i  x.  A ) ^
n )  /  ( ! `  n )
) )
43efi4p 12514 . . . . 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 5612 . . 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 8927 . . . . . . 7  |-  1  e.  RR
8 resqcl 11264 . . . . . . . 8  |-  ( A  e.  RR  ->  ( A ^ 2 )  e.  RR )
98rehalfcld 10050 . . . . . . 7  |-  ( A  e.  RR  ->  (
( A ^ 2 )  /  2 )  e.  RR )
10 resubcl 9201 . . . . . . 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 8951 . . . . 5  |-  ( A  e.  RR  ->  (
1  -  ( ( A ^ 2 )  /  2 ) )  e.  CC )
13 ax-icn 8886 . . . . . 6  |-  _i  e.  CC
14 3nn0 10075 . . . . . . . . . 10  |-  3  e.  NN0
15 reexpcl 11213 . . . . . . . . . 10  |-  ( ( A  e.  RR  /\  3  e.  NN0 )  -> 
( A ^ 3 )  e.  RR )
1614, 15mpan2 652 . . . . . . . . 9  |-  ( A  e.  RR  ->  ( A ^ 3 )  e.  RR )
17 6re 9912 . . . . . . . . . 10  |-  6  e.  RR
18 6pos 9924 . . . . . . . . . . 11  |-  0  <  6
1917, 18gt0ne0ii 9399 . . . . . . . . . 10  |-  6  =/=  0
20 redivcl 9569 . . . . . . . . . 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 9201 . . . . . . . 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 8951 . . . . . 6  |-  ( A  e.  RR  ->  ( A  -  ( ( A ^ 3 )  / 
6 ) )  e.  CC )
26 mulcl 8911 . . . . . 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 8944 . . . 4  |-  ( A  e.  RR  ->  (
( 1  -  (
( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  ( ( A ^
3 )  /  6
) ) ) )  e.  CC )
29 mulcl 8911 . . . . . 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 10076 . . . . 5  |-  4  e.  NN0
323eftlcl 12484 . . . . 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, 33imaddd 11796 . . 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 11813 . . . 4  |-  ( A  e.  RR  ->  (
Im `  ( (
1  -  ( ( A ^ 2 )  /  2 ) )  +  ( _i  x.  ( A  -  (
( A ^ 3 )  /  6 ) ) ) ) )  =  ( A  -  ( ( A ^
3 )  /  6
) ) )
3635oveq1d 5960 . . 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 2394 . 2  |-  ( A  e.  RR  ->  (
Im `  ( exp `  ( _i  x.  A
) ) )  =  ( ( A  -  ( ( A ^
3 )  /  6
) )  +  ( Im `  sum_ k  e.  ( ZZ>= `  4 )
( F `  k
) ) ) )
381, 37eqtrd 2390 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 1642    e. wcel 1710    =/= wne 2521    e. cmpt 4158   ` cfv 5337  (class class class)co 5945   CCcc 8825   RRcr 8826   0cc0 8827   1c1 8828   _ici 8829    + caddc 8830    x. cmul 8832    - cmin 9127    / cdiv 9513   2c2 9885   3c3 9886   4c4 9887   6c6 9889   NN0cn0 10057   ZZ>=cuz 10322   ^cexp 11197   !cfa 11381   Imcim 11679   sum_csu 12255   expce 12440   sincsin 12442
This theorem is referenced by:  sin01bnd  12562
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1546  ax-5 1557  ax-17 1616  ax-9 1654  ax-8 1675  ax-13 1712  ax-14 1714  ax-6 1729  ax-7 1734  ax-11 1746  ax-12 1930  ax-ext 2339  ax-rep 4212  ax-sep 4222  ax-nul 4230  ax-pow 4269  ax-pr 4295  ax-un 4594  ax-inf2 7432  ax-cnex 8883  ax-resscn 8884  ax-1cn 8885  ax-icn 8886  ax-addcl 8887  ax-addrcl 8888  ax-mulcl 8889  ax-mulrcl 8890  ax-mulcom 8891  ax-addass 8892  ax-mulass 8893  ax-distr 8894  ax-i2m1 8895  ax-1ne0 8896  ax-1rid 8897  ax-rnegex 8898  ax-rrecex 8899  ax-cnre 8900  ax-pre-lttri 8901  ax-pre-lttrn 8902  ax-pre-ltadd 8903  ax-pre-mulgt0 8904  ax-pre-sup 8905  ax-addf 8906  ax-mulf 8907
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1319  df-ex 1542  df-nf 1545  df-sb 1649  df-eu 2213  df-mo 2214  df-clab 2345  df-cleq 2351  df-clel 2354  df-nfc 2483  df-ne 2523  df-nel 2524  df-ral 2624  df-rex 2625  df-reu 2626  df-rmo 2627  df-rab 2628  df-v 2866  df-sbc 3068  df-csb 3158  df-dif 3231  df-un 3233  df-in 3235  df-ss 3242  df-pss 3244  df-nul 3532  df-if 3642  df-pw 3703  df-sn 3722  df-pr 3723  df-tp 3724  df-op 3725  df-uni 3909  df-int 3944  df-iun 3988  df-br 4105  df-opab 4159  df-mpt 4160  df-tr 4195  df-eprel 4387  df-id 4391  df-po 4396  df-so 4397  df-fr 4434  df-se 4435  df-we 4436  df-ord 4477  df-on 4478  df-lim 4479  df-suc 4480  df-om 4739  df-xp 4777  df-rel 4778  df-cnv 4779  df-co 4780  df-dm 4781  df-rn 4782  df-res 4783  df-ima 4784  df-iota 5301  df-fun 5339  df-fn 5340  df-f 5341  df-f1 5342  df-fo 5343  df-f1o 5344  df-fv 5345  df-isom 5346  df-ov 5948  df-oprab 5949  df-mpt2 5950  df-1st 6209  df-2nd 6210  df-riota 6391  df-recs 6475  df-rdg 6510  df-1o 6566  df-oadd 6570  df-er 6747  df-pm 6863  df-en 6952  df-dom 6953  df-sdom 6954  df-fin 6955  df-sup 7284  df-oi 7315  df-card 7662  df-pnf 8959  df-mnf 8960  df-xr 8961  df-ltxr 8962  df-le 8963  df-sub 9129  df-neg 9130  df-div 9514  df-nn 9837  df-2 9894  df-3 9895  df-4 9896  df-5 9897  df-6 9898  df-n0 10058  df-z 10117  df-uz 10323  df-rp 10447  df-ico 10754  df-fz 10875  df-fzo 10963  df-fl 11017  df-seq 11139  df-exp 11198  df-fac 11382  df-hash 11431  df-shft 11658  df-cj 11680  df-re 11681  df-im 11682  df-sqr 11816  df-abs 11817  df-limsup 12041  df-clim 12058  df-rlim 12059  df-sum 12256  df-ef 12446  df-sin 12448
  Copyright terms: Public domain W3C validator