[Mathematica] How to calculate residues if poles not simple?

  • Context: Mathematica 
  • Thread starter Thread starter earth2
  • Start date Start date
  • Tags Tags
    Mathematica Poles
Click For Summary

Discussion Overview

The discussion revolves around calculating residues of functions with higher-order poles using Mathematica. Participants explore specific functions and their behavior at complex poles, addressing discrepancies between manual calculations and Mathematica's output.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents a function with poles of order 6 and seeks guidance on using Mathematica to calculate residues, noting that Mathematica returns zero while manual calculations indicate otherwise.
  • Another participant suggests that the discrepancy may stem from the specific expression used in Mathematica and requests clarification on the exact input.
  • A participant shares a different function and also receives a zero residue from Mathematica, despite having a conflicting manual result, raising questions about the complexity of the expression.
  • Further discussion includes attempts to clarify the exact syntax used in Mathematica and the importance of correctly identifying poles in the denominator.
  • One participant realizes that their approach involves a Taylor expansion of the solution, which alters the value of epsilon used in the calculations, leading to confusion in the residue evaluation.

Areas of Agreement / Disagreement

Participants express differing views on the results returned by Mathematica, with some asserting that the software should yield non-zero residues while others suggest potential errors in input or interpretation. The discussion remains unresolved regarding the correct approach to calculating residues for higher-order poles.

Contextual Notes

Participants note the complexity of the expressions and the potential impact of Taylor expansions on the evaluation of residues. There is also mention of specific mathematical forms and assumptions that may influence the results.

earth2
Messages
82
Reaction score
0
Hey guys,

i have the following situation:

I have a function which looks like

\frac{(a+bx)^3}{(x-y)^6(x-z)^6}

As one can easily see this function has poles at y and z of order 6. Now, I know how to calculate the residue of this function for instance at y, but how do I implement this into Mathematica? If i use "Residue" on this fella, Mathematica gives me zero, but I've done the calculation by hand and have shown that the result is not zero. So, my question boils down to:

How can i use mathematica to (easily) evaluate residues of poles of order n.

Thanks!
earth2

Edit: Sorry, forget to write: x, y, z are complex variables.
 
Physics news on Phys.org
Thanks for the reply!
Ok, if I enter a function (a similar one, to be more specific but the core question remains) in its original form
<br /> \frac{(Q*X+q*x)}{((x-B/A)^2-(B^2-AC)/A^2+i\frac{\epsilon}{A})^3}<br />
Mathematica gives me as the residue zero. But I know (from calculating it myself and a paper) that it is not. Is this form of the expression maybe too complicated?

x is the variable in question. Q,X,A,B are just numbers and epsilon tends to zero.
cheers!
 
Please show the exact Residue expression you typed into Mathematica and make certain you include any assignments you made to variables that are used in that expression.

"I typed something and the answer is wrong" just doesn't provide enough information
 
Hi, thanks for the answer :)

The poles of the denominator are located at

<br /> x^\pm= \frac{B \pm \sqrt{d} \mp i \epsilon }{A} <br />

and i want to evaluate the residues at x^-.
So i type into Mathematica

Residue[<br /> <br /> \frac{(Q*X+q*x)}{((x-B/A)^2-(B^2-AC)/A^2+i\frac{\epsilon}{A})^3}<br /> <br /> ,\{x,\frac{B-\sqrt{d}+ i \epsilon}{A}\}].
with d=B^2-AC.
So, where do I go wrong? :)
Thanks for the answer!

Cheers,
earth2
 
Last edited:
I apologize if I'm making some silly mistake here.

If I try

Residue[(Q*X+q*x)/((x-B/A)^2-(B^2-A*C)/A^2+i*e/A)^3, {x, (B-Sqrt[B^2-A*C]+i*e)/A}]

I get zero, which I presume is what you are doing and getting.

If I look for zeros of your denominator

Solve[((x - B/A)^2 - (B^2 - A*C)/A^2 + i*e/A)^3 == 0, x]

seems to tell me that one pole will be at

(B-Sqrt[B^2-A*C-A*e*i])/A rather than (B-sqrt[B^2-A*C]+i*e)/A

Maybe you meant the i*e to be under the radical and this is just a failure of my trying to understand the typesetting.

If I try

Residue[(Q*X+q*x)/((x-B/A)^2-(B^2-A*C)/A^2+i*e/A)^3, {x, (B-Sqrt[B^2-A*C-A*e*i])/A}]

I get

(-3*A^4*(B*q+A*Q*X))/(16*(B^2-A*C-A*e*i)^(5/2))

Is that the correct residue or are there still errors?
Thanks
 
Last edited:
Hi again!

Hm, you are right.
What I forgot to write, is that I (or precisely the guys in the paper) am/are doing a Taylor expansion of the solution the zeros of the denominator in epsilon and evaluate the residues at the Taylor expanded expression. In that sense "my" epsilon (after Taylor expansion) is not the original one anymore. And that's where I go wrong :) Thanks for the illumination!

Btw, the paper is http://prd.aps.org/abstract/PRD/v29/i8/p1699_1 and the calculation I am talking about (although yet again with another but similar expression) is in appendix A.

Thanks!
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K