Sub topic 10
Constraint relations from an inextensible string
This chapter assumes you can draw a free-body diagram and write F = ma along chosen axes. You should also be able to differentiate a simple expression with respect to time and solve simultaneous linear equations. The chapter shows how to turn "the string does not stretch" into an equation between accelerations.
Why you need a constraint
Take two blocks joined by a string over a pulley. Each block gives one equation from Newton's second law. The unknowns are two accelerations and the tension, which makes three. Two equations cannot fix three unknowns.
The string supplies the missing equation. It cannot stretch, so the two blocks cannot move independently. That geometric link is a constraint relation.
Constraint relations come from geometry, not from forces. You write them without any free-body diagram, and you then combine them with the force equations.
The principle
A string is inextensible if its length L stays constant. If the string is taut, its length is the sum of the straight segments between the points where it touches something. Because that sum is constant:
- Write L as a sum of segment lengths, each measured from a fixed point or fixed line.
- Differentiate once to get a relation between velocities.
- Differentiate again to get a relation between accelerations.
Each time you differentiate, the constant L disappears.
Example 1: the Atwood machine
Two masses hang over a fixed pulley. Let y1 and y2 be the distances of the masses below the pulley, with downward positive. The string length is
L = y1 + y2 + (constant arc over the pulley)
Differentiating twice gives a1 + a2 = 0, so a2 = −a1. One mass goes down exactly as fast as the other goes up.
With a1 = a, the force equations are m1 g − T = m1 a and T − m2 g = m2 (−a)·(−1), which simplifies to T − m2 g = m2 a. This uses the "both accelerations measured in the direction the system moves" convention, where each mass is positive when it moves along the string. Solving gives
a = (m1 − m2) g / (m1 + m2), T = 2 m1 m2 g / (m1 + m2)
For m1 = m2 these give a = 0 and T = m g, as equilibrium requires.
Example 2: a block on a table and a hanging block
A block of mass m1 lies on a smooth horizontal table. A string runs over a pulley at the table edge to a hanging block of mass m2. Let x be the distance of m1 from the pulley and y the length of string hanging down.
L = x + y + (constant)
Differentiating twice gives ax + ay = 0. If m1 moves toward the pulley (x decreases), m2 moves down (y increases) by the same amount. The magnitudes of the two accelerations are equal.
The force equations are:
- On m1, along the table: T = m1 a
- On m2, vertically: m2 g − T = m2 a
Adding them gives a = m2 g / (m1 + m2) and T = m1 m2 g / (m1 + m2).
def table_and_hanging(m1, m2, g=10.0):
# m1 on a smooth table, m2 hanging; constraint: both accelerations have equal magnitude
a = m2 * g / (m1 + m2)
T = m1 * m2 * g / (m1 + m2)
return a, T
a, T = table_and_hanging(3, 2)
print(a, T) # 4.0 12.0
assert abs(T - 3 * a) < 1e-9 # m1: T = m1 a
assert abs(2 * 10.0 - T - 2 * a) < 1e-9 # m2: m2 g - T = m2 aThe asserts substitute the answers back into the original force equations. Doing this as a habit catches most algebra slips.
Example 3: a string at an angle
Not every string runs parallel to the motion. Suppose the string passes over a pulley at height h above the table and is attached to a block on the table. The block is at horizontal distance x from the point below the pulley, and the string segment to the block has length
l = √(x² + h²)
The hanging end of the string moves at the rate l′. Differentiating l² = x² + h² gives l l′ = x x′, so
l′ = (x / l) x′ = v cos θ
Here θ is the angle between the string and the table, and v = x′ is the block's speed along the table. This is the velocity rule for taut strings: the components of the two ends' velocities along the string are equal. Components perpendicular to the string are not constrained.
Differentiating once more gives the acceleration relation:
l″ = a cos θ + v² sin²θ / l
The second term appears because the string's direction changes as the block moves. Many students write only a cos θ, which is correct only at an instant when v = 0, for example when the system is released from rest.
The following code checks the formula numerically by taking a finite-difference second derivative of l(t).
import math
h = 2.0 # pulley height above the table
x0, v, a = 3.0, 1.5, 0.8 # block position, speed, acceleration along the table
dt = 1e-4
def x_at(t):
return x0 + v * t + 0.5 * a * t * t
def l_at(t):
return math.hypot(x_at(t), h)
l_dd = (l_at(dt) - 2 * l_at(0) + l_at(-dt)) / dt**2 # numerical l''
l0 = l_at(0)
cos_t, sin_t = x0 / l0, h / l0
predicted = a * cos_t + v * v * sin_t**2 / l0
print(round(l_dd, 3), round(predicted, 3)) # 0.858 0.858Common errors and edge cases
| Error | What goes wrong | Fix |
|---|---|---|
| Mixed sign conventions | One body's coordinate points up, the other's down, and the constraint gets the wrong sign | Write the constraint from the coordinates you actually defined |
| Using a cos θ with v ≠ 0 | Ignores the change of string direction | Differentiate l(x) twice, or use a cos θ only at rest |
| Treating a rod like a string | A rod can push, so tension can be negative | Use the string model only while T > 0 |
| Forgetting the pulley moves | The pulley's own position enters L | Include every segment, as the next chapter does for movable pulleys |
| Different tensions on one string | Applies only if the pulley has mass or friction | For an ideal pulley, tension is the same on both sides |
The constraint assumes the string stays taut. If your solution gives T < 0, the string would go slack, the constraint no longer holds, and the bodies move independently. Always check the sign of T.
How this connects to the next chapter
If a pulley itself moves, its coordinate appears in the length sum, and the segments on both sides of it count. For a movable pulley with two string segments hanging from it, the relation becomes 2 y1 + y2 = constant, and a2 = −2 a1. The next chapter develops this fully. The method stays the same: write L, then differentiate twice.
Exercise
A block of mass 3 kg lies on a smooth table and is joined by a string over an edge pulley to a hanging mass of 2 kg. Take g = 10 m/s². Write the constraint between the accelerations, then find the acceleration and the tension.
Show answer
The string length is L = x + y + constant, where x is the block's distance from the pulley and y the hanging length. Differentiating twice gives ax = −ay, so the magnitudes are equal. For the 3 kg block, T = 3a. For the 2 kg mass, 20 − T = 2a. Adding gives 20 = 5a, so a = 4 m/s² and T = 12 N.
Exercise
A string passes over a pulley and is attached to a block sliding on a table. At one instant the string makes 60° with the table and the block moves at 4 m/s along the table, away from the point below the pulley. How fast is the hanging end of the string moving?
Show answer
By the velocity rule, the string's speed equals the block's velocity component along the string. That is v cos 60° = 4 × 0.5 = 2 m/s. The hanging end moves at 2 m/s.