This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/8315/. Also, please do not modify any references to the original work (if any) contained in this content.
The calculator below computes the cross product of two vectors in three-dimensional space and visualizes the result. On the graph, first vector is shown in green, second vector is shown in blue, and cross product is shown is red. The theory and formulas can be found below the calculator.
The cross product or vector product (occasionally directed area product to emphasize the geometric significance) is a binary operation on two vectors in three-dimensional space and is denoted by the symbol . Given two linearly independent vectors and , the cross product, (read "a cross b"), is a vector that is perpendicular to both and and thus normal to the plane containing them.
The cross product is defined by the formula:
where θ is the angle between a and b in the plane containing them (hence, it is between 0° and 180°), ‖a‖ and ‖b‖ are the magnitudes of vectors a and b, and n is a unit vector perpendicular to the plane containing a and b in the direction given by the right-hand rule. If the vectors a and b are parallel (i.e., the angle θ between them is either 0° or 180°), by the above formula, the cross product of a and b is the zero vector 0.
By convention, the direction of the vector n is given by the right-hand rule, where one simply points the forefinger of the right hand in the direction of a and the middle finger in the direction of b. Then, the vector n is coming out of the thumb (see the adjacent picture). Using this rule implies that the cross product is anti-commutative, i.e., b × a = −(a × b). By pointing the forefinger toward b first, and then pointing the middle finger toward a, the thumb will be forced in the opposite direction, reversing the sign of the product vector.
Using the cross product requires the handedness of the coordinate system to be taken into account. The right-hand rule above is for a right-handed coordinate system. In a left-handed coordinate system, the direction of the vector n is given by the left-hand rule and points in the opposite direction.
We need some practical way to compute cross product from the coordinates of two vectors. For the standard basis for three-dimensional space, formed by vectors
we can write the following equalities from the definition of the cross product.
Since each vector can be defined as linear combination of three basis vectors, we can write vectors
Thus, the cross product of a and b will be
This can be expanded using distributivity
Which can be simplified using standard basis equalities above down to
BTW, the expression above can be written as determinant
The last formula describes a resulting cross product vector with coordinates: