How can I force Mathematica to use the identities satisfied by Jacobi polynomials $$ (1-\cdot)P_n^{(\alpha+1,\beta)} = \frac{2}{2n+\alpha+\beta+2}\left((n+\alpha+1)P_n^{(\alpha,\beta)}-(n+1)P_{n+1}^{(\alpha,\beta)}\right) $$ $$ (1+\cdot)P_n^{(\alpha,\beta+1)} = \frac{2}{2n+\alpha+\beta+2}\left((n+\beta+1)P_n^{(\alpha,\beta)}+(n+1)P_{n+1}^{(\alpha,\beta)}\right) $$ to simplify expressions involving this polynomials in the sense that it is more preferable to have many Jacobi Polynomials multiplied by constants than a few multiplied by explicit monomials.
By using FullSimplify
with Assumptions
to tell Mathematica that both $\alpha$ and $\beta$ are greater than $-1$ I still obtain expressions containing products of Jacobi polynomials with $(1-t)$ or $(1+t)$
Simple example
When I input
FullSimplify[(1 - x) JacobiP[n, \[Alpha]+1, \[Beta], x], Assumptions -> n \[Element] Integers && n > 0 && \[Alpha] > -1 && \[Beta] > -1 && x \[Element] Reals]
Mathematica just returns
-(-1 + x) JacobiP[n, \[Alpha]+1, \[Beta], x]
whereas I would like to get
2/(2 n + \[Alpha] + \[Beta] + 2) ((n + \[Alpha] + 1) JacobiP[n, \[Alpha], \[Beta], x] - (n + 1) JacobiP[n + 1, \[Alpha], \[Beta], x])
Mathematica
knows this identity, e.g. evaluatingFullSimplify[(1 - x) JacobiP[n, a+1, b, x]-2/(2n+a+b+2) ((n+a+1)JacobiP[n, a, b, x]-(n+1)JacobiP[n+1, a, b, x])]
yields0
. $\endgroup$