# B Sign conventions with gravity

1. May 15, 2017

### Isaac0427

We say that, for gravity, F=mg, where g≈-9.8 m/s2. Then, we have U=mgh. But, it seems like that equation would only work if g were positive 9.8 m/s2. That is, because $F=-\frac{dU}{dr}$, and $\frac{dU}{dr}$ is essentially $\frac{dU}{dh}$, we should get F=-mg. So, for the two equations to work, it seems like the g in the first equation should have the opposite sign as the g from the second equation. But that seems like a really weird convention to have. So, if the convention is that g is positive then we should have F=-mg, and if g is negative we should have U=-mgh, right?

2. May 15, 2017

### Orodruin

Staff Emeritus
Be careful with your sign conventions. If you define your coordinate to increase when going against the field, then indeed F=-mg, where g is positive, this is just telling you the force goes in the opposite direction relative to the coordinate increase, just as expected.

3. May 15, 2017

### Isaac0427

Ok. And in that case, U=mgh, right? And if you define the coordinates to increase when going with the field, you would have F=mg and U=-mgh where g is positive, right? But, why do most sources I have seen use both F=mg and U=mgh? Isn't that inconsistent?

4. May 15, 2017

### Orodruin

Staff Emeritus
That depends on the definition of h relative to the coordinate.

5. May 15, 2017

### Staff: Mentor

The g in these two cannot be the same. The g in the first equation is a vector and the g in the second equation is a scalar.

It is absolutely up to the reader/student to learn what each term in an equation means. You should never assume that the same symbol means the same thing in a different equation, nor should you assume the opposite!

6. May 15, 2017

### Orodruin

Staff Emeritus
Of course they can. You just study one direction (ie, one component of the force) and name the coordinate $x$ in the down direction, leading to the relation $h = x_0-x$ and $dh/dx=-1$. You just have to be careful with your conventions.

7. May 15, 2017

### Staff: Mentor

If I wrote those two equations then g in each equation would not be the same thing. The OP needs to read the text to find out how the textbook author defined them and not assume that the symbols are the same.

Last edited: May 15, 2017
8. May 15, 2017

### Isaac0427

I understand that last part, but in these equations, both represent the vector gravitational acceleration (for the second equation I could have said U=mg⋅h). It seems like the gravitational acceleration takes on two different values.

9. May 15, 2017

### Staff: Mentor

My advice is to always use g to be just the magnitude of the acceleration due to gravity. Thus g = 9.8 m/s^2.

So then: The acceleration due to gravity is g, downward. The weight of an object is mg, downward.

Depending on the sign convention you choose for any particular application, those vector components can be positive or negative.

10. May 15, 2017

### Staff: Mentor

That is a very unusual convention. Given that, you need to make doubly sure that you do not assume anything about the meaning of the symbols from one equation to another. The author is using different notation from the community, so it is likely that they use different notation from section to section also

11. May 20, 2017

### AlphaLearner

But in the equation F= -mg, 'g' is the only value which can be negative. But you say 'g' is positive, then what makes 'mg' negative when 'g' is positive?

12. May 20, 2017

### Staff: Mentor

mg is just the magnitude of the force; the direction is downward. With a sign convention that up is positive, the vertical component of that force would be -mg.

13. May 20, 2017

### Staff: Mentor

This is normally written with some notation indicating that we are dealing with a component, e.g. Fy = -mg.

14. May 20, 2017

### AlphaLearner

Yes, even I agree that 'mg' is always act downwards but then depends on direction of object being displaced in. If object displaces upwards, gravity act downward, work done by gravity is negative. If body displace along gravity, gravity does positive work. I understand. But in F = -mg, If 'g' is taken positive, it means that body was moving along gravity. When 'mg' is negative and 'g' is positive in it based on above equation. Means gravitational force acting on freely falling body is negative, does gravity do negative work on freely falling body? How can we simply say since 'mg' act downward means force is -mg? I did not understand.

15. May 20, 2017

### Orodruin

Staff Emeritus
It has nothing to do with how the body is actually moving, it only depends on which direction is defined as being the positive direction.
The sign of the work done by gravity depends on whether or not the object moves against or in the same direction as the gravitational field, not on the way you define your coordinate.
This is only true if you define the coordinate as increasing when the object goes up. It all depends on the choice of coordinates.

16. May 20, 2017

### PeroK

Reality makes it so! The maths must follow the physics. Gravity acts downwards/towards the centre of the Earth. All equations and sign conventions are geared to respect that physical fact.

There's nothing mathematical that is going to jump up and tell you that you have the signs mixed up. It's up to you to align the mathematics with the physical reality.

17. May 20, 2017

### Staff: Mentor

The work done by a force depends on the direction of the force and the direction of the displacement. If both force and displacement are in the same direction -- as in a falling body -- the work done is positive. (Note that force and displacement are both negative in that case, using our sign convention.)

18. May 20, 2017

### AlphaLearner

Thank you sir, I have got some clarity. But in first reply, positive direction of object is defined as direction along the gravity right? And in kinematics, in projected bodies 'g' is considered negative since goes against 'g' and freely falling bodies 'g' is considered positive as goes along 'g', we applied same here. Am I right?

19. May 20, 2017

### Staff: Mentor

No, you're just confusing yourself.

Just remember this: The direction of the force of gravity and the direction of the acceleration due to gravity (for a freely falling object) are both down. Whether that's positive or negative is entirely up to you and your sign convention.

20. May 20, 2017

### AlphaLearner

I understand, 'g' always acts downwards followed by 'mg'. But can't we blindly take as a body moves up, 'g' act downward so 'g' is taken negative and as body moves down 'g' as positive since it act downwards in all cases?

This is not a confusion for me since today, for an year since I learnt it. I once quarreled with my room mates regarding this! Even I said 'g' always act downward. But they told me this. Later my physics teacher drew the positive x,y axes beside each case: Projected and freely falling. In projected, he normally defined positive y-axis upwards and since 'g' is downward, told to take 'g' as negative. In freely falling, he just turned the positive y-axis downwards and since 'g' is also downward, told to take 'g' as positive.
So now I understand, 'g' is always downwards, no matter the case is. But its sign depends on how we define the coordinate system.

Thanks for help.