In the FEM we usually use a trick to find the coefficients for shape functions:
Finding $M^{-1}$ in the system $MC=I$, where for example in the linear case: $$ \begin{aligned} M&=[1 ,x_1,y_1;1 ,x_2,y_2;1 ,x_3,y_3],\\ C&=[a_1, b_1,c_1;a_2, b_2,c_2;a_3, b_3,c_3],\\ I&=[1,0,0;0,1,0;0,0,1]. \end{aligned} $$ and $\phi_1=a1+b_1x_1+c_1y_1$ and also $\phi_2,\phi_3$ are defined in the same way. Since $MC=I$ so $M$ is inverse of $C$. But how do we ensure that $M$ is invertible for a higher degree basis?