Integrating the following expression, if possible, requires some hints or substitutions which I cannot find.
Integrate[(a*x + b (1 - x))^k *(1 - (a*x + b (1 - x)))^l *x^m *(1 - x)^n, {x,0,1}]
In case this matters, parameters a and b belong to [0,1], n and m are both integers greater or equal to zero, and x is in [0,1]. (EDIT 1: k and l are integers greater or equal to zero as well, I forgot to mention this originally and this "detail" actually might help Mathematica in some circumstances, see the answer by bmf.)
The expression is made of 4 exponentiated expressions ("factors") multiplied together. Though Mathematica cannot digest this integral as is, it is able to solve it if any of the 4 "factors" is removed. I am wondering if helping Mathematica by inserting a substitution could help it solve this?
I have found this answer which is able to provide a substitution, but not only was I not able to try that out (I do not know how to substitute an expression with a variable in that case) but, more importantly, it is not obvious to me what substitution would be promising in this case...
If someone does suggest a promising substitution, please also indicate how I may solve the substitution using Mathematica, unless I can easily do it by hand: so far, substituting using this method has not worked for the problem in the link discussed earlier...
*** [EDIT 2] *** This edit is to share what has been tried so far:
- Following up on the suggestions by bmf and mikado: unfortunately I am only able to get clean answers up to l=2, which is not enough to extrapolate any potential recursive solution. For l=3, I am able to get an answer using Wolfram Alpha, but that answer breaks the logic shown with the previous values for l.
- In parallel, I have tried using integration by parts in order to express the integral for l+1 knowing the result for l, with no success.
- finally, I thought that the Wolfram answer for l=3 could be different because it was possible to express a hypergeometric function of certain parameters as proportional to a hypergeometric of a different set of parameters, so I tried that as well in case I could get back to a logical progression, but without success. Naming H(p)=H2F1(-k,p+m,p+m+n+1,1-a/b), the answer for l=0 involves H(1), l=1 involves H(1) andH(2), l=2 involves H(1), H(2) and H(3), but for l=3 it involves two versions of H(1) and two of H(3). As it turns out, k being a positive integer, the hypergeometricals in my integral simplify to polynomials. Nevertheless, I have not found a way to express H(p+1) as a function of H(p), so I am not able to find a solution for l=3 resemble a progression from the previous values for l.
=> So although it seems like bmf's idea is promising (and they have been chatting with me to help on the side, for which I am grateful), I fail to get it to any meaningful result so far.
k,l,m,n
. I would investigate the behaviour for small integer values first, to understand whether the complete answer is likely to be useful to you. $\endgroup$