Search Continuum Mechanics Website

Vectors

 home > basic math > vectors
Prev Up Next

Introduction

Vectors
Vectors have magnitude and direction, and are used to represent physical quantities such as force, position, velocity, and acceleration. They are usually written in component form as a=(3,7,2)a=(3,7,2) If the 3, 7, and 2 represent the x, y, and z components (or even r, θ, and z components) of some force, velocity, acceleration, etc, then they constitute a vector. If they instead represent the number of people who ate breakfast, lunch, and dinner with you, then they are not a vector. You get the idea.

A key question asked of a vector is, "Does it obey the usual rules of coordinate system transformations of vectors?" As expected, forces, accelerations, etc do. The number of people eating meals with you does not. Coordinate Transforms are discussed in detail here.

Where is the vector?

Does a vector contain information about its location? In general, no. In a force vector such as (3,8,5), the 3, 8, and 5 give the force component in each direction, but nothing about its position. A second position vector would be needed to specify the location of the force vector.

Length of a Vector

The length of a vector is

|a|=a21+a22+a23

Vector Length Example

If a=(3,7,2), then

|a|=32+72+22=62=7.874

Unit Vectors

A unit vector has a length equal to one. It is created by dividing each component of the vector by its total length.

u=a|a|=(a1,a2,a3)a21+a22+a23

Unit Vector Example

If a=(3,7,2), then

u=(362,762,262)

Vector Addition

Vectors add component by component.

(1,3,2)+(4,1,7)=(1+4,3+1,2+7)=(5,4,9)
Vector addition can be written as

c=a+borci=ai+bi
The first form is vector or matrix notation, where non-scalars are written in bold font. The second form has many names: index, indicial, tensor, and Einstein notation.

Coordinate Systems

As simple as vector addition is, it does rely on one key rule that is often taken for granted. It is that both vectors must be in the same coordinate system. In fact, this is true for all vector and tensor operations.

Dot Products

The dot product of two vectors is a scalar whose value is

ab=|a||b|cosθ
where θ is the angle between the two vectors. Applying this to the vector components gives

ab=(axi+ayj+azk)(bxi+byj+bzk)=axbx(ii)+axby(ij)+axbz(ik)+aybx(ji)+ayby(jj)+aybz(jk)+azbx(ki)+azby(kj)+azbz(kk)
but ii=jj=kk=1 and ij=jk=ki=0, leaving only

ab=axbx+ayby+azbz
Therefore, in summary, the dot product is

ab=|a||b|cosθ=axbx+ayby+azbz

Dot Product Example

If a=(3,7,2), and b=(1,2,3), then

ab=31+72+23=23
and since |a|=7.874, and |b|=3.742, then θ can be solved for to find that the angle between the vectors is 38.7°.

Dot Products and Unit Vectors

To find the length of a in the direction of b, compute aub where ub is a unit vector in the direction of of b. To find the length of b in the direction of a, compute bua where ua is a unit vector in the direction of of a.

This works because the length of b along the direction of a is given by |b|cosθ, where θ is the angle between the two vectors. But this is the same as |ua||b|cosθ, since |ua|=1. So it is the same as uab.

Tensor Notation

A dot product is written in tensor notation simply as aibi. The summation from 1 to 3 is implied because the subscript ( i in this case ) appears twice ( on a and b ). In other words:

aibia1b1+a2b2+a3b3

Applications

Dot products are especially useful in calculating the work done by forces.

W=Fdx
And yes, W can be a negative quantity. If you are in a tug-of-war and your Fdx is negative, then you are losing.

The Sign of a Dot Product

The sign of a dot product is a very useful parameter for determining the relative orientation of two vectors. If the dot product equals zero, then the vectors are perpendicular to each other.

If the dot product is negative, then the angle between the vectors is greater than 90°. If the two vectors happen to be forces, then a negative dot product implies that the forces are cancelling each other out to some degree because the angle between them is greater than 90°.

If the dot product is positive, then the angle between the vectors is less than 90° and the two are contributing constructively in a given direction.

Cross Products

Cross products are primarily associated with rotations, although geometric applications also exist. The cross product of two vectors is a new vector perpendicular to both inputs. The cross product of two vectors is

a×b=(axi+ayj+azk)×(bxi+byj+bzk)=axbx(i×i)+axby(i×j)+axbz(i×k)+aybx(j×i)+ayby(j×j)+aybz(j×k)+azbx(k×i)+azby(k×j)+azbz(k×k)
but i×j=k and j×k=i etc, while i×i=j×j=k×k=0, leaving

a×b=(aybzazby)i+(azbxaxbz)j+(axbyaybx)k
The result can be conveniently written as a determinant as follows

