Why did we divide the region R into three regions?

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











up vote
1
down vote

favorite












enter image description here



Here I cannot understand why we divided the region R into three while computing the expected value of |x-y|







share|cite|improve this question



















  • Do you understand that doing so actually leads to the desired result?
    – Henning Makholm
    Jul 24 at 20:49











  • Have you drawn a picture? I think than will make it plain.
    – saulspatz
    Jul 24 at 20:51










  • There's usually more than one way to solve a problem like this. I think it can be done with just two regions if you make all your integrals be of the form $int dyint dx ldots.$ But you try putting the two $int dxint dy$ integrals in this solution together to make one region, and see how easily you can say what the bounds of the $dy$ integral should be.
    – David K
    Jul 24 at 20:54














up vote
1
down vote

favorite












enter image description here



Here I cannot understand why we divided the region R into three while computing the expected value of |x-y|







share|cite|improve this question



















  • Do you understand that doing so actually leads to the desired result?
    – Henning Makholm
    Jul 24 at 20:49











  • Have you drawn a picture? I think than will make it plain.
    – saulspatz
    Jul 24 at 20:51










  • There's usually more than one way to solve a problem like this. I think it can be done with just two regions if you make all your integrals be of the form $int dyint dx ldots.$ But you try putting the two $int dxint dy$ integrals in this solution together to make one region, and see how easily you can say what the bounds of the $dy$ integral should be.
    – David K
    Jul 24 at 20:54












up vote
1
down vote

favorite









up vote
1
down vote

favorite











enter image description here



Here I cannot understand why we divided the region R into three while computing the expected value of |x-y|







share|cite|improve this question











enter image description here



Here I cannot understand why we divided the region R into three while computing the expected value of |x-y|









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Jul 24 at 20:43









Roy Rizk

887




887











  • Do you understand that doing so actually leads to the desired result?
    – Henning Makholm
    Jul 24 at 20:49











  • Have you drawn a picture? I think than will make it plain.
    – saulspatz
    Jul 24 at 20:51










  • There's usually more than one way to solve a problem like this. I think it can be done with just two regions if you make all your integrals be of the form $int dyint dx ldots.$ But you try putting the two $int dxint dy$ integrals in this solution together to make one region, and see how easily you can say what the bounds of the $dy$ integral should be.
    – David K
    Jul 24 at 20:54
















  • Do you understand that doing so actually leads to the desired result?
    – Henning Makholm
    Jul 24 at 20:49











  • Have you drawn a picture? I think than will make it plain.
    – saulspatz
    Jul 24 at 20:51










  • There's usually more than one way to solve a problem like this. I think it can be done with just two regions if you make all your integrals be of the form $int dyint dx ldots.$ But you try putting the two $int dxint dy$ integrals in this solution together to make one region, and see how easily you can say what the bounds of the $dy$ integral should be.
    – David K
    Jul 24 at 20:54















Do you understand that doing so actually leads to the desired result?
– Henning Makholm
Jul 24 at 20:49





Do you understand that doing so actually leads to the desired result?
– Henning Makholm
Jul 24 at 20:49













Have you drawn a picture? I think than will make it plain.
– saulspatz
Jul 24 at 20:51




Have you drawn a picture? I think than will make it plain.
– saulspatz
Jul 24 at 20:51












There's usually more than one way to solve a problem like this. I think it can be done with just two regions if you make all your integrals be of the form $int dyint dx ldots.$ But you try putting the two $int dxint dy$ integrals in this solution together to make one region, and see how easily you can say what the bounds of the $dy$ integral should be.
– David K
Jul 24 at 20:54




There's usually more than one way to solve a problem like this. I think it can be done with just two regions if you make all your integrals be of the form $int dyint dx ldots.$ But you try putting the two $int dxint dy$ integrals in this solution together to make one region, and see how easily you can say what the bounds of the $dy$ integral should be.
– David K
Jul 24 at 20:54










2 Answers
2






active

oldest

votes

















up vote
0
down vote













When $1<x<2$, $y$ is necessarily less than $x$. That's one region.
when $0<x<1$, there are two sub-regions: $y<x$ (that's the second integral) and $y>x$ (that's the third).






