Skip to the content
FixTheRobot Explore Robotics / Manipulator Basics / Theory / 08

Manipulator Basics · Theory · Module 08 of 14

08 — Jacobian and Differential Kinematics

The Jacobian is the linear map from joint velocities to tool velocity. Build it from the joint axes, read singularities and manipulability from its singular values, invert it safely with damped least squares, and use its transpose to turn tool forces into joint torques.

  • Intermediate
  • About 7 minutes to read
  • 1 linked lab

Forward kinematics tells you where the tool is. The Jacobian tells you how it moves when the joints move, how much force the joints must apply, and where the robot loses the ability to move in some direction.

Learning objectives

After this module you should be able to:

  • Build the geometric Jacobian of a serial arm from its joint axes and origins.
  • Map joint velocities to tool linear and angular velocities, and back.
  • Explain the pseudoinverse and damped least-squares inverses and when each is appropriate.
  • Compute manipulability and condition number, and identify boundary, interior and wrist singularities.
  • Use τ = JᵀF to find the joint torques that hold a tool force.

Conceptual explanation

Differentiating FK in time gives a linear relation between joint velocities q˙\dot q and the tool's twist (linear velocity vv and angular velocity ω\omega). The 6×n matrix of that relation is the Jacobian J(q)J(q). It depends on the configuration but is linear in the velocities.

Each column is the tool velocity produced by one joint moving at unit speed with the others still:

  • a revolute joint with axis zi−1z_{i-1} through oi−1o_{i-1} spins the tool about that axis: linear part zi−1×(p−oi−1)z_{i-1} \times (p - o_{i-1}), angular part zi−1z_{i-1};
  • a prismatic joint slides the tool along its axis: linear part zi−1z_{i-1}, angular part zero.

Singularities

At a singular configuration, JJ loses rank: some tool directions cannot be produced by any joint velocity, and in the remaining directions small tool velocities can need very large joint velocities. Three kinds matter in practice:

  • boundary: the arm is fully stretched or folded (a 2R arm with q2=0q_2 = 0 or 180°180°);
  • interior: for example, the wrist centre on the axis of joint 1 (shoulder singularity);
  • wrist: two wrist axes line up (q5=0q_5 = 0 for a spherical wrist), so they turn the tool about the same axis.

The manipulability w=det⁡(JJT)w = \sqrt{\det(JJ^{T})} measures how far from singular the arm is; it is the volume of the velocity ellipsoid the unit ball of joint speeds maps to. The condition number σmax⁡/σmin⁡\sigma_{\max}/\sigma_{\min} measures how uneven that ellipsoid is. See both live in Lab 06.

Forces

By the principle of virtual work, the same matrix maps a tool force (wrench) FF to the joint torques that balance it: τ=JTF\tau = J^{T}F. Near a singularity the robot can resist large forces in the lost direction with almost no torque, which is why you lock your elbow to carry a heavy bag.

Mathematical formulation

