Consider a system of PDEs given by: \begin{eqnarray} z_x=a(x,y) \text{ and } z_y=b(x,y), \end{eqnarray} where $a,b \in \mathcal{D}'(\mathbb{R} \times \mathbb{R}).$
The condition $a_y=b_x$ in the sense of distribution, is necessary for the existence of the solution of the above PDE(in the sense of distribution). Is this condition sufficient or do we need something extra?
Also what is the corresponding result in higher dimensions?