Wahba's problem

In applied mathematics, Wahba's problem, first posed by Grace Wahba in 1965, seeks to find a rotation matrix (special orthogonal matrix) between two coordinate systems from a set of (weighted) vector observations. Solutions to Wahba's problem are often used in satellite attitude determination utilising sensors such as magnetometers and multi-antenna GPS receivers. The cost function that Wahba's problem seeks to minimise is as follows:

J(𝐑)=12βˆ‘k=1Nak‖𝐰kβˆ’π‘π―kβ€–2 for Nβ‰₯2

where 𝐰k is the k-th 3-vector measurement in the reference frame, 𝐯k is the corresponding k-th 3-vector measurement in the body frame and 𝐑 is a 3 by 3 rotation matrix between the coordinate frames. ak is an optional set of weights for each observation.

A number of solutions to the problem have appeared in literature, notably Davenport's q-method, QUEST and methods based on the singular value decomposition (SVD). Several methods for solving Wahba's problem are discussed by Markley and Mortari.

This is an alternative formulation of the orthogonal Procrustes problem (consider all the vectors multiplied by the square-roots of the corresponding weights as columns of two matrices with N columns to obtain the alternative formulation). A compact and elegant derivation can be found in Appel (2015).

Solution via SVD

One solution can be found using a singular value decomposition (SVD).

1. Obtain a matrix 𝐁 as follows:

𝐁=βˆ‘i=1nai𝐰i𝐯iT

2. Find the singular value decomposition of 𝐁

𝐁=𝐔𝐒𝐕T

3. The rotation matrix is simply:

𝐑=π”πŒπ•T

where 𝐌=diag⁑([11det⁑(𝐔)det⁑(𝐕)])

Geometric interpretation using quaternion circles

A geometric interpretation of Wahba’s problem using unit quaternions was presented by Liu, et al. (2026)

For unit vector observations, each correspondence 𝐑𝐯k=𝐰k defines a circle of admissible quaternions, called a ''quaternion circle''. To see this, choose any unit quaternion πͺk whose rotation maps 𝐯k to 𝐰k. Every other rotation satisfying this correspondence is obtained by subsequently rotating about 𝐰k. With scalar-first quaternions and Hamilton multiplication βŠ—, the corresponding quaternion can therefore be written asπͺk(ΞΈ)=(cos⁑θ2,𝐰ksin⁑θ2)βŠ—πͺk=πͺkcos⁑θ2+𝐩ksin⁑θ2,𝐩k=(0,𝐰k)βŠ—πͺk.Quaternion multiplication preserves norms, and πͺkT𝐩k=0. Thus 𝐩k and πͺk are orthonormal vectors in ℝ4, and the complete set of admissible quaternions forms a great circle; this arises from the 2-to-1 mapping from unit quaternions to rotation matrices.

For mutually consistent observations, the solution lies at the common intersection of these circles. Two correspondences with non-collinear source vectors determine a unique rotation, represented by two antipodal intersection points. With measurement noise, the circles need not have a common intersection.

The same geometry gives a linear least-squares formulation. Let the rows of Akβˆˆβ„2Γ—4 form an orthonormal basis for the orthogonal complement of the subspace spanned by 𝐩k and πͺk. Therefore, each exact correspondence is equivalent to𝐑𝐯k=𝐰k⟹{Akπͺ=0πͺTπͺ=1which yields a classical linear formulation subject to a unit-norm constraint.

See also