Gary Snethen Crystal Dynamics

Slides:



Advertisements
Similar presentations
CE Statics Lecture 6.
Advertisements

Vocabulary and Properties. Determine the word or phrase described in each slide.
Which came first: Vector Product or Torque? by Antonia Katsinos.
Chapter 4.1 Mathematical Concepts
Computer Graphics Recitation 2. 2 The plan today Learn about rotations in 2D and 3D. Representing rotations by quaternions.
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Simplify each expression.
Chapter 1 Equations, Inequalities, and Mathematical Models 1.4 Complex Numbers.
APPLICATIONS OF TRIGONOMETRY
Classical Mechanics and Special Relativity with GA Suprit Singh.
Solving Quadratic Equations by FACTORING
Chapter 10 Review: Matrix Algebra
Compiled By Raj G. Tiwari
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review.
1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.
Chapter 4.1 Mathematical Concepts
Geometry CSC 2141 Introduction to Computer Graphics.
1 Geometry. 2 Objectives Introduce the elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them in a coordinate-free.
CS 450: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE.
Objectives Define and use imaginary and complex numbers.
Imaginary & Complex Numbers 5-3 English Casbarro Unit 5: Polynomials.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Scalars A scalar is any physical quantity that can be completely characterized by its magnitude (by a number value) A scalar is any physical quantity that.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 : “shiv rpi” Linear Algebra A gentle introduction Linear Algebra has become as basic and as applicable.
Objectives Define and use imaginary and complex numbers.
Properties of Vector Operations: u, v, w are vectors. a, b are scalars. 0 is the zero vector. 0 is a scalar zero. 1. u + v = v + u 2. (u + v) + w = u +
Section 7.7 Previously, when we encountered square roots of negative numbers in solving equations, we would say “no real solution” or “not a real number”.
Sect. 4.2: Orthogonal Transformations
1 Chapter Objectives Parallelogram Law Cartesian vector form Dot product.
Concepts for Programming a Rigid Body Physics Engine Part 1 Presented by Scott Hawkins.
This is just a presentation on my history page of my webpage. To view the resources where I got my information, see my history page as well as my reference.
Lecture 2 Vectors.
Geometric Algebra Dr Chris Doran ARM Research 2. Geometric Algebra in 3 Dimensions.
Lesson 76 – Introduction to Complex Numbers HL2 MATH - SANTOWSKI.
Complex Numbers Add and Subtract complex numbers Multiply and divide complex numbers.
Entry task- Solve two different ways 4.8 Complex Numbers Target: I can identify and perform operations with complex numbers.
7.7 Complex Numbers. Imaginary Numbers Previously, when we encountered square roots of negative numbers in solving equations, we would say “no real solution”
Complex Numbers Definitions Graphing 33 Absolute Values.
VECTORS AND THE GEOMETRY OF SPACE. The Cross Product In this section, we will learn about: Cross products of vectors and their applications. VECTORS AND.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Algebra An Introduction. The History of Algebra The history of algebra began In Ancient Egypt and Babylon where basic equations were first solved. Our.
Euler Angles This means, that we can represent an orientation with 3 numbers Assuming we limit ourselves to 3 rotations without successive rotations about.
Computer Graphics I, Fall 2010 Geometry.
5.9 Complex Numbers Alg 2. Express the number in terms of i. Factor out –1. Product Property. Simplify. Multiply. Express in terms of i.
Chapter 4.6 Complex Numbers. Imaginary Numbers The expression does not have a real solution because squaring a number cannot result in a negative answer.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Introduction to Vectors What is a vector? Algebra of vectors The scalar product.
§ Linear Spaces Christopher Crawford PHY
CIE Centre A-level Pure Maths
Copyright © Cengage Learning. All rights reserved. 7 Matrices and Determinants.
MEC 0011 Statics Lecture 2 Prof. Sanghee Kim Fall_ 2012.
Christopher Crawford PHY
Boolean Algebra & De Morgan's Theorems
Vectors Lesson 2 recap Aims:
Interplanar distances and angles
Scalars A scalar is any physical quantity that can be completely characterized by its magnitude (by a number value) Mathematical operations involving scalars.
Review: Transformations
CSC461: Lecture 12 Geometry Objectives
Introduction to Computer Graphics with WebGL
Roots, Radicals, and Complex Numbers
UMBC Graphics for Games
A definition we will encounter: Groups
9.2 The Pythagorean Theorem
Laboratory in Oceanography: Data and Methods
Introduction to Complex Numbers
CHAPTER 3 VECTORS NHAA/IMK/UNIMAP.
Serway and Jewett Chapter 3
Presentation transcript:

