What is the dimension of $\Bbb Q[x]/\langle (x+1)^2 \rangle$ over $\Bbb Q$?
First we identify this ring. I know $$\Bbb Q[x]/\langle (x-a)(x-b) \rangle \simeq \Bbb Q \times \Bbb Q$$ where $a,b$ are distinct. But how to deal with this ring ?
Is $$\Bbb Q[x]/\langle (x+1)(x+1) \rangle \simeq \Bbb Q \times \Bbb Q$$ via the map $$f:\Bbb Q[x] \ni p(x) \longmapsto \Big(p(-1)+\langle(x+1)\rangle,p(-1)+\langle(x+1)\rangle\Big) \in \Bbb Q \times \Bbb Q$$ and by using first isomorphism theorem? Any help?
Let $R=\mathbb{Q}[X]/I$ where $I=\langle X^2+2X+1\rangle$. Notice that $$\overline{X}^2=-2\bar{X}-1$$ in $R$. This means that you can write any $\overline{X}^k$ as $a\overline{X}+b$ with $a,b\in\mathbb{Q}$. So $\dim (R)\leq 2$.
Now prove that $\{\overline{X}, \overline{1}\}$ is a linearly independent set over $\mathbb{Q}$ (which is equivalent to saying that $I$ does not contain any polynomial of degree less than 2).
Combine the facts to conclude $\dim (R)=2$.