Double Integral $intlimits_0^pi intlimits_0^pi|cos(x+y)|,dx,dy$











up vote
4
down vote

favorite
2












First off, I apologize for any English mistakes.I've come across a double integral problem that I haven't been able to solve: Find
$$int_0^pi int_0^pi|cos(x+y)|,dx,dy$$
Intuitively, I thought it could be solved in a similar manner to what you would do for a regular integral with and absolute value. For example, to solve $int_0^pi |cos(x)| ,dx$, you just take the interval where $cos(x)$ is positive and multiply it by two:
$$int_0^pi |cos(x)|,dx = 2int_0^{frac{pi}{2}} cos(x) , dx$$
So I naively assumed my initial problem could be solved in a similar manner, that is:
$$int_0^pi int_0^pi |cos(x+y)| ,dx,dy = 4int_0^{frac{pi}{4}}int_0^{frac{pi}{4}}cos(x+y) ,dx,dy$$
However, this does not give me the right answer. I'm not really sure how this integral is actually solved.
Thanks a lot for your help!










share|cite|improve this question
























  • You could use the identity for the cosine of a sum.
    – YoTengoUnLCD
    May 19 '16 at 4:43















up vote
4
down vote

favorite
2












First off, I apologize for any English mistakes.I've come across a double integral problem that I haven't been able to solve: Find
$$int_0^pi int_0^pi|cos(x+y)|,dx,dy$$
Intuitively, I thought it could be solved in a similar manner to what you would do for a regular integral with and absolute value. For example, to solve $int_0^pi |cos(x)| ,dx$, you just take the interval where $cos(x)$ is positive and multiply it by two:
$$int_0^pi |cos(x)|,dx = 2int_0^{frac{pi}{2}} cos(x) , dx$$
So I naively assumed my initial problem could be solved in a similar manner, that is:
$$int_0^pi int_0^pi |cos(x+y)| ,dx,dy = 4int_0^{frac{pi}{4}}int_0^{frac{pi}{4}}cos(x+y) ,dx,dy$$
However, this does not give me the right answer. I'm not really sure how this integral is actually solved.
Thanks a lot for your help!










share|cite|improve this question
























  • You could use the identity for the cosine of a sum.
    – YoTengoUnLCD
    May 19 '16 at 4:43













up vote
4
down vote

favorite
2









up vote
4
down vote

favorite
2






2





First off, I apologize for any English mistakes.I've come across a double integral problem that I haven't been able to solve: Find
$$int_0^pi int_0^pi|cos(x+y)|,dx,dy$$
Intuitively, I thought it could be solved in a similar manner to what you would do for a regular integral with and absolute value. For example, to solve $int_0^pi |cos(x)| ,dx$, you just take the interval where $cos(x)$ is positive and multiply it by two:
$$int_0^pi |cos(x)|,dx = 2int_0^{frac{pi}{2}} cos(x) , dx$$
So I naively assumed my initial problem could be solved in a similar manner, that is:
$$int_0^pi int_0^pi |cos(x+y)| ,dx,dy = 4int_0^{frac{pi}{4}}int_0^{frac{pi}{4}}cos(x+y) ,dx,dy$$
However, this does not give me the right answer. I'm not really sure how this integral is actually solved.
Thanks a lot for your help!










share|cite|improve this question















First off, I apologize for any English mistakes.I've come across a double integral problem that I haven't been able to solve: Find
$$int_0^pi int_0^pi|cos(x+y)|,dx,dy$$
Intuitively, I thought it could be solved in a similar manner to what you would do for a regular integral with and absolute value. For example, to solve $int_0^pi |cos(x)| ,dx$, you just take the interval where $cos(x)$ is positive and multiply it by two:
$$int_0^pi |cos(x)|,dx = 2int_0^{frac{pi}{2}} cos(x) , dx$$
So I naively assumed my initial problem could be solved in a similar manner, that is:
$$int_0^pi int_0^pi |cos(x+y)| ,dx,dy = 4int_0^{frac{pi}{4}}int_0^{frac{pi}{4}}cos(x+y) ,dx,dy$$
However, this does not give me the right answer. I'm not really sure how this integral is actually solved.
Thanks a lot for your help!







calculus integration multivariable-calculus multiple-integral






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 23 '16 at 6:54









user91500

1




1










asked May 19 '16 at 4:41









Zamok

638




638












  • You could use the identity for the cosine of a sum.
    – YoTengoUnLCD
    May 19 '16 at 4:43


















  • You could use the identity for the cosine of a sum.
    – YoTengoUnLCD
    May 19 '16 at 4:43
















You could use the identity for the cosine of a sum.
– YoTengoUnLCD
May 19 '16 at 4:43




You could use the identity for the cosine of a sum.
– YoTengoUnLCD
May 19 '16 at 4:43