The geometric Jacobian
[vω]=J(q) q˙,J=[Jv,1⋯Jv,nJω,1⋯Jω,n],[Jv,iJω,i]={[zi−1×(p−oi−1)zi−1]revolute[zi−10]prismatic\begin{bmatrix} v \\ \omega \end{bmatrix} = J(q)\,\dot q, \qquad J = \begin{bmatrix} J_{v,1} & \cdots & J_{v,n} \\ J_{\omega,1} & \cdots & J_{\omega,n} \end{bmatrix}, \qquad \begin{bmatrix} J_{v,i} \\ J_{\omega,i} \end{bmatrix} = \begin{cases} \begin{bmatrix} z_{i-1} \times (p - o_{i-1}) \\ z_{i-1} \end{bmatrix} & \text{revolute} \\[4pt] \begin{bmatrix} z_{i-1} \\ 0 \end{bmatrix} & \text{prismatic} \end{cases}

For the planar 2R arm (linear rows only):

Planar 2R Jacobian
J=[−L1s1−L2s12−L2s12L1c1+L2c12L2c12],det⁡J=L1L2sin⁡q2J = \begin{bmatrix} -L_1 s_1 - L_2 s_{12} & -L_2 s_{12} \\ L_1 c_1 + L_2 c_{12} & L_2 c_{12} \end{bmatrix}, \qquad \det J = L_1 L_2 \sin q_2
  1. q˙=J+x˙=JT(JJT)−1x˙\dot q = J^{+}\dot x = J^{T}(JJ^{T})^{-1}\dot x

    Pseudoinverse: the smallest joint velocity that produces ẋ (for a redundant or square, full-rank J).

  2. q˙=JT(JJT+λ2I)−1x˙\dot q = J^{T}(JJ^{T} + \lambda^{2}I)^{-1}\dot x

    Damped least squares: trades a small tracking error for bounded joint velocity near singularities.

  3. w=det⁡(JJT)=∏iσi,κ=σmax⁡/σmin⁡w = \sqrt{\det(JJ^{T})} = \prod_i \sigma_i, \qquad \kappa = \sigma_{\max}/\sigma_{\min}

    Manipulability (Yoshikawa) and condition number from the singular values.

  4. τ=JTF\tau = J^{T} F

    Statics: joint torques that balance a tool wrench F (gravity of the links not included).

Diagrams

Velocity ellipses of a 2R armThe image of unit joint speed through the Jacobian at three elbow angles. As the elbow straightens the ellipse flattens: the tool can hardly move along the arm, and the manipulability w goes to zero at the singularity.q₂ = 60°w = σ₁σ₂ = 0.104q₂ = 30°w = σ₁σ₂ = 0.060q₂ = 8°w = σ₁σ₂ = 0.017
Manipulability ellipses (orange) of the 2R arm with q₁ = 30°, computed from the singular value decomposition of J (scaled ×0.3 for display). Near the straight-arm singularity one axis collapses.

Worked examples

Example 1: from joint speeds to tool velocity

2R arm, L=(0.4,0.3)L = (0.4, 0.3) m, at q=(30°,60°)q = (30°, 60°):

J=[−0.500−0.3000.3460.000],q˙=(0.5, −0.2) rad/s  ⇒  x˙=Jq˙=(−0.190, 0.173) m/sJ = \begin{bmatrix}-0.500 & -0.300 \\ 0.346 & 0.000\end{bmatrix}, \qquad \dot q = (0.5,\ -0.2)\ \text{rad/s} \;\Rightarrow\; \dot x = J\dot q = (-0.190,\ 0.173)\ \text{m/s}

A finite-difference Jacobian computed by the engine agrees with the analytic one to 5e−115e-11.

Example 2: manipulability as the elbow straightens

Singular values of the 2R Jacobian at q₁ = 30° as q₂ goes towards 0 (stretched).
q₂σmaxσminManipulability wCondition number
90°0.5390.22270.12002.4
60°0.6600.15750.10394.2
30°0.7360.08160.06009.0
10°0.7590.02750.020827.6
2°0.7610.00550.0042138.5

w=L1L2∣sin⁡q2∣w = L_1L_2|\sin q_2|: it is largest at q2=90°q_2 = 90° (0.120) and falls to zero as the arm straightens. The smallest singular value is the tool speed you get along the "weak" direction (pointing along the arm) per unit of joint speed.

Example 3: asking for radial speed near the boundary

At q=(0°,5°)q = (0°, 5°) ask for 0.1 m/s outwards along the arm. The pseudoinverse demands q˙=(2.86, −6.68)\dot q = (2.86,\ -6.68) rad/s, which is far beyond any real joint speed. DLS with λ=0.05\lambda = 0.05 gives (0.20, −0.47)(0.20,\ -0.47) rad/s and delivers (0.007, −0.004)(0.007,\ -0.004) m/s: only a few mm/s outwards, with a small sideways error. DLS gives up speed in the direction the arm can barely move instead of demanding impossible joint speeds.

Example 4: holding a 2 kg load

A 2 kg part at the tool exerts F=(0,−20)F = (0, -20) N (taking g ≈ 10 m/s²). At q=(30°,60°)q = (30°, 60°):

τ=JTF=(−6.93, 0.00) N⋅m\tau = J^{T}F = (-6.93,\ 0.00)\ \text{N·m}

In this pose the forearm points straight up, so a vertical load produces no torque at the elbow. The shoulder carries all of it: 20 N times the 0.346 m horizontal distance from the shoulder to the tool. The arm's own weight adds to this (Module 09).

Example 5: a wrist singularity on a 6-DOF arm

For the engine's 6-DOF arm at q=(30°,60°,−60°,0°,−45°,0°)q = (30°, 60°, -60°, 0°, -45°, 0°) the smallest singular value of the full 6×6 Jacobian is 0.1190.119 (rank 6). Setting q5=0q_5 = 0 lines up axes 4 and 6: the smallest singular value drops to 2.0e−172.0e-17 and the rank to 5. Near this pose, a small change in tool orientation can demand a fast spin of joints 4 and 6 in opposite directions. Industrial controllers slow down or stop for this.

Interactive experiment

Interactive Jacobian and manipulability ellipse (needs JavaScript).

Move the joints: the velocity ellipse of the 2R arm, its singular values and the manipulability update. Straighten the elbow and watch the ellipse collapse into a line.

Real-world applications

  • Jogging and teleoperation in Cartesian mode compute joint speeds from the requested tool velocity every cycle, with DLS or singularity avoidance.
  • Force control uses τ=JTF\tau = J^{T}F to apply a desired contact force (polishing, assembly).
  • Design and layout: a work cell is placed so that the task stays in high-manipulability regions.
  • Numerical IK (Module 07) is built on the Jacobian.

Common mistakes

Using the analytic Jacobian and the geometric Jacobian interchangeably

The geometric Jacobian gives the angular velocity ω; the analytic Jacobian gives rates of Euler angles. They differ by a configuration-dependent matrix, and the analytic one has extra representation singularities.

Expressing columns in different frames

All columns must use the same frame (usually the base) and the same reference point p. Mixing them gives a meaningless matrix.

Inverting J directly

Use solve, pinv or DLS. A plain inverse fails for non-square J and explodes near singularities.

Treating singularities as rare

A fully stretched arm, a wrist with q₅ = 0, or a wrist centre above the base are common in real programs. Plan around them.

Key takeaways

  1. The Jacobian maps joint velocities to tool twist: [v; ω] = J(q) q̇.
  2. Revolute column: [z × (p − o); z]. Prismatic column: [z; 0].
  3. Singular values give manipulability and condition number; rank loss means a singularity.
  4. Use DLS to invert near singularities; use τ = JᵀF for statics.

Knowledge check

Write an answer to each question, then reveal the explanation. Your answers stay in your browser.

Question 1

What is the Jacobian column of a revolute joint whose axis z passes through point o?

Explanation

Linear part z × (p − o), angular part z, with p the tool point.

Question 2

At which q₂ is a 2R arm singular, and what motion does it lose?

Explanation

q₂ = 0 or 180° (det J = L₁L₂ sin q₂ = 0). It cannot move the tool along the line through the base and the tool.

Question 3

Two configurations have manipulability 0.12 and 0.01. Which is better for fast, accurate motion?

Explanation

The 0.12 one: its velocity ellipsoid is bigger and rounder, so moderate joint speeds produce tool speeds in every direction.

Question 4

How can a robot near a boundary singularity hold a large force with little torque?

Explanation

τ = JᵀF: forces along the lost direction lie in the null space of Jᵀ, so they produce almost no joint torque. The structure carries them.

Question 5

Why does DLS give a tracking error even away from singularities?

Explanation

The damping term penalises joint speed, so the solution does not satisfy Jq̇ = ẋ exactly. The error is small when σ ≫ λ.

Practise it in the labs

Then test yourself in practice exercises and challenge mode.

References and further reading

  • T. Yoshikawa, "Manipulability of robotic mechanisms", International Journal of Robotics Research, 4(2), 1985.
  • Y. Nakamura and H. Hanafusa, "Inverse kinematic solutions with singularity robustness for robot manipulator control", ASME Journal of Dynamic Systems, Measurement and Control, 108, 1986.
  • K. M. Lynch and F. C. Park, Modern Robotics, Cambridge, 2017, chapter 5.