TITLE: Cohomology Ring of Klein Bottle over $\mathbb{Z}_2$
QUESTION [8 upvotes]: I am trying to show that the cohomology ring of the Klein bottle with $\mathbb{Z}_2$ coefficients  is $H^*(K,\mathbb{Z}_2) \cong \mathbb{Z}_2[x,y]/(x^3,y^2, x^2y)$. 
What I know:
$H^0(K,\mathbb{Z}_2)=\mathbb{Z}_2,  H^1(K,\mathbb{Z}_2)=\mathbb{Z}_2\oplus \mathbb{Z}_2,  H^2(K,\mathbb{Z}_2)=\mathbb{Z}_2$
$K$ is a 2-dimensional closed manifold that is orientable over the field $\mathbb{Z}_2$, so we know that for each of the two generators of $H^1(K,\mathbb{Z}_2)=\mathbb{Z}_2\oplus \mathbb{Z}_2$ (call them $x$ and $y$), there is another element $\psi, \phi$ in $H^1(K,\mathbb{Z}_2)$ such that 
$x\cup \psi$=$y\cup \phi= \omega$, where $\omega \in H^2(K,\mathbb{Z_2})\cong \mathbb{Z}_2$ is the generator.
So since $x,y,$ and $x+y$ are the only non-zero elements in $H^1(K,\mathbb{Z}_2)$, we of course have to choose from these for our $\psi$ and $\phi$. This mostly comes down to figuring out which of $x\cup x, x\cup y,y\cup y$ are equal to zero.
My Question
Is there a clear/intuitive way to do this? And assuming $x$ and $y$ correspond to the dual elements of either $A$ or $B$ in the diagram below, which one does each correspond to?

REPLY [2 votes]: The loops A and B determine the two Z2 cohomology classes by transverse intersections.

The self intersection of A is zero since you can move it parallel to itself slightly and get a disjoint loop. So its square is zero.

Its intersection with B is 1 so their product is non-zero.

The self intersection of B is 1 because of the half twist. So the square of B is not zero.
The first Stiefel Whitney class of the Klein bottle is not zero because it is non-orietable. The square of the first Stiefel-Whitney class is zero because the Klein bottle is an unoriented boundary.

Since the tangent bundle is flat with structure group, Z2, the classifying map for the tangent bundle factors through the classifying space for Z2 which is the infinite dimensional real projective space.
The loop,B, projects to the non-null homotopic loop in the projective space so A represents the first Whitney class since it is dual to B.