## Energy: Single Degree of Freedom

In this section we will investigate the static and dynamic equilibria of a single degree of freedom mass-spring system. Under static static equilibrium of such system, loading of the system gives rise to an energy of deformation (termed potential energy) that is stored in the spring. This energy is released upon removal of loading. In the case of dynamic equilibrium of such system, the energy of the system is composed of two terms whose sum is constant, the kinetic energy due to the velocity of the mass and the potential energy (energy of deformation) stored in the spring. The presentation of the single degree of freedom, while elementary, enables the extension of the same principles to the deformation of continuum objects.

### Static Equilibrium of a Mass-Spring System:

The equilibrium of a mass-spring system is achieved when the weight of the mass is equal to the force applied in the spring. In other words equilibrium is achieved when:

where is the displacement (extension/contraction) of the spring, is the force in the spring which is function of the displacement, is the mass of the spring, and is the gravity body force per unit mass (The ground acceleration). The displacement at which equilibrium is achieved is going to be termed . In the following, we will investigate three forms for the force function ; linear elastic, nonlinear elastic, and non-elastic.

#### Linear Elastic Spring:

A linear elastic spring has a linear relationship between the spring force and the displacement such that where has units of force/unit length. When a weight of value is gradually hung the spring is gradually stretched until equilibrium is achieved when . At this stage, the spring force is equal to the applied weight and thus:

The work done by the external forces during the process of loading is stored as an elastic potential energy inside the spring and can be recovered once the load is removed (Figure 1). The spring force acts to reduce the potential energy of the spring by always acting to reduce the spring length to its original unstretched length. At an arbitrary distance x, the potential energy stored in the spring is equal to

In the process of moving a distance downward, the weight lost some of its gravitational potential energy that is equal to the value . We call this term the work done by the external load. If we consider the combined system of the spring and the mass, then the potential energy of the system is equal to:

(1)

The potential energy of the system can be viewed also as the resulting expression when integrating the equilibrium equation from 0 to :

Therefore, differentiating the potential energy function leads to the equilibrium equation:

The potential energy is a function of the displacement of the spring. When the displacement , the rate of change of the potential energy is equal to zero:

Therefore, at equilibrium, the potential energy function is either a maximum, minimum, or an inflection point. To identify which of the three, we can take the second derivative of the potential energy:

Therefore, the stiffness of the spring is what determines whether the potential energy is minimum, maximum, or an inflection point. When is positive, the potential energy of the system is minimum at equilibrium!

#### Nonlinear Elastic Spring:

A nonlinear elastic spring has a nonlinear relationship between the spring force and the displacement . When a weight of value is gradually hung the spring is gradually stretched until equilibrium is achieved when . At this stage, the spring force is equal to the applied weight and thus:

Similar to the linear case, the work done by the external forces during the process of loading is stored as an elastic potential energy inside the spring and can be recovered once the load is removed. The spring force acts to reduce the potential energy of the spring by always acting to reduce the spring length to its original unstretched length. At an arbitrary distance x, the potential energy stored in the spring is equal to

Similar to the linear case, the potential energy of the system is equal to:

The potential energy of the system can be viewed also as the resulting expression when integrating the equilibrium equation from 0 to :

Therefore, differentiating the potential energy function leads to the equilibrium equation:

The potential energy is a function of the displacement of the spring. When the displacement , the rate of change of the potential energy is equal to zero:

Therefore, at equilibrium, the potential energy function is either a maximum, minimum, or an inflection point. To identify which of the three, we can take the second derivative of the potential energy:

Therefore, the slope of the force displacement curve of the spring is what determines whether the potential energy is minimum, maximum, or an inflection point. When is positive, the potential energy of the system is minimum at equilibrium while when is negative, the potential energy is maximum! In addition, when the slope of the spring force is negative with respect to the displacement , the equilibrium position is deemed unstable. In this case, under the effect of an external force , any small perturbation in the displacement would lead to instabilities in the system. To understand this, let there be an equilibrium position where the slope is negative (Figure 2c & d). At this instance, the external force is in equilibrium with the internal spring force . Imagine then, that a small perturbation in the displacement increases the position to corresponding to an internal force . Since the slope is negative, . This, in turn, will lead to further extension in the direction of the higher force . Thus, the system will become unstable with the external force acting to increase the extension x in an unstable fashion.

Note that if the extension of the spring is applied using a displacement-controlling mechanism, this unstable mechanism will not be observed.

On the other hand, a spring whose force is always increasing with respect to the displacement (Figures 2a and 2b), and if the external load is not a function of the displacement then this spring is always stable and the mathematical expression for that is:

A continuously smooth function whose second derivative is always higher than zero belongs to the family of “convex” functions. If the elastic strain energy density of continuum bodies is convex in its variables, this implies that the material is stable.

#### Non-Elastic Spring:

The term nonelastic spring implies that the force in the spring is not simply a function of the position only but of the history of loading as well. For example, during a cycle of loading, the energy supplied by external sources dissipates in the system or turns into a form that is not useful. Figure 3 shows an elasto-plastic spring during a cycle of gradual loading and unloading. When the mass is gradually removed, the spring does not return back to its original position, but has a residual extension . The energy required to reach from state A to state B is the area under the curve shown in Figure 3b. During unloading, the load displacement curve follows a different path and some energy is lost. As can be seen in state C shown in Figure 3, the energy lost during the loading cycle is manifested in some change in the internal structure of the spring, which now has a longer length than that before loading. In such springs, a potential energy function cannot be easily defined, and the behaviour of the spring is history (path) dependent.

