Explaining Jacobian transpose method and singularities
The Jacobian transpose method updates joint variables by multiplying the error vector by the Jacobian's transpose because this gives the gradient direction that reduces the squared error in end-effector position, enabling a stable, iterative approach without needing matrix inversion. The singularity problem occurs when the Jacobian's determinant is zero, meaning it's rank deficient and noninvertible, causing loss of certain motion directions and ill-conditioned inverse kinematics solutions.
If you write the forward kinematics of an (n)–joint manipulator as
[
x = f(q)
]
with (q\in\mathbb{R}^n) the joint coordinates and (x) the end–effector position/orientation, then the Jacobian (J(q) = \partial f/\partial q) captures how an infinitesimal change in the joints produces a change at the tip. In velocity form you have
[
\dot{x} = J(q),\dot{q}.
]
The inverse kinematics problem can be posed as “find a sequence of joint updates that drives the end–effector error (e = x^\star - f(q)) to zero.” One way to do that is to linearise the kinematics and solve (\dot{q} = J^{-1}, \dot{x}), but (J) is not always square and, even when it is, it may not be invertible.
A simple alternative is to regard (\tfrac{1}{2}|e|^2) as a cost function and move the joints in the direction of its negative gradient. Differentiating that cost with respect to (q) gives
[
\frac{\partial}{\partial q}\left(\tfrac{1}{2}|e|^2\right) = -J^\top e.
]
So if you choose (\dot{q} = k,J^\top e) with some gain (k>0), you are performing a steepest–descent step that reduces the Cartesian error. This “Jacobian transpose” update is cheap to compute, works for non‑square Jacobians, and tends to behave well as long as you pick an appropriate step size.
The flip side of working directly with (J) or its inverse is that there are configurations where the manipulator loses rank: in a straight–arm pose, for example, one of the end–effector directions cannot be generated. At such a singularity the determinant of a square Jacobian is zero, the matrix is non‑invertible, and its inverse or pseudo‑inverse becomes ill‑conditioned. In the neighbourhood of a singularity small Cartesian motions may require arbitrarily large joint motions, and any algorithm that relies on (J^{-1}) will either fail or produce numerically unstable updates. The transpose–based method avoids explicit inversion, but its convergence also degrades when (J) is rank‑deficient because there are simply directions in task space that the mechanism cannot reach.