Gary Snethen Crystal Dynamics gsnethen@crystald.com Geometric Algebra Gary Snethen Crystal Dynamics gsnethen@crystald.com

Questions How are dot and cross products related? Why do cross products only exist in 3D? Generalize “cross products” to any dimension? Is it possible to divide by a vector? What does an imaginary number look like? Complex have two, but Quaternions have four. Why? Why do quaternions rotate vectors? Generalize quaternions to any dimension?

History Babylonia – 1800 BC First known use of algebraic equations Number system was base-60 Multiplication table impractical (3600 entries to remember!) Used table of squares to multiply any two integers And this equation:

History Babylonia – 1800 BC A B B AB B2 A A2 AB

History Greece – 300 BC Alexandria – 50 AD Euclid wrote Elements Covered Geometry From “Geo” meaning “Earth” And “Metric” meaning “Measurement” Geometry was the study of Earth Measurements Extended: Earth to space, space-time and beyond Alexandria – 50 AD Heron tried to find volume of a frustum, but it required using the square root of a negative number

History Persia – 820 Al-Khwarizmi wrote a mathematics text based on… Al-jabr w’al-Muqabala Al-jabr: “Reunion of broken parts” W’al-Muqabala: “through balance and opposition” Pisa – 1202 Leonardo Fibonacci introduces the method to Europe Name is shortened to Al-jabr Westernized to Algebra

History 1637 – René Descartes 1777 – Leonard Euler Coined the term “imaginary number” 1777 – Leonard Euler Introduced the symbol i for imaginary numbers 1799 – Caspar Wessel Described complex numbers geometrically Made them acceptable to mainstream mathematicians 1831 – Carl Gauss Discovered that complex numbers could be written a + i b

History 1843 – Rowan Hamilton 1844 – Hermann Grassmann Discovered quaternions (3D complex numbers) Coined the term “vector” to represent the non-scalar part Invented dot and cross products 1844 – Hermann Grassmann Exterior product (generalization of cross product) 1870 – William Kingdon Clifford Generalized complex numbers, dot and cross products Died young, and his approach didn’t catch on Variants of his approach are often called Clifford Algebras 1966 – David Orlin Hestenes Rediscovered, refined and renamed “Geometric Algebra” Claims that “Geometric Algebra” is the name Clifford wanted

Geometric Algebra Introduction How do we represent direction? Direction is similar to a unit, like mass or energy, but even more similar to - and + Pick a symbol that represents one unit of direction – like i. We live in a 3D universe, so we need three directions: i, j and k

Geometric Algebra Introduction How do we add direction? i+i = 2i Parallel directions combine i+j = i+j Orthogonal directions do not combine No matter how many terms we add together, we’ll wind up with some combination of i, j and k: (ai + bj + ck) We call these vectors…

Geometric Algebra Simplifying Products How do we multiply orthogonal directions? j = ij i 3j 6ij = 2i We call these bivectors…

Geometric Algebra Introduction What are the unit directions in 2D & 3D? 2D 3D Scalar: 1 1 Vector: i j i j k Bivector: ij jk ki ij Trivector: ijk Note: In 3D, there are three vector directions and three bivector directions – this leads to confusion!

Geometric Algebra Introduction Which are vectors? Which are bivectors? Velocity Angular velocity Force Torque Normal Direction of rotation Direction of reflection Cross product of two vectors The vector portion of a quaternion

Geometric Algebra Introduction What does a negative bivector represent? j -ij = -i i -ij = -j -ij i = j

Geometric Algebra Introduction How do we multiply parallel directions? ii=? i represents direction, like 1 or -1 on a number line (1)(1) = 1 (-1)(-1) = 1 (i)(i) = 1 ii = 1 i is its own inverse!

Geometric Algebra Introduction How do we multiply directions? Rule 1: If i and j are orthogonal unit vectors, then: ji = -ij Just like the dot product! Just like the cross product! Rule 2: For any unit vector i: ii = 1 That’s it! Now we can multiply arbitrary vectors!

Geometric Algebra Simplifying Products Try simplifying these expressions… iijj 1 ijik -jk ijkjkij -j kjijk i

Geometric Product How do we multiply two vectors? (ai + bj + ck) (xi + yj + zk)

