1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Problem with integration.

  1. Jul 21, 2008 #1
    Hi, already tried few routines from GSL and it seems it doesn't work.

    Function: 1/(x^2 - alpha^2)

    Can anyone tell how to calculate that numerically.
    Tried to do it by "hand" as well but no good results.

    Cheers.
     
  2. jcsd
  3. Jul 21, 2008 #2

    Defennder

    User Avatar
    Homework Helper

    You don't need a numerical solution for this. I assume alpha is just an arbitrary constant. Note that the denominator can be written as a product of 2 functions.
     
  4. Jul 21, 2008 #3
    Thanks for respond.

    Actually the problem is bit more complicated. Integral is (-inf, inf) and whole function is equal to:

    f(y,z) = int_(-inf,inf) dx [2y/(x^2-y^2) ] * [ 1/(exp{x-z} +1)]

    What do u think about that.
     
  5. Jul 21, 2008 #4

    Defennder

    User Avatar
    Homework Helper

    You mean this:
    [tex]f(x,y,z) = \int^{\infty}_{-\infty} \left( \frac{2y}{x^2-y^2} \right) \frac{dx}{e^{x-z}+1}[/tex]
     
  6. Jul 21, 2008 #5
    Exactly
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook