Demystifying the cross product

academics calculus linear algebra mathematics

The cross product is ubiquitous throughout linear algebra and vector calculus. It plays a major role in transformations of coordinate systems and is intimately related to the determinant. In fact, its definition in linear algebra courses is often given in terms of the determinant, which can seem mysterious and arbitrary. In this post, I want to demystify the cross product by defining it formally and computing it from scratch.

The cross product

The cross product is a vector operation that occurs between two vectors in a 3D space. It is defined as

a × b = |a| |b| sin(θ)n 

for vectors a and b and θ the angle between them. |a| denotes the magnitude of a. The vector n has a magnitude of 1 and points in one of the two directions that is perpendicular (at a right angle to) to both a and b. Which of those two it points to depends on the right hand rule: imagine a as your index finger and b as your middle finger of your right hand. Then your thumb, as it points directly up, is the direction of n. From this definition it’s not exactly clear how to compute it, but that will be covered in the next section. One important thing to notice is that the right hand side of this equation is equal to the definition of the area of a parallelogram. This means that the magnitude of the cross product of two vectors is equal to the area of the parallelogram spanned by those vectors.

Screen Shot 2024-01-08 at 2.41.42 PM

Computing the cross product

In case you aren’t familiar with the concept of unit vectors, think of them as a set of vectors that each point a cardinal direction in vector space and have a magnitude of 1. In Cartesian coordinates, they are (1, 0, 0), (0, 1, 0), and (0, 0, 1). They are typically denoted by i, j, and k, and they point in the direction of x, y, and z, respectively. 

Any vector in Cartesian space can be rewritten in terms of these unit vectors: 

(a, b, c) = ai + bj + ck 

It is important to notice that because the x-, y-, and z-axes are perpendicular to each other, so are i, j, and k. Using the definition, we can compute the cross product of these vectors with each other: 

i × j =

j × k =

k × i =

where we have used the fact that sin(90°) = 1 and the magnitude of a unit vector equals 1. Remember that the direction of the cross product depends on the right hand rule, so if you swap the order of the two vectors being crossed, the answer will be the same but with a negative sign: 

j × i = −k 

Using this, we can now compute, with a bit of effort, the cross product of any two arbitrary vectors. 

Suppose

a = a1i + a2j + a3k and b = b1i + b2j + b3k.

Then 

a × b = (a1i + a2j + a3k) × (b1i + b2j + b3k

We can expand this using the distributive property: 

a × b = a1b1(i × i) + a1b2(i × j) + a1b3(i × k

+a2b1(j × i) + a2b2(j × j) + a2b3(j × k

+a3b1(k × i) + a3b2(k × j) + a3b3(k × k

= (a2b3 − a3b2)i + (a3b1 − a1b3)j + (a1b2 − a2b1)

And there we have it. This is the simplest general form of the cross product of two vectors, and it is equivalent to the often-given definition that involves determinants. Note that we have used the fact that the cross product of a vector with itself is always zero, because the angle between a vector and itself is zero, and the sine of zero equals zero.

Comments

topicTopics
academics study skills medical school admissions MCAT SAT college admissions expository writing strategy English MD/PhD admissions writing LSAT physics GMAT GRE chemistry graduate admissions biology math academic advice law school admissions interview prep ACT language learning test anxiety personal statements premed career advice MBA admissions AP exams homework help test prep creative writing MD study schedules computer science Common Application mathematics summer activities secondary applications history philosophy organic chemistry research economics supplements grammar 1L PSAT admissions coaching dental admissions psychology statistics & probability law legal studies ESL CARS PhD admissions SSAT covid-19 logic games reading comprehension calculus engineering USMLE mentorship Latin Spanish parents AMCAS biochemistry case coaching medical school verbal reasoning DAT English literature STEM admissions advice excel political science skills French Linguistics MBA coursework Tutoring Approaches academic integrity astrophysics chinese classics dental school gap year genetics letters of recommendation mechanical engineering units Anki DO Social Advocacy algebra art history artificial intelligence business careers cell biology data science diversity statement geometry kinematics linear algebra mental health presentations quantitative reasoning study abroad tech industry technical interviews time management work and activities 2L AAMC DMD IB exams ISEE MD/PhD programs MMI Sentence Correction adjusting to college algorithms amino acids analysis essay athletics business skills cold emails executive function fellowships finance first generation student functions graphing information sessions international students internships logic networking poetry pre-dental proofs resume revising science social sciences software engineering trigonometry writer's block 3L Academic Interest EMT FlexMed Fourier Series Greek Health Professional Shortage Area Italian JD/MBA admissions Lagrange multipliers London MD vs PhD Montessori National Health Service Corps Pythagorean Theorem Python Shakespeare Step 2 TMDSAS Taylor Series Truss Analysis Zoom acids and bases active learning architecture argumentative writing art art and design schools art portfolios bacteriology bibliographies biomedicine brain teaser burnout campus visits cantonese capacitors capital markets central limit theorem centrifugal force chem/phys chemical engineering chess chromatography class participation climate change clinical experience community service constitutional law consulting cover letters curriculum dementia demonstrated interest dimensional analysis distance learning econometrics electric engineering electricity and magnetism escape velocity evolution extracurriculars freewriting fundraising genomics harmonics health policy history of medicine history of science hybrid vehicles hydrophobic effect ideal gas law immunology induction infinite institutional actions integrated reasoning intermolecular forces intern investing investment banking lab reports letter of continued interest linear maps mandarin chinese matrices mba media studies medical physics meiosis