I am in an introductory Linear Algebra course and we were recently introduced to the cross product. I have read online and heard from others that the cross product is defined in $\mathbb R^3$ only. However, when we learnt it my teacher told us that it is defined for any vector space, and mentioned nothing about only in 3 dimensions.The formula that we learnt is this:
If $x_1,x_2,...,x_{n-1}$ are vectors in $\mathbb R^n$, then their cross product $$w=\ast(x_1,x_2,...,x_{n-1})$$ is characterized by $w^Tx=\det(x_1x_2...x_{n-1}x)$, and can be calculated by substituting $x$ as $e_i$ for $1\le i\le {n-1}$.
I was wondering, is this how the actual cross product is defined and most people learn it only for $\mathbb R^3$, or is this my teacher extending the definition to a more general case? I've been trying to find out online but I've had no luck.
The following is why the cross product is defined in $3$ dimensions only.
The issue with defining the cross product is that it's not precisely what you think it is. If you've learned "the right hand rule", you may know that to compute a cross product you:
This means we can break the "take a cross product" function into a few sub-functions:
Step 2 is what fails in general. Specifically, given two vectors, we can always form what's known as a bivector (just the oriented plane mentioned earlier). This is via an operation called the exterior product, which is very similar to the cross product in $\mathbb{R}^3$. Then, we want to convert this bivector into a vector so $f(x,y) = x\times y$ is a function from vectors to vectors (instead of from vectors to "bivectors").
This is done via the Hodge Dual --- given a $k$-vector in $\mathbb{R}^n$ (so an oriented span of $k$ vectors, not just $2$ like with a bivector), this gives a natural way to get a $n-k$ vector. So, for a $2$ vector in $\mathbb{R}^3$, we get a $3-2 =1$-vector, or a normal vector. The Hodge Dual is precisely the (generalized) process of using the right-hand rule, but only in $\mathbb{R}^3$ do we have that $n - 2 = 1$, giving us the conversion back we want.
So, we have an easy way to generalize the cross product to higher dimensions if we're ok with dealing with "bivectors", and in general $k$-vectors. If we aren't willing to do this, it gets much more difficult (There are some oddities like the Seven dimensional cross product, but nothing in general that works and avoids the wedge product).
The wedge product is essentially what your professor has defined for you, so it will be the correct generalization (although the output won't be a "vector" unless you look at the wedge product of $k$ vectors such that $n-k = 1$, so $k = n-1$ vectors).
The field that studies this is known as Geometric Algebra, if you're interested in learning more.