School/✦ Research Engineer/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
1.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.
- ◇ Linearise a two-link arm's forward kinematics into a 2×2 Jacobian.
- ◇ Solve J·Δθ = Δp for the joint change that moves the hand a small step.
- ◇ Use the determinant and rank of J to identify singular poses.
2.Predict
A two-link arm is fully stretched out (θ₂ = 0). Can the hand move straight outwards along the arm with small joint motions?
Guess first. Being wrong here is how the surprise works.
3.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
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.
J is the derivative of the forward-kinematics map; Δp = JΔθ is its first-order Taylor approximation, accurate for small Δθ.
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
Hand position: x = L₁cos θ₁ + L₂cos(θ₁ + θ₂), y = L₁sin θ₁ + L₂sin(θ₁ + θ₂).
Small changes: Δx ≈ (∂x/∂θ₁)Δθ₁ + (∂x/∂θ₂)Δθ₂, and the same for y. In matrix form Δp ≈ J·Δθ.
J = [[−L₁sin θ₁ − L₂sin(θ₁ + θ₂), −L₂sin(θ₁ + θ₂)], [L₁cos θ₁ + L₂cos(θ₁ + θ₂), L₂cos(θ₁ + θ₂)]].
det J = L₁L₂[sin(θ₁ + θ₂)cos θ₁ − cos(θ₁ + θ₂)sin θ₁] = L₁L₂ sin θ₂.
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
- If det J is not exactly zero, the arm is fine.
✓ Near-singular poses already amplify errors and speeds badly. - The Jacobian is the same everywhere.
✓ It depends on the pose; it is a local linear model.
4.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.
Explorer 01 — Robotic kinematics
From joint angles to a position, and back again
Forward kinematics turns joint angles into an end-effector position. Inverse kinematics asks the harder question: which angles put the tip where I want it?
Fig. — 2-link planar arm · units cm · y up
Joint angles (relative)
Arm geometry
- End x
- 15.1 cm
- End y
- 26.4 cm
- Distance r
- 30.4 cm
- workspace 5.0–35.0 cm
- |sin θ2|
- 0.87
- well-conditioned
- Tip angle φ
- 95.0°
State
Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).
Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).
How to read this
The base sits at the centre (grid squares are 10 cm). Each thick bar is a link; circles are joints J1, J2. The shaded ring is the workspace: every point the tip can reach with unlimited joint travel. Its outer edge is L1 + L2; the inner hole appears when one link is longer than the others combined.
Arcs show each joint angle. θ1 is measured from the dashed horizontal; θ2 from the dashed extension of link 1. In inverse mode the square is the target (dashed and labelled unreachable when outside the ring), and the arm is solved with the law of cosines. Most targets have two solutions: elbow-up and elbow-down.
Assumptions & limitations
- Ideal rigid links and revolute joints with no mass, friction, backlash, or flex.
- Joints may rotate a full ±180°; real joints have hard limits that shrink the workspace, and links cannot pass through each other or the floor.
- Kinematics only: nothing here says whether the motors are strong or fast enough to hold or reach a pose (that is dynamics).
- Three-link inverse kinematics is made solvable by fixing the tool angle φ; real controllers choose among redundant solutions with extra goals.
- Unreachable targets are projected onto the nearest edge of the reachable ring for display; a real controller would refuse or plan around them.
Can't use the interactive? Read a description instead
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.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
L₁ = 0.5 m, L₂ = 0.4 m, θ₂ = 30°. What is det J (in m²)?
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2 · a fresh version every time
A = [[-3, 4], [-3, -3]]. What is the entry in row 2, column 2 of A⁻¹? (Give a decimal.)
Practice 3 · a fresh version every time
Solve −x₁ + x₂ = -3 and 2x₁ + x₂ = -6. What is x1?
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?
Practice 6 · a fresh version every time
Find det A for A = [[3, 3, -1], [1, -3, 1], [0, -2, 4]].
7.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 |Δθ|.
8.Reflect
Concepts: Matrices and linear transformations · Inverse kinematics and the workspace · Linear systems, elimination and rank