# Maths - Powers of Vectors

We want to calculate an expression for:

(v)n

where:

• n is an integer.
• v is a vector.

First we need to understand what type of multiplication we are using, for instance does v²= v•v or v×v ?

In order to keep this general I will use the geometric product '*' (see Clifford algebra) which is defined as:

a*b = a•b + a×b

but we will assume the vectors anti-commute which means:

v×v=0

So we can use the dot product.

If the vectors anti-commute (as they do in euclidean space) then we will see that the result is not necessarily closed within the vector space, if 'n' is even then the result will be a pure scalar value and if 'n' is odd then the result will be a vector.

## Attempt to use binomial theorem

When we calculated the powers of complex numbers we used the binomial theorem:

(a + i b)n=
 n ∑ k=0
 n! (n-k)! k!
(-i)k a n-k bk

However there are a couple of differences in this case: these are more terms (so we would have to use a 'n'nomial instead of a binomial) but more importantly the terms don't all commute so we must use all permutations rather than integer multiplications of combinations which the binomial theorem gives.

see combinatorics

## Square

So lets try the simplest case where: (v)² since a vector squares to a scalar value we get:

v² = v•v =
 n ∑ k=0
vk²

## Other powers

So even powers will have scalar values, here are the first few powers:

power value type
v•v scalar
v•v*v vector
v4 (v•v)*(v•v) scalar
v5 (v•v)*(v•v)*v vector

So the even powers of vn are ∏vk

The odd powers are vn are v*∏v(k-1)

 metadata block see also: Correspondence about this page Book Shop - Further reading. Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.       Introduction to 3D Game Programming with DirectX 9.0 - This is quite a small book but it has good concise information with subjects like, maths introduction and picking.       If you are interested in 3D games, this looks like a good book to have on the shelf. If, like me, you want to have know the theory and how it is derived then there is a lot for you here. Including - Graphics pipeline, scenegraph, picking, collision detection, bezier curves, surfaces, key frame animation, level of detail, terrain, quadtrees & octtrees, special effects, numerical methods. Includes CDROM with code. This book contains more mathematically rigorous methods for picking than described above. Other Math Books Specific to this page here:

This site may have errors. Don't use for critical systems.