- 42,785
- 10,490
This thread got me interested in how to find the potential from the field. I came up with this. Let the independent variables be xi. We know the functions ##\phi_{x_i}##, the subscript denoting partial derivative. I'll abbreviate that to ##\phi_i##.JulienB said:@haruspex Ah okay! No problem, the most I learn comes from the mistakes I make. Thanks for your advices!
##\phi=\Sigma \int \phi_i.dx_i-\Sigma_{i<j} \int\int \phi_{ij}.dx_i.dx_j+\Sigma_{i<j<k} \int\int\int \phi_{ijk}.dx_i.dx_j.dx_k ...##.
No doubt this is a known result, just not known to me. It's analogous to the principle of inclusion and exclusion.
But in most cases, it will be far simpler just to spot the potential function with a little trial and error.
Interestingly, it produces an answer even where no potential function exists. This is because it assumes that the function produced by differentiating the given ##\phi_1## wrt x2 will match that obtained by differentiating the given ##\phi_2## wrt x1
Last edited:
. It does look right. I believe each summation term just yields ##\phi## multiplied by a binomial coefficient. Factoring out ##\phi##, you get ##\phi## multiplied by the sum of the coefficients (with the alternating signs). The sum of the coefficients gives 1, so the entire expression reduces to ##\phi##. I've never seen a function expressed this way.