Let $A$ be the local ring $$A=\left(\frac{\mathbb{C}[x,y]}{(y^2-x^3-x^2)}\right)_{(x,y)}$$ $\mathfrak{m}=(x,y)A$ be the maximal ideal in $A$. I'm asked to calculate the dimension of the $\mathbb{C}$-vector space $\mathfrak{m}/\mathfrak{m}^2$ which is the dimension of the cotangent space at $(0,0)$. I do it as follows.
$$ \begin{aligned} \mathfrak{m}/\mathfrak{m}^2&=\left(\frac{(x,y)}{(y^2-x^3-x^2)}\right)_{(x,y)}/\left(\frac{(x,y)^2}{(y^2-x^3-x^2)}\right)_{(x,y)}\\ &=\left(\frac{(x,y)_{(x,y)}}{(y^2-x^3-x^2)_{(x,y)}}\right)/\left(\frac{(x,y)^2_{(x,y)}}{(y^2-x^3-x^2)_{(x,y)}}\right)\\ &=\frac{(x,y)_{(x,y)}}{(x,y)^2_{(x,y)}}=\left(\frac{(x,y)}{(x,y)^2}\right)_{(x,y)}\simeq\mathbb{C}^2 \end{aligned} $$ This seemingly correct argument gives the desired result 2, but I realize that I didn't use any information about $(y^2-x^3-x^2)$, and it will be the same at any other point on $y^2-x^3-x^2$ which is impossible. I think there must be some problem about my argument, but I cannot find it out. Where am I wrong? What is the correct way to do it? Thanks in advance.