I know, from mathematics basis, that a polynomial with one variable can be factor in function of its roots, so I can generate any one-variable polynomial from its zeros. But I want know if is possible to generate a two-variable polynomial giving its coordinates where value is zero? This problem appears on calculus of shape functions in Finite Elements Method. For example, in an one-dimensional element with four nodes $(p_1,p_2,p_3,p_4)$, I have to generate four shape functions that have the following requisites:
The function $N_i(x)$ has value $1$ at the node $p_i$ and $0$ on others nodes.
$p_1 \to x = -1$
$p_2 \to x = -1/2$
$p_3 \to x = 1/2$
$p_4 \to x = 1$
$N_1(p_1) = 1$
$N_1(p_2) = N_1(p_3) = N_1(p_4) = 0$
From this I can find the general form of the function $N_1$: $N_1(x) = (x + 1/2)(x - 1/2)(x - 1)(C_1)$
$N_1(p_1) = 1 \to C_1 = -2/3$
$N_1(x) = (-2/3)(x + 1/2)(x - 1/2)(x - 1)$
This is the $N_1$ shape function. Now, I want to think this problem to two-variables and generate those functions with the same "algorithm".
A simple square element with coordinates: $p_1=(-1,-1),p_2=(1,-1),p_3=(1,1),p_4=(-1,1)$.
And I want the $N_1(x,y)$ function that has value $1$ at $p_1$ and $0$ on other three points.
This can be possible?