Hi, it's not quite a homework question, altought this question came up to mind when i was trying to solve a homework problem. sorry if this shouldn't be here... The thing is this, what are the conditions i should impose to f: R^n -> R in order to be able to find a g, such that [divergence of g = f] ? I'm not sure how to handle this, since it seems to involve some sort of differential equation (does it?) or at least the existence of an integral for f.. well, i don't really need to get the g, i just need to know if it exists to solve this problem the way i want to, which is to transform a volume integral into a surface integral (why would somebody want a divergence if not? :P) thanks, and mods: please move the post if this belongs to the homework category..