Proof (cotangent space as linearisation)
The linear map $\d_P: \mathfrak{m}_P \to (k^n)^\ast$ sending $f$ to the linear part $\d f_P$ is surjective. Therefore composing with the linear surjection $(k^n)^\ast \to (T_{X,P})^\ast$ of restriction, $$ \begin{align*} \mathfrak{m}_P &\to (T_{X,P})^\ast \\ f &\mapsto \d f_P |_{T_{X,P}} \end{align*} $$ is a linear surjection.
It remains to show the kernel is $\mathfrak{m}_P^2$. Suppose $f\in k[x_1, \ldots, x_n]$ is such that $f(P) = 0$ and $\d f_P(T_{X,P}) = 0$, so $\d f_P \in (T_{X,P})^0$ where $^0$ denotes the annihilator. Under the evaluation isomorphism $k^n \isom (k^{n})^{\ast\ast}$, we identify $T_{X,P} = \sb{\d g_P}{g\in I(X)}^0\subseteq (k^n)^{\ast\ast}$. Then $$ \begin{align*} (T_{X,P})^0 = \sb{\d g_P}{g\in I(X)}^{00} = \sb{\d g_P}{g\in I(X)}, \end{align*} $$ and hence $\d f_P = \d g_P$ for some $g\in I(X)$. Therefore $f - g$ and its linear part vanish at $P$, and hence $f = f - g \in \mathfrak{m}_P^2$ in $A(X)$.