share|cite|improve this answer




























    up vote
    0
    down vote













    The entire region of integration includes some points where $x - y$ is positive and some where $x - y$ is negative.
    This makes it very awkward to integrate in just one integral; do you see why?



    So we are going to have at least two regions of integration.
    One region is the triangle with vertices $(0,0),$ $(0,1),$ and $(1,1),$
    and the other is the trapezoid with vertices
    $(0,0),$ $(1,1),$ $(2,1),$ and $(2,0).$



    If you decide the outer integral should be the integral over $dx,$
    and the inner integral will integrate over $dy,$ then it is hard to integrate over the trapezoid using just one region: for $0 < x < 1,$ the upper bound on $y$ is given by $y = x,$ but for $1 < x < 2$ it is given by $y = 1.$



    But actually it is not necessary to use three regions (one for the triangle and two for the trapezoid); the writer of this solution merely found it convenient.



    It turns out that two regions actually are sufficient.
    You can integrate over the trapezoid this way:
    $$
    frac35 int_0^1 dy int_y^2 dx , (x - y)x(y+y^2).
    $$



    You can substitute this integral into the solution instead of the sum of integrals
    $$frac35 int_1^2 dx int_0^1 dy , (x - y)x(y+y^2)+
    frac35 int_0^1 dx int_0^x dy , (x - y)x(y+y^2).$$






    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: 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%2f2861753%2fwhy-did-we-divide-the-region-r-into-three-regions%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      When $1<x<2$, $y$ is necessarily less than $x$. That's one region.
      when $0<x<1$, there are two sub-regions: $y<x$ (that's the second integral) and $y>x$ (that's the third).






      share|cite|improve this answer

























        up vote
        0
        down vote













        When $1<x<2$, $y$ is necessarily less than $x$. That's one region.
        when $0<x<1$, there are two sub-regions: $y<x$ (that's the second integral) and $y>x$ (that's the third).






        share|cite|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          When $1<x<2$, $y$ is necessarily less than $x$. That's one region.
          when $0<x<1$, there are two sub-regions: $y<x$ (that's the second integral) and $y>x$ (that's the third).






          share|cite|improve this answer













          When $1<x<2$, $y$ is necessarily less than $x$. That's one region.
          when $0<x<1$, there are two sub-regions: $y<x$ (that's the second integral) and $y>x$ (that's the third).







          share|cite|improve this answer













          share|cite|improve this answer



          share|cite|improve this answer











          answered Jul 24 at 20:51









          Alon Amit

          10.2k3765




          10.2k3765




















              up vote
              0
              down vote













              The entire region of integration includes some points where $x - y$ is positive and some where $x - y$ is negative.
              This makes it very awkward to integrate in just one integral; do you see why?



              So we are going to have at least two regions of integration.
              One region is the triangle with vertices $(0,0),$ $(0,1),$ and $(1,1),$
              and the other is the trapezoid with vertices
              $(0,0),$ $(1,1),$ $(2,1),$ and $(2,0).$



              If you decide the outer integral should be the integral over $dx,$
              and the inner integral will integrate over $dy,$ then it is hard to integrate over the trapezoid using just one region: for $0 < x < 1,$ the upper bound on $y$ is given by $y = x,$ but for $1 < x < 2$ it is given by $y = 1.$



              But actually it is not necessary to use three regions (one for the triangle and two for the trapezoid); the writer of this solution merely found it convenient.



              It turns out that two regions actually are sufficient.
              You can integrate over the trapezoid this way:
              $$
              frac35 int_0^1 dy int_y^2 dx , (x - y)x(y+y^2).
              $$



              You can substitute this integral into the solution instead of the sum of integrals
              $$frac35 int_1^2 dx int_0^1 dy , (x - y)x(y+y^2)+
              frac35 int_0^1 dx int_0^x dy , (x - y)x(y+y^2).$$






              share|cite|improve this answer

























                up vote
                0
                down vote













                The entire region of integration includes some points where $x - y$ is positive and some where $x - y$ is negative.
                This makes it very awkward to integrate in just one integral; do you see why?



                So we are going to have at least two regions of integration.
                One region is the triangle with vertices $(0,0),$ $(0,1),$ and $(1,1),$
                and the other is the trapezoid with vertices
                $(0,0),$ $(1,1),$ $(2,1),$ and $(2,0).$



                If you decide the outer integral should be the integral over $dx,$
                and the inner integral will integrate over $dy,$ then it is hard to integrate over the trapezoid using just one region: for $0 < x < 1,$ the upper bound on $y$ is given by $y = x,$ but for $1 < x < 2$ it is given by $y = 1.$



                But actually it is not necessary to use three regions (one for the triangle and two for the trapezoid); the writer of this solution merely found it convenient.



                It turns out that two regions actually are sufficient.
                You can integrate over the trapezoid this way:
                $$
                frac35 int_0^1 dy int_y^2 dx , (x - y)x(y+y^2).
                $$



                You can substitute this integral into the solution instead of the sum of integrals
                $$frac35 int_1^2 dx int_0^1 dy , (x - y)x(y+y^2)+
                frac35 int_0^1 dx int_0^x dy , (x - y)x(y+y^2).$$






                share|cite|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  The entire region of integration includes some points where $x - y$ is positive and some where $x - y$ is negative.
                  This makes it very awkward to integrate in just one integral; do you see why?



                  So we are going to have at least two regions of integration.
                  One region is the triangle with vertices $(0,0),$ $(0,1),$ and $(1,1),$
                  and the other is the trapezoid with vertices
                  $(0,0),$ $(1,1),$ $(2,1),$ and $(2,0).$



                  If you decide the outer integral should be the integral over $dx,$
                  and the inner integral will integrate over $dy,$ then it is hard to integrate over the trapezoid using just one region: for $0 < x < 1,$ the upper bound on $y$ is given by $y = x,$ but for $1 < x < 2$ it is given by $y = 1.$



                  But actually it is not necessary to use three regions (one for the triangle and two for the trapezoid); the writer of this solution merely found it convenient.



                  It turns out that two regions actually are sufficient.
                  You can integrate over the trapezoid this way:
                  $$
                  frac35 int_0^1 dy int_y^2 dx , (x - y)x(y+y^2).
                  $$



                  You can substitute this integral into the solution instead of the sum of integrals
                  $$frac35 int_1^2 dx int_0^1 dy , (x - y)x(y+y^2)+
                  frac35 int_0^1 dx int_0^x dy , (x - y)x(y+y^2).$$






                  share|cite|improve this answer













                  The entire region of integration includes some points where $x - y$ is positive and some where $x - y$ is negative.
                  This makes it very awkward to integrate in just one integral; do you see why?



                  So we are going to have at least two regions of integration.
                  One region is the triangle with vertices $(0,0),$ $(0,1),$ and $(1,1),$
                  and the other is the trapezoid with vertices
                  $(0,0),$ $(1,1),$ $(2,1),$ and $(2,0).$



                  If you decide the outer integral should be the integral over $dx,$
                  and the inner integral will integrate over $dy,$ then it is hard to integrate over the trapezoid using just one region: for $0 < x < 1,$ the upper bound on $y$ is given by $y = x,$ but for $1 < x < 2$ it is given by $y = 1.$



                  But actually it is not necessary to use three regions (one for the triangle and two for the trapezoid); the writer of this solution merely found it convenient.



                  It turns out that two regions actually are sufficient.
                  You can integrate over the trapezoid this way:
                  $$
                  frac35 int_0^1 dy int_y^2 dx , (x - y)x(y+y^2).
                  $$



                  You can substitute this integral into the solution instead of the sum of integrals
                  $$frac35 int_1^2 dx int_0^1 dy , (x - y)x(y+y^2)+
                  frac35 int_0^1 dx int_0^x dy , (x - y)x(y+y^2).$$







                  share|cite|improve this answer













                  share|cite|improve this answer



                  share|cite|improve this answer











                  answered Jul 25 at 5:42









                  David K

                  48.2k340107




                  48.2k340107






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2861753%2fwhy-did-we-divide-the-region-r-into-three-regions%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      What is the equation of a 3D cone with generalised tilt?

                      Color the edges and diagonals of a regular polygon

                      Relationship between determinant of matrix and determinant of adjoint?