In Hassett's book Introduction to Algebraic Geometry he states:
$$ (x^2, xy, y^2 ) = (y+x, x^2) \cap (x,(y+x)^2)$$ and both ideals are irreducible (i.e., not writable as intersections of non-trivial ideals). I was trying to prove it, but I have no idea. It is easy to prove $\subset$ just by showing the generators are inside the right-hand site. But what about the other direction? Is there any possibility to write down the generators of an intersection of ideals?
And how can I prove that these ideals are indeed irreducible?
Given $f \in (x+y, x^2) \cap (x,(x+y)^2)$, then $$ f = a(x+y) + b x^2 = cx + d(x+y)^2 $$ for some $a,b,c,d \in k[x,y]$. Grouping terms, we have \begin{align*} x(bx-c) = bx^2 - cx = d(x+y)^2 - a(x+y) = (x+y)(d(x+y) - a) \, . \end{align*} Since $x$ is prime and doesn't divide $x+y$, then $x \mid (d(x+y) - a)$, so $$ d(x+y) - a = hx $$ for some $h \in k[x,y]$. Then $a = -hx + d(x+y)$, so \begin{align*} f &= a(x+y) + bx^2 = (-hx + d(x+y))(x+y)\\ &= -hx^2 - hxy + d(x^2 + 2xy + y^2) + bx^2 \in (x^2, xy, y^2) \, . \end{align*}
As a note, there is an algorithmic way to compute the intersection of ideals using Gröbner bases. This is given in Proposition $30$ of $\S9.6$ of Dummit and Foote:
Computing as follows using SageMath (here is a link to a SageMathCell)
we find that $\{t x - x, t y + x, x^{2}, x y, y^{2}\}$ is a Gröbner basis for $tI + (1 - t)J$, hence $$ I \cap J = (tI + (1 - t)J) \cap k[x,y] = (x^{2}, x y, y^{2}) $$ by the Proposition, as we found before.
This is just a rephrasing of @imtrying46's excellent answer, but one that I found helpful. Recall that the Lattice Isomorphism Theorem gives an inclusion-preserving bijection between the ideals of $k[x,y]$ containing $(x+y, x^2)$ and the ideals of the quotient $k[x,y]/(x+y, x^2)$. Note that $$ \frac{k[x,y]}{(x+y, x^2)} \cong \frac{k[x]}{(x^2)} $$ by the map sending $y \mapsto -x$. The only proper, nonzero ideal of $k[x]/(x^2)$ is $(x)$, hence we conclude that $$ (x) + (x+y, x^2) = (x, x+y, x^2) = (x,y) $$ is the only proper ideal of $k[x,y]$ strictly containing $(x+y, x^2)$, just as in @imtrying46's answer.