Skip to main content

Loop closure equation and Newton-Raphson method

Short answer

Vector loop equation: r2cosθ2 + r3cosθ3 - r4cosθ4 - r1 = 0 and r2sinθ2 + r3sinθ3 - r4sinθ4 = 0. Freudenstein's equation eliminates θ3 giving K1cosθ4 - K2cosθ2 + K3 = cos(θ2-θ4), solved via quadratic for both assembly modes. Newton-Raphson iteratively solves f1=0, f2=0 using Jacobian matrix, requiring initial guess but converging quickly for computer implementation.

Write the vector loop-closure equation of a four-bar linkage and explain how the unknown coupler and follower angles are found by Freudenstein's equation and by the Newton-Raphson iterative method.

Loop-closure equation

Represent the links as vectors r⃗1\vec r_1 (frame), r⃗2\vec r_2 (crank), r⃗3\vec r_3 (coupler), r⃗4\vec r_4 (follower) with angles θ1=0,θ2,θ3,θ4\theta_1 = 0, \theta_2, \theta_3, \theta_4 measured from the frame. The closed loop gives

r⃗2+r⃗3−r⃗4−r⃗1=0\vec r_2 + \vec r_3 - \vec r_4 - \vec r_1 = 0

Splitting into components:

r2cos⁡θ2+r3cos⁡θ3−r4cos⁡θ4−r1=0r2sin⁡θ2+r3sin⁡θ3−r4sin⁡θ4=0\begin{aligned} r_2\cos\theta_2 + r_3\cos\theta_3 - r_4\cos\theta_4 - r_1 &= 0 \\ r_2\sin\theta_2 + r_3\sin\theta_3 - r_4\sin\theta_4 &= 0 \end{aligned}

These are two equations in the two unknowns θ3\theta_3 and θ4\theta_4 for a given input θ2\theta_2.

Freudenstein's equation (closed form)

Isolate the r3r_3 terms, square both equations and add them to eliminate θ3\theta_3. Dividing by 2r2r42r_2r_4 gives

K1cos⁡θ4−K2cos⁡θ2+K3=cos⁡(θ2−θ4)K_1\cos\theta_4 - K_2\cos\theta_2 + K_3 = \cos(\theta_2 - \theta_4)

with K1=r1/r2K_1 = r_1/r_2, K2=r1/r4K_2 = r_1/r_4, K3=r12+r22+r42−r322r2r4K_3 = \dfrac{r_1^2 + r_2^2 + r_4^2 - r_3^2}{2r_2r_4}.

(Check: for r1=300r_1 = 300, r2=100r_2 = 100, r3=250r_3 = 250, r4=200r_4 = 200 mm at θ2=60∘\theta_2 = 60^\circ, θ4=97.56∘\theta_4 = 97.56^\circ: K1=3K_1 = 3, K2=1.5K_2 = 1.5, K3=1.9375K_3 = 1.9375, and the left side is 0.793=cos⁡(−37.56∘)0.793 = \cos(-37.56^\circ).)

Using the half-angle substitution t=tan⁡(θ4/2)t = \tan(\theta_4/2) gives a quadratic At2+Bt+C=0A t^2 + Bt + C = 0, whose two roots are the open and crossed configurations. Then θ3\theta_3 follows from the component equations.

Newton-Raphson iteration

Write the two component equations as f1(θ3,θ4)=0f_1(\theta_3,\theta_4) = 0 and f2(θ3,θ4)=0f_2(\theta_3,\theta_4) = 0.

  1. Guess θ3(0)\theta_3^{(0)} and θ4(0)\theta_4^{(0)} (from a sketch or the previous crank position).
  2. Form the Jacobian
J=[−r3sin⁡θ3r4sin⁡θ4r3cos⁡θ3−r4cos⁡θ4]J = \begin{bmatrix} -r_3\sin\theta_3 & r_4\sin\theta_4 \\ r_3\cos\theta_3 & -r_4\cos\theta_4 \end{bmatrix}
  1. Solve J Δ=−[f1f2]J\,\Delta = -\begin{bmatrix} f_1 \\ f_2 \end{bmatrix} for the corrections Δ=[Δθ3, Δθ4]T\Delta = [\Delta\theta_3,\ \Delta\theta_4]^T.
  2. Update θ3←θ3+Δθ3\theta_3 \leftarrow \theta_3 + \Delta\theta_3, θ4←θ4+Δθ4\theta_4 \leftarrow \theta_4 + \Delta\theta_4.
  3. Repeat until ∣f1∣|f_1| and ∣f2∣|f_2| are below a tolerance (about 10−610^{-6}); it usually converges in 3 to 5 steps.

Comparison

PointFreudensteinNewton-Raphson
NatureClosed formIterative
Initial guessNot neededNeeded
Assembly modeBoth roots foundDepends on guess
UseFour-bar onlyAny loop, complex mechanisms

The iterative method is preferred in computer programs because the previous solution gives an excellent starting guess for the next crank angle, and the same Jacobian is reused for velocity analysis.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Theory of Mechanism and Machine I chapter 2 questions →