By trying to find a marginal distribution I came accross integration of the product series. For the sake of generality, lets assume the integral is of following form:
$$\int \prod\_{k=1}^{n}\left ( x+a\_{k} \right )^{b\_{k}}dx.$$
$a\_{k}$ is a real coefficient and $b\_{k}$ is positive integers.
Is there any method, that could be used to integrate this analyticaly? It is of no problem to calculate it by some numerical method. But the first thing I would like to try is to find its analytical expression.



Integrating a product
Since the derivative of such a product has a similar form $$\left(\sum\_{k=1}^n\frac{b\_k}{x+a\_k} \right)\prod\_{k=1}^{n}\left ( x+a\_{k} \right )^{b\_{k}},$$ One might hope that something similar is true of some antiderivative. (I am implicitly assuming that the $b\_k$ are positive integers, although the formula is valid more generally. However there are cases that will involve some $\ln |x+a\_k|$ . I will continue to neglect these.)


If we imagine that we have some one antiderivative
$$F(x)=\int \prod\_{k=1}^{n}\left ( x+a\_{k} \right )^{b\_{k}}dx$$ and let $F\_k=F(x)-F(-a\_k),$ then $F\_k(x)$ is also an antiderivative and is divisible by $(x+a\_k)^{b\_k+1}$


That is not particularly deep. 


We can use integration by parts to obtain an answer without any explicit multiplying although marching through to the end will not be very pretty. It is more satisfying to know that we can do it than to actually do so.


1. As we know, $\int(x+a\_1)^{b\_1}dx=\frac{1}{b\_{1}+1}(x+a\_1)^{b\_1+1}$
2. We can get to the above form by $b\_2$ iterations of $\int(x+a\_1)^{b\_1}(x+a\_2)^{b\_2}dx=\frac{1}{b\_{1}+1}\left((x+a\_1)^{b\_1+1}(x+a\_2)^{b\_2}-b\_2\int(x+a\_1)^{b\_1+1}(x+a\_2)^{b\_2-1}dx\right)$
3. Similarly, we can eventually get from three factors to two etc.


It would be only slightly more complicated (but also only slightly more satisfying) to have products of factors $(m\_kx+a\_k)^{b\_k}$.


A large table of integrals might have formulas such as [this one](http://en.wikipedia.org/wiki/List_of_integrals_of_rational_functions#Integrands_of_the_form_.28A_.2B_B_x.29_.28a_.2B_b_x.29m_.28c_.2B_d_x.29n_.28e_.2B_f_x.29p).


