Calculate the cross product of two vectors. This calculator will help you find the cross product of two vectors.
Vector A
Vector B
Cross Product (A x B = C)
Enter values for both vectors and click calculate.
Introduction to vector products
In vector algebra, there are several ways to multiply vectors together. While the dot product results in a scalar value, the cross product produces a new vector that is perpendicular to both original vectors. This operation is fundamental in numerous applications across physics, engineering, computer graphics, and more.
Definition of the cross product
The cross product (also called the vector product) of two vectors a and b is denoted by a×b and results in a vector that is:
Perpendicular to both a and b
Has a magnitude equal to ∣a∣∣b∣sinθ, where θ is the angle between the vectors
Points in the direction determined by the right-hand rule
Mathematically, for two vectors in three-dimensional space:
If a=(a1,a2,a3) and b=(b1,b2,b3), then:
a×b=a2b3−a3b2a3b1−a1b3a1b2−a2b1
This can also be represented using the determinant notation:
a×b=ia1b1ja2b2ka3b3
Where i, j, and k are the standard unit vectors in the x, y, and z directions respectively.
The right-hand rule
The direction of the cross product follows the right-hand rule:
Position your right hand so that your fingers point in the direction of the first vector a
Curl your fingers toward the second vector b
Your thumb now points in the direction of the cross product a×b
This rule establishes that the cross product in a right-handed coordinate system produces a vector that completes a right-handed system with the two input vectors.
Properties of the cross product
The cross product has several important properties:
1. Anti-commutativity
a×b=−(b×a)
The order of vectors matters in a cross product. Reversing the order negates the result.
2. Distributivity over addition
a×(b+c)=a×b+a×c
The cross product distributes over vector addition.
3. Scalar multiplication
α(a×b)=(αa)×b=a×(αb)
Where α is a scalar.
4. Not associative
(a×b)×c=a×(b×c)
The cross product does not follow the associative property.
5. Perpendicularity
a⋅(a×b)=0 and b⋅(a×b)=0
The cross product is perpendicular to both original vectors.
6. Magnitude property
∣a×b∣=∣a∣∣b∣sinθ
Where θ is the angle between a and b.
7. Cross product with parallel vectors
If a and b are parallel or anti-parallel (including the case where either is zero), then:
a×b=0
Calculating the cross product
Example 1: Basic calculation
Let's compute the cross product of a=(2,3,4) and b=(5,6,7):
The cross product is primarily defined for three-dimensional vectors. However, we can define a pseudo-cross product for two-dimensional vectors that results in a scalar:
For a=(a1,a2) and b=(b1,b2):
a×b=a1b2−a2b1
This scalar represents the signed area of the parallelogram formed by the two vectors.
Higher dimensions
In higher dimensions, the cross product as we know it in three dimensions does not exist. However, there are generalizations:
Wedge product: A generalization of the cross product to any dimension, part of exterior algebra
Cross product in seven dimensions: A unique binary operation similar to the three-dimensional cross product
Applications of the cross product
1. Physics and mechanics
Torque
The torque τ produced by a force F applied at position r relative to a pivot point is:
τ=r×F
Angular momentum
For a particle with mass m, position r, and velocity v, the angular momentum L is:
L=r×mv=r×p
Where p is the linear momentum.
Magnetic force
The force F on a charged particle with charge q moving with velocity v in a magnetic field B is:
F=qv×B
2. Geometry
Area of a parallelogram
The area of a parallelogram formed by vectors a and b is:
Area=∣a×b∣
Normal vector to a plane
Given two vectors a and b in a plane, the cross product a×b gives a vector normal (perpendicular) to that plane.
3. Computer graphics and 3D modeling
Surface normal calculation
For a triangle with vertices at positions v1, v2, and v3, the normal vector n is:
n=(v2−v1)×(v3−v1)
Camera orientation
The cross product helps establish orthogonal camera coordinate systems.
4. Navigation and orientation
Heading calculation
Cross products help determine relative orientations in navigation systems.
5. Robotics
Velocity kinematics
In robot arm kinematics, the cross product relates angular velocities to linear velocities at different points on a rigid body.
The relationship between cross product and dot product
The cross product and dot product are related through the triple scalar product and triple vector product:
Triple scalar product
For three vectors a, b, and c:
a⋅(b×c)=b⋅(c×a)=c⋅(a×b)
This represents the volume of the parallelepiped formed by the three vectors.
Triple vector product
a×(b×c)=b(a⋅c)−c(a⋅b)
This identity, known as Lagrange's formula, is useful in simplifying complex vector expressions.
The cross product in different coordinate systems
Cartesian coordinates
We've already seen the formula for Cartesian coordinates:
a×b=a2b3−a3b2a3b1−a1b3a1b2−a2b1
Cylindrical coordinates
For vectors expressed in cylindrical coordinates (r,θ,z), the cross product can be computed using the appropriate Jacobian transformations.
Spherical coordinates
Similarly, for vectors in spherical coordinates (r,θ,ϕ), the cross product requires appropriate transformations.
Computational considerations
Numerical stability
Computing cross products can be subject to numerical instability, especially when the vectors are nearly parallel.
Efficient implementation
In computational applications, the cross product can be efficiently computed:
The cross product can be expressed as a matrix multiplication:
a×b=[a]×b
Where [a]× is the skew-symmetric matrix:
[a]×=0a3−a2−a30a1a2−a10
This formulation is useful in computational applications and theoretical derivations.
Historical development
The cross product was developed in the 19th century as part of quaternion theory by Irish mathematician William Rowan Hamilton, and later refined by American mathematician Josiah Willard Gibbs into its modern form.
The concept evolved alongside vector analysis and has become fundamental to modern physics and engineering.
Conclusion
The cross product is a powerful mathematical operation with wide-ranging applications. Its unique properties—producing a perpendicular vector, being sensitive to orientation, and relating to geometric interpretations like areas and volumes—make it indispensable in fields ranging from physics to computer graphics.
Understanding the cross product and its properties enables deeper insights into three-dimensional geometry and provides essential tools for solving problems in numerous scientific and engineering disciplines.
References
Anton, H., & Rorres, C. (2014). Elementary Linear Algebra: Applications Version (11th ed.). Wiley.
Schey, H. M. (2005). Div, Grad, Curl, and All That: An Informal Text on Vector Calculus (4th ed.). W. W. Norton & Company.
Arfken, G. B., Weber, H. J., & Harris, F. E. (2013). Mathematical Methods for Physicists (7th ed.). Academic Press.
Marsden, J. E., & Tromba, A. (2011). Vector Calculus (6th ed.). W. H. Freeman.
Kreyszig, E. (2011). Advanced Engineering Mathematics (10th ed.). Wiley.