Let $R$ be a commutative ring with unity.
So I was given a polynomial $f(x_1,\dots,x_n)$ in $R[x_1,x_2,\dots,x_n]$. I was given the root of $f$ as $(a_1,\dots,a_n)$.
My claim was we can write $f(x_1,\dots,x_n) = \sum_{i=1}^{n} (x_i - a_i)q_i(x_1,\dots,x_n)$ using the division alogrithm. Now I realised division algorithm doesn't make sense in multivariate polynomial rings. So I tried to prove my claim using induction, showing this holds for $m=1$, assumed it's true for $m= n-1$ (induction hypothesis) and try to prove it now for $m=n$. Here $m$ is number of variables in the polynomial. Is that a correct approach or do there exist a simpler way out?
Thanks in advance.
That is the correct approach. I'll supply a proof of the following claim behind a spoiler barrier so that you can try to prove it yourself if you'd like. We will need the following. See here for some more details about this fact.
Claim: Let $\phi: R[x_1, \dots, x_n] \to R$ be $f \mapsto f(0)$. Then, $\ker \phi = (x_1, \dots, x_n)$.
Your claim follows from mine, and a change of variables.