a×b=|ijkaxayazbxbybz|=(aybzazby)i+(azbxaxbz)j+(axbyaybx)k
The magnitude of a cross product is related to the sine of the angle between the two inputs.

|a×b|=|a||b|sinθ

Tensor Notation

A cross product is written in tensor notation using the alternating tensor (also called the permutation tensor), ϵijk, as follows

ci=ϵijkajbk
where ϵ123=ϵ231=ϵ312=1, while ϵ321=ϵ213=ϵ132=1, and all other combinations equal zero. Summation of the j and k indices from 1 to 3 is implied because they are repeated as subscripts in the above equation. In other words, it is shorthand for

ci=ϵijkajbk=ϵi11a1b1+ϵi12a1b2+ϵi13a1b3+ϵi21a2b1+ϵi22a2b2+ϵi23a2b3+ϵi31a3b1+ϵi32a3b2+ϵi33a3b3
The equation is still general until a particular component is chosen for i to be evaluated.

Cross Products Using Tensor Notation

Set i=3 to obtain the zth component of a cross product.

c3=ϵ3jkajbk=ϵ311a1b1+ϵ312a1b2+ϵ313a1b3+ϵ321a2b1+ϵ322a2b2+ϵ323a2b3+ϵ331a3b1+ϵ332a3b2+ϵ333a3b3
All subscripts are now specified, and this permits evaluation of all alternating tensor components. All of them will equal zero except two. This leaves

c3=ϵ3jkajbk=a1b2a2b1
which is consistent with the determinant result (as it had better be). Results for the xth and yth components are obtained by setting i equal to 1 and 2, respectively.

Applications

Cross products have applications in the areas of moments, rotations, and area calculations. The moment, M, of a force is r×F. This is written in tensor notation as

Mi=ϵijkrjFk
Likewise, the velocity, v, of a point due to an angular rotation rate, ω, is ω×r. In tensor notation, this is

vi=ϵijkωjrk
And finally, the area of a triangle bounded on two sides by vectors a and b is

Area=12|a×b|
In tensor notation, this is written in two steps as

ci=ϵijkajbkandArea=12cici
or in a single equation as

Area=12ϵijkajbkϵimnambn

Order of Factors in Tensor Notation

Tensor notation allows for increased flexibility of the order in which factors are written than is permitted in vector notation. For example, a×b is not equal to b×a, although they are closely related. In contrast ϵijkajbk equals ϵijkbkaj equals ajbkϵijk because the order of operation is dictated by the indices rather than the order the factors are written in. So in the above discussion, ϵijkajbkϵimnambn could also be written as ϵijkϵimnajbkambn. It is simply a matter of personal preference.

Dyadic Products

Dyadic products seem to only arise in advanced mechanics applications, which is precisely what Finite Deformation Continuum Mechanics is, after all. A dyadic product of two vectors is a tensor (or matrix if you prefer). It is written as follows

ab=(axi+ayj+azk)(bxi+byj+bzk)=axbx(ii)+axby(ij)+axbz(ik)+aybx(ji)+ayby(jj)+aybz(jk)+azbx(ki)+azby(kj)+azbz(kk)=[axbxaxbyaxbzaybxaybyaybzazbxazbyazbz]
In effect, the dyadic products such as (ii) and (ij) simply dictate the location of the terms in the tensor. A dyadic product is sometimes referred to as the outer product of vectors because of the following notation.

C=ab={axayaz}{bxbybz}  =[axbxaxbyaxbzaybxaybyaybzazbxazbyazbz]

Tensor Notation

Tensor notation of a dyadic product could not be simpler.

cij=aibj
Dyadic products will be used in the calculation of resolved shear stresses on the traction vector page.

Dyadic Product Example

If a=(3,7,2), and b=(1,2,3), then

ab=[313233717273212223]=[36971421246]

Miscellaneous

This webpage performs many vector operations. Try it out. Here's a screen shot.






Thank You

Thank you for visiting this webpage. Feel free to email me if you have questions.

Also, please consider visiting an advertiser above. Doing so helps to cover website hosting fees.

Bob McGinty
bmcginty@gmail.com


Entire Website - $12.95

For $12.95, you receive two formatted PDFs (the first for 8.5" x 11" pages, the second for tablets) of the entire website.

Click here to see a sample page in each of the two formats.

Email address to receive PDFs

Math Chapter - $4.99

For $4.99, you receive two formatted PDFs (the first for 8.5" x 11" pages, the second for tablets) of the complete math chapter.

Click here to see a sample page in each of the two formats.

Email address to receive PDFs



   Copyright © 2012 by Bob McGinty