How Do You Create a Second-Order Equation from a Spring Constant?
At a glance
- 1. Choose displacement
Define the object’s displacement from its equilibrium position and state which direction is positive.
- 2. Apply Hooke’s law
The spring force is opposite the displacement: F = −kx.
- 3. Use Newton’s law
Set the sum of forces equal to mass times acceleration, using x double-prime for acceleration.
- 4. Add other forces
Include damping or an external force if the physical system has them.
- 5. Simplify and solve
Divide by the mass, then use initial position and velocity to determine the motion.
A spring constant tells you how strongly a spring pulls or pushes when stretched or compressed. To turn that information into a second-order differential equation, combine Hooke’s law with Newton’s second law. The equation describes how the mass’s displacement changes over time.
Start with Hooke’s law
For a spring that obeys Hooke’s law, the force exerted by the spring is proportional to its displacement from equilibrium and points back toward equilibrium:
Here, is the spring constant, measured in newtons per meter (N/m), and is displacement in meters. The minus sign matters: if the mass is displaced in the positive direction, the spring force points in the negative direction.
Newton’s second law says that the net force on a mass is times its acceleration. If is the displacement at time , then acceleration is , so for an ideal spring with no other forces,
Rearranging gives the standard equation for undamped free motion:
or, after dividing by ,
This is a second-order differential equation because it contains the second derivative of displacement.
Include damping or an external force
Real systems may have resistance from air, friction, or a shock absorber. A common model assumes that the damping force is proportional to velocity and opposite its direction: , where is the damping coefficient. If an external force also acts on the mass, Newton’s law becomes
This is the general linear mass–spring–damper equation. Set if there is no damping, and set if no external force is applied. For a spring with no damping or external input, it reduces to .
Worked example: find the equation and motion
Suppose a kg mass is attached to a spring with spring constant N/m. Let represent the equilibrium position, and choose the positive direction to be the initial direction of displacement. Ignore damping and external forces.
The spring’s force is . Applying Newton’s law gives
so
The equation is second order. Its angular frequency is
If the mass is released from rest m from equilibrium, the initial conditions are and . The general solution of is
Using the initial position gives . Differentiating gives , so the zero initial velocity requires . Therefore,
The mass oscillates about equilibrium with amplitude m and angular frequency rad/s. The spring constant alone is not enough to determine the motion: you also need the mass, and solving for a particular motion requires initial position and velocity.
What if the spring hangs vertically?
A hanging mass also experiences gravity. If is measured downward from the spring’s unstretched position, then the force balance is , or . The mass’s static equilibrium extension is . Define displacement from that equilibrium by . Substitution removes the constant gravity term and again gives . Thus, measuring displacement from equilibrium is usually the simplest way to write the equation.
Common mistakes
- Dropping the restoring-force sign: The spring force points toward equilibrium, so it is when positive displacement is defined away from equilibrium.
- Using the spring constant by itself as the frequency: The coefficient in the normalized equation is , and the angular frequency is .
- Confusing position with displacement: For vertical motion, the unstretched length and equilibrium position differ. State which reference point defines .
- Leaving out forces in the model: Add gravity if measuring from the unstretched position, damping if resistance is modeled, and any applied force on the right-hand side.
- Assuming the equation determines one unique motion: A second-order equation needs two initial conditions, commonly the starting displacement and velocity.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.