Calculating Work with Line Integrals: Solving a Force Field Problem

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
39 replies · 3K views
JulienB said:
@haruspex Ah okay! No problem, the most I learn comes from the mistakes I make. Thanks for your advices!
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##.
##\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:
Physics news on Phys.org
haruspex said:
##\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 ...##
Interesting. ...took me a while to digest this :olduhh:. 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.
 
haruspex said:
Not exactly. Consider φ=xy+z. The first summation gives 2xy+z. The excess xy gets removed by the second summation.
Yes, you are right. I was making the stupid mistake of thinking that taking the partial derivative of a function with respect to x, say, followed by integrating with respect to x would give back the function (up to a constant of integration). Certainly not!
 
haruspex, I'm a little unsure of how to interpret the integrals in your expression. Suppose we have two independent variables ##x## and ##y## and we want to give meaning to the integral ##\int{(x+y)^2}dx##. Doing the integral with a ##u## substitution ##u = x + y## yields ##(x+y)^3/3##. But, instead, if I square out ##(x+y)^2## and then integrate, I get ##x^3/3 + x^2y + xy^2##. These results differ by ##y^3/3##, which can be considered a "constant of integration" since ##y## is held constant during the integration with respect to ##x##. So I'm having trouble seeing how the integrals in your expression lead to a definite result.
 
TSny said:
Yes, you are right. I was making the stupid mistake of thinking that taking the partial derivative of a function with respect to x, say, followed by integrating with respect to x would give back the function (up to a constant of integration). Certainly not!
Fwiw, it can be written in vector notation as ##\phi=\int \vec\nabla.\vec{dr}-\int\int (\vec \nabla\times\vec\nabla)\phi.(\vec{dr}\times\vec{dr})+\int\int\int \wedge^3\vec \nabla\phi.\wedge^3\vec{dr}##, where ##\wedge^3\vec v## stands for the triple scalar product ##\vec v.\vec v\times\vec v## (by analogy with the exterior product).
 
TSny said:
haruspex, I'm a little unsure of how to interpret the integrals in your expression. Suppose we have two independent variables ##x## and ##y## and we want to give meaning to the integral ##\int{(x+y)^2}dx##. Doing the integral with a ##u## substitution ##u = x + y## yields ##(x+y)^3/3##. But, instead, if I square out ##(x+y)^2## and then integrate, I get ##x^3/3 + x^2y + xy^2##. These results differ by ##y^3/3##, which can be considered a "constant of integration" since ##y## is held constant during the integration with respect to ##x##. So I'm having trouble seeing how the integrals in your expression lead to a definite result.
Yes, that needs to be clarified. I take the integrals to be analogous to partial derivatives, so integration dx treats y and z as constants.
 
haruspex said:
Yes, that needs to be clarified. I take the integrals to be analogous to partial derivatives, so integration dx treats y and z as constants.
Yes, that's how I was interpreting the integrals. I just don't see how to decide on the "arbitrary functions of integration". I will think some more about it tomorrow.
 
TSny said:
Yes, that's how I was interpreting the integrals. I just don't see how to decide on the "arbitrary functions of integration". I will think some more about it tomorrow.
What I was hoping to achieve is that you don't have to worry about the arbitrary functions. They should come in via the other integrals. All that should be arbitrary at the end is a constant. It seems to work for the cases I've tried.
 
Wow nice to see the topic got you so interested :) I can't help (yet), but I'm reading with a lot of interest!