Upon introducing new integration variable z=x-b (or w=x-a) your integral can be expressed via the so-called incomplete beta function, see e.g. http://en.wikipedia.org/wiki/Beta_function#Incomplete_beta_function .
Numerical quadrature will give you inexact value. The error will be especially large when b is such that b+x=0 somewhere in [0,1]. For n fixed (integer) you will get your precise answer after asking your favorite symbolic math package. For n=1,2,3 and 4 the result is a sum of polynomials in a and b multiplied by expressions like log(b) and log(b+1) what suggests that maxima proceeds integrating per parts after asking whether b+1 is positive, negative or 0).
This problem has an exact answer found after setting z=b+x, c=a-b and using the binomial expansion. Also it is one which meets the requirement that the integral equals x when c=0. Will type put the answer here plus give a jpg of the solution below-
This problem has an exact answer found after setting z=b+x, c=a-b and using the binomial expansion. Also it is one which meets the requirement that the integral equals x when c=0. Will type the answer here plus give a jpg of the solution below-
My answer for the integral indefinite and definite in the cases n in Q is done by http://www.wolframalpha.com/ on the figures bellow . Your sincerely: Anna Tomova.