Algorithm Search⌘K

Definitioncore

Rigidity matrix

Also called framework rigidity matrix.

The m by dn matrix of a framework, one row per bar holding p_i - p_j and p_j - p_i. It is half the Jacobian of the squared bar lengths, and its kernel holds the rigid motions.

The rigidity matrix is the linear part of a bar-and-joint framework. It has one row for each bar and dd columns for each joint, and it is half the derivative of the map that sends a placement to its squared bar lengths. Every question about first-order motion, about stresses in the bars, and about rigidity at a generic placement is a question about the rank, the kernel or the left kernel of this one sparse matrix.

Definition

Let G=(V,E)G = (V, E) be a graph with V={1,…,n}V = \{1, \ldots, n\} and m=∣E∣m = |E| edges, and let p=(p1,…,pn)p = (p_1, \ldots, p_n) be a placement of the vertices in Rd\mathbb{R}^d. Fix an order of the edges and write each edge as ijij with i<ji < j. Put D=d(d+1)/2D = d(d + 1)/2.

The matrix. The rigidity matrix R(G,p)R(G, p) is the real m×dnm \times dn matrix whose columns come in nn blocks of dd, one block per vertex. The row of the edge ijij is

(0,…,0,  pi−pj⏟block i,  0,…,0,  pj−pi⏟block j,  0,…,0).\big( 0, \ldots, 0, \; \underbrace{p_i - p_j}_{\text{block } i}, \; 0, \ldots, 0, \; \underbrace{p_j - p_i}_{\text{block } j}, \; 0, \ldots, 0 \big).

So a row has at most 2d2d nonzero entries, the two blocks in a row are negatives of each other, and the sum of the nn blocks of every row is zero. The order of the rows and of the vertices changes RR only by permutations, which do not change the rank, the kernel dimension or the left kernel dimension.

The edge function. The edge function of GG is the polynomial map

fG:Rdn→Rm,fG(q)=(∥qi−qj∥2)ij∈E.f_G : \mathbb{R}^{dn} \to \mathbb{R}^{m}, \qquad f_G(q) = \big( \lVert q_i - q_j \rVert^2 \big)_{ij \in E}.

Two placements are equivalent when they have the same image under fGf_G.

Fact 1 (Jacobian). dfG(p)=2R(G,p)df_G(p) = 2 R(G, p). In words, R(G,p)R(G, p) is half the Jacobian matrix of fGf_G at pp.

Proof. The coordinate of fGf_G for the edge ijij is g(q)=∑k=1d(qi,k−qj,k)2g(q) = \sum_{k=1}^{d} (q_{i,k} - q_{j,k})^2. It depends only on the 2d2d coordinates of qiq_i and qjq_j. Its partial derivatives are ∂g/∂qi,k=2(qi,k−qj,k)\partial g / \partial q_{i,k} = 2(q_{i,k} - q_{j,k}) and ∂g/∂qj,k=−2(qi,k−qj,k)=2(qj,k−qi,k)\partial g / \partial q_{j,k} = -2(q_{i,k} - q_{j,k}) = 2(q_{j,k} - q_{i,k}), and zero for every other coordinate. At q=pq = p this is twice the row of ijij. □\square

So for a velocity u∈Rdnu \in \mathbb{R}^{dn} the entry of R(G,p) uR(G, p)\, u at the edge ijij is (pi−pj)⋅(ui−uj)(p_i - p_j) \cdot (u_i - u_j), which is half the rate of change of the squared length of ijij when the joints move with velocities uu. The kernel of R(G,p)R(G, p) is the space of infinitesimal motions.

Fact 2 (the rigid motions lie in the kernel). Let AA be a skew-symmetric d×dd \times d matrix and b∈Rdb \in \mathbb{R}^d. Then ui=Api+bu_i = A p_i + b for all ii gives R(G,p) u=0R(G, p)\, u = 0 for every graph GG. If the points p1,…,pnp_1, \ldots, p_n affinely span a space of dimension at least d−1d - 1, these vectors form a subspace of dimension exactly DD, so

