Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Symmetry as a set of moves
A square looks the same after turning it by 0°, 90°, 180° or 270°. Those four moves form a group: you can combine any two and get another one, and every move can be undone. Turning a spacecraft is also a move. Its orientations form a smooth group with infinitely many moves that blend into each other, called a Lie group (pronounced “lee”, after Sophus Lie).
One surprise: the order of moves matters. Turn a book 90° forward, then 90° to the side, and compare it with doing the turns in the other order.
Every attitude controller, star tracker, IMU filter, robot arm and SLAM system works with rotations and rigid motions. Treating them as plain vectors of angles causes gimbal lock, drift and wrong averages. Lie groups give the right tools: compose with matrix or quaternion products, take small steps with the exponential map, and measure errors with the logarithm. The same mathematics also lets neural networks recognise objects regardless of their orientation.
- 1. Does the order of two 3-D rotations matter?
- 2. A group must contain…
- 3. The orientations of a rigid body form a…
Level 1: Beginner
★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.Groups
A group is a set G with an associative operation, an identity e and inverses. A Lie group is a group that is also a smooth manifold, with smooth multiplication and inversion.
- SO(2): planar rotations by an angle θ. It is commutative and has dimension 1.
- SO(3) : 3-D rotations, of dimension 3. It is not commutative.
- SE(3) : rigid motions (rotation plus translation), of dimension 6. Compose by matrix product.
- Unit quaternions cover SO(3) twice: q and −q give the same rotation.
Group actions and symmetry
A group acts on a space when each element moves points: . A function is invariant if , and equivariant if . For example, a CNN’s convolution is translation-equivariant, and a molecule’s energy is rotation-invariant.
- 1. Dimension of SO(3):
- 2. Dimension of SE(3):
- 3. A rotation matrix R satisfies…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.The Lie algebra: infinitesimal moves
Differentiate a curve of rotations with . From you get , so the tangent space at I is the space of skew-symmetric matrices, so(3). The hat map identifies it with :
Exponential and logarithm
The matrix exponential maps the algebra to the group: is a rotation by about . Rodrigues’ formula gives it in closed form, with :
The logarithm inverts it for θ below π: and .
Non-commutativity and the bracket
For small a and b, the Baker–Campbell–Hausdorff (BCH) formula gives . The Lie bracket measures how far the order matters.
Kinematics
Body rates drive the attitude through . One step of a Lie-group integrator is , which stays exactly in SO(3) (Iserles et al., 2000).
- 1. The Lie algebra so(3) consists of…
- 2. Rotation angle of R from its trace:
- 3. To leading order, the Lie bracket [â, b̂] corresponds to…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.exp of a skew matrix is a rotation
If , then , because A and −A commute. Also . ∎
Rodrigues from the series
For unit axis k, satisfies . Group the series into odd and even powers: . ∎
Commutator of two small rotations
. So doing two small turns in opposite orders differs by a rotation of about . For 0.1 rad about x and 0.1 rad about y this is ≈ 0.01 rad about z. Parallel parking and the “falling cat” exploit exactly this.
Equivariant networks
Group convolution is equivariant by construction (Cohen and Welling, 2016). For 3-D data, networks such as Tensor Field Networks and SE(3)-Transformers use representations of SO(3) so that rotating the input rotates the features accordingly.
Exercise 3.1: composing two 0.4-rad turns
With a = (0.4, 0, 0) and b = (0, 0.4, 0), BCH predicts with norm ≈ 0.5713. The exact angle is 0.5638: the second-order formula is close, but not exact.
- 1. For unit k, K = k̂ satisfies…
- 2. det(e^A) =
- 3. Two 0.1-rad turns about x and y, in opposite orders, differ by about…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Integrating a tumbling spacecraft
A body with principal inertias (1, 2, 3) spins mostly about its major axis with some nutation. Its body rates come from Euler’s equations. We integrate the attitude for 60 s with 3000 steps of 0.02 s, using four methods. For torque-free motion, the angular momentum must stay fixed in inertial space.
| Method | max ‖RᵀR − I‖ | relative drift of L |
|---|---|---|
| Euler on the matrix | 192.8 | 0.34 |
| Euler + SVD re-projection | 3e−15 | 0.0036 |
| Lie–Euler, R exp(Δt ω̂) | 2e−14 | 0.0036 |
| Lie midpoint | 9e−15 | 3.6e−5 |
Naive Euler leaves SO(3) entirely: its “rotation matrix” stretches. Projecting back or using the exponential map keeps R a rotation. Only a higher-order group integrator keeps the physics right: halving Δt cuts the drift by ×2.00 for Lie–Euler and ×4.00 for the midpoint method (first and second order). Flight software uses quaternion or exponential-map propagation and error-state filters on the group (the multiplicative EKF; Markley and Crassidis, 2014).
These are the numbers the exercise prints in the browser. Round-off-level values differ slightly by platform (desktop CPython gives 1e−14 for the Lie midpoint orthogonality error); the comparisons hold on both.
Lie groups in AI, robotics and aerospace
- Attitude determination and control: quaternion kinematics, the multiplicative EKF, and geometric controllers on SO(3) and SE(3) (Lee, Leok and McClamroch, 2010).
- Robotics and SLAM: pose graphs on SE(3), on-manifold preintegration of IMU data (Forster et al., 2017), and robot kinematics as products of exponentials (Lynch and Park, 2017).
- Equivariant deep learning: group CNNs, steerable networks, and E(3)-equivariant networks for molecules and point clouds (Bronstein et al., 2021).
- Numerical methods: geometric integrators that preserve structure over long horizons (Hairer, Lubich and Wanner, 2006).
References
- J. Solà, J. Deray, D. Atchuthan (2018). “A micro Lie theory for state estimation in robotics.” arXiv:1812.01537.
- K. Lynch, F. Park (2017). Modern Robotics. Cambridge.
- F. L. Markley, J. Crassidis (2014). Fundamentals of Spacecraft Attitude Determination and Control. Springer.
- T. Lee, M. Leok, N. H. McClamroch (2010). “Geometric tracking control of a quadrotor UAV on SE(3).” IEEE CDC.
- A. Iserles, H. Munthe-Kaas, S. Nørsett, A. Zanna (2000). “Lie-group methods.” Acta Numerica, 9.
- C. Forster, L. Carlone, F. Dellaert, D. Scaramuzza (2017). “On-manifold preintegration for real-time visual-inertial odometry.” IEEE T-RO, 33.
- T. Cohen, M. Welling (2016). “Group equivariant convolutional networks.” ICML.
- M. Bronstein, J. Bruna, T. Cohen, P. Veličković (2021). “Geometric deep learning: grids, groups, graphs, geodesics, and gauges.” arXiv:2104.13478.