When finding the work done by various types of forces, an interesting result arises from the work done by gravity and elastic springs. The work done by both types of forces only depends on the initial and final positions of the object. This means that we can skip the process of calculating work for gravity and springs, and instead write a function that results in the same value that we would have got if we did calculate the work the traditional way. The functions we define in place of the work due to gravity and springs, are called potential energy functions. This section will help familiarize you with working with potential energy functions. For completeness the potential energy functions that arise from the work due to gravity and the work due to a spring are the following:
Gravitational potential energy ($U^g$): $mgy$, where m = mass, g = gravitational constant, y = height relative to zero
Spring potential energy ($U^S$): $\frac{1}{2}k \Delta x^2$, where k = spring constant, x = distance from equilibrium
If we account for all the interactions an object experiences, we can write a clever summation of specific quantities that will help us describe the motion of the object. The clever expression is known as the conservation of (mechanical) energy. Mathematically it is written as:
$K_i + U^g_i + U^S_i + \sum W_{nc} = K_f + U^g_f + U^S_f$
where K = kinetic energy and U = potential energy. In later sections we will expand on this equation to include more potential energy functions, but for now gravity and spring are the only ones we have came across thus far. Recall energy is a scalar, thus application of conservation of energy will greatly simplify otherwise complicated problems if trying to use kinematics.
Check out the OpenStax trailer to learn about the interplay between kinetic and potential energy.