How to use Mathematica to do a complex integrate with poles in real axis?

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












10












$begingroup$


I want to use Mathematica to compute the following complex integral:



Integrate[Exp[I z ] 1/z, z, -Infinity, Infinity]


Mathematica reports that it does not converge on -Infinity, Infinity.



But, from the textbook, we know, the result is I Pi.



Of course, if I use NIntegrate, then, Mathematica will give 0. + 3.14 I.










share|improve this question











$endgroup$
















    10












    $begingroup$


    I want to use Mathematica to compute the following complex integral:



    Integrate[Exp[I z ] 1/z, z, -Infinity, Infinity]


    Mathematica reports that it does not converge on -Infinity, Infinity.



    But, from the textbook, we know, the result is I Pi.



    Of course, if I use NIntegrate, then, Mathematica will give 0. + 3.14 I.










    share|improve this question











    $endgroup$














      10












      10








      10


      2



      $begingroup$


      I want to use Mathematica to compute the following complex integral:



      Integrate[Exp[I z ] 1/z, z, -Infinity, Infinity]


      Mathematica reports that it does not converge on -Infinity, Infinity.



      But, from the textbook, we know, the result is I Pi.



      Of course, if I use NIntegrate, then, Mathematica will give 0. + 3.14 I.










      share|improve this question











      $endgroup$




      I want to use Mathematica to compute the following complex integral:



      Integrate[Exp[I z ] 1/z, z, -Infinity, Infinity]


      Mathematica reports that it does not converge on -Infinity, Infinity.



      But, from the textbook, we know, the result is I Pi.



      Of course, if I use NIntegrate, then, Mathematica will give 0. + 3.14 I.







      calculus-and-analysis complex






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 1 at 9:33









      J. M. is slightly pensive

      98.5k10308466




      98.5k10308466










      asked Feb 27 at 7:31









      MPHYKEKMPHYKEK

      864




      864




















          3 Answers
          3






          active

          oldest

          votes


















          9












          $begingroup$

          Try



          Integrate[Exp[I z] 1/z, z, -Infinity, Infinity,PrincipalValue -> True]
          (*I π*)





          share|improve this answer











          $endgroup$




















            9












            $begingroup$

            One can also consider using the residue theorem. The residue is readily obtained by



            Residue[Exp[I z] 1/z, z, 0]


            returning 1, which means that the integral is $ mathrm i pi $.






            share|improve this answer









            $endgroup$












            • $begingroup$
              This for me is the most satisfactory solution.
              $endgroup$
              – J. M. is slightly pensive
              Mar 1 at 9:32










            • $begingroup$
              @J.M.iscomputer-less Thank you for your comment.
              $endgroup$
              – Αλέξανδρος Ζεγγ
              Mar 1 at 11:37


















            4












            $begingroup$

            If you are sure about your integral's behavior you can try



            Integrate[Exp[I z] 1/z, z, -Infinity, Infinity, 
            GenerateConditions -> False]
            (* I π *)





            share|improve this answer









            $endgroup$












              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: "387"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

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

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192291%2fhow-to-use-mathematica-to-do-a-complex-integrate-with-poles-in-real-axis%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









              9












              $begingroup$

              Try



              Integrate[Exp[I z] 1/z, z, -Infinity, Infinity,PrincipalValue -> True]
              (*I π*)





              share|improve this answer











              $endgroup$

















                9












                $begingroup$

                Try



                Integrate[Exp[I z] 1/z, z, -Infinity, Infinity,PrincipalValue -> True]
                (*I π*)





                share|improve this answer











                $endgroup$















                  9












                  9








                  9





                  $begingroup$

                  Try



                  Integrate[Exp[I z] 1/z, z, -Infinity, Infinity,PrincipalValue -> True]
                  (*I π*)





                  share|improve this answer











                  $endgroup$



                  Try



                  Integrate[Exp[I z] 1/z, z, -Infinity, Infinity,PrincipalValue -> True]
                  (*I π*)






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Feb 27 at 15:32









                  Dimitris

                  2,2511332




                  2,2511332










                  answered Feb 27 at 7:35









                  Ulrich NeumannUlrich Neumann

                  9,568617




                  9,568617





















                      9












                      $begingroup$

                      One can also consider using the residue theorem. The residue is readily obtained by



                      Residue[Exp[I z] 1/z, z, 0]


                      returning 1, which means that the integral is $ mathrm i pi $.






                      share|improve this answer









                      $endgroup$












                      • $begingroup$
                        This for me is the most satisfactory solution.
                        $endgroup$
                        – J. M. is slightly pensive
                        Mar 1 at 9:32










                      • $begingroup$
                        @J.M.iscomputer-less Thank you for your comment.
                        $endgroup$
                        – Αλέξανδρος Ζεγγ
                        Mar 1 at 11:37















                      9












                      $begingroup$

                      One can also consider using the residue theorem. The residue is readily obtained by



                      Residue[Exp[I z] 1/z, z, 0]


                      returning 1, which means that the integral is $ mathrm i pi $.






                      share|improve this answer









                      $endgroup$












                      • $begingroup$
                        This for me is the most satisfactory solution.
                        $endgroup$
                        – J. M. is slightly pensive
                        Mar 1 at 9:32










                      • $begingroup$
                        @J.M.iscomputer-less Thank you for your comment.
                        $endgroup$
                        – Αλέξανδρος Ζεγγ
                        Mar 1 at 11:37













                      9












                      9








                      9





                      $begingroup$

                      One can also consider using the residue theorem. The residue is readily obtained by



                      Residue[Exp[I z] 1/z, z, 0]


                      returning 1, which means that the integral is $ mathrm i pi $.






                      share|improve this answer









                      $endgroup$



                      One can also consider using the residue theorem. The residue is readily obtained by



                      Residue[Exp[I z] 1/z, z, 0]


                      returning 1, which means that the integral is $ mathrm i pi $.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Feb 27 at 8:13









                      Αλέξανδρος ΖεγγΑλέξανδρος Ζεγγ

                      4,44011029




                      4,44011029











                      • $begingroup$
                        This for me is the most satisfactory solution.
                        $endgroup$
                        – J. M. is slightly pensive
                        Mar 1 at 9:32










                      • $begingroup$
                        @J.M.iscomputer-less Thank you for your comment.
                        $endgroup$
                        – Αλέξανδρος Ζεγγ
                        Mar 1 at 11:37
















                      • $begingroup$
                        This for me is the most satisfactory solution.
                        $endgroup$
                        – J. M. is slightly pensive
                        Mar 1 at 9:32










                      • $begingroup$
                        @J.M.iscomputer-less Thank you for your comment.
                        $endgroup$
                        – Αλέξανδρος Ζεγγ
                        Mar 1 at 11:37















                      $begingroup$
                      This for me is the most satisfactory solution.
                      $endgroup$
                      – J. M. is slightly pensive
                      Mar 1 at 9:32




                      $begingroup$
                      This for me is the most satisfactory solution.
                      $endgroup$
                      – J. M. is slightly pensive
                      Mar 1 at 9:32












                      $begingroup$
                      @J.M.iscomputer-less Thank you for your comment.
                      $endgroup$
                      – Αλέξανδρος Ζεγγ
                      Mar 1 at 11:37




                      $begingroup$
                      @J.M.iscomputer-less Thank you for your comment.
                      $endgroup$
                      – Αλέξανδρος Ζεγγ
                      Mar 1 at 11:37











                      4












                      $begingroup$

                      If you are sure about your integral's behavior you can try



                      Integrate[Exp[I z] 1/z, z, -Infinity, Infinity, 
                      GenerateConditions -> False]
                      (* I π *)





                      share|improve this answer









                      $endgroup$

















                        4












                        $begingroup$

                        If you are sure about your integral's behavior you can try



                        Integrate[Exp[I z] 1/z, z, -Infinity, Infinity, 
                        GenerateConditions -> False]
                        (* I π *)





                        share|improve this answer









                        $endgroup$















                          4












                          4








                          4





                          $begingroup$

                          If you are sure about your integral's behavior you can try



                          Integrate[Exp[I z] 1/z, z, -Infinity, Infinity, 
                          GenerateConditions -> False]
                          (* I π *)





                          share|improve this answer









                          $endgroup$



                          If you are sure about your integral's behavior you can try



                          Integrate[Exp[I z] 1/z, z, -Infinity, Infinity, 
                          GenerateConditions -> False]
                          (* I π *)






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 27 at 15:29









                          DimitrisDimitris

                          2,2511332




                          2,2511332



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Mathematica 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.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192291%2fhow-to-use-mathematica-to-do-a-complex-integrate-with-poles-in-real-axis%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

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

                              Displaying single band from multi-band raster using QGIS

                              How many registers does an x86_64 CPU actually have?