Learning Some Geometric/Clifford Algebra

Clifford algebra isn’t so scary
math
Author

Scott H. Hawley

Published

October 15, 2021

“…for geometry, you know, is the gate of science, and the gate is so low and small that one can only enter it as a little child.”
– William K. Clifford

Motivations

  1. The recent paper, “Lightweight Convolutional Neural Networks By Hypercomplex Parameterization”. i.e, the potential for interesting (multichannel audio) signal processing applications of deep learning + hypercomplex numbers.
  2. The fact that, even as theoretical physicist (of classical field theory), I never learned enough about particle physics / QFT because I hated Dirac spinors, Pauli matrices, quaternions, and such. Thus this is an attempt to finally overcome my ignorance and aversion to an important and useful area of mathematics/physics!

References I’m finding to be helpful

  • The following video by “sudgylacmoe” using the “manim” presentation style developed by 3blue1brown. Watch this!
  • Another video: historical perspective: “The Vector Algebra War” (Oh, and there’s a paper from IEEE Access to go with it):

Other resources I have yet to read

Summary of My Thoughts So Far

  1. Why didn’t anybody teach me this stuff before??? It makes so many things in physics make more sense.
  2. Cross products are like the Easter Bunny. Quaternions are like the Bohr Atom. Should we still teach young people these concepts? If the people in other communities are still using stone tools, should students be deprived of learning to work with bronze or iron?
  3. Cross products are neither necessary for introductory physics instruction nor easier than outer/exterior/wedge products. In 3D, the two are isomorphic, so why not teach the one that’s actually more useful? When we encounter cross products in physics it is always the rotating-area aspect that’s relevant, not the pseudovector aspect (see #2 above).
  4. There’s nothing inherently “quantum mechanical” about Pauli matrices & Dirac spinors, or quaternions. Rather they are just manifestations of the geometry of 3D space! Futhermore, the fact that Pauli matrices are typically taught in such a unmotivated,/“here memorize these” kind of way is anathema — or perhaps you benefited from the “Interlude: now let’s inject a bunch of Group Theory” approach — whereas with the GA approach they arise naturally.
  5. It’s not yet clear to me how bivectors are to be represented in (computational) linear algebra: square, antisymmetric matrices, perhaps?
  6. The relation between complex numbers and GA in 2D is cool but there are parts that can be a bit tricky conceptually. I think the reason is that (apart from GA) one typically deals with either complex numbers or 2d vectors (/phasors), and the question of multiplying a 2d vector by a complex number doesn’t really come up – the tricky bit being is that in GA, the pseudoscalar anti-commutes with vectors, whereas one normally thinks of \(i\) as being an ordinary scalar that should commute.
  7. Notation choices: I’m a bit confused when in 2D is that “\(I\)” is not the identity operator, rather it is a pseudoscalar/bivector that’s akin to “\(i\)” (see point #6 above). But I’m getting used to it. Other choices such as \(i\) and \(j\) (in EE) are similarly…interesting. Also noticing that the Brits seem to prefer \(\sigma_i\) for basis vectors whereas I was raised on \(\hat{e}_i\). I’m working on a dynamic “choose your own notation” interactive version of the materials I’m writing up, so that notation won’t be a sticking point for anyone, they can just choose what they prefer.
  8. Terminology: I find it to be a huge stumbling block ( / language barrier) when people say “outer product” in GA, b/c that term already means something different to the rest of the world – namely the “tensor product” aka “Kronecker product” – something that does’t (necessarily) anticommute! Now, if the point is that we’re looking for a “unified language,” let’s use a unified language and not conflate in one term two very different concepts, because this is bound to confuse students (and I confess, physics professors too). Just say “wedge product.” Even “exterior product” is potentially confusing to students, since “exterior” is just a synonym of “outer”.
  9. Re. (anti-)commutivity: many expressions one sees are written in terms of orthonormal vectors, and thus it’s not always clear when these statements apply to general vectors/bivectors/etc. When in doubt, the thing to do is (presumably) to write out each product in terms of an othonormal basis (\(\hat{e}_1, \hat{e}_2\), etc.) and multiply and/or reverse things until you can show what you want to show.
  10. In E&M, GA gives you the relativistic Faraday tensor without even any relavity! Again it’s just a manifestation of geometry.
  11. This quote from McRobie and Joan Lasenby – engineers, BTW!: > “The principal argument for the adoption of geometric algebra is that it provides a single, simple mathematical framework which eliminates the plethora of diverse mathematical descriptions and techniques it would otherwise be necessary to learn.” (F. A. McRobie and J. Lasenby, Simo-Vu Quoc Rods using Clifford Algebra. Int. J. Numer. Meth. Eng. 45 (1999), 377-398.) As quoted by Alan Macdonald

Prospectus: Introducing Geometric Algebra to Undergrads in Analytical Mechanics

Writing out some ideas in anticipation of my Spring 2023 course. – by Scott H.Hawley. Comments welcome.

Geometric Algebra (GA) = Clifford Algebra applied in modern contexts.

The historical dominance of the Gibbs/Heaviside vector algebra in physics over Clifford’s superior framework is unfortunate, cumbersome, confusing, etc., but the former has an enormous amount of popularity as the de-facto standard approach (mostly, I conjecture, due to “inertia” or what Peter Simons described as being based “not on effectiveness but on tradition, entrenchment, and institutions.”) Sure, GA may be cool in helping to provide “a unified mathematical framework for all of physics” (C. Doran), and to provide a set of consistent computational tools for students at all stages of their educational development, as well as a set of powerful and intuitive conceptual frameworks for reasoning about physics, but one might raise questions such as: Is subjecting undergrads to GA pointless, vain, and selfish, or does it set them up well for future success? Can they even handle it? Do they gain anything from it? Why not just wait until they’re grad students (or late-career physicists) to teach them GA approaches, if ever? And if they don’t learn cross products won’t they be at a disadvantage? (Quick answer to that last one: yes we’ll still show them what a cross product is.)

Well, let’s find out. GA could be introduced in our classical mechanics, E&M, and/or quantum mechanics courses, but classical mechanics is under my purview and the place where vector algebra is typically taught (e.g., as “Chapter 2”). The curriculum changes should not be onerous or burdensome to students or instructor, and could proceed as follows:

Topic/Chapter Breakdown

Is there really that much that would need to change in a (‘second year”/diff-eq-based) mechanics course’? Not really. As follows…

  • Intro/“Chapter 2”: A little extra content in the usual “vector math” chapter (typically Chapter 2):

    • After teaching the dot product, teach the/Grassman’s wedge product. (Which is isomorphic in 3D to the cross product.) This means discussing bivectors, and how they add.
    • After the wedge product, teach the/Clifford’s general vector product. Assuming orthonormal basis vectors have already been introduced by then, show that vector products of basis vectors are the same as wedge products. Then show how everything you need to compute/derive/ can be figured out by yourself, in terms of products when writing things out in terms of bases.
    • Mention the cross product, and what it is, and that other areas of physics & engineering may still use cross-products, and that in terms of components it’s the same as the wedge product.
    • Maybe mention in passing / as a footnote: in GA the vector product has an inverse (i.e. you can divide vectors) whereas it’s not defined with Gibbs’ system. Applications for this appear in computer graphics (cf. Joan Lazenby) but not really in physics so, skipping it.
  • Early coverage of rotational motion:

    • Angular momentum as a wedge product, i.e. as an oriented surface showing the plane and direction of rotation, i.e. a bivector.
    • Remind students that this is the same as a cross-product, component wise.
    • Same with torque: it’s a bivector.
    • Look at precessional motion of gyroscope in gravitational field, viewed via bivector vs. cross-product paradigms.
    • No other changes to standard curriculum.
  • Small Oscillations / Simple Harmonic Motion:

    • Using complex numbers for oscillations and/or Fourier transforms is SUPER standard. Depriving students of this approach (just to shoehorn in GA) would be inadvisable. …Ok, no problem!
    • Really it just comes to your interpretation of “i”:: i.e., whether it’s interpreted as an “imaginary number” or as the pseudoscalar. The mathematical calculations are the same either way.
    • Viewing in terms of pseudoscalar would tie things in to the fact that we’re talking about rotations of phase. So this’ll be mentioned but not stressed. It’s not a big deal either way.
    • So, this chapter could be “agnostic” about the nature of i.
    • See link below to the paper about GA for teaching about AC circuits.
    • Now if we were to also mention (as many instructors already do) that is a generator of rotations, then this sets us up for all kinds of subsequent interesting discussions, including when we get to Rigid Body Rotation….
  • Rigid Body Rotation:

    • Sadly we usually have to skip this topic/chapter anyway at Belmont University due to time & pace of course – we have to “go slower” at Belmont compared to some other schools, given our lax math prereqs. It’s a major omission that I’d like to remedy someday.
    • Actually, GA could help by requiring less new formalism in this chapter: Students wouldn’t need to learn Euler angles (which lead to gimbal lock) or quaternions (which have negative magnitude and are janky IMHO). Everything could just be done in terms of rotation matrices (which students would be learning either way) and/or rotors.
    • These sorts of rotations would set them up for Quantum Mechanics and provide them exactly what they need, even providing a route “around” Pauli spinors, etc. since they’d now know GA anyway.
  • …And that’s all we’d change in Mechanics! (When we cover Lagrangian mechanics, we never get to Noether’s Theorem. This is still only an undergrad class. That could be a grad school thing.)

  • Looking ahead to later classes:

    • E&M: Maxwell’s equations in GA are the best “parlor trick” I’ve seen. On a practical level, what of gradient, divergence, curl? Hestenes 2003:

    “GA reduces ‘grad, div, curl and all that’ to a single vector derivative that, among other things, combines the standard set of four Maxwell equations into a single equation and provides new methods to solve it.’’

    (For more, one could see Jancewicz 1989, “Multivectors and Clifford Algebras in Electrodynamics.)

    • Quantum Mechanics: I mean…what’s not to like?? We’re no longer forced to puzzle over why \(i\) is an imaginary number that suddenly appears for no good reason (other than to make the algebra work out right, which GA does for you as well yet with spatially-meaningful objects instead)? (Simons 2010: “…the puzzle about the otherwise unmotivated introduction of complex numbers disappears.”) We get rotors that naturally lead to spinors? We get a geometric interpretation of spin? We still get all the algebra and symmetries that we need?? Uh… win-win, right?

Who Else Is Teaching This?

Have others tried teaching GA approaches? And if so, have they done it with undergrads or only grad students? And have these been successful or not – i.e. have they been tried and found lacking, or just not tried much? And how would success even be measured?

Names/Works:

“It requires the students to learn the basics of geometric algebra, but this effort is clearly compensated with the advantages derived from the possibility of using easy identifiable geometrical concepts. In fact, it is shown that the application of GA overcomes some limitations derived from the use of complex algebra and its phasor-based notation.”

Why aren’t more instructors doing this? I believe it’s because they just haven’t been exposed to it: “Clifford Algebra” mostly shows up in high-level theoretical physics discussions and/or pure-math stuff (ring theory + whatever my math colleague Brad Schleben does ;-) ). It’s been growing in popularity since the 1990s, and Doran & the Lazenbys have popularized it a bit in physics, engineering & computer graphics/vision, but kinda.. beyond that it’s still largely viewed as an obscure pure-theory thing rather than “the way things should be.” We believe this will and should change, and we’re willing to be a part of it. Others will say, “I guess this is interesting but why should we change? Cross products, quaternions, spinors, four-vectors, etc. are janky as hell but we learned them and we turned out fine!”

Education Research Studies?

David Hestenes mentioned in his OerstedMedallecture (ca. 2002) that the physics-ed community needs to do the education research to show how/whether teaching GA in physics courses is a good idea….and AFAIK his call has not been taken up, at all. Hestenes received AAPTs2014 ”ExcellenceinPhysicsEducationaward for his work with teaching GA, but still I can’t find any learning outcome results. My literature searches turned up zero studies about this. (Closest thing I found merely mentions Hestens but no explicit GA. Found one listservdiscussion but no results/outcomes.)

Update: One small study: James A. Smith shared with me one study by Ramón López Escudero and Philippe Eenens, which can be translated to English via Google Translate: “Enseñar el Álgebra Geométrica en el Primer Semestre de Ingenierías” (“Teach Geometric Algebra in the First Semester of Engineering”). Assessment consisted of two application problems and a test at the end of the course, as well as interviewing students. “The test result also turned out to be good.”

This merits revisiting an earlier question:

How Would “Success” Be Measured?

Ideas:

  1. Lack of complaints/negative results. Seriously. If we can introduce this material and nobody says boo, that can count as success. If people don’t show negative results (e.g. students later report “I got to grad school and wished we’d spent a whole 50 on cross-products instead of 10 minutes”), if whatever “scores” we have don’t go down.. That’s a plus.
  2. Actual positive anecdotal reports (which “count” in education circles), e.g. someone says “I loved the GA stuff” – a question about this could be added to the end of course eval reports that students answer: “How did you feel about the GA content?” We could perhaps somehow ask students later in Quantum if they felt the GA background helped them (it should!)
  3. Improved scores on our standard metrics / exams? Hard to insist on a causal relationship, but see #1, re not-going-down as justification.

…and if we’ve only got an enrollment of at most 10 undergrads in the class, then how would we ever turn this into a legit study, e.g. something one might present at a Lily Conference or somesuch? I know nothing about proper education research (but Danielle and/or the Teaching Center probably do! ;-) ) .

Sugon: “I am the only one teaching geometric algebra in my university, so I could not follow-up my students.”

Main Issues with Doing Ed Research for Me:

  1. Tracking Downstream Effects/Cohorts: The benefits of the GA approach will be mostly “downstream,” i.e., when students take more advanced courses – it’s hard to imagine students seeing “the unity of physics” from within only their very first semi-advanced course, on one topic! There will be a few benefits within mechanics itself, but I speculate that they may not be enough to appear significant on their own. Dr. Danielle Garrett (sci-ed expert) suggested tracking cohorts of students (and also mentioned that tracking student data would need IRB approval). That begs the question of whether other physics faculty at my university will be “on board” with using GA in, say, quantum & E&M, and/or whether we’d track the 1 or 2 of our students each year who go on to graduate school. (Note also that GA is seeing huge inroads into computer graphics, so, for the few students who go on to advanced CG work,…?)
  2. My Time & Other Commitments: I don’t need or really want a publication in some physics-ed journal; I’ve got enough other projects to keep me busy already. (I’ve got a book to work on that has nothing to do with GA!). But…it seems the community could really benefit from a study of this – and again, Hestenes’ call has gone largely unanswered.
  3. Related: Becoming an Admin for a Large Project: Maybe a networking approach would be needed, in which multiple faculty from multiple institutions commit to sharing data in some kind of standardized format in order to put together a study. That sounds like something a “bigger team” at a major university would/should/could do. But perhaps a consortium of “small college people” could still achieve something. Do I want to drop everything else in order to become the PI coordinating such an effort (even seek NSF funding, offer summer assistantships, etc)? …TBH, not really. But perhaps I could assist in motivating someone else to do so, and then I could “assist”. ;-)

TO-DO / Extras:

Deleted: Me Messing With Python clifford package

This blog post used to feature ca. 10 pages of me screwing around with the Python clifford package, but deleted these as I didn’t imagine they’d be much use to anyone else.