### Dynamic Equilibrium of a Mass-Spring System:

In the previous section, we were concerned with finding a position at which the system is stable. At this position, the velocity and acceleration of the mass is equal to zero. That position was termed the “static equilibrium” position of the system. A static equilibrium position is not always available. On the other hand, Newton’s equations of motion can be applied to any system to find the velocity and the acceleration due to the applied external loads. Any system, at any point in time, is in a state of dynamic equilibrium with the external loads. In a simple dynamic situation, there are two forms for energy in the system, the potential energy which was defined in the previous section and the kinetic energy due to the movement of the mass. To illustrate these concepts, we will investigate the dynamic equilibrium of a mass-spring system. We will restrict our example to a linear elastic spring where and to a system where the initial conditions are such that at , and the velocity . The equation of dynamic equilibrium is:

(2)

Unlike the previous section, the above equation is applicable at any displacement . I.e., :

We can now integrate the above equation from 0 to an arbitrary as follows:

The following equality can be used to simplify the second integral in the above equation:

Therefore:

Therefore:

The first term is called the kinetic energy of the system while the sum of the last two terms on the left hand side are equal to the potential energy of the system (see Equation 1). The total energy is the sum of both and therefore throughout the dynamic equilibrium (at any point in time or at any position ):

Going back to the differential equation (Equation 2), and utilizing the initial and boundary conditions, we can use Mathematica to find the solution for the position of the mass as a function of time :

View Mathematica Code

DSolve[{m*g-k*x[t]==m*x”[t],x[0]==0,x'[0]==0},x,t]

Two important observations to note about this solution. The first observation is that the solution predicts that the mass will vibrate around the static equilibrium position:

The second observation is that the maximum position for the spring is obtained when the cosine function is equal to –1 and thus,

The corresponding force in the spring is equal to

I.e., the force in the spring is doubled compared to the case of static equilibrium! In the process of designing a structure susceptible to vibrations, a dynamic effect factor is usually considered and this dynamic factor is usually between 1 and 2. This dynamic factor accounts for the increase in the internal forces induced by the vibrations. If the loads are expected to be applied in a sudden manner, similar to the initial conditions used in the differential equation, then the dynamic factor is closer to 2. In the other cases, when the load is expected to be applied in a gradual manner then the dynamic factor would be closer to 1.

The following code can help you visualize the effect of changing the mass and the stiffness on the vibration of the system. Copy and paste the code in your Mathematica program. Comment on the effect of increasing the stiffness and or the mass on the vibrations.

View Mathematica Code

Graphics3D[{GrayLevel[0.3],Cuboid[{-1,-1,-5},{0,0,(g*m- g*m*Cos[Sqrt[k/m]*t])/k}]},Axes->True,Lighting->”Neutral”,PlotRange->{{-1,0},{-1,0},{-5,2*5/1}},BaseStyle->Directive[Bold,12],AxesOrigin->{0,0,0},ViewVertical->{0,0,-1}],{t,0,4*Pi*Sqrt[5]},{m,1,5},{k,1,5}]

### Examples and Problems

#### Example 1

The force versus displacement of a nonlinear elastic spring follows the following relationship:

where the force and the displacement are given in N and mm, respectively. If the range of applicability of this formula is when , then:

- Draw the relationship between the force versus displacement in the full range of applicability of this relationship.
- Find the strain energy stored inside the sprint at full extension and at full contraction.
- Find the displacement in the spring that corresponds to a force of 3kN and a force of -1kN.
- comment on the behaviour of the spring at and .

##### Solution

The required plot is shown here:

The strain energy stored inside the spring at full extension and full contraction can be obtained by integration:

The displacements corresponding to 3kN and -1kN can be obtained using the Newton Raphson method, which is implemented in Mathematica using the function “FindRoot” and they are:

The graph of the force versus the displacement of the spring predicts an unstable behaviour at full extension and at . The forces that can be carried by the spring at those two displacement values are equal to 3.75 kN and -2.037 kN, respectively. At both displacements or at both spring forces values, the slope of the spring force versus extension is equal to zero, indicating that a small increase in the external force applied on the spring will lead to an unstable behaviour for the spring. Notice that the slope of the spring force versus extension is equal to the second derivative of the strain energy function:

Thus, for the sake of stability of the spring, it should be used at force values that are sufficiently less than 3.75 kN in tension and -2.037 kN in compression.

View Mathematica Code

Clear[x]; f=1000x+50x^2-20x^3; Plot[f,{x,-5,5},AxesLabel->{"x (mm)","f (N)"},PlotStyle->Black] Integrate[f,{x,0.,5}] Integrate[f,{x,0.,-5}] FindRoot[f==3000,{x,0}] FindRoot[f==-1000,{x,0}] a=D[f,x]; sol=Solve[a==0.,x] f/.sol[[1,1]] f/.sol[[2,1]]

#### Problems

- A spring manufacturer supplies three different elastic springs with the following three force-displacement relationships:
with the units of and being N and mm, respectively. The manufacturer warns that the above relationships are only valid when the spring is stretched or contracted with a distance of 0.5mm. Draw the relationship between the force and the displacement in the specified range.

- Find the strain energy stored in each spring at full extension and at full contraction. (Answer: 12.5, 16.67, 28.125, 12.5, 8.33, 28.125 N.mm).
- If a spring is required to carry a force of 45N (tension), find the displacement exhibited by each spring, and comment on which spring you would choose for this application.
- If a spring is required to carry a force of –45N (compression), find the displacement exhibited by each spring, and comment on which spring you would choose for this application.
- Comment on the stability of the second spring at full contraction.