I'm familiar with the potential energy equation, but I'm concerned with the value of 'g' in it. I know that, at sea level, earth's gravitational acceleration is 9.81 m/s/s. So I know that within the normal bounds of physics the minute change in the gravitational acceleration due to the change in height is negligible. I'm running some calculations where the change in gravity is major enough for it to make a difference, and I'm trying to calculate the maximum velocity a body will reach right before it stops falling, which the kinetic energy contained in this will equal the potential energy before the fall (assuming a stationary body at the beginning). So I needed to calculate gravity and substitute the acceleration for the 'g' in the potential energy equation, and to save time, I combined the equations to get:
$$P.E. = \frac{G M_1}{H}$$
where G is the gravitational constant, M is the mass of the object (in this case the planet) that the body is falling to, and H is the distance from the surface. In order for the calculation to be precise, the gravitational acceleration has to change as the height does, which is where calculus comes in. Because I'm working with accelerations and need to take the sum of all the accelerations between heights (to yield the final velocity of the fall), I thought to integrate, as it's basically area under a curve. But if you look at what the graphs are representing, it's a little weird. The initial equation marked acceleration over distance $\frac{m/s^2}{m}$ which is really just per second squared (no numerator, right?). So the integral should represent per meter second squared, if not acceleration per meter squared. These units don't seem to make sense. Am I going about accounting for the change in gravity wrongly, or is my calculus wrong? Ultimately what's the proper way to calculate potential energy of a body when the change in gravitational acceleration is not negligible? I know that the law of conservation of energy states that the kinetic energy at the end of the fall (technically right before) should equal the potential energy before the particle falls. However, I can't find a way to calculate the velocity, accounting for the change in acceleration that accompanies the change in height.