For AI agents: use /llms.txt for the Nakafa content index.
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 x x - and y y y -axes), three-dimensional vectors exist in space with three coordinate axes (x x x , y y y , and axes).
Three-dimensional vectors can be notated in various ways:
Letter notation with an arrow above it: a ⃗ \vec{a} a or P Q → \overrightarrow{PQ} P Q
Component notation: ( a x , a y , a z ) (a_x, a_y, a_z) ( a x , a y , a z ) or ( a 1 , a 2 , a 3 ) (a_1, a_2, a_3) ( a 1 , a 2 , a 3 )
Basis notation: a x i ⃗ + a y j ⃗ + a z k ⃗ a_x\vec{i} + a_y\vec{j} + a_z\vec{k} a x i + a y j + a z k
A vector in three-dimensional space consists of three components that represent the projection of the vector on each coordinate axis:
a x a_x a x is the vector component on the x x x
-axis
a y a_y a y is the vector component on the y y y
-axis
a z a_z a z is the vector component on the z z z
-axis
i ⃗ , j ⃗ , k ⃗ \vec{i}, \vec{j}, \vec{k} i , j , k are the unit vectors on the
,
, and axes
The magnitude or length of a three-dimensional vector a ⃗ = ( a x , a y , a z ) \vec{a} = (a_x, a_y, a_z) a = ( a x , a y , a z ) is determined by the formula:
If a ⃗ = ( 3 , 4 , 5 ) \vec{a} = (3, 4, 5) a = ( 3 , 4 , 5 ) , then the magnitude of vector a ⃗ \vec{a} a is:
Addition and subtraction of three-dimensional vectors are performed by adding or subtracting the corresponding components.
If a ⃗ = ( a x , a y , a z ) \vec{a} = (a_x, a_y, a_z) a = ( a x , a y , a z ) and b ⃗ = ( b x , b y , b z ) \vec{b} = (b_x, b_y, b_z) b = ( b x , b y , b z ) , then:
Multiplying a scalar k k k with a vector a ⃗ \vec{a} a produces a new vector with the same direction (if k > 0 k > 0 k > 0 ) or opposite direction (if k < 0 k < 0 k < 0 ) and a magnitude ∣ k ∣ times |k|\text{ times} ∣ k ∣ times the magnitude of a ⃗ \vec{a} a .
The dot product between two vectors a ⃗ \vec{a} a and b ⃗ \vec{b} b produces a scalar defined as:
where θ \theta θ is the angle between the two vectors.
The dot product has the following properties:
a ⃗ ⋅ b ⃗ = b ⃗ ⋅ a ⃗ \vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a} a ⋅ b = b ⋅ a (commutative)
a ⃗ ⋅ b ⃗ = 0 \vec{a} \cdot \vec{b} = 0 a ⋅ b = 0 if and only if and are
perpendicular (orthogonal)
a ⃗ ⋅ a ⃗ = ∣ a ⃗ ∣ 2 \vec{a} \cdot \vec{a} = |\vec{a}|^2 a ⋅ a = ∣ a ∣ 2
The cross product between two vectors a ⃗ \vec{a} a and b ⃗ \vec{b} b produces a new vector c ⃗ \vec{c} c that is perpendicular to both vectors.
The magnitude of the cross product is:
where θ \theta θ is the angle between the two vectors.
Three-dimensional vectors have many applications in various fields:
Physics : To represent force, velocity, acceleration, and momentum in three-dimensional space
Computer Graphics : To represent position and movement of objects in three-dimensional space
Robotics : To control robot movement in space
Navigation : To determine direction and distance in three-dimensional space
Mechanical Engineering : For structural analysis and fluid mechanics