Considering the work done from two different paths











up vote
0
down vote

favorite












I am to consider two paths traveled below:



enter image description here



With the following vector field:



$$vec F = frac{-y hat x + xhat y}{x^2+y^2}$$



And I am to consider the work done going from $(-1,0)$ to $(1,0)$ with the circular and straight path. The work integral is:



$$int_C vec F cdot dvec r$$



The circular path I find is relatively straightforward (as this vector field looks a lot nicer in polar), however computing the line path is something I have difficulties with. My work integral looks like:



$$W = int_{C} frac{-y}{x^2+y^2}dx + int_{C} frac{x}{x^2+y^2}dy$$



Where $C_1$ and $C_2$ represent each line of the path for $y=x +1$ and $y=-x+1$.



For the $dx$ integral, I need to work out how $y$ depends on $x$ for each line. I've called for the parametrization $y=x+1$ and $y=x-1$ for the appropriate line.



$$ int_{C} frac{-y}{x^2+y^2}dx = - int_{-1}^0 frac{x+1}{x^2 + (x+1)^2} + int_0^1 frac{-x+1}{x^2 + (-x+1)^2}$$



Apart from this looking quite hard to integrate, online calculators put each at$-pi/4$. However, the $y$ integral is something that's causing me difficulty. It goes from $0$ to $1$ to $0$, so I'll need to split it up into two integrals, but what parametrization would I use? Would it be $y=x+1 implies x = y -1$ for one integral and $y = x+1$ for the other? If so, how could I justify this other than a guess? If so, integrating this seemed to produce a messy answer that doesn't seem to look right, but that doesn't mean it's wrong. Is there a more efficient way to go about this?










