Bott and Tu page 19 - Exercise 1.7
Compute $H^*_{DR}(\Bbb R^2 - P-Q)$ where $P$ and $Q$ are two points in $\Bbb R^2$. Find the closed forms that represent the cohomology classes.
So first of all, we write that we have: $$0\longleftarrow\Omega^2(\Bbb R^2-P-Q)\longleftarrow\Omega^1(\Bbb R^2-P-Q)\longleftarrow\Omega^0(\Bbb R^2-P-Q)\longleftarrow0$$
So we consider the closed $0$-forms, and they are given by $d(f(x,y))=0=\frac{\partial f}{\partial x}dx+\frac{\partial f}{\partial y}dy$ So $\frac{\partial f}{\partial x}=0=\frac{\partial f}{\partial y}$ so that $f$ is constant. So $H^0(\Bbb R^2-P-Q)=\Bbb R$.
Now we want to find closed $1$-forms, and thus $$d(f(x,y) dx+ g(x,y)dy)=0=\frac{\partial f}{\partial y} dydx+ \frac{\partial g}{\partial x}dxdy=(\frac{\partial g}{\partial x} - \frac{\partial f}{\partial y})dxdy=0$$
So we find that: $$\frac{\partial f}{\partial y} = \frac{\partial g}{\partial x},$$
Then I want to quotient by all exact $1$-forms, which are those $1$-forms that are equal to $df$ for some $f\in \Omega^0(\Bbb R^2-P-Q)$ and hence are of the form $\frac{\partial f}{\partial x} dx+ \frac{\partial f}{\partial y} dy\ne 0$, so these partials cannot be simultaneously zero.
How do I then find $H^1(\Bbb R^2-P-Q)$?
If $P=(0,0)$ consider the 1-form $$\frac{y\,dx-x\,dy}{x^2+y^2}.$$ This represents a generator of $H^1(\Bbb R^2-(0,0))$. It's also nontrivial in $H^1(\Bbb R^2-(0,0)-Q)$. But you need to also find a corresponding 1-form "centred" at $Q$.