Multiple answers in evaluation of a definite integral.

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
8
down vote

favorite
1












Consider this definite integral
$$I=int_0^2pidfracxcos x1 +cos xdx$$



Method 1



$$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



$$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



Adding (1) and (2)



$$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



$$I=pi int_0^2pidfraccos x1 +cos xdx$$



$$I=2pi int_0^pidfraccos x1 +cos xdx.....(P1)$$



$$I=2piint_0^pidfrac1+cos x-11 +cos xdx$$



$$I=2pi int_0^pi1-dfrac11 +cos xdx$$



$$I=2pi int_0^pi1dx-2pi int_0^pidfrac11 +cos xdx$$



$$I=2pi[x]_0^pi -2pi int_0^pidfrac12cos ²dfracx2dx$$



$$I=2pi ² - pi int_0^pi sec ²dfracx2 dx$$



$$displaystyle I=2pi ² - 2pi left[ tan dfracx2right]_0^pi $$



$$displaystyle I=2pi ² - 2pi left[ infty - 0 right] $$



$$I=-infty$$



Method 2



$$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



$$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



Adding (1) and (2)



$$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



$$I=pi int_0^2pidfraccos x1 +cos xdx$$



$$I=piint_0^2pidfrac1+cos x-11 +cos xdx$$



$$I=pi int_0^2pi1-dfrac11 +cos xdx$$



$$I=pi int_0^2pi1dx-pi int_0^2pidfrac11 +cos xdx$$



$$I=pi[x]_0^2pi -pi int_0^2pidfrac12cos ²dfracx2dx$$



$$I=2pi ² - dfracpi2 int_0^2pi sec ²dfracx2 dx$$



$$displaystyle I=2pi ² - pi left[ tan dfracx2right]_0^2pi $$



$$displaystyle I=2pi ² - pi left[ 0-0right] $$



$$I=2pi ²$$




$$(P1)--> int_0^2a f(x)dx=2int_0^af(x)dx$$if $f(2a-x)=f(x)$



I have checked these methods several times, but can't find any mistake. Method 1 seems to be wrong as the given answer was $2pi ²$. What could be the mistake?










