If a polynomial is given by $$y=\color{red}{a_0\left[1-\frac{l(l+1)}{2!}x^2+\frac{l(l+1)(l-2)(l+3)}{4!}x^4-\cdots\right]}+\color{blue}{a_1\left[x-\frac{(l-1)(l+2)}{3!}x^3+\frac{(l-1)(l+2)(l-3)(l+4)}{5!}x^5-\cdots\right]}\tag{1}$$ where $l$ is a constant and $a_0,a_1$ are coefficients.
The recurrence relation is given by $$a_{n+2}=-\frac{(l-n)(l+n+1)}{(n+2)(n+1)}a_n\tag{2}$$ The objective is to find the first few Legendre polynomials $P_l(x)$ such that $P_l(1)=1$ without using Rodrigues' formula:
$$\fbox{$P_l(x)=\frac{1}{2^{l}l!}\frac{\mathrm{d}^l}{\mathrm{d}x^l}{\left(x^2-1\right)}^l$}$$
The method given in my textbook states that:
If the value of $a_0$ or $a_1$ in each polynomial is selected so that $y = 1$ when $x = 1$, the resulting polynomials are called Legendre Polynomials, written $P_l(x)$. From $(1)$ and $(2)$ and the requirement $P_l(1) = 1$, we find the following expressions for the first few Legendre polynomials:
$\color{#180}{\quad P_0(x)=1,\quad P_1(x)=x}\quad \text{and}\quad \color{#180}{P_2(x)=\frac12(3x^2-1)}$
I don't understand how those polynomials marked $\color{#180}{\mathrm{green}}$ were obtained as I've only just started reading about Legendre polynomials and hence I'm not sure how to tackle this problem. But since it is mandatory that OP's show their efforts for questions of this nature
Here is my attempt anyway:
I substituted $l=0$ in the $\color{red}{\mathrm{red}}$ bracket to obtain $1=a_0(1)$ so $a_0=1$ and hence $P_0(x)=1$.
I substituted $l=1$ in the $\color{blue}{\mathrm{blue}}$ bracket to obtain $1=a_1(x)$ so $a_1=x$ and hence $P_1(x)=x$.
I substituted $l=2$ in the $\color{red}{\mathrm{red}}$ bracket to obtain $1=a_0\left[1-\dfrac{2(2+1)}{2!}x^2\right]=a_0\left[1-3x^2\right]$ so $a_0=\dfrac{1}{1-3x^2}\ne \frac12(3x^2-1)$.
Obviously I am doing something wrong. Can anyone please explain to me how to achieve the answers properly (and without using Rodrigues' formula)?