$V$ is a vector space over the field $F$, and $\def\End{\operatorname{End}} \def\Hom{\operatorname{Hom}}T \in\End(V)=\Hom(V,V)$ is a linear transformation with minimal polynomial $p(x)=(x-a_1)(x-a_2)...(x-a_k)$, where $a_k\in F$ and are distinct, with $k\ge 2$. Also let $p_i(x)=p(x)/(x-a_i)$, and $q_i(x)=p_i(x)/p_i(a_i)$.
Now I want to express $1$ and $x$ as a linear combination respectively of $q_i$ using Lagrange Interpolation to the basis of the space $P_k$ of all polynomials with degree less than $k$. This is dual to the set of evaluations $\{E_{a_1},...,E_{a_k}\}\subset P_k^*$. Then this should help me write $I=T_1+\cdots+T_k$, where $T_i=p_i(T)\in\End(V)$, wehre $p_i$ is given as above. Prove that $T_iT_j=0, i\ne j$ and that $T_i^2=T_i$ (T is idempotent).
First, I believe you meant $q_i(x)=\frac{p_i(x)}{p_i(a_i)}$.
Define $m(x)=\sum_{i=1}^k q_i(x)-1$ and $n(x)=\sum_{i=1}^{k}a_iq_i(x)-x$. Prove that the degree of $m(x)$ and $n(x)$ are smaller or equal to $k-1$ and $a_1,\ldots,a_k$ are k distinct roots of $m(x)$ and $n(x)$. Thus $m(x)=n(x)=0$.