I currently have an expression of the following form:
$$\int_{\partial A} f(x) dH_{n-1}(x)$$
Where $A$ is an orientable Riemannian Manifold of dimension $n$, $H_{n-1}$ is the $(n-1)$-dimensional Hausdorff measure and $f:A\rightarrow\mathbb{R}$ is a $C^\infty$ function. I wish to use Generalized Stoke's theorem to convert the above into something of the form:
$$\int_{A} g(x) dM(x)$$
where $g$ is some function and $M$ is some function. I am still new to differential forms but from what I understand I can do something like the following:
By this question, I can replace the Hausdorff measure with the $n-1$ dimensional volume form, $\omega_{n-1}$ like so:
$$\int_{\partial A} f(x) dH_{n-1}(x)=\int_{\partial A} f(x) \omega_{n-1}(x)$$
I can then write out the product $f(x) \omega_{N-1}(x)$ as follows:
$$f(x)\omega_{N-1}(x)=\sum_{j=1}^{n}(-1)^{j-1}f(x)x_{j}dx_{1}\wedge\cdots\wedge \hat{dx_{j}}\wedge\cdots \wedge dx_{n}$$
where $x_j$ is the $j^{th}$ component of $x$ and $\hat{dx_{j}}$ represents that $\hat{dx_{j}}$ is neglected from the wedge. (I got the above expression from here).
If I differentiate this form I think I get the below:
$$d(f(x) \omega_{N-1}(x))= \sum_{i=1}^{n}\sum_{j=1}^{n}(-1)^{j-1}\frac{\partial [f(x)x_{j}]}{\partial x_i}dx_{i}\wedge dx_{1}\wedge\cdots\wedge \hat{dx_{j}}\wedge\cdots \wedge dx_{n}$$
$$= \sum_{j=1}^{n}(-1)^{j-1}\frac{\partial [f(x)x_{j}]}{\partial x_j}dx_{j}\wedge dx_{1}\wedge\cdots\wedge \hat{dx_{j}}\wedge\cdots \wedge dx_{n}$$
$$= \sum_{j=1}^{n}(-1)^{j-1}(-1)^{j-1}\frac{\partial [f(x)x_{j}]}{\partial x_j}dx_{1}\wedge\cdots \wedge dx_{n}$$
$$= \sum_{j=1}^{n}\bigg(f(x)\frac{\partial x_{j}}{\partial x_j}+\frac{\partial f(x)}{\partial x_j}x_{j}\bigg) dx_{1}\wedge\cdots \wedge dx_{n}$$
$$= \bigg(nf(x)+\sum_{j=1}^{n}\frac{\partial f(x)}{\partial x_j}x_{j}\bigg) dx_{1}\wedge\cdots \wedge dx_{n}$$ (assuming an $x_1,\cdots x_n$ are orthonormal).
$$= \bigg(nf(x)+\sum_{j=1}^{n}\frac{\partial f(x)}{\partial x_j}x_{j}\bigg) dx$$
where $dx$ is shorthand for $dx_{1}\wedge\cdots \wedge dx_{n}$. By applying the generalized Stoke's theorem I then get;
$$\int_{\partial A} f(x) \omega_{N-1}(x)=\int_{A} d(f(x) \omega_{N-1}(x))$$ $$=\int_{A} \bigg(nf(x)+\sum_{j=1}^{n}\frac{\partial f(x)}{\partial x_j}x_{j}\bigg) dx$$
So I have that $g(x)=\bigg(nf(x)+\sum_{j=1}^{n}\frac{\partial f(x)}{\partial x_j}x_{j}\bigg)$ and $M(x)=x$.
My question is this; is this approach correct to get the integral over $A$ I originally set out to obtain? The placement of $n$ in the final integral seems odd to me...
There are a lot of concepts in the above text that are still very new to me, and I am not sure that I am applying them correctly. I am still struggling with the differentiation and am unsure if my final expression is correct.
Can anyone verify my working and help if I have done this wrong?