(This answer just collects other responses into what I hope is a more coherent, single answer, with a few of my opinions added in.)
@LeanderTilstedKristensen 's second comment, "Also $\{y\in Y| x \in y \}$ is not an element of Y, but rather a subset of Y", is important - it means that your symbolic notations are actually incorrect: they specify a subset of $Y$, not an element of $Y$.
I also think that words are fine, and "$y(x)$ is the (unique) element of $Y$ that contains $x$" seems really clear, and anyone who has seen a partition before will understand it and know that it is a valid definition.
Of course, if a notation already exists we should use that instead of inventing something new. And if your audience is comfortable with the fact that partitions and equivalence relations are more-or-less the same thing, then @MarekKryspin 's suggestion is the best: write $[x]$ instead of $y(x)$.
If you might be using more than one partition, or really want to emphasize that the equivalence class derives from $Y$, the notation $[x]_Y$ would do the job. It's usually used as "$[x]_\sim$, where "$\sim$" is an equivalence relation, but again, partitions and equivalence relations are pretty interchangeable, so using $Y$ as the subscript would be clear.