title: Integration using quadrature
body: <p>I have been having a few issues using the quadrature function in python 2.7 (part of the scipy.integrate module). The equation I am trying to integrate is simply:</p>
  
  <pre><code>x/(d^2) - (x^2)
  </code></pre>
  
  <p>The integration is between limits a and b. However, I need to do the integration at 40 different values of d and am not sure how to pass in the second argument so as to loop the integration over the values of d. Any help would be much appreciated and is quadrature the best way to evaluate this problem.</p>