share|cite|improve this question

























    up vote
    8
    down vote

    favorite
    1












    Consider this definite integral
    $$I=int_0^2pidfracxcos x1 +cos xdx$$



    Method 1



    $$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



    $$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



    Adding (1) and (2)



    $$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



    $$I=pi int_0^2pidfraccos x1 +cos xdx$$



    $$I=2pi int_0^pidfraccos x1 +cos xdx.....(P1)$$



    $$I=2piint_0^pidfrac1+cos x-11 +cos xdx$$



    $$I=2pi int_0^pi1-dfrac11 +cos xdx$$



    $$I=2pi int_0^pi1dx-2pi int_0^pidfrac11 +cos xdx$$



    $$I=2pi[x]_0^pi -2pi int_0^pidfrac12cos ²dfracx2dx$$



    $$I=2pi ² - pi int_0^pi sec ²dfracx2 dx$$



    $$displaystyle I=2pi ² - 2pi left[ tan dfracx2right]_0^pi $$



    $$displaystyle I=2pi ² - 2pi left[ infty - 0 right] $$



    $$I=-infty$$



    Method 2



    $$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



    $$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



    Adding (1) and (2)



    $$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



    $$I=pi int_0^2pidfraccos x1 +cos xdx$$



    $$I=piint_0^2pidfrac1+cos x-11 +cos xdx$$



    $$I=pi int_0^2pi1-dfrac11 +cos xdx$$



    $$I=pi int_0^2pi1dx-pi int_0^2pidfrac11 +cos xdx$$



    $$I=pi[x]_0^2pi -pi int_0^2pidfrac12cos ²dfracx2dx$$



    $$I=2pi ² - dfracpi2 int_0^2pi sec ²dfracx2 dx$$



    $$displaystyle I=2pi ² - pi left[ tan dfracx2right]_0^2pi $$



    $$displaystyle I=2pi ² - pi left[ 0-0right] $$



    $$I=2pi ²$$




    $$(P1)--> int_0^2a f(x)dx=2int_0^af(x)dx$$if $f(2a-x)=f(x)$



    I have checked these methods several times, but can't find any mistake. Method 1 seems to be wrong as the given answer was $2pi ²$. What could be the mistake?










    share|cite|improve this question























      up vote
      8
      down vote

      favorite
      1









      up vote
      8
      down vote

      favorite
      1






      1





      Consider this definite integral
      $$I=int_0^2pidfracxcos x1 +cos xdx$$



      Method 1



      $$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



      $$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



      Adding (1) and (2)



      $$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



      $$I=pi int_0^2pidfraccos x1 +cos xdx$$



      $$I=2pi int_0^pidfraccos x1 +cos xdx.....(P1)$$



      $$I=2piint_0^pidfrac1+cos x-11 +cos xdx$$



      $$I=2pi int_0^pi1-dfrac11 +cos xdx$$



      $$I=2pi int_0^pi1dx-2pi int_0^pidfrac11 +cos xdx$$



      $$I=2pi[x]_0^pi -2pi int_0^pidfrac12cos ²dfracx2dx$$



      $$I=2pi ² - pi int_0^pi sec ²dfracx2 dx$$



      $$displaystyle I=2pi ² - 2pi left[ tan dfracx2right]_0^pi $$



      $$displaystyle I=2pi ² - 2pi left[ infty - 0 right] $$



      $$I=-infty$$



      Method 2



      $$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



      $$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



      Adding (1) and (2)



      $$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



      $$I=pi int_0^2pidfraccos x1 +cos xdx$$



      $$I=piint_0^2pidfrac1+cos x-11 +cos xdx$$



      $$I=pi int_0^2pi1-dfrac11 +cos xdx$$



      $$I=pi int_0^2pi1dx-pi int_0^2pidfrac11 +cos xdx$$



      $$I=pi[x]_0^2pi -pi int_0^2pidfrac12cos ²dfracx2dx$$



      $$I=2pi ² - dfracpi2 int_0^2pi sec ²dfracx2 dx$$



      $$displaystyle I=2pi ² - pi left[ tan dfracx2right]_0^2pi $$



      $$displaystyle I=2pi ² - pi left[ 0-0right] $$



      $$I=2pi ²$$




      $$(P1)--> int_0^2a f(x)dx=2int_0^af(x)dx$$if $f(2a-x)=f(x)$



      I have checked these methods several times, but can't find any mistake. Method 1 seems to be wrong as the given answer was $2pi ²$. What could be the mistake?










      share|cite|improve this question













      Consider this definite integral
      $$I=int_0^2pidfracxcos x1 +cos xdx$$



      Method 1



      $$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



      $$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



      Adding (1) and (2)



      $$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



      $$I=pi int_0^2pidfraccos x1 +cos xdx$$



      $$I=2pi int_0^pidfraccos x1 +cos xdx.....(P1)$$



      $$I=2piint_0^pidfrac1+cos x-11 +cos xdx$$



      $$I=2pi int_0^pi1-dfrac11 +cos xdx$$



      $$I=2pi int_0^pi1dx-2pi int_0^pidfrac11 +cos xdx$$



      $$I=2pi[x]_0^pi -2pi int_0^pidfrac12cos ²dfracx2dx$$



      $$I=2pi ² - pi int_0^pi sec ²dfracx2 dx$$



      $$displaystyle I=2pi ² - 2pi left[ tan dfracx2right]_0^pi $$



      $$displaystyle I=2pi ² - 2pi left[ infty - 0 right] $$



      $$I=-infty$$



      Method 2



      $$I=int_0^2pidfracxcos x1 +cos xdx.....(1)$$



      $$I=int_0^2pidfrac(2pi-x)cos (2pi-x)1 +cos (2pi-x)dx.....(2)$$



      Adding (1) and (2)



      $$2I=int_0^2pidfrac2pi cos x1 +cos xdx$$



      $$I=pi int_0^2pidfraccos x1 +cos xdx$$



      $$I=piint_0^2pidfrac1+cos x-11 +cos xdx$$



      $$I=pi int_0^2pi1-dfrac11 +cos xdx$$



      $$I=pi int_0^2pi1dx-pi int_0^2pidfrac11 +cos xdx$$



      $$I=pi[x]_0^2pi -pi int_0^2pidfrac12cos ²dfracx2dx$$



      $$I=2pi ² - dfracpi2 int_0^2pi sec ²dfracx2 dx$$



      $$displaystyle I=2pi ² - pi left[ tan dfracx2right]_0^2pi $$



      $$displaystyle I=2pi ² - pi left[ 0-0right] $$



      $$I=2pi ²$$




      $$(P1)--> int_0^2a f(x)dx=2int_0^af(x)dx$$if $f(2a-x)=f(x)$



      I have checked these methods several times, but can't find any mistake. Method 1 seems to be wrong as the given answer was $2pi ²$. What could be the mistake?







      definite-integrals






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Sep 28 at 7:00









      Loop Back

      3009




      3009




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          15
          down vote



          accepted










          Actually, the first method is correct and the second method is wrong. To see what is happening here, notice that the integrand is almost proportional to $frac1(x-pi)^2$, precisely in the following sense:



          $$ lim_x to pi (x-pi)^2 fracx cos x1+cos x
          = -2pi. $$



          So the integrand diverges to $-infty$ as $xtopi$.



          $hspace8.5em$Graph of the integrand



          As far as improper integrability is concerned, having discontinuity points at which $|f(x)|$ diverges to $infty$ is not necessarily a threat for the convergence of the improper integral $int f(x) , dx$. In your case, however, we know that$int_pi-delta^pi+delta frac1(x-pi)^2 , dx = infty$ for any $delta > 0$, hence the integral in question does not converge by comparison test.



          To see what is wrong in your second approach, note that $u = tan(x/2)$ has discontinuity at $x = pi$, hence cannot be used as a valid substitution over the interval $[0, 2pi]$. (Of course, it can be used as a substitution over the interval $[0,pi)$, which is why your first approach is valid.)



          $hspace8.5em$Graph of u=tan(x/2)






          share|cite|improve this answer






















          • $SangchulLee thank you I didn't notice that substitution mistake, next time I'll remember it.
            – Loop Back
            Sep 28 at 7:27






          • 1




            What's a pole??
            – Abcd
            Sep 28 at 9:05






          • 5




            @Abcd, Although the precise definition requires a bit of complex analysis, it is enough to know that pole is a special type of singularity, where (the magnitude of) the function diverges to infinity.
            – Sangchul Lee
            Sep 28 at 9:19











          • @Abcd: More simply, a "division by zero". It's fairly obvious: when x=π, cos x = -1, so(x cos x) / (1 + cos x ) = (-π) / (0)
            – MSalters
            Sep 28 at 11:25










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f2934074%2fmultiple-answers-in-evaluation-of-a-definite-integral%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          15
          down vote



          accepted










          Actually, the first method is correct and the second method is wrong. To see what is happening here, notice that the integrand is almost proportional to $frac1(x-pi)^2$, precisely in the following sense:



          $$ lim_x to pi (x-pi)^2 fracx cos x1+cos x
          = -2pi. $$



          So the integrand diverges to $-infty$ as $xtopi$.



          $hspace8.5em$Graph of the integrand



          As far as improper integrability is concerned, having discontinuity points at which $|f(x)|$ diverges to $infty$ is not necessarily a threat for the convergence of the improper integral $int f(x) , dx$. In your case, however, we know that$int_pi-delta^pi+delta frac1(x-pi)^2 , dx = infty$ for any $delta > 0$, hence the integral in question does not converge by comparison test.



          To see what is wrong in your second approach, note that $u = tan(x/2)$ has discontinuity at $x = pi$, hence cannot be used as a valid substitution over the interval $[0, 2pi]$. (Of course, it can be used as a substitution over the interval $[0,pi)$, which is why your first approach is valid.)



          $hspace8.5em$Graph of u=tan(x/2)






          share|cite|improve this answer






















          • $SangchulLee thank you I didn't notice that substitution mistake, next time I'll remember it.
            – Loop Back
            Sep 28 at 7:27






          • 1




            What's a pole??
            – Abcd
            Sep 28 at 9:05






          • 5




            @Abcd, Although the precise definition requires a bit of complex analysis, it is enough to know that pole is a special type of singularity, where (the magnitude of) the function diverges to infinity.
            – Sangchul Lee
            Sep 28 at 9:19











          • @Abcd: More simply, a "division by zero". It's fairly obvious: when x=π, cos x = -1, so(x cos x) / (1 + cos x ) = (-π) / (0)
            – MSalters
            Sep 28 at 11:25














          up vote
          15
          down vote



          accepted










          Actually, the first method is correct and the second method is wrong. To see what is happening here, notice that the integrand is almost proportional to $frac1(x-pi)^2$, precisely in the following sense:



          $$ lim_x to pi (x-pi)^2 fracx cos x1+cos x
          = -2pi. $$



          So the integrand diverges to $-infty$ as $xtopi$.



          $hspace8.5em$Graph of the integrand



          As far as improper integrability is concerned, having discontinuity points at which $|f(x)|$ diverges to $infty$ is not necessarily a threat for the convergence of the improper integral $int f(x) , dx$. In your case, however, we know that$int_pi-delta^pi+delta frac1(x-pi)^2 , dx = infty$ for any $delta > 0$, hence the integral in question does not converge by comparison test.



          To see what is wrong in your second approach, note that $u = tan(x/2)$ has discontinuity at $x = pi$, hence cannot be used as a valid substitution over the interval $[0, 2pi]$. (Of course, it can be used as a substitution over the interval $[0,pi)$, which is why your first approach is valid.)



          $hspace8.5em$Graph of u=tan(x/2)






          share|cite|improve this answer






















          • $SangchulLee thank you I didn't notice that substitution mistake, next time I'll remember it.
            – Loop Back
            Sep 28 at 7:27






          • 1




            What's a pole??
            – Abcd
            Sep 28 at 9:05






          • 5




            @Abcd, Although the precise definition requires a bit of complex analysis, it is enough to know that pole is a special type of singularity, where (the magnitude of) the function diverges to infinity.
            – Sangchul Lee
            Sep 28 at 9:19











          • @Abcd: More simply, a "division by zero". It's fairly obvious: when x=π, cos x = -1, so(x cos x) / (1 + cos x ) = (-π) / (0)
            – MSalters
            Sep 28 at 11:25












          up vote
          15
          down vote



          accepted







          up vote
          15
          down vote



          accepted






          Actually, the first method is correct and the second method is wrong. To see what is happening here, notice that the integrand is almost proportional to $frac1(x-pi)^2$, precisely in the following sense:



          $$ lim_x to pi (x-pi)^2 fracx cos x1+cos x
          = -2pi. $$



          So the integrand diverges to $-infty$ as $xtopi$.



          $hspace8.5em$Graph of the integrand



          As far as improper integrability is concerned, having discontinuity points at which $|f(x)|$ diverges to $infty$ is not necessarily a threat for the convergence of the improper integral $int f(x) , dx$. In your case, however, we know that$int_pi-delta^pi+delta frac1(x-pi)^2 , dx = infty$ for any $delta > 0$, hence the integral in question does not converge by comparison test.



          To see what is wrong in your second approach, note that $u = tan(x/2)$ has discontinuity at $x = pi$, hence cannot be used as a valid substitution over the interval $[0, 2pi]$. (Of course, it can be used as a substitution over the interval $[0,pi)$, which is why your first approach is valid.)



          $hspace8.5em$Graph of u=tan(x/2)






          share|cite|improve this answer














          Actually, the first method is correct and the second method is wrong. To see what is happening here, notice that the integrand is almost proportional to $frac1(x-pi)^2$, precisely in the following sense:



          $$ lim_x to pi (x-pi)^2 fracx cos x1+cos x
          = -2pi. $$



          So the integrand diverges to $-infty$ as $xtopi$.



          $hspace8.5em$Graph of the integrand



          As far as improper integrability is concerned, having discontinuity points at which $|f(x)|$ diverges to $infty$ is not necessarily a threat for the convergence of the improper integral $int f(x) , dx$. In your case, however, we know that$int_pi-delta^pi+delta frac1(x-pi)^2 , dx = infty$ for any $delta > 0$, hence the integral in question does not converge by comparison test.



          To see what is wrong in your second approach, note that $u = tan(x/2)$ has discontinuity at $x = pi$, hence cannot be used as a valid substitution over the interval $[0, 2pi]$. (Of course, it can be used as a substitution over the interval $[0,pi)$, which is why your first approach is valid.)



          $hspace8.5em$Graph of u=tan(x/2)







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Sep 28 at 11:40

























          answered Sep 28 at 7:13









          Sangchul Lee

          87.4k12158259




          87.4k12158259











          • $SangchulLee thank you I didn't notice that substitution mistake, next time I'll remember it.
            – Loop Back
            Sep 28 at 7:27






          • 1




            What's a pole??
            – Abcd
            Sep 28 at 9:05






          • 5




            @Abcd, Although the precise definition requires a bit of complex analysis, it is enough to know that pole is a special type of singularity, where (the magnitude of) the function diverges to infinity.
            – Sangchul Lee
            Sep 28 at 9:19











          • @Abcd: More simply, a "division by zero". It's fairly obvious: when x=π, cos x = -1, so(x cos x) / (1 + cos x ) = (-π) / (0)
            – MSalters
            Sep 28 at 11:25
















          • $SangchulLee thank you I didn't notice that substitution mistake, next time I'll remember it.
            – Loop Back
            Sep 28 at 7:27






          • 1




            What's a pole??
            – Abcd
            Sep 28 at 9:05






          • 5




            @Abcd, Although the precise definition requires a bit of complex analysis, it is enough to know that pole is a special type of singularity, where (the magnitude of) the function diverges to infinity.
            – Sangchul Lee
            Sep 28 at 9:19











          • @Abcd: More simply, a "division by zero". It's fairly obvious: when x=π, cos x = -1, so(x cos x) / (1 + cos x ) = (-π) / (0)
            – MSalters
            Sep 28 at 11:25















          $SangchulLee thank you I didn't notice that substitution mistake, next time I'll remember it.
          – Loop Back
          Sep 28 at 7:27




          $SangchulLee thank you I didn't notice that substitution mistake, next time I'll remember it.
          – Loop Back
          Sep 28 at 7:27




          1




          1




          What's a pole??
          – Abcd
          Sep 28 at 9:05




          What's a pole??
          – Abcd
          Sep 28 at 9:05




          5




          5




          @Abcd, Although the precise definition requires a bit of complex analysis, it is enough to know that pole is a special type of singularity, where (the magnitude of) the function diverges to infinity.
          – Sangchul Lee
          Sep 28 at 9:19





          @Abcd, Although the precise definition requires a bit of complex analysis, it is enough to know that pole is a special type of singularity, where (the magnitude of) the function diverges to infinity.
          – Sangchul Lee
          Sep 28 at 9:19













          @Abcd: More simply, a "division by zero". It's fairly obvious: when x=π, cos x = -1, so(x cos x) / (1 + cos x ) = (-π) / (0)
          – MSalters
          Sep 28 at 11:25




          @Abcd: More simply, a "division by zero". It's fairly obvious: when x=π, cos x = -1, so(x cos x) / (1 + cos x ) = (-π) / (0)
          – MSalters
          Sep 28 at 11:25

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2934074%2fmultiple-answers-in-evaluation-of-a-definite-integral%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay