On $int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=2pi$












7














Here's my attempt at an integral I found on this site.
$$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=2pi$$
I'm not asking for a proof, I just want to know where I messed up



Recall that, for all $x$,
$$e^x=sum_{ngeq0}frac{x^n}{n!}$$
And $$cos x=sum_{ngeq0}(-1)^nfrac{x^{2n}}{(2n)!}$$
Hence we have that
$$
begin{align}
int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=&int_0^{2pi}bigg(sum_{ngeq0}frac{cos^n2x}{n!}bigg)bigg(sum_{mgeq0}(-1)^mfrac{sin^{2m}2x}{(2m)!}bigg)mathrm{d}x\
=&sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{2pi}cos(2x)^nsin(2x)^{2m}mathrm{d}x\
=&frac12sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{4pi}cos(t)^nsin(t)^{2m}mathrm{d}t\
end{align}
$$

The final integral is related to the incomplete beta function, defined as
$$B(x;a,b)=int_0^x u^{a-1}(1-u)^{b-1}mathrm{d}u$$
If we define
$$I(x;a,b)=int_0^xsin(t)^acos(t)^bmathrm{d}t$$
We can make the substitution $sin^2t=u$, which gives
$$
begin{align}
I(x;a,b)=&frac12int_0^{sin^2x}u^{a/2}(1-u)^{b/2}u^{-1/2}(1-u)^{-1/2}mathrm{d}u\
=&frac12int_0^{sin^2x}u^{frac{a-1}2}(1-u)^{frac{b-1}2}mathrm{d}u\
=&frac12int_0^{sin^2x}u^{frac{a+1}2-1}(1-u)^{frac{b+1}2-1}mathrm{d}u\
=&frac12Bbigg(sin^2x;frac{a+1}2,frac{b+1}2bigg)\
end{align}
$$

Hence we have a form of our final integral:
$$
begin{align}
I(4pi;2m,n)=&frac12Bbigg(sin^24pi;frac{2m+1}2,frac{n+1}2bigg)\
=&frac12Bbigg(0;frac{2m+1}2,frac{n+1}2bigg)\
=&frac12int_0^0t^{frac{2m-1}2}(1-t)^{frac{n-1}2}mathrm{d}t\
=&,0
end{align}
$$

Which implies that
$$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=0$$
Which is totally wrong. But as far as I can tell, I haven't broken any rules. Where's my error, and how do I fix it? Thanks.










