Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Rational function integral

  1. Aug 29, 2010 #1
    how could we calculate the follwing integral ??

    [tex] \int_{0}^{\infty} \frac{ K(x)}{Q(x)}dx [/tex]

    here K(x) and Q(x) are POLYNOMIALS , of course if we had an integral over all R instead of [tex] (0 , \infty ) [/tex] we could apply Cauchy's residue theorem

    i think there is a 'closed circuit' to perform the integral and you have to add a term logx inside the denominator but not completely sure.
  2. jcsd
  3. Aug 29, 2010 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    You could just find the partial fractions decomposition, which is easy to integrate.

    (I'm pretty sure you can use residues to help find the decomposition if you like)
  4. Aug 29, 2010 #3


    User Avatar
    Science Advisor

    If you really want to use residue theory, take the integral from 0 to R, then the circular arc from R to Ri, then down the imaginary axis to 0. If K and Q are reasonably well behaved, you should be able to relate the value on the imaginary axis to its value on the real axis.

    If not, break the function into "even" and "odd" parts and integrate each along the real axis from 0 to R, along the circular arc from R to -R and then from -R to 0.
  5. Sep 5, 2010 #4
    One procedure is this for K(x) / Q(x)...

    1/ If the degree of K is = or > than Q, first do Long Division.

    2/ With the resulting rational function [remainder / Q] first look
    to factor Q and use Partial Fraction Decomposition

    3/ If Q is prime and its degree (n) = 2, Complete the Square and use Trig Substitution

    4/ If degree of Q is 3 or more, then numerical techniques are needed unless it factors.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook