On the equations rot v=g and div u=f with zero boundary conditions