Think in $\Bbb R^3$ for a minute. The hypothesis
$\dfrac{\partial f}{\partial x_i}(x) = f_i(x) \tag{1}$
says that the vector field
$\vec F(x) = (f_1(x), f_2(x), f_3(x))^T \tag{2}$
is the gradient of the function $f(x)$:
$\vec F(x) = \nabla f(x); \tag{3}$
as such,
$\nabla \times \vec F = 0. \tag{4}$
As is well-known, this situation is reversible: for $\vec F(x)$ satisfying (4), there is a scalar function $f(x)$ such that (3) applies, at least locally. And if one carefully examines the relations
$\dfrac{\partial f_i}{\partial x_j} = \dfrac{\partial f_j}{\partial x_i}, \; \; 1 \le i, j \le 3, \tag{5}$
one sees that (4) is exactly what they say; so that resolves the situation for $n = 3$, again, locally at least. For $n > 3$, it is perhaps easiest to revert to the language of differential forms; setting
$\omega = \sum_1^n f_i dx_i, \tag{6}$
we have
$d\omega = \sum_{1 \le i < j \le n} (\dfrac{\partial f_i}{\partial x_j} - \dfrac{\partial f_j}{\partial x_i}) dx_i \wedge dx_j = 0 \tag{7}$
this last equality holding by our hypothesis on the derivatives of the $f_i(x)$. In the parlance of differential forms, $\omega$ is said to be closed. It is substance of the Poincare lemma, which may be found at http://en.m.wikipedia.org/wiki/Closed_and_exact_differential_forms, that such forms, of no matter degree $p$ they may be, are also exact, that is such $\omega = d\alpha$ for some $p-1$ form $\alpha$, provided the domain $\Omega$ is simple enough; "star-shaped" is the criterion oft' applied, though the simpler notion convex will do to ensure such $\alpha$ exists, locally at least. In the present case, this means $\alpha$ is a function such that
$\dfrac{\partial \alpha}{\partial x_i} = f_i \tag{8}$
on appropriate $\Omega$. The linked citing explains the conditions which must be satisfied by $\Omega$ for the Poincare lemma to bind.
The preceeding presents, in broad outline, how the existence of solutions to the given equation may be established. Such are "funny" problems as far as PDEs go; for example it is not at all clear to me how issues such as boundary/initial data fit into the differential forms-based view of these matters; but it is certain that the domain $\Omega$ must be somewhat carefully specified if a solution is to be had. But then again, that's cohomology for you!
Hope this helps. Cheers,
and as ever,
Fiat Lux!!!