General formula for $\int_a^b(x-a)^m(x-b)^ndx$

749 Views Asked by At

Recently, I stumbled upon this:

$$\int_a^b (x-a)^3(x-b)^4dx$$

I did this in many ways - using IBP multiple times and by even expanding both terms like a madman.

The result was: $$\frac{(a-b)^8}{280}$$ I was astonished by this cute little result. So I started wondering about evaluating the following:

$$\int_a^b(x-a)^m(x-b)^ndx$$

I wanted to use reduction to obtain a result similar to Wallis' formula for sine and cosine


Any other method is always welcome

3

There are 3 best solutions below

5
On BEST ANSWER

Start using IBP:

$$I_{(m,n)}=\int_a^b(x-a)^m(x-b)^ndx=0-\int_a^b m(x-a)^{m-1}\frac{(x-b)^{n+1}}{n+1}dx=-\frac{m}{n+1}I_{(m-1,n+1)}$$

Applying IBP multiple times, we obtain $$I_{(m,n)}=(-1)^{m+1}\frac{m!.n!}{(n+m)!}I_{(0,n+m)}$$

$$\boxed{I_{(m,n)}=(-1)^{m+1}\frac{m!.n!}{(n+m+1)!}(a-b)^{n+m+1}}$$

2
On

Let $u=(x-a)/(b-a)$ so that \begin{align} \int_a^b(x-a)^m(x-b)^ndx=(-1)^m(b-a)^{m+n+1}\int_0^1u^m\left(1-u\right)^ndx \end{align} and latter integral is a well-known quantity.

0
On

I liked your method the best.But if you are fine with using wallis formula,here is a hint;

Hint use the substituition $$x=a+({b-a})\sin^2 \theta$$ $$dx=2(b-a)\sin \theta \cos \theta d\theta$$

can you take it from here?