Question: Expand the sign function between $-1$ and $1$ in a series of Legendre polynomials. Obtain an explicit formula for the expansion coefficients.
Attempt: I found that
$$a_l=(2l+1)\int_0^1 P_l(x)$$
where $a_l$ is the coefficient of degree l. However, I am still confused how to find an explicit formula for this value. Can someone please help me?

Hint: use the recurrence relation:
$$(2 \ell+1) P_{\ell}(x) = \frac{d}{dx} [P_{\ell+1}(x) - P_{\ell-1}(x)]$$