TactivergeLite

Lite / Independent Engineering Research / Week 3

Module check: the Jacobian as a linear map

Near any pose, a robot arm behaves like a matrix. What can that matrix tell you about where the arm can and cannot move?

About 50 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

This module check pulls weeks 1–3 together: linear systems, products, inverses and determinants, applied to a real engineering map. Resolved-rate control and numerical inverse kinematics are exactly this calculation, repeated many times a second.

Predict

A two-link arm is fully stretched out (θ₂ = 0). Can the hand move straight outwards along the arm with small joint motions?

  1. Yes, easily
  2. No: that direction is lost at this pose
  3. Only if θ₁ is also 0
Guess first, then reveal

At full stretch the hand is at maximum reach, so it cannot go further out. J has rank 1 there: its two columns are parallel and det J = 0.

Discover

In the kinematics lab, move the two joints and watch the hand. Find a pose where turning either joint moves the hand in the same direction: that is a singular pose. Note the joint angles.

What the interactive shows (text version)

The kinematics lab shows a two-link arm controlled by two joint-angle sliders, with the hand position given in text. A singular pose is one where both joints move the hand along the same line, such as when the arm is fully stretched.

You can also open the interactive on the full site when you have a faster connection.

Understand

Question → method → evidence

Question: at a given pose, which hand motions are possible and how much joint motion do they need? Method: linearise to J, then treat Δp = J·Δθ as a linear system. Evidence: solve for Δθ, compare the predicted hand motion with the exact forward kinematics, and examine det J and the columns of J.

Columns tell the story

Column 1 of J is the hand velocity from turning joint 1 alone; column 2 from joint 2 alone. Their span is the set of achievable hand velocities. If the columns become parallel, the span collapses to a line, exactly as in week 1's column picture.

Near-singular is already bad

Close to a singularity, det J is small and J⁻¹ has huge entries: a modest hand step demands enormous joint speeds, and sensor noise in θ is amplified. Controllers use damped least squares or avoid such poses. This links straight to conditioning in week 5.

Explain it another way

Intuitive

Zoom in far enough on any smooth curve and it looks straight. Zoom in on an arm's motion and it looks like a matrix.

Technical

J is the derivative of the forward-kinematics map; Δp = JΔθ is its first-order Taylor approximation, accurate for small Δθ.

Applied

Industrial robots plan paths that stay away from wrist and elbow singularities, because near them the controller would command joint speeds beyond the motors' limits.

Derivation: The two-link Jacobian
  1. Hand position: x = L₁cos θ₁ + L₂cos(θ₁ + θ₂), y = L₁sin θ₁ + L₂sin(θ₁ + θ₂).

  2. Small changes: Δx ≈ (∂x/∂θ₁)Δθ₁ + (∂x/∂θ₂)Δθ₂, and the same for y. In matrix form Δp ≈ J·Δθ.

  3. J = [[−L₁sin θ₁ − L₂sin(θ₁ + θ₂), −L₂sin(θ₁ + θ₂)], [L₁cos θ₁ + L₂cos(θ₁ + θ₂), L₂cos(θ₁ + θ₂)]].

  4. det J = L₁L₂[sin(θ₁ + θ₂)cos θ₁ − cos(θ₁ + θ₂)sin θ₁] = L₁L₂ sin θ₂.

  5. Where det J ≠ 0, Δθ = J⁻¹Δp gives the joint step for a desired hand step. Where det J = 0, J has rank 1 and some Δp cannot be produced.

Worked example 1

L₁ = L₂ = 1, θ₁ = 0, θ₂ = 90°. Find J and the joint step for Δp = (0, 0.01).

sin(θ₁ + θ₂) = 1, cos(θ₁ + θ₂) = 0, sin θ₁ = 0, cos θ₁ = 1. J = [[−1, −1], [1, 0]], det J = 1. J⁻¹ = [[0, 1], [−1, −1]]. Δθ = J⁻¹(0, 0.01) = (0.01, −0.01) rad.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

m²

Practice 4. At θ₂ = 180° (folded back), the rank of J is…
Practice 5. Why do controllers avoid poses where det J is small but not zero?

Apply it

Write a resolved-rate loop in the Code Lab: repeatedly compute J, solve J·Δθ = small step towards a target, update θ. Move the target through a singular pose and record what happens to |Δθ|.

Reflect

Which idea from weeks 1–3 did this module check depend on most?

Write your answer on paper or in your own notes. Lite never stores what you write.

← The determinant as area scalingEigenvectors: the directions that survive →