rank⁡R(G,p)≤dn−D.\operatorname{rank} R(G, p) \le dn - D.

Proof. Let Q(t)=etAQ(t) = e^{tA}. It is orthogonal for every tt because Q(t)⊤Q(t)=e−tAetA=IQ(t)^\top Q(t) = e^{-tA} e^{tA} = I. The path qi(t)=Q(t)pi+tbq_i(t) = Q(t) p_i + t b moves all the points by an isometry, so fG(q(t))=fG(p)f_G(q(t)) = f_G(p) for all tt. Differentiate at t=0t = 0 and use Fact 1: 0=2R(G,p) q′(0)0 = 2 R(G, p)\, q'(0), and qi′(0)=Api+bq_i'(0) = A p_i + b. For the dimension, the map (A,b)↦u(A, b) \mapsto u is linear on a space of dimension d(d−1)/2+d=Dd(d - 1)/2 + d = D. If u=0u = 0, then the affine map x↦Ax+bx \mapsto Ax + b vanishes on the points, so AA vanishes on the linear span WW of the differences pi−p1p_i - p_1, which has dimension at least d−1d - 1. A skew matrix with Aw=0A w = 0 for all w∈Ww \in W also has A⊤=−AA^\top = -A zero on WW, so its image is orthogonal to WW and has dimension at most 1. A skew matrix has even rank, so A=0A = 0, and then b=−Ap1=0b = -A p_1 = 0. So the map is injective, its image has dimension DD and lies in the kernel, and rank and nullity give the bound. □\square

The velocities Api+bA p_i + b are the trivial motions. A framework is infinitesimally rigid when the bound in Fact 2 is reached.

Fact 3 (the left kernel is the stresses). A vector ω∈RE\omega \in \mathbb{R}^{E} satisfies ω⊤R(G,p)=0\omega^\top R(G, p) = 0 if and only if for every vertex ii

∑j:ij∈Eωij (pi−pj)=0.\sum_{j : ij \in E} \omega_{ij} \, (p_i - p_j) = 0.

Proof. The block of columns of vertex ii in ω⊤R\omega^\top R is the sum over the rows that touch ii of ωe\omega_e times the block of ii in row ee. For the edge ijij that block is pi−pjp_i - p_j, whichever endpoint has the smaller label. □\square

Read ωij\omega_{ij} as a tension in the bar ijij. The vertex condition says that the forces of the bars on each joint add up to zero, so the left kernel is the space of self-stresses or equilibrium stresses. They are the subject of the stress matrix page. By rank and nullity the dimension of the left kernel is m−rank⁡R(G,p)m - \operatorname{rank} R(G, p).

Fact 4 (affine invariance). For an invertible d×dd \times d matrix MM and c∈Rdc \in \mathbb{R}^d, the placement qi=Mpi+cq_i = M p_i + c has

R(G,q)=R(G,p) (In⊗M⊤),R(G, q) = R(G, p) \, (I_n \otimes M^\top),

where In⊗M⊤I_n \otimes M^\top is the block diagonal matrix with nn copies of M⊤M^\top, a Kronecker product. So the rank, the dimension of the kernel and the left kernel itself are the same for pp and qq.

Proof. The block of vertex ii in the row of ijij becomes (Mpi−Mpj)⊤=(pi−pj)⊤M⊤(M p_i - M p_j)^\top = (p_i - p_j)^\top M^\top when written as a row. The right factor is invertible, so the rank does not change and ω⊤R(G,q)=0\omega^\top R(G, q) = 0 if and only if ω⊤R(G,p)=0\omega^\top R(G, p) = 0. □\square

Fact 5 (the line). In R1\mathbb{R}^1 with distinct points, R(G,p)R(G, p) is the oriented incidence matrix of GG with the row of ijij multiplied by the nonzero number pi−pjp_i - p_j. Its rank is n−cn - c, where cc is the number of connected components of GG.

