It is well known that the ideal $$I=(z^2,yz,xz,y^2-x^2(x+1))$$ occurs in a flat family of twisted cubic, so its Hilbert polynomial is $h^0(\mathcal{O}_{\mathbb P^1}(3t))=3t+1$. The support of the ideal is a plane nodal cubic, and it has a nilpotent element at the singular point.
My question is about the ideal of this form:
Does the ideal $J=(z^2,yz,xz,y^2-x^2)$ defines two lines with a nilpotent at $0$?
How to compute the Hilbert polynomial of this ideal? (I suspect it is $2t+2$ for some reason but I don't know how to prove this.)
Yes. Set-theoretically, $V(J)=V(\sqrt{J})=V(z,yz,xz,y^2-x^2)=V(z,y^2-x^2)$ which is indeed two lines: $V(z,x-y)$ and $V(z,x+y)$. On $D(x)\cap V(J)$, we have that $x$ is invertible, so $z\in J_x$ and therefore $V(J)\cap D(x)$ is reduced. In the local ring at the origin, none of $x,y,z$ are invertible, so $z\notin \mathcal{O}_{V(J),(0,0,0)}$ and $V(J)$ isn't reduced there.
If you want a low-tech solution, you can just compute a bunch of terms of the quotient and use that Hilbert polynomials play nicely with exact sequences:
So $H_J(t)+2=H_{k[x,y,z]}(t)$, or $H_j(t)=\binom{n+2}{2}-2=\frac{n^2+3n-1}{2}$. If you want to use a bit more technology, you can do the same thing except note that the projective zero locus of $J$ inside $\Bbb P^2$ is two reduced points, which has Hilbert polynomial 2 and then apply the same exact sequence argument.