So here is my question:
I want to compute the depth of $k[x,y]$ with respect to the ideal $(x,y^2)$ where $k$ is a field.
The depth $t_{(x,y^2)}(k[x,y])$ is defined as follows, $$ t_{(x,y^2)}(k[x,y]):=\sup\{r\in\mathbb N:\exists(x_i)_{i=1}^r \text{ a regular sequence in }(x,y^2)\}.$$
Regularity in this context means that $\forall x_i$ one has that $x_i$ is a non zero divisor in $k[x,y]/(\sum_{j=1}^{i-1}(x_j))$.
I know that it holds that $t(k[x,y])\leq \dim(k[x,y])$ where $\dim$ denotes the Krull dimension. But in my case I have to find the depth with respect to an ideal, so i don't know how I can use the upper fact. It would be helpfull if I knew how long the maximal depth could be such that when i start to construct regular sequences I know when to stop. I am sure there must be Theorem which I am missing.
Can someone help me? Thanks.
Let $I=(x,y^2)$. Because $k[x,y]$ is a Cohen-Macaulay ring, we have that $\operatorname{grade} I = \operatorname{height} I$ (this is corollary 2.1.4 in Bruns and Herzog, Cohen-Macaulay Rings). In case you are not aware of the terminology, the grade of $I$ is precisely equal to the length of a maximal regular sequence in $I$. Additionally we have $\operatorname{height} I + \dim k[x,y] / I = \dim k[x,y]$.
The above give you $\operatorname{grade} I = \dim k[x,y] - \dim k[x,y] / I = 2 - \dim k[y]/y^2 = 2 - 0 =2$.