There is a global-domain issue in the printed question. Write away from the origin. Direct partial differentiation givesThus the differential one-form is a closed differential form for every real . The Poincaré lemma makes it locally an exact differential form on small neighborhoods avoiding the origin. There is no additional condition such as .
However, the stated domain is the whole punctured plane, which is not simply connected. To test global exactness, use the closed ellipse , , . Here andThe line integral of a globally exact differential form around any closed curve would be zero. ConsequentlyThe distinction is precisely that of the elliptically scaled angular one-form. The remaining parts can be answered consistently using a local angle branch, as follows.