home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / sci / math / symbolic / 2951 < prev    next >
Encoding:
Text File  |  1992-11-11  |  2.6 KB  |  83 lines

  1. Newsgroups: sci.math.symbolic
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!spool.mu.edu!news.cs.indiana.edu!lynx!spectre.unm.edu!jpg
  3. From: jpg@spectre.unm.edu (Jeffrey P. Golden)
  4. Subject: Re: Help wanted in integration.
  5. Message-ID: <y1cqvvk@lynx.unm.edu>
  6. Date: Thu, 12 Nov 92 00:50:13 GMT
  7. Organization: Dept. of Math & Stat, University of New Mexico, Albuquerque
  8. Lines: 73
  9.  
  10. Reply-To: jpg@macsyma.com
  11.  
  12. In article <Nov.6.00.08.18.1992.2647@gandalf.rutgers.edu>  
  13. amarmahb@gandalf.rutgers.edu (Amar Mahboob Ali) writes:
  14. > Can anyone please help me in integrating the following.
  15. >            infinity
  16. >                 / 4    2             2
  17. >                | x  sin (Pi a x)  sin (Pi b x)
  18. >                | ---------------------------- dx
  19. >                |    2    2 2   2    2 2
  20. >               /   (x  - d )  (x  - c )
  21. >         -infinity       
  22. > Where a,b,c and d are positive integers.
  23.  
  24.  
  25. I computed the integral using Macsyma as follows.  The answers 
  26. obtained agree with Victor Adamchik's last version and John 
  27. Cordes' last version.  I only show the case a>b .  (The integrand 
  28. is symmetric in a and b.)
  29.  
  30.  
  31. (c1) x^4*sin(%pi*a*x)^2*sin(%pi*b*x)^2/((x^2-d^2)^2*(x^2-c^2)^2);
  32.  
  33.                     4    2             2
  34.                    x  sin (%pi a x) sin (%pi b x)
  35. (d1)               ------------------------------
  36.                          2    2 2   2    2 2
  37.                        (x  - c )  (x  - d )
  38.  
  39. (c2) declare([a,b,c,d],integer)$
  40.  
  41. (c3) assume(a>0,b>0,a>b)$
  42.  
  43. (c4) /* case 1: not(c=d) .  Macsyma appears to be assuming this! */
  44.      factor(integrate(d1,x,minf,inf));
  45.  
  46.                             2     2    2
  47.                          %pi  b (d  + c )
  48. (d4)                    -------------------
  49.                                  2        2
  50.                         4 (d - c)  (d + c)
  51.  
  52. (c5) /* case 2: c=d . */  subst(d=c,d1);
  53.  
  54.                     4    2             2
  55.                    x  sin (%pi a x) sin (%pi b x)
  56. (d5)               ------------------------------
  57.                                2    2 4
  58.                              (x  - c )
  59.  
  60. (c6) factor(integrate(d5,x,minf,inf));
  61.  
  62.                  2         2  2  2         2      2
  63.               %pi  b (4 %pi  b  c  - 12 %pi  a b c  - 3)
  64. (d6)       -  ------------------------------------------
  65.                                     2
  66.                                 96 c
  67.  
  68. (c7) /* Compare this with John Cordes' last answer, which follows. */
  69.      (1/32)*%pi^2*b/c^2 + %pi^4*b^2*(a-b/3)/8$
  70.  
  71. (c8) expand(d6-%);
  72.  
  73. (d8)                              0
  74.  
  75. From: Jeffrey P. Golden <jpg@macsyma.com>
  76. Organization: Macsyma Inc.
  77. Reply-To: jpg@macsyma.com
  78.