# Vectors vs quaternions

When we discussed the 2D geometric algebra, we realized that bivectors are able to rotate vectors. We are curious to see if it also works in 3D.

Let’s calculate the product between a vector and a bivector: the vector can be decomposed into a component in the plane of the bivector and a perpendicular to it. Since it doesn’t have a shape, we can reshape the bivector so that it turns out to be

The result will consist of two parts: that is the vector rotated by in the plane of F and the trivector .
So actually the bivector has rotated the component of the vector that lay in its plane, but it has also generated a volume which, due to the rotation we are looking for, remains … indigestible.
If we try to swap the factors, the rotation of reverses, but that bothersome volume is still there.

Without giving us further headaches, the solution has already been stated when we talked about rotors: the sandwich product is what it takes to generate a pure rotation and make the trivector disappear (it cancels out).

con because

rotated by in the plane

and after long and boring calculations, we will obtain the rotation matrix of the quaternions:

that we will gladly forget, totally relying on the power of the sandwich product!

Rotations in 3D are NOT commutative and this is an important element in favor of the use of GA, which carries non-commutativity in its DNA.
To calculate two successive rotations, then we will proceed as follows:

represents the first rotation and the second will act on the result of the first, that is:

in 3D (and only in 3D) we can identify a single rotation as a result of the two aforementioned:

which finally corresponds to a rotation of 120 degrees on a plane that we find it difficult to identify: in fact for our imagination it is much easier to visualize the rotation axis.
To find it we resort to the known duality: