{"id":104,"date":"2006-08-07T19:53:33","date_gmt":"2006-08-07T19:53:33","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2006\/08\/07\/quaternions-upping-the-dimensions-of-complex-numbers\/"},"modified":"2006-08-07T19:53:33","modified_gmt":"2006-08-07T19:53:33","slug":"quaternions-upping-the-dimensions-of-complex-numbers","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2006\/08\/07\/quaternions-upping-the-dimensions-of-complex-numbers\/","title":{"rendered":"Quaternions: upping the dimensions of complex numbers"},"content":{"rendered":"<p>Quaternions<br \/>\nLast week, after I wrote about complex numbers, a bunch of folks wrote and said &#8220;Do quaternions next!&#8221; My basic reaction was &#8220;Huh?&#8221; I somehow managed to get by without ever being exposed to quaternions before. They&#8217;re quite interesting things.<br \/>\nThe basic idea behind quaterions is: we see some amazing things happen when we expand the dimensionality of numbers from 1 (the real numbers) to 2 (the complex numbers). What if we add *more* dimensions?<br \/>\nIt doesn&#8217;t work for three dimensions But you *can* create a system of numbers in *four* dimensions. As with complex numbers, you need a distinct unit for each dimension. In complex, those were 1 and i. For quaternions, you need for units: we&#8217;ll call them &#8220;1&#8221;, &#8220;i&#8221;, &#8220;j&#8221;, and &#8220;k&#8221;. In quaternion math, the units have the following properties:<br \/>\n1. i<sup>2<\/sup> = j<sup>2<\/sup> = k<sup>2<\/sup> = ijk = -1<br \/>\n2. ij = k, jk = i, and ki=j<br \/>\n3. ji = -k, kj = -i, and ik=-j<br \/>\nNo, that last one is *not* an error. Quaternion multiplication is *not* commutative: ab &amp;neq; ba. It *is* associative over multiplication, meaning (a*b)*c = a*(b*c). And fortunately, it&#8217;s both commutative and associative over addition.<br \/>\nAnyway, we write a quaternion as &#8220;a + bi + cj + dk&#8221;; as in &#8220;2 + 4i -3j + 7k&#8221;.<br \/>\nAside from the commutativity thing, quaternions work well as numbers; they&#8217;re a non-abelian group over multiplication (assuming you omit 0); they&#8217;re an abelian group over addition; they form a division algebra *over* the reals (meaning that you can define an algebra with operations up to multiplication and division over the quaternions, and operations in this algebra will generate the same results as normal real algebra if the i,j, and k components are 0.)<br \/>\nHistory<br \/>\n&#8212;&#8212;&#8212;<br \/>\nQuaternions are a relatively recent creation, so we know the history quite precisely. Quaternions were invented by a gentleman named William Hamilton on October 16th, 1843, while walking over the Broom bridge with his wife. He had been working on trying to work out something like the complex numbers with more dimensions for a while, and the crucial identity &#8220;ijk=-1&#8221; struck him while he was walking over the bridge. He immediately *carved it into the bridge* before he forgot it. Fortunately, this act of vandalism wasn&#8217;t taken seriously: the Broom bridge now has a plaque commemorating it!<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Quaternion_Plague_on_Broom_Bridge.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_25.jpg?resize=250%2C179\" width=\"250\" height=\"179\" \/><br \/>\nQuaternions were controversial from the start. The fundamental step that Hamilton had taken in making quaternions work was abandoning commutativity, and many people believed that this was simply *wrong*. For example, Lord Kelvin said &#8220;Quaternions came from Hamilton after his really good work had been done; and, though beautifully ingenious, have been an unmixed evil to those who have touched them in any way.&#8221;<br \/>\nWhy are they non-commutative?<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nQuaternions are decidedly strange things. As I mentioned above, they&#8217;re non-commutative. Doing math with things where ab &amp;neq; ba was a *huge* step, and it can be strange. But it is necessary for quaternions. Here&#8217;s why.<br \/>\nLet&#8217;s take the fundamental identity of quaternions: ijk = -1<br \/>\nNow, let&#8217;s multiply both sides by k: ij(k<sup>2<\/sup>) = -1k<br \/>\nSo, ij(-1)=-k, and ij=k.<br \/>\nNow, multiply by *i* on the left on both sides: i<sup>2<\/sup>j = ik<br \/>\nAnd so, -1j = ik, and ik=-j.<br \/>\nKeep playing with multiplication in the identities, and you find that the identities simple *do not work* unless it&#8217;s non-commutative.<br \/>\nWhat are they good for?<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nFor the most part, quaternions aren&#8217;t used much anymore. Initially, they were used in many places where we now use complex vectors, but that&#8217;s mostly faded away. What they *are* used for is all sorts of  math that in any way involves *rotation*. Quaternions capture the essential properties of rotation.<br \/>\nTo describe a rotation well, you actually need to have *extra* dimensions. To describe an *n*-dimensional rotation, you need *n+2* dimensions. Since in our three dimensional world, we rotate things around a *line* which is two dimensional, the description of the rotation needs *four* dimensions. And further, rotation itself is non-commutative.<br \/>\nTake a book and put it flat on the table, with the binding to the left. Flip it so that the binding stays on the same side, but now you&#8217;ve got the back cover on top, upside-down. Then rotate it clockwise 90 degrees on the table. You now have the book with its back cover up, and the binding facing away from you.<br \/>\nNow, start over: book right side up, binding facing left. Rotate it clockwise 90 degrees. Now flip it the same way you did before (over the x axis if you think of left as -x, right as +x, away from you as +y, up as +z, etc.)<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"rotate.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_26.jpg?resize=407%2C225\" width=\"407\" height=\"225\" \/><br \/>\nWhat&#8217;s the result? You get the book with its back cover up, and the binding factor *towards* you. It&#8217;s 180 degrees different depending on which order you do it in. And 180 degrees is a reverse equivalent to the sign difference that you get in quaternion multiplication! Quaternions have exactly the right properties for describing rotations &#8211; and in particular, the *composition* of rotations.<br \/>\nThe use of quaternions for rotations is used in computer graphics (when something rotates on the screen of your PS2, it&#8217;s doing quaternion math!); in satellite navigation; and in relativity equations (for symmetry wrt rotation).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quaternions Last week, after I wrote about complex numbers, a bunch of folks wrote and said &#8220;Do quaternions next!&#8221; My basic reaction was &#8220;Huh?&#8221; I somehow managed to get by without ever being exposed to quaternions before. They&#8217;re quite interesting things. The basic idea behind quaterions is: we see some amazing things happen when we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[24,43],"tags":[],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-goodmath","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-1G","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}