Let $f \in C^{m+1}(\mathbb{R}^n, \mathbb{R})$ be a function, and let $P: \mathbb{R}^n \rightarrow \mathbb{R}$ be a polynomial of degree less than or equal to $m$. Suppose $a \in \mathbb{R}^n$ satisfies $$\lim_{{x \to a}} \frac{\left| f(x) - P(x) \right|}{\|x - a\|^m} = 0 $$ Show that $P$ must necessarily be equal to the $m$-th degree Taylor polynomial of $f$ at $a$.
My attempt: To show that $P$ must be equal to the $m$-th degree Taylor polynomial of $f$ at $a$, we'll utilize the Taylor's theorem with the remainder term in the Lagrange form. The theorem states that for a function $f$ which is $(m+1)$ times differentiable on an interval containing $a$ and a point $x$ in that interval, there exists a point $c$ between $a$ and $x$ such that: $$\begin{split}f(x) &= f(a) + f'(a)(x - a) + \frac{2!}{2!}f''(a)(x - a)^2 + \ldots + \frac{m!}{m!}f^{(m)}(a)(x - a)^m\\ &\quad+ \frac{(m+1)!}{(m+1)!}f^{(m+1)}(c)(x - a)^{m+1}\end{split}$$ In this case, we want to show that $P(x)$, which is a polynomial of degree less than or equal to $m$, agrees with the Taylor polynomial of $f$ up to the $m$-th degree terms.
Is my way of thinking correct? How can I continue this proof?