share|cite|improve this question


























    up vote
    0
    down vote

    favorite












    I am to consider two paths traveled below:



    enter image description here



    With the following vector field:



    $$vec F = frac{-y hat x + xhat y}{x^2+y^2}$$



    And I am to consider the work done going from $(-1,0)$ to $(1,0)$ with the circular and straight path. The work integral is:



    $$int_C vec F cdot dvec r$$



    The circular path I find is relatively straightforward (as this vector field looks a lot nicer in polar), however computing the line path is something I have difficulties with. My work integral looks like:



    $$W = int_{C} frac{-y}{x^2+y^2}dx + int_{C} frac{x}{x^2+y^2}dy$$



    Where $C_1$ and $C_2$ represent each line of the path for $y=x +1$ and $y=-x+1$.



    For the $dx$ integral, I need to work out how $y$ depends on $x$ for each line. I've called for the parametrization $y=x+1$ and $y=x-1$ for the appropriate line.



    $$ int_{C} frac{-y}{x^2+y^2}dx = - int_{-1}^0 frac{x+1}{x^2 + (x+1)^2} + int_0^1 frac{-x+1}{x^2 + (-x+1)^2}$$



    Apart from this looking quite hard to integrate, online calculators put each at$-pi/4$. However, the $y$ integral is something that's causing me difficulty. It goes from $0$ to $1$ to $0$, so I'll need to split it up into two integrals, but what parametrization would I use? Would it be $y=x+1 implies x = y -1$ for one integral and $y = x+1$ for the other? If so, how could I justify this other than a guess? If so, integrating this seemed to produce a messy answer that doesn't seem to look right, but that doesn't mean it's wrong. Is there a more efficient way to go about this?










    share|cite|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am to consider two paths traveled below:



      enter image description here



      With the following vector field:



      $$vec F = frac{-y hat x + xhat y}{x^2+y^2}$$



      And I am to consider the work done going from $(-1,0)$ to $(1,0)$ with the circular and straight path. The work integral is:



      $$int_C vec F cdot dvec r$$



      The circular path I find is relatively straightforward (as this vector field looks a lot nicer in polar), however computing the line path is something I have difficulties with. My work integral looks like:



      $$W = int_{C} frac{-y}{x^2+y^2}dx + int_{C} frac{x}{x^2+y^2}dy$$



      Where $C_1$ and $C_2$ represent each line of the path for $y=x +1$ and $y=-x+1$.



      For the $dx$ integral, I need to work out how $y$ depends on $x$ for each line. I've called for the parametrization $y=x+1$ and $y=x-1$ for the appropriate line.



      $$ int_{C} frac{-y}{x^2+y^2}dx = - int_{-1}^0 frac{x+1}{x^2 + (x+1)^2} + int_0^1 frac{-x+1}{x^2 + (-x+1)^2}$$



      Apart from this looking quite hard to integrate, online calculators put each at$-pi/4$. However, the $y$ integral is something that's causing me difficulty. It goes from $0$ to $1$ to $0$, so I'll need to split it up into two integrals, but what parametrization would I use? Would it be $y=x+1 implies x = y -1$ for one integral and $y = x+1$ for the other? If so, how could I justify this other than a guess? If so, integrating this seemed to produce a messy answer that doesn't seem to look right, but that doesn't mean it's wrong. Is there a more efficient way to go about this?










      share|cite|improve this question













      I am to consider two paths traveled below:



      enter image description here



      With the following vector field:



      $$vec F = frac{-y hat x + xhat y}{x^2+y^2}$$



      And I am to consider the work done going from $(-1,0)$ to $(1,0)$ with the circular and straight path. The work integral is:



      $$int_C vec F cdot dvec r$$



      The circular path I find is relatively straightforward (as this vector field looks a lot nicer in polar), however computing the line path is something I have difficulties with. My work integral looks like:



      $$W = int_{C} frac{-y}{x^2+y^2}dx + int_{C} frac{x}{x^2+y^2}dy$$



      Where $C_1$ and $C_2$ represent each line of the path for $y=x +1$ and $y=-x+1$.



      For the $dx$ integral, I need to work out how $y$ depends on $x$ for each line. I've called for the parametrization $y=x+1$ and $y=x-1$ for the appropriate line.



      $$ int_{C} frac{-y}{x^2+y^2}dx = - int_{-1}^0 frac{x+1}{x^2 + (x+1)^2} + int_0^1 frac{-x+1}{x^2 + (-x+1)^2}$$



      Apart from this looking quite hard to integrate, online calculators put each at$-pi/4$. However, the $y$ integral is something that's causing me difficulty. It goes from $0$ to $1$ to $0$, so I'll need to split it up into two integrals, but what parametrization would I use? Would it be $y=x+1 implies x = y -1$ for one integral and $y = x+1$ for the other? If so, how could I justify this other than a guess? If so, integrating this seemed to produce a messy answer that doesn't seem to look right, but that doesn't mean it's wrong. Is there a more efficient way to go about this?







      vector-analysis contour-integration






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Nov 13 at 22:29









      sangstar

      808214




      808214






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Along the path:
          $x+y = 1$



          let $x = 1-t, y = t$



          $x' = -1, y' = 1$



          $int_0^1 frac {-y x' + x y'}{x^2 + y^2} dt \
          int_0^1 frac {1}{t^2 -2t + 1 + t^2} dt \
          int_0^1 frac {1}{2t^2 - 2t + 1} dt \
          int_0^1 frac {1}{2(t^2 - t + frac 14) + frac 12} dt \
          int_0^1 frac {1}{2(t - frac 12)^2 + frac 12} dt $



          We need a substitution.



          We might have avoided it had we chosen a different peramiterization at the beginning... oh well.



          $t - frac 12 =frac {1}{2}tantheta\
          dt = frac {1}{2}sec^2theta$



          $frac{1}{2}int_{-frac {pi}{4}}^{frac {pi}{4}} frac {sec^2theta}{frac 12 sec^2theta} dtheta \
          int_{-frac {pi}{4}}^{frac {pi}{4}} dtheta \
          frac {pi}{2}$



          And I suspect you will get the identical answer when we look at



          $y-x = 1$



          In hindsight, $F(x,y)$ is a conservative force.



          $nabla (arctan frac yx) = F(x,y)$



          Which means that all path integrals with the same endpoints will be the same.






          share|cite|improve this answer























          • Even paths that enclose the origin?
            – amd
            Nov 14 at 1:14










          • I have reversed limits. For me, $F cdot dr/dt = y/(x^2+y^2) + x/(x^2+y^2)$ and the limits for $x = 0$ and $x=1$ for $t$ if $x = 1-t$ should be $ x = 0 implies t = 1$ and $x =1 implies t = 0$ which gives me an answer of $-pi/2$ for this.
            – sangstar
            Nov 14 at 12:00












          • @amd The path discussed here does not enclose the origin. If you have a conservative field with a discontinuity, all paths that enclose the discontinuity will evaluate the same but they will not necessarily be 0.
            – Doug M
            Nov 14 at 17:23












          • @sangstar I see the error of my ways. I thought we were traveling from (1,0) to (0,1) to (-1,0) in a counter-clockwise trip. Counterclockwise is just so much more common in these sorts of problems. That will indeed flip the sign.
            – Doug M
            Nov 14 at 17:27










          • But then it’s not the case the “all path integrals with the same endpoints will be the same.” That’s what I was too obliquely picking on.
            – amd
            Nov 14 at 19:42











          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%2f2997436%2fconsidering-the-work-done-from-two-different-paths%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Along the path:
          $x+y = 1$



          let $x = 1-t, y = t$



          $x' = -1, y' = 1$



          $int_0^1 frac {-y x' + x y'}{x^2 + y^2} dt \
          int_0^1 frac {1}{t^2 -2t + 1 + t^2} dt \
          int_0^1 frac {1}{2t^2 - 2t + 1} dt \
          int_0^1 frac {1}{2(t^2 - t + frac 14) + frac 12} dt \
          int_0^1 frac {1}{2(t - frac 12)^2 + frac 12} dt $



          We need a substitution.



          We might have avoided it had we chosen a different peramiterization at the beginning... oh well.



          $t - frac 12 =frac {1}{2}tantheta\
          dt = frac {1}{2}sec^2theta$



          $frac{1}{2}int_{-frac {pi}{4}}^{frac {pi}{4}} frac {sec^2theta}{frac 12 sec^2theta} dtheta \
          int_{-frac {pi}{4}}^{frac {pi}{4}} dtheta \
          frac {pi}{2}$



          And I suspect you will get the identical answer when we look at



          $y-x = 1$



          In hindsight, $F(x,y)$ is a conservative force.



          $nabla (arctan frac yx) = F(x,y)$



          Which means that all path integrals with the same endpoints will be the same.






          share|cite|improve this answer























          • Even paths that enclose the origin?
            – amd
            Nov 14 at 1:14










          • I have reversed limits. For me, $F cdot dr/dt = y/(x^2+y^2) + x/(x^2+y^2)$ and the limits for $x = 0$ and $x=1$ for $t$ if $x = 1-t$ should be $ x = 0 implies t = 1$ and $x =1 implies t = 0$ which gives me an answer of $-pi/2$ for this.
            – sangstar
            Nov 14 at 12:00












          • @amd The path discussed here does not enclose the origin. If you have a conservative field with a discontinuity, all paths that enclose the discontinuity will evaluate the same but they will not necessarily be 0.
            – Doug M
            Nov 14 at 17:23












          • @sangstar I see the error of my ways. I thought we were traveling from (1,0) to (0,1) to (-1,0) in a counter-clockwise trip. Counterclockwise is just so much more common in these sorts of problems. That will indeed flip the sign.
            – Doug M
            Nov 14 at 17:27










          • But then it’s not the case the “all path integrals with the same endpoints will be the same.” That’s what I was too obliquely picking on.
            – amd
            Nov 14 at 19:42















          up vote
          0
          down vote













          Along the path:
          $x+y = 1$



          let $x = 1-t, y = t$



          $x' = -1, y' = 1$



          $int_0^1 frac {-y x' + x y'}{x^2 + y^2} dt \
          int_0^1 frac {1}{t^2 -2t + 1 + t^2} dt \
          int_0^1 frac {1}{2t^2 - 2t + 1} dt \
          int_0^1 frac {1}{2(t^2 - t + frac 14) + frac 12} dt \
          int_0^1 frac {1}{2(t - frac 12)^2 + frac 12} dt $



          We need a substitution.



          We might have avoided it had we chosen a different peramiterization at the beginning... oh well.



          $t - frac 12 =frac {1}{2}tantheta\
          dt = frac {1}{2}sec^2theta$



          $frac{1}{2}int_{-frac {pi}{4}}^{frac {pi}{4}} frac {sec^2theta}{frac 12 sec^2theta} dtheta \
          int_{-frac {pi}{4}}^{frac {pi}{4}} dtheta \
          frac {pi}{2}$



          And I suspect you will get the identical answer when we look at



          $y-x = 1$



          In hindsight, $F(x,y)$ is a conservative force.



          $nabla (arctan frac yx) = F(x,y)$



          Which means that all path integrals with the same endpoints will be the same.






          share|cite|improve this answer























          • Even paths that enclose the origin?
            – amd
            Nov 14 at 1:14










          • I have reversed limits. For me, $F cdot dr/dt = y/(x^2+y^2) + x/(x^2+y^2)$ and the limits for $x = 0$ and $x=1$ for $t$ if $x = 1-t$ should be $ x = 0 implies t = 1$ and $x =1 implies t = 0$ which gives me an answer of $-pi/2$ for this.
            – sangstar
            Nov 14 at 12:00












          • @amd The path discussed here does not enclose the origin. If you have a conservative field with a discontinuity, all paths that enclose the discontinuity will evaluate the same but they will not necessarily be 0.
            – Doug M
            Nov 14 at 17:23












          • @sangstar I see the error of my ways. I thought we were traveling from (1,0) to (0,1) to (-1,0) in a counter-clockwise trip. Counterclockwise is just so much more common in these sorts of problems. That will indeed flip the sign.
            – Doug M
            Nov 14 at 17:27










          • But then it’s not the case the “all path integrals with the same endpoints will be the same.” That’s what I was too obliquely picking on.
            – amd
            Nov 14 at 19:42













          up vote
          0
          down vote










          up vote
          0
          down vote









          Along the path:
          $x+y = 1$



          let $x = 1-t, y = t$



          $x' = -1, y' = 1$



          $int_0^1 frac {-y x' + x y'}{x^2 + y^2} dt \
          int_0^1 frac {1}{t^2 -2t + 1 + t^2} dt \
          int_0^1 frac {1}{2t^2 - 2t + 1} dt \
          int_0^1 frac {1}{2(t^2 - t + frac 14) + frac 12} dt \
          int_0^1 frac {1}{2(t - frac 12)^2 + frac 12} dt $



          We need a substitution.



          We might have avoided it had we chosen a different peramiterization at the beginning... oh well.



          $t - frac 12 =frac {1}{2}tantheta\
          dt = frac {1}{2}sec^2theta$



          $frac{1}{2}int_{-frac {pi}{4}}^{frac {pi}{4}} frac {sec^2theta}{frac 12 sec^2theta} dtheta \
          int_{-frac {pi}{4}}^{frac {pi}{4}} dtheta \
          frac {pi}{2}$



          And I suspect you will get the identical answer when we look at



          $y-x = 1$



          In hindsight, $F(x,y)$ is a conservative force.



          $nabla (arctan frac yx) = F(x,y)$



          Which means that all path integrals with the same endpoints will be the same.






          share|cite|improve this answer














          Along the path:
          $x+y = 1$



          let $x = 1-t, y = t$



          $x' = -1, y' = 1$



          $int_0^1 frac {-y x' + x y'}{x^2 + y^2} dt \
          int_0^1 frac {1}{t^2 -2t + 1 + t^2} dt \
          int_0^1 frac {1}{2t^2 - 2t + 1} dt \
          int_0^1 frac {1}{2(t^2 - t + frac 14) + frac 12} dt \
          int_0^1 frac {1}{2(t - frac 12)^2 + frac 12} dt $



          We need a substitution.



          We might have avoided it had we chosen a different peramiterization at the beginning... oh well.



          $t - frac 12 =frac {1}{2}tantheta\
          dt = frac {1}{2}sec^2theta$



          $frac{1}{2}int_{-frac {pi}{4}}^{frac {pi}{4}} frac {sec^2theta}{frac 12 sec^2theta} dtheta \
          int_{-frac {pi}{4}}^{frac {pi}{4}} dtheta \
          frac {pi}{2}$



          And I suspect you will get the identical answer when we look at



          $y-x = 1$



          In hindsight, $F(x,y)$ is a conservative force.



          $nabla (arctan frac yx) = F(x,y)$



          Which means that all path integrals with the same endpoints will be the same.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Nov 13 at 23:16

























          answered Nov 13 at 22:51









          Doug M

          42.6k31752




          42.6k31752












          • Even paths that enclose the origin?
            – amd
            Nov 14 at 1:14










          • I have reversed limits. For me, $F cdot dr/dt = y/(x^2+y^2) + x/(x^2+y^2)$ and the limits for $x = 0$ and $x=1$ for $t$ if $x = 1-t$ should be $ x = 0 implies t = 1$ and $x =1 implies t = 0$ which gives me an answer of $-pi/2$ for this.
            – sangstar
            Nov 14 at 12:00












          • @amd The path discussed here does not enclose the origin. If you have a conservative field with a discontinuity, all paths that enclose the discontinuity will evaluate the same but they will not necessarily be 0.
            – Doug M
            Nov 14 at 17:23












          • @sangstar I see the error of my ways. I thought we were traveling from (1,0) to (0,1) to (-1,0) in a counter-clockwise trip. Counterclockwise is just so much more common in these sorts of problems. That will indeed flip the sign.
            – Doug M
            Nov 14 at 17:27










          • But then it’s not the case the “all path integrals with the same endpoints will be the same.” That’s what I was too obliquely picking on.
            – amd
            Nov 14 at 19:42


















          • Even paths that enclose the origin?
            – amd
            Nov 14 at 1:14










          • I have reversed limits. For me, $F cdot dr/dt = y/(x^2+y^2) + x/(x^2+y^2)$ and the limits for $x = 0$ and $x=1$ for $t$ if $x = 1-t$ should be $ x = 0 implies t = 1$ and $x =1 implies t = 0$ which gives me an answer of $-pi/2$ for this.
            – sangstar
            Nov 14 at 12:00












          • @amd The path discussed here does not enclose the origin. If you have a conservative field with a discontinuity, all paths that enclose the discontinuity will evaluate the same but they will not necessarily be 0.
            – Doug M
            Nov 14 at 17:23












          • @sangstar I see the error of my ways. I thought we were traveling from (1,0) to (0,1) to (-1,0) in a counter-clockwise trip. Counterclockwise is just so much more common in these sorts of problems. That will indeed flip the sign.
            – Doug M
            Nov 14 at 17:27










          • But then it’s not the case the “all path integrals with the same endpoints will be the same.” That’s what I was too obliquely picking on.
            – amd
            Nov 14 at 19:42
















          Even paths that enclose the origin?
          – amd
          Nov 14 at 1:14




          Even paths that enclose the origin?
          – amd
          Nov 14 at 1:14












          I have reversed limits. For me, $F cdot dr/dt = y/(x^2+y^2) + x/(x^2+y^2)$ and the limits for $x = 0$ and $x=1$ for $t$ if $x = 1-t$ should be $ x = 0 implies t = 1$ and $x =1 implies t = 0$ which gives me an answer of $-pi/2$ for this.
          – sangstar
          Nov 14 at 12:00






          I have reversed limits. For me, $F cdot dr/dt = y/(x^2+y^2) + x/(x^2+y^2)$ and the limits for $x = 0$ and $x=1$ for $t$ if $x = 1-t$ should be $ x = 0 implies t = 1$ and $x =1 implies t = 0$ which gives me an answer of $-pi/2$ for this.
          – sangstar
          Nov 14 at 12:00














          @amd The path discussed here does not enclose the origin. If you have a conservative field with a discontinuity, all paths that enclose the discontinuity will evaluate the same but they will not necessarily be 0.
          – Doug M
          Nov 14 at 17:23






          @amd The path discussed here does not enclose the origin. If you have a conservative field with a discontinuity, all paths that enclose the discontinuity will evaluate the same but they will not necessarily be 0.
          – Doug M
          Nov 14 at 17:23














          @sangstar I see the error of my ways. I thought we were traveling from (1,0) to (0,1) to (-1,0) in a counter-clockwise trip. Counterclockwise is just so much more common in these sorts of problems. That will indeed flip the sign.
          – Doug M
          Nov 14 at 17:27




          @sangstar I see the error of my ways. I thought we were traveling from (1,0) to (0,1) to (-1,0) in a counter-clockwise trip. Counterclockwise is just so much more common in these sorts of problems. That will indeed flip the sign.
          – Doug M
          Nov 14 at 17:27












          But then it’s not the case the “all path integrals with the same endpoints will be the same.” That’s what I was too obliquely picking on.
          – amd
          Nov 14 at 19:42




          But then it’s not the case the “all path integrals with the same endpoints will be the same.” That’s what I was too obliquely picking on.
          – amd
          Nov 14 at 19:42


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2997436%2fconsidering-the-work-done-from-two-different-paths%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

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?