Proof. Scaling rows by nonzero numbers does not change the rank. The oriented incidence matrix has rank n−cn - c: its kernel is the set of vectors that are constant on each component, because a kernel vector uu has ui=uju_i = u_j on every edge, so the kernel has dimension cc. □\square

So on a line the framework is infinitesimally rigid exactly when GG is connected, and the rows of a set of edges are independent exactly when the edges form a forest. The rows form the graphic matroid, and the rigidity matroid in higher dimension extends it.

Generic rank. Every minor of R(G,p)R(G, p) is a polynomial in the dndn coordinates with integer coefficients. Let r(G)r(G) be the largest rank over all pp, and fix an r(G)×r(G)r(G) \times r(G) minor that is not the zero polynomial. The placements where this minor is nonzero form an open dense set, and the rank is r(G)r(G) on all of it. In particular the rank is r(G)r(G) at every generic placement, where the coordinates are algebraically independent over Q\mathbb{Q}. This number is the generic rank of GG in dimension dd. It depends only on the graph and on dd, and it is the basis of generic rigidity and of the Asimow and Roth theorem. A set of edges is independent when its rows are independent at a generic placement. These sets are the independent sets of a linear matroid on EE, the generic dd-dimensional rigidity matroid. For d=1d = 1 it is the graphic matroid by Fact 5, and for d=2d = 2 Laman's theorem describes it by counts.

Computing it. Building R(G,p)R(G, p) takes O(dm)O(dm) time. Its exact rank over the rationals by Gaussian elimination takes O(m (dn)2)O(m \, (dn)^2) field operations, but the sizes of the fractions can grow. A floating-point rank needs a tolerance on the singular values, and near a special position a small singular value is not a reliable sign of rank loss. The witness method computes the generic rank at a random integer placement, and in the plane the pebble game finds it with no arithmetic at all.

Examples and non-examples

All ranks and kernels here are exact over the rationals.

  • A right triangle. Take p1=(0,0)p_1 = (0, 0), p2=(4,0)p_2 = (4, 0), p3=(0,3)p_3 = (0, 3) and the edges 1212, 1313, 2323 in that order. Then
R=(−4040000−30003004−3−43),R = \begin{pmatrix} -4 & 0 & 4 & 0 & 0 & 0 \\ 0 & -3 & 0 & 0 & 0 & 3 \\ 0 & 0 & 4 & -3 & -4 & 3 \end{pmatrix},