(ai + bj + ck) (xi + yj + zk) Geometric Product (ai + bj + ck) (xi + yj + zk) + axii + ayij + azik + bxji + byjj + bzjk + cxki + cykj + czkk =

Geometric Product – Simplify ii = 1 jj = 1 kk = 1 (ai + bj + ck) (xi + yj + zk) + axii + ayij + azik + bxji + byjj + bzjk + cxki + cykj + czkk =

Geometric Product – Simplify ii = 1 jj = 1 kk = 1 (ai + bj + ck) (xi + yj + zk) + ax + ayij + azik + bxji + by + bzjk + cxki + cykj + cz =

Geometric Product – Simplify ji = -ij ik = -ki kj = -jk (ai + bj + ck) (xi + yj + zk) + ax + ayij + azik + bxji + by + bzjk + cxki + cykj + cz =

Geometric Product – Simplify ji = -ij ik = -ki kj = -jk (ai + bj + ck) (xi + yj + zk) + ax + ayij + azik - bxij + by + bzjk + cxki + cykj + cz =

Geometric Product – Simplify ji = -ij ik = -ki kj = -jk (ai + bj + ck) (xi + yj + zk) + ax + ayij - azki - bxij + by + bzjk + cxki + cykj + cz =

Geometric Product – Simplify ji = -ij ik = -ki kj = -jk (ai + bj + ck) (xi + yj + zk) + ax + ayij - azki - bxij + by + bzjk + cxki - cyjk + cz =

Geometric Product – Group Terms (ai + bj + ck) (xi + yj + zk) + ax + ayij - azki - bxij + by + bzjk + cxki - cyjk + cz = = (ax + by + cz) + …

Geometric Product – Group Terms (ai + bj + ck) (xi + yj + zk) + ax + ayij + azik - bxij + by + bzjk - cxik - cyjk + cz = = (ax + by + cz) + (bz–cy) jk + (cx–az) ki + (ay–bx) ij

Geometric Product Inner & Outer Products (ai + bj + ck) (xi + yj + zk) + ax + ayij + azik - bxij + by + bzjk - cxik - cyjk + cz = = (ax + by + cz) + (bz–cy) jk + (cx–az) ki + (ay–bx) ij

Geometric Product Inner & Outer Products (ai + bj + ck) (xi + yj + zk) + ax + ayij + azik - bxij + by + bzjk - cxik - cyjk + cz = = (ax + by + cz) + (bz–cy) jk + (cx–az) ki + (ay–bx) ij

Geometric Product Inner & Outer Products (ai + bj + ck) (xi + yj + zk) + ax + ayij + azik - bxij + by + bzjk - cxik - cyjk + cz = = (ax + by + cz) + (bz–cy) jk + (cx–az) ki + (ay–bx) ij

Geometric Product Inverse Vectors can be inverted!

AB = (ax + by) + (ay – bx) ij 2D Product A = ai + bj B = xi + yj AB = (ax + by) + (ay – bx) ij Point-like “vector” (a scalar) Captures the parallel relationship between A and B Plane-like “vector” (a bivector) The perpendicular relationship between A and B

Note: This only works when n, m and v are in the same plane! 2D Rotation v’ = vnm v n m nm nm v’ = v(nm) = vnm Note: This only works when n, m and v are in the same plane!

A Complex Connection What is the square of ij? (ij)(ij) = (-ji)(ij) = -jiij = -j(ii)j = -jj = -1 !!! !!! ij = i !!! So… (a + bij) is a complex number !!!

The Complex Connection This gives a geometric interpretation to imaginary numbers: Imaginary numbers are bivectors (plane-like vectors). The planar product (“2D cross product”) of two vectors. The full geometric product of a pair of 2D vectors has a scalar (real) part “ ” and a bivector (imaginary) part “ ”. It’s a complex number! (2 + 3ij is the same as 2 + 3i) So, complex numbers can be used to represent a 2D rotation. This is the major reason they appear in real-world physics!

2D Reflection v v’ n vn v’ = n(vn) = nvn

Rotation by Double Reflection v v’ v’’ n m v’ = nvn v’’ = m(v’)m = m(nvn)m = mnvnm = (mn)v(nm) Angle of rotation is equal to twice the angle between n and m. Note: Rotation by double reflection works in any dimension!

Rotation by Double Reflection v v’ v’’ n m v’ = nvn v’’ = m(v’)m = m(nvn)m = mnvnm = (mn)v(nm) Angle of rotation is equal to twice the angle between n and m. The product mn is a quaternion and nm is its conjugate!