Source codeVideos
Vector and Operations

Three-Dimensional Vector

Nabil Akbarazzima Fatih

Mathematics

Understanding Three-Dimensional Vectors

A three-dimensional vector is a quantity that has both magnitude and direction in three-dimensional space. Unlike two-dimensional vectors that exist only on a plane (x and y axes), three-dimensional vectors exist in space with three coordinate axes (x, y, and z axes).

Vector in Three-Dimensional Space
Visualization of a vector in three-dimensional space with x, y, and z components.

Representation of Three-Dimensional Vectors

Notation of Three-Dimensional Vectors

Three-dimensional vectors can be notated in various ways:

  1. Letter notation with an arrow above it: a\vec{a} or PQ\overrightarrow{PQ}
  2. Component notation: (ax,ay,az)(a_x, a_y, a_z) or (a1,a2,a3)(a_1, a_2, a_3)
  3. Basis notation: axi+ayj+azka_x\vec{i} + a_y\vec{j} + a_z\vec{k}

Components of Three-Dimensional Vectors

A vector in three-dimensional space consists of three components that represent the projection of the vector on each coordinate axis:

a=(ax,ay,az)=axi+ayj+azk\vec{a} = (a_x, a_y, a_z) = a_x\vec{i} + a_y\vec{j} + a_z\vec{k}

where:

  • axa_x is the vector component on the x-axis
  • aya_y is the vector component on the y-axis
  • aza_z is the vector component on the z-axis
  • i,j,k\vec{i}, \vec{j}, \vec{k} are the unit vectors on the x, y, and z axes
Components of a Three-Dimensional Vector
Three-dimensional vector with components on the x, y, and z axes.

Magnitude of Three-Dimensional Vectors

The magnitude or length of a three-dimensional vector a=(ax,ay,az)\vec{a} = (a_x, a_y, a_z) is determined by the formula:

a=ax2+ay2+az2|\vec{a}| = \sqrt{a_x^2 + a_y^2 + a_z^2}

Example:

If a=(3,4,5)\vec{a} = (3, 4, 5), then the magnitude of vector a\vec{a} is:

a=32+42+52=9+16+25=50=52|\vec{a}| = \sqrt{3^2 + 4^2 + 5^2} = \sqrt{9 + 16 + 25} = \sqrt{50} = 5\sqrt{2}

Operations on Three-Dimensional Vectors

Addition and Subtraction of Vectors

Addition and subtraction of three-dimensional vectors are performed by adding or subtracting the corresponding components.

If a=(ax,ay,az)\vec{a} = (a_x, a_y, a_z) and b=(bx,by,bz)\vec{b} = (b_x, b_y, b_z), then:

a+b=(ax+bx,ay+by,az+bz)\vec{a} + \vec{b} = (a_x + b_x, a_y + b_y, a_z + b_z)
ab=(axbx,ayby,azbz)\vec{a} - \vec{b} = (a_x - b_x, a_y - b_y, a_z - b_z)
Vector Addition in Three Dimensions
Visualization of adding vectors a and b to produce vector c = a + b.

Scalar Multiplication of Vectors

Multiplying a scalar kk with a vector a\vec{a} produces a new vector with the same direction (if k>0k > 0) or opposite direction (if k<0k < 0) and a magnitude k|k| times the magnitude of a\vec{a}.

ka=(kax,kay,kaz)k\vec{a} = (k \cdot a_x, k \cdot a_y, k \cdot a_z)
Scalar Multiplication of a Vector
Visualization of scalar multiplication k times vector a, where k = 2.

Dot Product

The dot product between two vectors a\vec{a} and b\vec{b} produces a scalar defined as:

ab=axbx+ayby+azbz=abcosθ\vec{a} \cdot \vec{b} = a_x b_x + a_y b_y + a_z b_z = |\vec{a}||\vec{b}|\cos\theta

where θ\theta is the angle between the two vectors.

The dot product has the following properties:

  1. ab=ba\vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a} (commutative)
  2. ab=0\vec{a} \cdot \vec{b} = 0 if and only if a\vec{a} and b\vec{b} are perpendicular (orthogonal)
  3. aa=a2\vec{a} \cdot \vec{a} = |\vec{a}|^2

Cross Product

The cross product between two vectors a\vec{a} and b\vec{b} produces a new vector c\vec{c} that is perpendicular to both vectors.

a×b=(aybzazby,azbxaxbz,axbyaybx)\vec{a} \times \vec{b} = (a_y b_z - a_z b_y, a_z b_x - a_x b_z, a_x b_y - a_y b_x)

The magnitude of the cross product is:

a×b=absinθ|\vec{a} \times \vec{b}| = |\vec{a}||\vec{b}|\sin\theta

where θ\theta is the angle between the two vectors.

Cross Product of Vectors
Visualization of the cross product of vectors a and b producing vector c that is perpendicular to both.

Applications of Three-Dimensional Vectors

Three-dimensional vectors have many applications in various fields:

  1. Physics: To represent force, velocity, acceleration, and momentum in three-dimensional space
  2. Computer Graphics: To represent position and movement of objects in three-dimensional space
  3. Robotics: To control robot movement in space
  4. Navigation: To determine direction and distance in three-dimensional space
  5. Mechanical Engineering: For structural analysis and fluid mechanics