Singularities at end point in integration

AI Thread Summary
The discussion focuses on the challenge of performing definite integrals involving singularities in MATLAB, specifically for the function sqrt((x-a)*(x-b)/((x-c)*(x-d))). The user seeks a MATLAB routine capable of handling such integrals, similar to the "dqawse.f" routine in quadpack, which is designed for functions with algebraico-logarithmic endpoint singularities. The user mentions that the gausscc.m file, which uses Chebyshev-Curtis quadrature, is inadequate for this purpose. Suggestions include using WolframAlpha for known parameters or approximating the function near the singularity with a simpler function for analytical integration, followed by numerical integration for the remaining parts.
ashesh
Messages
2
Reaction score
0
singularities at end point in integration...

Hi,

I Need to perform an integration with poles and zeros in the integrand. Please let me know if there a MATLAB routine/program that can handle the definite integral

sqrt((x-a)*(x-b)/((x-c)*(x-d)))

between the limits (c,d), (a,d), (a,b) or (b,c).

I have read about the routine in quadpack called "dqawse.f" which can perform "integration of functions having algebraico-logarithmic end point singularities".

I need a MATLAB equivalent program that can perform this type of integration. I have checked gausscc.m file (http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=2905&objectType=file) which does integration by Chebychev-Curtis quadrature, but that seems to be no good in handling singularities.

Hope someone can give some leads to solve the above problem.

Thanks in advance.
Ashesh
 
Physics news on Phys.org
I would use WoframAlpha if the parameters are known. If not, I'm not aware of a general solution to it, except perhaps a Taylor expansion.
 
Here's a simple approach:
Approximate the function by a simpler function at the singularity, which you can integrate analytically.
Integrate the singularity. Then integrate all the rest with your favorite numerical method.
 
Back
Top