Consider the ideals $\mathfrak{p}_1=(x,y)$, $\mathfrak{p}_2=(x,z)$ and $\mathfrak{m}=(x,y,z)$ in $k[x,y,z]$. How to show that $\mathfrak{p}_1\mathfrak{p}_2=\mathfrak{p}_1\cap\mathfrak{p}_2\cap\mathfrak{m}^2$?
I know how to compute products of ideals, for example $\mathfrak{p}_1\mathfrak{p}_2=(x^2,xy,xz,yz)$. But I don't know how to handle intersections. Also, would it be easy to see that the right hand side equals $(x^2,xy,xz,yz)$ without knowing the answer? Thank you in advance.
All three ideals are monomial, and their intersection is also a monomial ideal generated by the least common multiples of their generators; see here.