3 Answers
3






active

oldest

votes

















up vote
6
down vote



accepted










For the single integral case, "take the interval where $cos x$ is positive and multiply it by two" is rather misleading: what you are actually doing is splitting the region of integration into a part where $cos x$ is positive and a part where $cos x$ is negative, working out both and adding them. The two integrals are the same in this case, so you can just multiply by $2$.



You can do the same for the double integral, but there is no guarantee that you will be adding equal integrals. You will need to subdivide the square of integration into bits where $cos(x+y)$ has a single sign. So you will need to take
$$0le x+ylefracpi2quadhbox{and}quad
fracpi2le x+ylefrac{3pi}2quadhbox{and}quad
frac{3pi}2le x+yle2pi .$$
Good luck!






share|cite|improve this answer




























    up vote
    6
    down vote













    enter image description here



    We have $int_{x=0}^{pi/2}int_{y=0}^{pi/2-x}cos(x+y) dy dx-int_{x=0}^{pi/2}int_{y=pi/2-x}^{pi}cos(x+y) dy dx-int_{x=pi/2}^{pi}int_{y=0}^{3pi/2-x}cos(x+y_ dy dx+int_{x=pi/2}^{pi}int_{y=3pi/2-x}^{pi}cos(x+y) dy dx$.



    The first term is $int_0^{pi/2}(1-sin x) dx=pi/2-1$. The second term is $-int_0^{pi/2}(-1-sin x) dx=pi/2+1$. The third term is $-int_{pi/2}^{pi}(-1-sin x) dx=pi/2+1$, and the last term is $int_{pi/2}^{pi}(1-sin x) dx=pi/2-1$. Adding, we get $2pi$ for the original integral.






    share|cite|improve this answer




























      up vote
      4
      down vote













      A handful of hints to get you started, each for different directions.



      Most require you to just use some alternative definition of $cos(x)$, as mentioned in the comments...




      • Use the piecewise definition of $left|cos(x+y)right|$, and add together the separate integrands

      • Note that if $x,yinBbb R$, then $left|cos(x+y)right|=sqrt{cos^2(x+y)}$

      • $cos(x+y)=cos(x) cos(y)-sin(x) sin(y)$

      • You could always use the definition $cos(x+y)=frac 12 e^{-i x-i y}+frac 12 e^{i x+i y} $, but that can end up being much more difficult.


      Start with the first suggestion, though. Try to redefine the function as a piecewise one. Here's a basic example of how a simple integral of an absolute value works from Paul's Online Notes (example 5):



      $$int_0^3left|3t-5right|mathrm{d}t=int_0^{frac 5 3} 5-3t,mathrm{d}t+int_{frac 5 3}^3 3t-5,mathrm{d}t$$






      share|cite|improve this answer





















        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: 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%2f1791264%2fdouble-integral-int-limits-0-pi-int-limits-0-pi-cosxy-dx-dy%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        6
        down vote



        accepted










        For the single integral case, "take the interval where $cos x$ is positive and multiply it by two" is rather misleading: what you are actually doing is splitting the region of integration into a part where $cos x$ is positive and a part where $cos x$ is negative, working out both and adding them. The two integrals are the same in this case, so you can just multiply by $2$.



        You can do the same for the double integral, but there is no guarantee that you will be adding equal integrals. You will need to subdivide the square of integration into bits where $cos(x+y)$ has a single sign. So you will need to take
        $$0le x+ylefracpi2quadhbox{and}quad
        fracpi2le x+ylefrac{3pi}2quadhbox{and}quad
        frac{3pi}2le x+yle2pi .$$
        Good luck!






        share|cite|improve this answer

























          up vote
          6
          down vote



          accepted










          For the single integral case, "take the interval where $cos x$ is positive and multiply it by two" is rather misleading: what you are actually doing is splitting the region of integration into a part where $cos x$ is positive and a part where $cos x$ is negative, working out both and adding them. The two integrals are the same in this case, so you can just multiply by $2$.



          You can do the same for the double integral, but there is no guarantee that you will be adding equal integrals. You will need to subdivide the square of integration into bits where $cos(x+y)$ has a single sign. So you will need to take
          $$0le x+ylefracpi2quadhbox{and}quad
          fracpi2le x+ylefrac{3pi}2quadhbox{and}quad
          frac{3pi}2le x+yle2pi .$$
          Good luck!






          share|cite|improve this answer























            up vote
            6
            down vote



            accepted







            up vote
            6
            down vote



            accepted






            For the single integral case, "take the interval where $cos x$ is positive and multiply it by two" is rather misleading: what you are actually doing is splitting the region of integration into a part where $cos x$ is positive and a part where $cos x$ is negative, working out both and adding them. The two integrals are the same in this case, so you can just multiply by $2$.



            You can do the same for the double integral, but there is no guarantee that you will be adding equal integrals. You will need to subdivide the square of integration into bits where $cos(x+y)$ has a single sign. So you will need to take
            $$0le x+ylefracpi2quadhbox{and}quad
            fracpi2le x+ylefrac{3pi}2quadhbox{and}quad
            frac{3pi}2le x+yle2pi .$$
            Good luck!






            share|cite|improve this answer












            For the single integral case, "take the interval where $cos x$ is positive and multiply it by two" is rather misleading: what you are actually doing is splitting the region of integration into a part where $cos x$ is positive and a part where $cos x$ is negative, working out both and adding them. The two integrals are the same in this case, so you can just multiply by $2$.



            You can do the same for the double integral, but there is no guarantee that you will be adding equal integrals. You will need to subdivide the square of integration into bits where $cos(x+y)$ has a single sign. So you will need to take
            $$0le x+ylefracpi2quadhbox{and}quad
            fracpi2le x+ylefrac{3pi}2quadhbox{and}quad
            frac{3pi}2le x+yle2pi .$$
            Good luck!







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered May 19 '16 at 4:59









            David

            67.4k663126




            67.4k663126






















                up vote
                6
                down vote













                enter image description here



                We have $int_{x=0}^{pi/2}int_{y=0}^{pi/2-x}cos(x+y) dy dx-int_{x=0}^{pi/2}int_{y=pi/2-x}^{pi}cos(x+y) dy dx-int_{x=pi/2}^{pi}int_{y=0}^{3pi/2-x}cos(x+y_ dy dx+int_{x=pi/2}^{pi}int_{y=3pi/2-x}^{pi}cos(x+y) dy dx$.



                The first term is $int_0^{pi/2}(1-sin x) dx=pi/2-1$. The second term is $-int_0^{pi/2}(-1-sin x) dx=pi/2+1$. The third term is $-int_{pi/2}^{pi}(-1-sin x) dx=pi/2+1$, and the last term is $int_{pi/2}^{pi}(1-sin x) dx=pi/2-1$. Adding, we get $2pi$ for the original integral.






                share|cite|improve this answer

























                  up vote
                  6
                  down vote













                  enter image description here



                  We have $int_{x=0}^{pi/2}int_{y=0}^{pi/2-x}cos(x+y) dy dx-int_{x=0}^{pi/2}int_{y=pi/2-x}^{pi}cos(x+y) dy dx-int_{x=pi/2}^{pi}int_{y=0}^{3pi/2-x}cos(x+y_ dy dx+int_{x=pi/2}^{pi}int_{y=3pi/2-x}^{pi}cos(x+y) dy dx$.



                  The first term is $int_0^{pi/2}(1-sin x) dx=pi/2-1$. The second term is $-int_0^{pi/2}(-1-sin x) dx=pi/2+1$. The third term is $-int_{pi/2}^{pi}(-1-sin x) dx=pi/2+1$, and the last term is $int_{pi/2}^{pi}(1-sin x) dx=pi/2-1$. Adding, we get $2pi$ for the original integral.






                  share|cite|improve this answer























                    up vote
                    6
                    down vote










                    up vote
                    6
                    down vote









                    enter image description here



                    We have $int_{x=0}^{pi/2}int_{y=0}^{pi/2-x}cos(x+y) dy dx-int_{x=0}^{pi/2}int_{y=pi/2-x}^{pi}cos(x+y) dy dx-int_{x=pi/2}^{pi}int_{y=0}^{3pi/2-x}cos(x+y_ dy dx+int_{x=pi/2}^{pi}int_{y=3pi/2-x}^{pi}cos(x+y) dy dx$.



                    The first term is $int_0^{pi/2}(1-sin x) dx=pi/2-1$. The second term is $-int_0^{pi/2}(-1-sin x) dx=pi/2+1$. The third term is $-int_{pi/2}^{pi}(-1-sin x) dx=pi/2+1$, and the last term is $int_{pi/2}^{pi}(1-sin x) dx=pi/2-1$. Adding, we get $2pi$ for the original integral.






                    share|cite|improve this answer












                    enter image description here



                    We have $int_{x=0}^{pi/2}int_{y=0}^{pi/2-x}cos(x+y) dy dx-int_{x=0}^{pi/2}int_{y=pi/2-x}^{pi}cos(x+y) dy dx-int_{x=pi/2}^{pi}int_{y=0}^{3pi/2-x}cos(x+y_ dy dx+int_{x=pi/2}^{pi}int_{y=3pi/2-x}^{pi}cos(x+y) dy dx$.



                    The first term is $int_0^{pi/2}(1-sin x) dx=pi/2-1$. The second term is $-int_0^{pi/2}(-1-sin x) dx=pi/2+1$. The third term is $-int_{pi/2}^{pi}(-1-sin x) dx=pi/2+1$, and the last term is $int_{pi/2}^{pi}(1-sin x) dx=pi/2-1$. Adding, we get $2pi$ for the original integral.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered May 19 '16 at 5:35









                    almagest

                    12k1329




                    12k1329






















                        up vote
                        4
                        down vote













                        A handful of hints to get you started, each for different directions.



                        Most require you to just use some alternative definition of $cos(x)$, as mentioned in the comments...




                        • Use the piecewise definition of $left|cos(x+y)right|$, and add together the separate integrands

                        • Note that if $x,yinBbb R$, then $left|cos(x+y)right|=sqrt{cos^2(x+y)}$

                        • $cos(x+y)=cos(x) cos(y)-sin(x) sin(y)$

                        • You could always use the definition $cos(x+y)=frac 12 e^{-i x-i y}+frac 12 e^{i x+i y} $, but that can end up being much more difficult.


                        Start with the first suggestion, though. Try to redefine the function as a piecewise one. Here's a basic example of how a simple integral of an absolute value works from Paul's Online Notes (example 5):



                        $$int_0^3left|3t-5right|mathrm{d}t=int_0^{frac 5 3} 5-3t,mathrm{d}t+int_{frac 5 3}^3 3t-5,mathrm{d}t$$






                        share|cite|improve this answer

























                          up vote
                          4
                          down vote













                          A handful of hints to get you started, each for different directions.



                          Most require you to just use some alternative definition of $cos(x)$, as mentioned in the comments...




                          • Use the piecewise definition of $left|cos(x+y)right|$, and add together the separate integrands

                          • Note that if $x,yinBbb R$, then $left|cos(x+y)right|=sqrt{cos^2(x+y)}$

                          • $cos(x+y)=cos(x) cos(y)-sin(x) sin(y)$

                          • You could always use the definition $cos(x+y)=frac 12 e^{-i x-i y}+frac 12 e^{i x+i y} $, but that can end up being much more difficult.


                          Start with the first suggestion, though. Try to redefine the function as a piecewise one. Here's a basic example of how a simple integral of an absolute value works from Paul's Online Notes (example 5):



                          $$int_0^3left|3t-5right|mathrm{d}t=int_0^{frac 5 3} 5-3t,mathrm{d}t+int_{frac 5 3}^3 3t-5,mathrm{d}t$$






                          share|cite|improve this answer























                            up vote
                            4
                            down vote










                            up vote
                            4
                            down vote









                            A handful of hints to get you started, each for different directions.



                            Most require you to just use some alternative definition of $cos(x)$, as mentioned in the comments...




                            • Use the piecewise definition of $left|cos(x+y)right|$, and add together the separate integrands

                            • Note that if $x,yinBbb R$, then $left|cos(x+y)right|=sqrt{cos^2(x+y)}$

                            • $cos(x+y)=cos(x) cos(y)-sin(x) sin(y)$

                            • You could always use the definition $cos(x+y)=frac 12 e^{-i x-i y}+frac 12 e^{i x+i y} $, but that can end up being much more difficult.


                            Start with the first suggestion, though. Try to redefine the function as a piecewise one. Here's a basic example of how a simple integral of an absolute value works from Paul's Online Notes (example 5):



                            $$int_0^3left|3t-5right|mathrm{d}t=int_0^{frac 5 3} 5-3t,mathrm{d}t+int_{frac 5 3}^3 3t-5,mathrm{d}t$$






                            share|cite|improve this answer












                            A handful of hints to get you started, each for different directions.



                            Most require you to just use some alternative definition of $cos(x)$, as mentioned in the comments...




                            • Use the piecewise definition of $left|cos(x+y)right|$, and add together the separate integrands

                            • Note that if $x,yinBbb R$, then $left|cos(x+y)right|=sqrt{cos^2(x+y)}$

                            • $cos(x+y)=cos(x) cos(y)-sin(x) sin(y)$

                            • You could always use the definition $cos(x+y)=frac 12 e^{-i x-i y}+frac 12 e^{i x+i y} $, but that can end up being much more difficult.


                            Start with the first suggestion, though. Try to redefine the function as a piecewise one. Here's a basic example of how a simple integral of an absolute value works from Paul's Online Notes (example 5):



                            $$int_0^3left|3t-5right|mathrm{d}t=int_0^{frac 5 3} 5-3t,mathrm{d}t+int_{frac 5 3}^3 3t-5,mathrm{d}t$$







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered May 19 '16 at 4:55









                            galois

                            1,63411025




                            1,63411025






























                                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%2f1791264%2fdouble-integral-int-limits-0-pi-int-limits-0-pi-cosxy-dx-dy%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

                                Sphinx de Gizeh

                                Dijon

                                Équipe cycliste