Work of Force: Understanding \int \vec{F} \cdot d\vec{r}

  • Thread starter Thread starter hotcommodity
  • Start date Start date
  • Tags Tags
    Work
AI Thread Summary
The discussion focuses on understanding the work done by gravity on a falling object, represented by the integral of the force over distance. The work is calculated using the dot product, which requires careful consideration of direction. When the force of gravity acts downwards and the distance differential (dr) is upwards, a negative sign must be applied to account for the opposing directions. The confusion arises from the definition of the dot product and the need to define coordinate systems correctly to avoid sign errors. Ultimately, recognizing the direction of both force and distance is essential for accurate calculations of work and potential energy changes.
hotcommodity
Messages
434
Reaction score
0
I know that the work done by a particular force is defined to be:

\int \vec{F} \cdot d\vec{r}

and this dot product is defined as:

|F||dr| cos(\theta)

I want to show that the work done by the force of gravity on a falling object is -\Delta U, using h_0 and h_f as my endpoints. So plugging in the information, I have:

\int^{h_f}_{h_0} F*cos(\theta)*dr = mg*cos(0) \int^{h_f}_{h_0} dr = mg(h_f - h_0)

This is only the change in potential energy, rather than the negative change in potential energy. If I place a negative in front of mg to denote the direction of the force, it works out. But given the definition of the dot product where it uses absolute values, I don't see how I can do that. I'm having trouble knowing when to put in the minus sign, and when to leave it out, in other words, I'm not completely certain when it is necessary to take direction into account. If someone could explain my flawed reasoning, I would appreciate it.
 
Physics news on Phys.org
There's nothing wrong. Note that h_0>h_f, and so, if we denote net change of height by h, h_f-h_0=-h.
 
I see, I suppose the inequality tripped me up. So when is it necessary to take the direction of the force into account?

Edit: If h_f < h_0, that means gravity does negative work on the object. This can't be true since its kinetic energy increases.
 
Last edited:
It is always necessary to take direction into account when computing work. The force (mg) points down, thus your distance differential must also point down. Since dy points up, you need -dy:

W = \int \vec{F} \cdot d\vec{r} = \int mg (-dy) = -mg\int^{h_f}_{h_0}dy = -mg(h_f - h_0) = -\Delta U
 
Thank you for the reply. If the force and the distance differential (I'm assuming that's dr) point down, I take it that we're using the coordinate system where down is positive. What is dy representitive of, and how do we know its direction?
 
hotcommodity said:
Thank you for the reply. If the force and the distance differential (I'm assuming that's dr) point down, I take it that we're using the coordinate system where down is positive.
If you used a coordinate system where down was positive, you wouldn't have had the problem. Even though you called it r, you actually used height as your position variable. That's why you got h_f - h_0 with the wrong sign.

What is dy representitive of, and how do we know its direction?
I used a vertical axis (y-axis) to represent position, which is more representative of what you actually did. Thus the y-coordinate represents the height above some origin. I used dy to represent a differential along that axis; since up is positive, we need to use -dy to represent the downward distance differential.
 
So, if you took the direction of dy into account, why didn't you take the direction of the force into account?

The thing that confuses me is the definition of the dot product. If we take the magnitudes of F and dr, and multiply them, and multiply that by the cosine of 0, we can't get a negative in front of \Delta U.
 
hotcommodity said:
So, if you took the direction of dy into account, why didn't you take the direction of the force into account?
But I did. The direction of the force is downward, in the direction of -y. (That's why I took -dy as the differential: I want to find the work done by gravity, which acts down.)

The thing that confuses me is the definition of the dot product. If we take the magnitudes of F and dr, and multiply them, and multiply that by the cosine of 0, we can't get a negative in front of \Delta U.
Why cosine of 0? If F and dr are in the same direction, then the angle between them is zero. But if F and dr are in opposite directions, the angle is 180 and cos(180) = -1. (So the angle depends on how you define dr.)

Since gravity acts down, it does positive work on an object which moves down. I must define the directions accordingly, or I'll get the wrong sign.
 
Back
Top