(a) Since
∇⋅F=∂x∂(1+yz)+∂y∂(2y+zx)+∂z∂(3z2+xy)=2+6z=0,
F fails the screening test and cannot have a vector potential.
(b) The vector field A=A1^+A2^ is a vector
potential for G if and only if G=∇×A,
which is the case if and only if
−∂z∂A2∂z∂A1∂x∂A2−∂y∂A1=yz=zx=xy⟺⟺⟺A2=−21yz2+B2(x,y)A1=−21xz2+B1(x,y)∂x∂B2−∂y∂B1=xy
There are infinitely many solutions to ∂x∂B2−∂y∂B1=xy. In fact B2 is completely arbitrary.
If one chooses B2=0, then B1=−21xy2 does the job. If one chooses
B1=0, then B2=21x2y does the job. Thus two solutions are
A=21(z2−y2)x^−21yz2^ and
A=21xz2^+21(x2−z2)y^.