share|cite|improve this question





























    7














    Here's my attempt at an integral I found on this site.
    $$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=2pi$$
    I'm not asking for a proof, I just want to know where I messed up



    Recall that, for all $x$,
    $$e^x=sum_{ngeq0}frac{x^n}{n!}$$
    And $$cos x=sum_{ngeq0}(-1)^nfrac{x^{2n}}{(2n)!}$$
    Hence we have that
    $$
    begin{align}
    int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=&int_0^{2pi}bigg(sum_{ngeq0}frac{cos^n2x}{n!}bigg)bigg(sum_{mgeq0}(-1)^mfrac{sin^{2m}2x}{(2m)!}bigg)mathrm{d}x\
    =&sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{2pi}cos(2x)^nsin(2x)^{2m}mathrm{d}x\
    =&frac12sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{4pi}cos(t)^nsin(t)^{2m}mathrm{d}t\
    end{align}
    $$

    The final integral is related to the incomplete beta function, defined as
    $$B(x;a,b)=int_0^x u^{a-1}(1-u)^{b-1}mathrm{d}u$$
    If we define
    $$I(x;a,b)=int_0^xsin(t)^acos(t)^bmathrm{d}t$$
    We can make the substitution $sin^2t=u$, which gives
    $$
    begin{align}
    I(x;a,b)=&frac12int_0^{sin^2x}u^{a/2}(1-u)^{b/2}u^{-1/2}(1-u)^{-1/2}mathrm{d}u\
    =&frac12int_0^{sin^2x}u^{frac{a-1}2}(1-u)^{frac{b-1}2}mathrm{d}u\
    =&frac12int_0^{sin^2x}u^{frac{a+1}2-1}(1-u)^{frac{b+1}2-1}mathrm{d}u\
    =&frac12Bbigg(sin^2x;frac{a+1}2,frac{b+1}2bigg)\
    end{align}
    $$

    Hence we have a form of our final integral:
    $$
    begin{align}
    I(4pi;2m,n)=&frac12Bbigg(sin^24pi;frac{2m+1}2,frac{n+1}2bigg)\
    =&frac12Bbigg(0;frac{2m+1}2,frac{n+1}2bigg)\
    =&frac12int_0^0t^{frac{2m-1}2}(1-t)^{frac{n-1}2}mathrm{d}t\
    =&,0
    end{align}
    $$

    Which implies that
    $$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=0$$
    Which is totally wrong. But as far as I can tell, I haven't broken any rules. Where's my error, and how do I fix it? Thanks.










    share|cite|improve this question



























      7












      7








      7


      1





      Here's my attempt at an integral I found on this site.
      $$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=2pi$$
      I'm not asking for a proof, I just want to know where I messed up



      Recall that, for all $x$,
      $$e^x=sum_{ngeq0}frac{x^n}{n!}$$
      And $$cos x=sum_{ngeq0}(-1)^nfrac{x^{2n}}{(2n)!}$$
      Hence we have that
      $$
      begin{align}
      int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=&int_0^{2pi}bigg(sum_{ngeq0}frac{cos^n2x}{n!}bigg)bigg(sum_{mgeq0}(-1)^mfrac{sin^{2m}2x}{(2m)!}bigg)mathrm{d}x\
      =&sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{2pi}cos(2x)^nsin(2x)^{2m}mathrm{d}x\
      =&frac12sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{4pi}cos(t)^nsin(t)^{2m}mathrm{d}t\
      end{align}
      $$

      The final integral is related to the incomplete beta function, defined as
      $$B(x;a,b)=int_0^x u^{a-1}(1-u)^{b-1}mathrm{d}u$$
      If we define
      $$I(x;a,b)=int_0^xsin(t)^acos(t)^bmathrm{d}t$$
      We can make the substitution $sin^2t=u$, which gives
      $$
      begin{align}
      I(x;a,b)=&frac12int_0^{sin^2x}u^{a/2}(1-u)^{b/2}u^{-1/2}(1-u)^{-1/2}mathrm{d}u\
      =&frac12int_0^{sin^2x}u^{frac{a-1}2}(1-u)^{frac{b-1}2}mathrm{d}u\
      =&frac12int_0^{sin^2x}u^{frac{a+1}2-1}(1-u)^{frac{b+1}2-1}mathrm{d}u\
      =&frac12Bbigg(sin^2x;frac{a+1}2,frac{b+1}2bigg)\
      end{align}
      $$

      Hence we have a form of our final integral:
      $$
      begin{align}
      I(4pi;2m,n)=&frac12Bbigg(sin^24pi;frac{2m+1}2,frac{n+1}2bigg)\
      =&frac12Bbigg(0;frac{2m+1}2,frac{n+1}2bigg)\
      =&frac12int_0^0t^{frac{2m-1}2}(1-t)^{frac{n-1}2}mathrm{d}t\
      =&,0
      end{align}
      $$

      Which implies that
      $$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=0$$
      Which is totally wrong. But as far as I can tell, I haven't broken any rules. Where's my error, and how do I fix it? Thanks.










      share|cite|improve this question















      Here's my attempt at an integral I found on this site.
      $$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=2pi$$
      I'm not asking for a proof, I just want to know where I messed up



      Recall that, for all $x$,
      $$e^x=sum_{ngeq0}frac{x^n}{n!}$$
      And $$cos x=sum_{ngeq0}(-1)^nfrac{x^{2n}}{(2n)!}$$
      Hence we have that
      $$
      begin{align}
      int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=&int_0^{2pi}bigg(sum_{ngeq0}frac{cos^n2x}{n!}bigg)bigg(sum_{mgeq0}(-1)^mfrac{sin^{2m}2x}{(2m)!}bigg)mathrm{d}x\
      =&sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{2pi}cos(2x)^nsin(2x)^{2m}mathrm{d}x\
      =&frac12sum_{n,mgeq0}frac{(-1)^m}{n!(2m)!}int_0^{4pi}cos(t)^nsin(t)^{2m}mathrm{d}t\
      end{align}
      $$

      The final integral is related to the incomplete beta function, defined as
      $$B(x;a,b)=int_0^x u^{a-1}(1-u)^{b-1}mathrm{d}u$$
      If we define
      $$I(x;a,b)=int_0^xsin(t)^acos(t)^bmathrm{d}t$$
      We can make the substitution $sin^2t=u$, which gives
      $$
      begin{align}
      I(x;a,b)=&frac12int_0^{sin^2x}u^{a/2}(1-u)^{b/2}u^{-1/2}(1-u)^{-1/2}mathrm{d}u\
      =&frac12int_0^{sin^2x}u^{frac{a-1}2}(1-u)^{frac{b-1}2}mathrm{d}u\
      =&frac12int_0^{sin^2x}u^{frac{a+1}2-1}(1-u)^{frac{b+1}2-1}mathrm{d}u\
      =&frac12Bbigg(sin^2x;frac{a+1}2,frac{b+1}2bigg)\
      end{align}
      $$

      Hence we have a form of our final integral:
      $$
      begin{align}
      I(4pi;2m,n)=&frac12Bbigg(sin^24pi;frac{2m+1}2,frac{n+1}2bigg)\
      =&frac12Bbigg(0;frac{2m+1}2,frac{n+1}2bigg)\
      =&frac12int_0^0t^{frac{2m-1}2}(1-t)^{frac{n-1}2}mathrm{d}t\
      =&,0
      end{align}
      $$

      Which implies that
      $$int_0^{2pi}e^{cos2x}cos(sin2x) mathrm{d}x=0$$
      Which is totally wrong. But as far as I can tell, I haven't broken any rules. Where's my error, and how do I fix it? Thanks.







      real-analysis integration special-functions






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 2 at 21:40









      Fiticous

      17218




      17218










      asked Dec 1 at 4:29









      clathratus

      3,092331




      3,092331






















          5 Answers
          5






          active

          oldest

          votes


















          4














          You cannot substitute $u=sin^2t$. As $t$ ranges from $0$ to $2pi$, this is not a one-to-one relationship.



          It's like if you subbed $u=x^2$ in $$int_{-1}^1x^2,dx$$ You would get an integral from $u=1$ to $u=1$, which would be $0$ even though the integral is clearly nonzero.






          share|cite|improve this answer























          • What do you recommend I do instead?
            – clathratus
            Dec 1 at 4:41






          • 2




            I don't know. The question explicitly asks for "where I messed up". It's not asking for the right way to calculate this integral.
            – alex.jordan
            Dec 1 at 4:42










          • You're right. Thank you.
            – clathratus
            Dec 1 at 4:43












          • @clathratus I have not read you solution but in case of an even function $f(x)$, $int_{-a}^{+a}f(x)dx=2int_0^af(x)dx$
            – tatan
            Dec 1 at 4:59










          • What does $cos sin 2 x$ mean?
            – David G. Stork
            Dec 1 at 7:00



















          2














          To solve the integral, you may consider $$int_{C} frac{e^z}{z}dz$$
          where $C$ is a unit circle, and see its real part.






          share|cite|improve this answer





























            2














            If you want a full solution of the integral using complex analysis, going along the lines of what Seewoo Lee recommend, you can solve the integral as follows:



            First consider the integral $$int_{C} frac{e^z}{z}dz$$



            where $C$ is the unit circle oriented counter-clockwise in the complex plane. Using the Cauchy Integral formula (from complex analysis) you can find that $$int_{C} frac{e^z}{z}dz = 2pi i phantom{------}(1)$$



            Now we will directly integrate the above integral by parametrising $C$. Let $z(t)=e^{2it}$ with $0 le t le pi$ be the parametrisation of $C$. Then the integral works out as:



            begin{align}
            int_{C} frac{e^z}{z}dz &= int_0^{pi} frac{e^{e^{2it}}}{e^{2it}} 2ie^{2it} dt \
            &= 2i int_0^{pi} {e^{cos(2t)+isin(2t)}}dt \
            &= 2i int_0^{pi} {e^{cos(2t)}e^{isin(2t)}}dt \
            &= 2i int_0^{pi} {e^{cos(2t)}(cos(sin(2t))+isin(sin(2t))} dt \
            &= 2i int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt - 2 int_0^{pi} {e^{cos(2t)}}(sin(sin(2t)) dt phantom{-------} (2) \
            end{align}



            Equating imaginary parts of (1) and (2) we see that:



            $$int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



            If we parametrise the curve initially with $pi le t le 2pi$ we would have ended up with:



            $$int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



            Thus,



            begin{align}
            int_{0}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt &= int_{0}^{pi} {e^{cos(2t)}}(cos(sin(2t))dt + int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt \
            &= pi + pi = 2pi
            end{align}






            share|cite|improve this answer































              1














              you could try this:
              $$I=int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx$$
              $$=Releft(int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx+iint_0^{2pi}e^{cos(2x)}sinleft[sin(2x)right]dxright)$$
              $$=Releft(int_0^{2pi}e^{cos(2x)}e^{isin(2x)}dxright)$$
              $$=Releft(int_0^{2pi}e^{cos(2x)+isin(2x)}dxright)$$
              $$=Releft(int_0^{2pi}e^{e^{2ix}}dxright)$$
              and since:
              $$e^y=sum_{n=0}^inftyfrac{x^n}{n!}$$
              we can say that:
              $$e^{e^{2ix}}=sum_{n=0}^inftyfrac{e^{2nix}}{n!}$$
              and so:
              $$I=Reint_0^{2pi}sum_{n=0}^inftyfrac{e^{2nix}}{n!}dx$$
              $$=Resum_{n=0}^inftyleft[frac{e^{2nix}}{2ni.n!}right]_0^{2pi}$$
              $$=Resum_{n=0}^inftyfrac{e^{4pi ni}-1}{2ni.n!}$$
              but note that for all integers n, $$e^{4pi ni}=1$$
              so this summation may be hard to calculate (or wrong). This is probably due to the fact that the integral is between $0$ and $2pi$, so the integral may need to be split up into several parts before it can be evaulated.






              share|cite|improve this answer





















              • Neat approach for sure! Thanks for sharing (+1).
                – clathratus
                Dec 2 at 19:03



















              0














              If by $cos sin (2 x)$ you really mean $cos (2 x ) sin (2 x)$, then the full function looks like



              enter image description here



              and the full integral is $0$.



              If instead the integral is:



              $$intlimits_{x=0}^{2 pi} e^{cos (2 x)} cos left( sin ( 2 x)right) dx$$



              the graph is:



              enter image description here



              and Mathematica gives the answer as $2 pi$.






              share|cite|improve this answer



















              • 1




                I believe that the function is $cos(sin(2x))$.
                – robjohn
                Dec 1 at 7:24










              • Really? Then the OP is not very careful with mathematical notation.
                – David G. Stork
                Dec 1 at 7:41






              • 1




                I prefer to write $cos(x)$, but many write $cos x$ even though that often leads to confusion. However, inserting an extra $2x$ into the formula to get $cos(2x)sin(2x)$ seems questionable.
                – robjohn
                Dec 1 at 8:18








              • 1




                I did mean $cos(sin(2x))$. Sorry for the confusion. I appreciate the thoroughness of your answer though (+1)
                – clathratus
                Dec 1 at 20:13











              Your Answer





              StackExchange.ifUsing("editor", function () {
              return StackExchange.using("mathjaxEditing", function () {
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              });
              });
              }, "mathjax-editing");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "69"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              noCode: true, onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3020988%2fon-int-02-pie-cos2x-cos-sin2x-mathrmdx-2-pi%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              4














              You cannot substitute $u=sin^2t$. As $t$ ranges from $0$ to $2pi$, this is not a one-to-one relationship.



              It's like if you subbed $u=x^2$ in $$int_{-1}^1x^2,dx$$ You would get an integral from $u=1$ to $u=1$, which would be $0$ even though the integral is clearly nonzero.






              share|cite|improve this answer























              • What do you recommend I do instead?
                – clathratus
                Dec 1 at 4:41






              • 2




                I don't know. The question explicitly asks for "where I messed up". It's not asking for the right way to calculate this integral.
                – alex.jordan
                Dec 1 at 4:42










              • You're right. Thank you.
                – clathratus
                Dec 1 at 4:43












              • @clathratus I have not read you solution but in case of an even function $f(x)$, $int_{-a}^{+a}f(x)dx=2int_0^af(x)dx$
                – tatan
                Dec 1 at 4:59










              • What does $cos sin 2 x$ mean?
                – David G. Stork
                Dec 1 at 7:00
















              4














              You cannot substitute $u=sin^2t$. As $t$ ranges from $0$ to $2pi$, this is not a one-to-one relationship.



              It's like if you subbed $u=x^2$ in $$int_{-1}^1x^2,dx$$ You would get an integral from $u=1$ to $u=1$, which would be $0$ even though the integral is clearly nonzero.






              share|cite|improve this answer























              • What do you recommend I do instead?
                – clathratus
                Dec 1 at 4:41






              • 2




                I don't know. The question explicitly asks for "where I messed up". It's not asking for the right way to calculate this integral.
                – alex.jordan
                Dec 1 at 4:42










              • You're right. Thank you.
                – clathratus
                Dec 1 at 4:43












              • @clathratus I have not read you solution but in case of an even function $f(x)$, $int_{-a}^{+a}f(x)dx=2int_0^af(x)dx$
                – tatan
                Dec 1 at 4:59










              • What does $cos sin 2 x$ mean?
                – David G. Stork
                Dec 1 at 7:00














              4












              4








              4






              You cannot substitute $u=sin^2t$. As $t$ ranges from $0$ to $2pi$, this is not a one-to-one relationship.



              It's like if you subbed $u=x^2$ in $$int_{-1}^1x^2,dx$$ You would get an integral from $u=1$ to $u=1$, which would be $0$ even though the integral is clearly nonzero.






              share|cite|improve this answer














              You cannot substitute $u=sin^2t$. As $t$ ranges from $0$ to $2pi$, this is not a one-to-one relationship.



              It's like if you subbed $u=x^2$ in $$int_{-1}^1x^2,dx$$ You would get an integral from $u=1$ to $u=1$, which would be $0$ even though the integral is clearly nonzero.







              share|cite|improve this answer














              share|cite|improve this answer



              share|cite|improve this answer








              edited Dec 1 at 4:44

























              answered Dec 1 at 4:40









              alex.jordan

              38.6k560119




              38.6k560119












              • What do you recommend I do instead?
                – clathratus
                Dec 1 at 4:41






              • 2




                I don't know. The question explicitly asks for "where I messed up". It's not asking for the right way to calculate this integral.
                – alex.jordan
                Dec 1 at 4:42










              • You're right. Thank you.
                – clathratus
                Dec 1 at 4:43












              • @clathratus I have not read you solution but in case of an even function $f(x)$, $int_{-a}^{+a}f(x)dx=2int_0^af(x)dx$
                – tatan
                Dec 1 at 4:59










              • What does $cos sin 2 x$ mean?
                – David G. Stork
                Dec 1 at 7:00


















              • What do you recommend I do instead?
                – clathratus
                Dec 1 at 4:41






              • 2




                I don't know. The question explicitly asks for "where I messed up". It's not asking for the right way to calculate this integral.
                – alex.jordan
                Dec 1 at 4:42










              • You're right. Thank you.
                – clathratus
                Dec 1 at 4:43












              • @clathratus I have not read you solution but in case of an even function $f(x)$, $int_{-a}^{+a}f(x)dx=2int_0^af(x)dx$
                – tatan
                Dec 1 at 4:59










              • What does $cos sin 2 x$ mean?
                – David G. Stork
                Dec 1 at 7:00
















              What do you recommend I do instead?
              – clathratus
              Dec 1 at 4:41




              What do you recommend I do instead?
              – clathratus
              Dec 1 at 4:41




              2




              2




              I don't know. The question explicitly asks for "where I messed up". It's not asking for the right way to calculate this integral.
              – alex.jordan
              Dec 1 at 4:42




              I don't know. The question explicitly asks for "where I messed up". It's not asking for the right way to calculate this integral.
              – alex.jordan
              Dec 1 at 4:42












              You're right. Thank you.
              – clathratus
              Dec 1 at 4:43






              You're right. Thank you.
              – clathratus
              Dec 1 at 4:43














              @clathratus I have not read you solution but in case of an even function $f(x)$, $int_{-a}^{+a}f(x)dx=2int_0^af(x)dx$
              – tatan
              Dec 1 at 4:59




              @clathratus I have not read you solution but in case of an even function $f(x)$, $int_{-a}^{+a}f(x)dx=2int_0^af(x)dx$
              – tatan
              Dec 1 at 4:59












              What does $cos sin 2 x$ mean?
              – David G. Stork
              Dec 1 at 7:00




              What does $cos sin 2 x$ mean?
              – David G. Stork
              Dec 1 at 7:00











              2














              To solve the integral, you may consider $$int_{C} frac{e^z}{z}dz$$
              where $C$ is a unit circle, and see its real part.






              share|cite|improve this answer


























                2














                To solve the integral, you may consider $$int_{C} frac{e^z}{z}dz$$
                where $C$ is a unit circle, and see its real part.






                share|cite|improve this answer
























                  2












                  2








                  2






                  To solve the integral, you may consider $$int_{C} frac{e^z}{z}dz$$
                  where $C$ is a unit circle, and see its real part.






                  share|cite|improve this answer












                  To solve the integral, you may consider $$int_{C} frac{e^z}{z}dz$$
                  where $C$ is a unit circle, and see its real part.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 1 at 6:58









                  Seewoo Lee

                  6,165826




                  6,165826























                      2














                      If you want a full solution of the integral using complex analysis, going along the lines of what Seewoo Lee recommend, you can solve the integral as follows:



                      First consider the integral $$int_{C} frac{e^z}{z}dz$$



                      where $C$ is the unit circle oriented counter-clockwise in the complex plane. Using the Cauchy Integral formula (from complex analysis) you can find that $$int_{C} frac{e^z}{z}dz = 2pi i phantom{------}(1)$$



                      Now we will directly integrate the above integral by parametrising $C$. Let $z(t)=e^{2it}$ with $0 le t le pi$ be the parametrisation of $C$. Then the integral works out as:



                      begin{align}
                      int_{C} frac{e^z}{z}dz &= int_0^{pi} frac{e^{e^{2it}}}{e^{2it}} 2ie^{2it} dt \
                      &= 2i int_0^{pi} {e^{cos(2t)+isin(2t)}}dt \
                      &= 2i int_0^{pi} {e^{cos(2t)}e^{isin(2t)}}dt \
                      &= 2i int_0^{pi} {e^{cos(2t)}(cos(sin(2t))+isin(sin(2t))} dt \
                      &= 2i int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt - 2 int_0^{pi} {e^{cos(2t)}}(sin(sin(2t)) dt phantom{-------} (2) \
                      end{align}



                      Equating imaginary parts of (1) and (2) we see that:



                      $$int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                      If we parametrise the curve initially with $pi le t le 2pi$ we would have ended up with:



                      $$int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                      Thus,



                      begin{align}
                      int_{0}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt &= int_{0}^{pi} {e^{cos(2t)}}(cos(sin(2t))dt + int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt \
                      &= pi + pi = 2pi
                      end{align}






                      share|cite|improve this answer




























                        2














                        If you want a full solution of the integral using complex analysis, going along the lines of what Seewoo Lee recommend, you can solve the integral as follows:



                        First consider the integral $$int_{C} frac{e^z}{z}dz$$



                        where $C$ is the unit circle oriented counter-clockwise in the complex plane. Using the Cauchy Integral formula (from complex analysis) you can find that $$int_{C} frac{e^z}{z}dz = 2pi i phantom{------}(1)$$



                        Now we will directly integrate the above integral by parametrising $C$. Let $z(t)=e^{2it}$ with $0 le t le pi$ be the parametrisation of $C$. Then the integral works out as:



                        begin{align}
                        int_{C} frac{e^z}{z}dz &= int_0^{pi} frac{e^{e^{2it}}}{e^{2it}} 2ie^{2it} dt \
                        &= 2i int_0^{pi} {e^{cos(2t)+isin(2t)}}dt \
                        &= 2i int_0^{pi} {e^{cos(2t)}e^{isin(2t)}}dt \
                        &= 2i int_0^{pi} {e^{cos(2t)}(cos(sin(2t))+isin(sin(2t))} dt \
                        &= 2i int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt - 2 int_0^{pi} {e^{cos(2t)}}(sin(sin(2t)) dt phantom{-------} (2) \
                        end{align}



                        Equating imaginary parts of (1) and (2) we see that:



                        $$int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                        If we parametrise the curve initially with $pi le t le 2pi$ we would have ended up with:



                        $$int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                        Thus,



                        begin{align}
                        int_{0}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt &= int_{0}^{pi} {e^{cos(2t)}}(cos(sin(2t))dt + int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt \
                        &= pi + pi = 2pi
                        end{align}






                        share|cite|improve this answer


























                          2












                          2








                          2






                          If you want a full solution of the integral using complex analysis, going along the lines of what Seewoo Lee recommend, you can solve the integral as follows:



                          First consider the integral $$int_{C} frac{e^z}{z}dz$$



                          where $C$ is the unit circle oriented counter-clockwise in the complex plane. Using the Cauchy Integral formula (from complex analysis) you can find that $$int_{C} frac{e^z}{z}dz = 2pi i phantom{------}(1)$$



                          Now we will directly integrate the above integral by parametrising $C$. Let $z(t)=e^{2it}$ with $0 le t le pi$ be the parametrisation of $C$. Then the integral works out as:



                          begin{align}
                          int_{C} frac{e^z}{z}dz &= int_0^{pi} frac{e^{e^{2it}}}{e^{2it}} 2ie^{2it} dt \
                          &= 2i int_0^{pi} {e^{cos(2t)+isin(2t)}}dt \
                          &= 2i int_0^{pi} {e^{cos(2t)}e^{isin(2t)}}dt \
                          &= 2i int_0^{pi} {e^{cos(2t)}(cos(sin(2t))+isin(sin(2t))} dt \
                          &= 2i int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt - 2 int_0^{pi} {e^{cos(2t)}}(sin(sin(2t)) dt phantom{-------} (2) \
                          end{align}



                          Equating imaginary parts of (1) and (2) we see that:



                          $$int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                          If we parametrise the curve initially with $pi le t le 2pi$ we would have ended up with:



                          $$int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                          Thus,



                          begin{align}
                          int_{0}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt &= int_{0}^{pi} {e^{cos(2t)}}(cos(sin(2t))dt + int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt \
                          &= pi + pi = 2pi
                          end{align}






                          share|cite|improve this answer














                          If you want a full solution of the integral using complex analysis, going along the lines of what Seewoo Lee recommend, you can solve the integral as follows:



                          First consider the integral $$int_{C} frac{e^z}{z}dz$$



                          where $C$ is the unit circle oriented counter-clockwise in the complex plane. Using the Cauchy Integral formula (from complex analysis) you can find that $$int_{C} frac{e^z}{z}dz = 2pi i phantom{------}(1)$$



                          Now we will directly integrate the above integral by parametrising $C$. Let $z(t)=e^{2it}$ with $0 le t le pi$ be the parametrisation of $C$. Then the integral works out as:



                          begin{align}
                          int_{C} frac{e^z}{z}dz &= int_0^{pi} frac{e^{e^{2it}}}{e^{2it}} 2ie^{2it} dt \
                          &= 2i int_0^{pi} {e^{cos(2t)+isin(2t)}}dt \
                          &= 2i int_0^{pi} {e^{cos(2t)}e^{isin(2t)}}dt \
                          &= 2i int_0^{pi} {e^{cos(2t)}(cos(sin(2t))+isin(sin(2t))} dt \
                          &= 2i int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt - 2 int_0^{pi} {e^{cos(2t)}}(sin(sin(2t)) dt phantom{-------} (2) \
                          end{align}



                          Equating imaginary parts of (1) and (2) we see that:



                          $$int_0^{pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                          If we parametrise the curve initially with $pi le t le 2pi$ we would have ended up with:



                          $$int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt = pi$$



                          Thus,



                          begin{align}
                          int_{0}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt &= int_{0}^{pi} {e^{cos(2t)}}(cos(sin(2t))dt + int_{pi}^{2pi} {e^{cos(2t)}}(cos(sin(2t))dt \
                          &= pi + pi = 2pi
                          end{align}







                          share|cite|improve this answer














                          share|cite|improve this answer



                          share|cite|improve this answer








                          edited Dec 1 at 7:50

























                          answered Dec 1 at 7:39









                          Fiticous

                          17218




                          17218























                              1














                              you could try this:
                              $$I=int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx+iint_0^{2pi}e^{cos(2x)}sinleft[sin(2x)right]dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}e^{isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)+isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{e^{2ix}}dxright)$$
                              and since:
                              $$e^y=sum_{n=0}^inftyfrac{x^n}{n!}$$
                              we can say that:
                              $$e^{e^{2ix}}=sum_{n=0}^inftyfrac{e^{2nix}}{n!}$$
                              and so:
                              $$I=Reint_0^{2pi}sum_{n=0}^inftyfrac{e^{2nix}}{n!}dx$$
                              $$=Resum_{n=0}^inftyleft[frac{e^{2nix}}{2ni.n!}right]_0^{2pi}$$
                              $$=Resum_{n=0}^inftyfrac{e^{4pi ni}-1}{2ni.n!}$$
                              but note that for all integers n, $$e^{4pi ni}=1$$
                              so this summation may be hard to calculate (or wrong). This is probably due to the fact that the integral is between $0$ and $2pi$, so the integral may need to be split up into several parts before it can be evaulated.






                              share|cite|improve this answer





















                              • Neat approach for sure! Thanks for sharing (+1).
                                – clathratus
                                Dec 2 at 19:03
















                              1














                              you could try this:
                              $$I=int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx+iint_0^{2pi}e^{cos(2x)}sinleft[sin(2x)right]dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}e^{isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)+isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{e^{2ix}}dxright)$$
                              and since:
                              $$e^y=sum_{n=0}^inftyfrac{x^n}{n!}$$
                              we can say that:
                              $$e^{e^{2ix}}=sum_{n=0}^inftyfrac{e^{2nix}}{n!}$$
                              and so:
                              $$I=Reint_0^{2pi}sum_{n=0}^inftyfrac{e^{2nix}}{n!}dx$$
                              $$=Resum_{n=0}^inftyleft[frac{e^{2nix}}{2ni.n!}right]_0^{2pi}$$
                              $$=Resum_{n=0}^inftyfrac{e^{4pi ni}-1}{2ni.n!}$$
                              but note that for all integers n, $$e^{4pi ni}=1$$
                              so this summation may be hard to calculate (or wrong). This is probably due to the fact that the integral is between $0$ and $2pi$, so the integral may need to be split up into several parts before it can be evaulated.






                              share|cite|improve this answer





















                              • Neat approach for sure! Thanks for sharing (+1).
                                – clathratus
                                Dec 2 at 19:03














                              1












                              1








                              1






                              you could try this:
                              $$I=int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx+iint_0^{2pi}e^{cos(2x)}sinleft[sin(2x)right]dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}e^{isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)+isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{e^{2ix}}dxright)$$
                              and since:
                              $$e^y=sum_{n=0}^inftyfrac{x^n}{n!}$$
                              we can say that:
                              $$e^{e^{2ix}}=sum_{n=0}^inftyfrac{e^{2nix}}{n!}$$
                              and so:
                              $$I=Reint_0^{2pi}sum_{n=0}^inftyfrac{e^{2nix}}{n!}dx$$
                              $$=Resum_{n=0}^inftyleft[frac{e^{2nix}}{2ni.n!}right]_0^{2pi}$$
                              $$=Resum_{n=0}^inftyfrac{e^{4pi ni}-1}{2ni.n!}$$
                              but note that for all integers n, $$e^{4pi ni}=1$$
                              so this summation may be hard to calculate (or wrong). This is probably due to the fact that the integral is between $0$ and $2pi$, so the integral may need to be split up into several parts before it can be evaulated.






                              share|cite|improve this answer












                              you could try this:
                              $$I=int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}cosleft[sin(2x)right]dx+iint_0^{2pi}e^{cos(2x)}sinleft[sin(2x)right]dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)}e^{isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{cos(2x)+isin(2x)}dxright)$$
                              $$=Releft(int_0^{2pi}e^{e^{2ix}}dxright)$$
                              and since:
                              $$e^y=sum_{n=0}^inftyfrac{x^n}{n!}$$
                              we can say that:
                              $$e^{e^{2ix}}=sum_{n=0}^inftyfrac{e^{2nix}}{n!}$$
                              and so:
                              $$I=Reint_0^{2pi}sum_{n=0}^inftyfrac{e^{2nix}}{n!}dx$$
                              $$=Resum_{n=0}^inftyleft[frac{e^{2nix}}{2ni.n!}right]_0^{2pi}$$
                              $$=Resum_{n=0}^inftyfrac{e^{4pi ni}-1}{2ni.n!}$$
                              but note that for all integers n, $$e^{4pi ni}=1$$
                              so this summation may be hard to calculate (or wrong). This is probably due to the fact that the integral is between $0$ and $2pi$, so the integral may need to be split up into several parts before it can be evaulated.







                              share|cite|improve this answer












                              share|cite|improve this answer



                              share|cite|improve this answer










                              answered Dec 2 at 18:47









                              Henry Lee

                              1,703218




                              1,703218












                              • Neat approach for sure! Thanks for sharing (+1).
                                – clathratus
                                Dec 2 at 19:03


















                              • Neat approach for sure! Thanks for sharing (+1).
                                – clathratus
                                Dec 2 at 19:03
















                              Neat approach for sure! Thanks for sharing (+1).
                              – clathratus
                              Dec 2 at 19:03




                              Neat approach for sure! Thanks for sharing (+1).
                              – clathratus
                              Dec 2 at 19:03











                              0














                              If by $cos sin (2 x)$ you really mean $cos (2 x ) sin (2 x)$, then the full function looks like



                              enter image description here



                              and the full integral is $0$.



                              If instead the integral is:



                              $$intlimits_{x=0}^{2 pi} e^{cos (2 x)} cos left( sin ( 2 x)right) dx$$



                              the graph is:



                              enter image description here



                              and Mathematica gives the answer as $2 pi$.






                              share|cite|improve this answer



















                              • 1




                                I believe that the function is $cos(sin(2x))$.
                                – robjohn
                                Dec 1 at 7:24










                              • Really? Then the OP is not very careful with mathematical notation.
                                – David G. Stork
                                Dec 1 at 7:41






                              • 1




                                I prefer to write $cos(x)$, but many write $cos x$ even though that often leads to confusion. However, inserting an extra $2x$ into the formula to get $cos(2x)sin(2x)$ seems questionable.
                                – robjohn
                                Dec 1 at 8:18








                              • 1




                                I did mean $cos(sin(2x))$. Sorry for the confusion. I appreciate the thoroughness of your answer though (+1)
                                – clathratus
                                Dec 1 at 20:13
















                              0














                              If by $cos sin (2 x)$ you really mean $cos (2 x ) sin (2 x)$, then the full function looks like



                              enter image description here



                              and the full integral is $0$.



                              If instead the integral is:



                              $$intlimits_{x=0}^{2 pi} e^{cos (2 x)} cos left( sin ( 2 x)right) dx$$



                              the graph is:



                              enter image description here



                              and Mathematica gives the answer as $2 pi$.






                              share|cite|improve this answer



















                              • 1




                                I believe that the function is $cos(sin(2x))$.
                                – robjohn
                                Dec 1 at 7:24










                              • Really? Then the OP is not very careful with mathematical notation.
                                – David G. Stork
                                Dec 1 at 7:41






                              • 1




                                I prefer to write $cos(x)$, but many write $cos x$ even though that often leads to confusion. However, inserting an extra $2x$ into the formula to get $cos(2x)sin(2x)$ seems questionable.
                                – robjohn
                                Dec 1 at 8:18








                              • 1




                                I did mean $cos(sin(2x))$. Sorry for the confusion. I appreciate the thoroughness of your answer though (+1)
                                – clathratus
                                Dec 1 at 20:13














                              0












                              0








                              0






                              If by $cos sin (2 x)$ you really mean $cos (2 x ) sin (2 x)$, then the full function looks like



                              enter image description here



                              and the full integral is $0$.



                              If instead the integral is:



                              $$intlimits_{x=0}^{2 pi} e^{cos (2 x)} cos left( sin ( 2 x)right) dx$$



                              the graph is:



                              enter image description here



                              and Mathematica gives the answer as $2 pi$.






                              share|cite|improve this answer














                              If by $cos sin (2 x)$ you really mean $cos (2 x ) sin (2 x)$, then the full function looks like



                              enter image description here



                              and the full integral is $0$.



                              If instead the integral is:



                              $$intlimits_{x=0}^{2 pi} e^{cos (2 x)} cos left( sin ( 2 x)right) dx$$



                              the graph is:



                              enter image description here



                              and Mathematica gives the answer as $2 pi$.







                              share|cite|improve this answer














                              share|cite|improve this answer



                              share|cite|improve this answer








                              edited Dec 1 at 7:45

























                              answered Dec 1 at 7:02









                              David G. Stork

                              9,77921232




                              9,77921232








                              • 1




                                I believe that the function is $cos(sin(2x))$.
                                – robjohn
                                Dec 1 at 7:24










                              • Really? Then the OP is not very careful with mathematical notation.
                                – David G. Stork
                                Dec 1 at 7:41






                              • 1




                                I prefer to write $cos(x)$, but many write $cos x$ even though that often leads to confusion. However, inserting an extra $2x$ into the formula to get $cos(2x)sin(2x)$ seems questionable.
                                – robjohn
                                Dec 1 at 8:18








                              • 1




                                I did mean $cos(sin(2x))$. Sorry for the confusion. I appreciate the thoroughness of your answer though (+1)
                                – clathratus
                                Dec 1 at 20:13














                              • 1




                                I believe that the function is $cos(sin(2x))$.
                                – robjohn
                                Dec 1 at 7:24










                              • Really? Then the OP is not very careful with mathematical notation.
                                – David G. Stork
                                Dec 1 at 7:41






                              • 1




                                I prefer to write $cos(x)$, but many write $cos x$ even though that often leads to confusion. However, inserting an extra $2x$ into the formula to get $cos(2x)sin(2x)$ seems questionable.
                                – robjohn
                                Dec 1 at 8:18








                              • 1




                                I did mean $cos(sin(2x))$. Sorry for the confusion. I appreciate the thoroughness of your answer though (+1)
                                – clathratus
                                Dec 1 at 20:13








                              1




                              1




                              I believe that the function is $cos(sin(2x))$.
                              – robjohn
                              Dec 1 at 7:24




                              I believe that the function is $cos(sin(2x))$.
                              – robjohn
                              Dec 1 at 7:24












                              Really? Then the OP is not very careful with mathematical notation.
                              – David G. Stork
                              Dec 1 at 7:41




                              Really? Then the OP is not very careful with mathematical notation.
                              – David G. Stork
                              Dec 1 at 7:41




                              1




                              1




                              I prefer to write $cos(x)$, but many write $cos x$ even though that often leads to confusion. However, inserting an extra $2x$ into the formula to get $cos(2x)sin(2x)$ seems questionable.
                              – robjohn
                              Dec 1 at 8:18






                              I prefer to write $cos(x)$, but many write $cos x$ even though that often leads to confusion. However, inserting an extra $2x$ into the formula to get $cos(2x)sin(2x)$ seems questionable.
                              – robjohn
                              Dec 1 at 8:18






                              1




                              1




                              I did mean $cos(sin(2x))$. Sorry for the confusion. I appreciate the thoroughness of your answer though (+1)
                              – clathratus
                              Dec 1 at 20:13




                              I did mean $cos(sin(2x))$. Sorry for the confusion. I appreciate the thoroughness of your answer though (+1)
                              – clathratus
                              Dec 1 at 20:13


















                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Mathematics Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              Use MathJax to format equations. MathJax reference.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3020988%2fon-int-02-pie-cos2x-cos-sin2x-mathrmdx-2-pi%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Wiesbaden

                              Marschland

                              Dieringhausen