which has rank 3=2⋅3−33 = 2 \cdot 3 - 3. The kernel has dimension 3. It is spanned by the two translations (1,0,1,0,1,0)(1, 0, 1, 0, 1, 0) and (0,1,0,1,0,1)(0, 1, 0, 1, 0, 1) and the rotation ui=(−yi,xi)u_i = (-y_i, x_i), which is (0,0,0,4,−3,0)(0, 0, 0, 4, -3, 0). The left kernel is zero, so the triangle has no self-stress.

  • A square with both diagonals. K4K_4 at (0,0)(0, 0), (1,0)(1, 0), (1,1)(1, 1), (0,1)(0, 1), with the four sides first and then the diagonals 1313 and 2424, has m=6m = 6 and rank 5=2⋅4−35 = 2 \cdot 4 - 3. The left kernel is spanned by ω=(−1,−1,−1,−1,1,1)\omega = (-1, -1, -1, -1, 1, 1): compression in the sides and tension in the diagonals, or the other way round. At the corner (0,0)(0, 0) the forces are −1⋅((0,0)−(1,0))−1⋅((0,0)−(0,1))+1⋅((0,0)−(1,1))-1 \cdot ((0, 0) - (1, 0)) - 1 \cdot ((0, 0) - (0, 1)) + 1 \cdot ((0, 0) - (1, 1)), which is (1,0)+(0,1)+(−1,−1)=0(1, 0) + (0, 1) + (-1, -1) = 0.
  • The square alone. The 4-cycle at the same corners has rank 4, so the kernel has dimension 8−4=48 - 4 = 4. One dimension beyond the three trivial motions is the shear of the square into a rhombus. Add one diagonal and the rank is 5, the framework is infinitesimally rigid, and there is still no stress.
  • A line. In R1\mathbb{R}^1 at 0,2,5,90, 2, 5, 9, the path 12,23,3412, 23, 34 has rank 3, the 4-cycle 12,23,34,1412, 23, 34, 14 also has rank 3 with a one-dimensional left kernel, and the two edges 12,3412, 34 have rank 2. These are n−cn - c with c=1,1,2c = 1, 1, 2, as in Fact 5.
  • Rank below the generic rank. For K3,3K_{3,3} in the plane the generic rank is 9, but six points on a conic give rank 8, as the infinitesimal rigidity page shows. A collinear triangle has rank 2. So a single placement only gives a lower bound on the generic rank.
  • The double banana in space. Two copies of K5K_5 minus one edge, glued at the two ends of the missing edge, have n=8n = 8 and m=18=3⋅8−6m = 18 = 3 \cdot 8 - 6 bars. At three random integer placements in R3\mathbb{R}^3 the rank is 17, and it stays 17 when the hinge edge is added. So the rows of the 18 edges are dependent although every subset of k≥3k \ge 3 vertices spans at most 3k−63k - 6 edges. See the double banana page.
  • Non-example: the Jacobian of the lengths. The derivative of the unsquared length ∥qi−qj∥\lVert q_i - q_j \rVert is the row of ijij divided by the length. That matrix has the same rank as RR for distinct endpoints, but its entries are not polynomials, and it is not defined when two joined points coincide. The standard rigidity matrix uses the squared lengths for this reason.
  • Non-example: a constraint Jacobian in general. A CAD system with angle, incidence and tangency constraints has a Jacobian with rows of other forms. Facts 1 and 2 hold for it only when every constraint is a distance between points, so the counts of this page do not carry over unchanged.
  • Infinitesimal rigidity. The framework is infinitesimally rigid when the kernel of R(G,p)R(G, p) holds only the trivial motions, that is, rank dn−Ddn - D for n≥dn \ge d. It implies rigidity.
  • Equilibrium stress matrix. Each vector in the left kernel of R(G,p)R(G, p) gives an n×nn \times n matrix, the main tool of the global rigidity theorems.
  • Asimow and Roth theorem. At a placement where the rank of R(G,⋅)R(G, \cdot) is locally maximal, rigidity and infinitesimal rigidity agree.
  • Maxwell's counting rule. The bound of Fact 2 gives m≥dn−Dm \ge dn - D bars for an infinitesimally rigid framework.
  • Rigidity matroid. The linear matroid of the rows at a generic placement. In the plane its independent sets are the sets that satisfy the 2k−32k - 3 counts of Laman's theorem, which the pebble game tests.
  • Body-and-bar and body-and-hinge matrices. For frameworks made of rigid bodies, each body has DD columns and each bar a row given by a line in screw coordinates. The counts change to those of Tay's theorem.

References

  1. L. Asimow and B. Roth, The rigidity of graphs, Transactions of the American Mathematical Society 245, 279 to 289, 1978, the edge function, its derivative, and the rank of the derivative at regular points
  2. Jack Graver, Brigitte Servatius and Herman Servatius, Combinatorial Rigidity, Graduate Studies in Mathematics 2, American Mathematical Society, 1993, Chapter 2 (the rigidity matrix and infinitesimal motions) and Chapter 4 (the rigidity matroid in the plane)
  3. Meera Sitharam, Audrey St. John and Jessica Sidman (editors), Handbook of Geometric Constraint Systems Principles, CRC Press, 2018, the chapters on combinatorial rigidity and on frameworks

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/EK6JQ0/text.yaml