1. Tensor calculus1.2.3–1.2.4 Bases and components
1.2.3–1.2.4Bases and components
To compute anything with numbers we now introduce a coordinate system. In this course we almost always use an orthonormal basis: three unit vectors e1,e2,e3 that are mutually perpendicular. We also require it to be right-handed, e1×e2=e3. In one line,
ei⋅ej={10i=ji=j
[1.6]
which says “unit length” for i=j and “perpendicular” for i=j.
Components
Any vector can be built from the three base vectors:
a=a1e1+a2e2+a3e3.
[1.7]
The numbers a1,a2,a3 are the components of a in this basis. To find them, use the projection idea: dot [1.7] with e1. By [1.6] only the first term survives, so a1=a⋅e1. In general
ai=a⋅ei.
[1.8]
A component is the projection of the vector on a base vector.
e1e2e3aa1a2a3
Figure [1.5]: The components ai=a⋅ei are the projections of a on the base vectors.
The reader collects the three components in a column, marked with a tilde underneath:
∼a=a1a2a3.
[1.9]
The products in components
Now we can turn the geometric definitions into arithmetic. For the dot product, expand both vectors and use linearity:
Multiplying out gives nine terms of the form aibjei⋅ej. By [1.6], the six terms with i=j vanish and the three with i=j keep their coefficient:
a⋅b=a1b1+a2b2+a3b3,∥a∥=a12+a22+a32.
[1.10]
For the cross product we need the products of the base vectors. A right-handed orthonormal basis gives e1×e2=e3, e2×e3=e1, e3×e1=e2, the reversed orders give the opposite sign, and ei×ei=0. Expanding the same way gives
The second formula is the triple product, so a 3×3 determinant is a signed volume. (Expand along the first row if you need to compute one: detA=a11(a22a33−a23a32)−a12(a21a33−a23a31)+a13(a21a32−a22a31).)
Worked example [1.3]
In a right-handed orthonormal basis, a=e1+2e2+2e3 and b=4e1+3e3. Find ∥a∥, ∥b∥, the angle between them, a×b, and the area of the parallelogram they span. Check the area in two ways.
Lengths: ∥a∥=1+4+4=3 and ∥b∥=16+0+9=5.
Dot product: a⋅b=1⋅4+2⋅0+2⋅3=10, so cosφ=10/(3⋅5)=2/3 and φ≈48.2∘.
One more check worth making a habit: the cross product must be perpendicular to both factors. Indeed (6e1+5e2−8e3)⋅a=6+10−16=0 and (6e1+5e2−8e3)⋅b=24+0−24=0.
A basis that changes from point to point
Orthonormal does not have to mean “the same everywhere”. For a pipe, a disc or a pressure vessel it is natural to use cylindrical base vectors: er pointing radially outward, et pointing in the tangential (hoop) direction, and ez along the axis. At every point these three are orthonormal, so everything in this section still holds there. But er and et turn as you go around the axis: