edit_noteRamblings

Rotations in N dimensions

arrow_backAll ramblings
Mathematics

Rotations in N dimensions

TL;DR Rotations in 4D+ space aren't just 3D rotations with extra steps — they require a fundamentally different approach using rotation planes and Householder reflections. This post walks through the math and provides a complete PDF reference. Several years ago I was writing a Machine Learning paper that required me to do rotations in an arbitrary number of dimensions. As such I had an entire section of the paper devoted to explaining how that was done before moving on to the actual algorithm.


TL;DR

Rotations in 4D+ space aren't just 3D rotations with extra steps — they require a fundamentally different approach using rotation planes and Householder reflections. This post walks through the math and provides a complete PDF reference.

Several years ago I was writing a Machine Learning paper that required me to do rotations in an arbitrary number of dimensions. As such I had an entire section of the paper devoted to explaining how that was done before moving on to the actual algorithm. Here I extracted the portion where I explain N-dimensional rotations, basically rotations in 4-dimensional space or higher, and created its own PDF out of it. I hope this will be of use to some of you to help explain the process. Its a bit math-heavy but I am, as always, happy to answer any questions.

functions
What you'll find inside

The PDF covers rotation planes, the N-dimensional rotation matrix, Householder reflections, and a worked example in 4D. It's written for someone who knows linear algebra but has never had to rotate a vector in more than three dimensions.

    / [pdf]

Want the source?

If you're interested in the original LaTeX source or the ML paper this came from, drop me a line.


Filed under#Mathematics
Jeffrey Phillips Freeman
Jeffrey Phillips Freeman

Data scientist, open-source innovator, and three-time founder who writes about graphs, radios, and the occasional impossibility. Allegedly just another data scientist. Say hello →

Keep reading

article

An In-depth Look at Duals and Their Circuits

TL;DR A comprehensive exploration of duality in mathematics and electrical engineering, covering reciprocal impedance duals, voltage-current parallel-series duals, and electric-magnetic capacitance-permeance duals, with detailed worked examples and magnetic circuit analysis. Duality is an approach that has been applied across countless disciplines where one takes an existing structure and transforms it into an equivalent structure, often with the intention of making it more useful for a particular context. In electronic circuits this usually means we take an existing circuit schematic and transform it in such a way that it serves a similar purpose but suited to our specific use case.

Mathematics
article

Understanding the Reflection Coefficient

TL;DR A deep dive into the reflection coefficient ((\Gamma)): what it means physically, how to calculate SWR and load impedance from it, how feedline length affects phase, and how directional couplers measure it in practice. Today I hope to answer a rather complex question: What does the Reflection Coefficient mean exactly, how do we measure it, and what can we do with it once we do. For example if we have a reflection coefficient of \(0.

Mathematics
article

Hyperassociative Map Explanation

TL;DR HAM (Hyperassociative Map) is a graph-drawing algorithm I invented in 2009 that draws graphs faster and more reliably than traditional force-directed methods — with no oscillations, no damping schedules, and guaranteed monotonic convergence. It was built for real-time distributed graph processing at massive scale. Introduction Almost 8 years ago, on Aug 15, 2009, I invented a new game-changing algorithm called the Hyperassociative Map algorithm. It was released as part of the dANN v2.

Mathematics