This means the dot product is commutative or in other words, the order does not matter when you compute it.
Relationship to vector lengths
v⋅v=v12+v22+v32=∥v∥2,
which looks almost like x⋅x=x2 for scalars.
Linearity
If u,v,w are vectors and a,b are scalars, then
u⋅(av+bw)=au⋅v+bu⋅w,
so you can distribute similar to regular addition and multiplication. Because the dot product is commutative, this is also true in the first slot of the dot product:
(av+bw)⋅u=av⋅u+bw⋅u.
Cosine formula
If θ is in the angle (chosen to be between 0 and π) between the vectors v and w, then
We say that v and w are orthogonal (or perpendicular) if the angle between them is 2π (i.e., they make a right angle to each other). We can use the dot product to test for orthogonality, since if v and w are non-zero, then by the cosine formula,
v⋅w=∥v∥∥w∥cosθ=0⟹cosθ=0.
Since θ is between 0 and π, this means that if v⋅w=0, then θ=2π. This means that if the dot product of two non-zero vectors is 0, then they are orthogonal to each other.
Projections
Given vectors u and v, we can draw this picture:
The green vector is the projection of u along v and is parallel to v, so there exists a scalar λ such that
u∥v=λ∥v∥v.
I'm using a unit vector here because I care about the direction of v (which is encapsulated in its unit vector) but I don't care about the length.
The red vector is perpendicular to v, meaning u⊥v⋅v=0. From the picture, you can also see that
u=u∥v+u⊥v=λ∥v∥v+u⊥v,
so to solve for λ, we can take the dot product with v on both sides:
λ above is called the scalar component of u along v, and we can use this to write down the formula for the projection of u along v:
u∥v=(∥v∥u⋅v)∥v∥v
Cross Product
Unlike the dot product, which gives you a scalar, the cross product of two vectors v and w give you another vector, denoted v×w. Geometrically, v×w is orthogonal to both v and w, and it follows the right-hand rule:
In the picture, v points to the right, and w points into the webpage. From the picture, you can already see that the cross product is not commutative.
Geometric Interpretation
Calculating the cross product is best understood by specifying its direction and magnitude. The direction is given by the right-hand rule, and the magnitude is given by the formula
∥v×w∥=∥v∥∥w∥∣sinθ∣,
there θ is the angle between v and w. There's a nice geometric interpretation of this formula:
The area of a parallelogram is base×height. In the picture above, the base is ∥v∥, the length of v, and the height is ∥w∥sinθ, so ∥v×w∥ is the area of the parallelogram spanned by v and w.
Determinant Formula
If you want to calculate v×w algebraically, then you can use the determinant formula: