Posts

Showing posts with the label vector geometry

Deriving the Direction Cosines of a Unit Vector

Direction Cosines of a Unit Vector A vector in 3D can be written as v = (x, y, z). This vector points from the origin to the point (x, y, z). Its direction depends on how much it travels in the x-direction, the y-direction and the z-direction. Magnitude of the Vector The magnitude, or length, of v is |v| = √(x² + y² + z²). This comes from the 3D version of Pythagoras' theorem. The vector has three perpendicular components: x, y and z. Squaring them, adding them, and taking the square root gives the total length. Unit Vector A unit vector is a vector with length 1. To turn v into a unit vector, divide every component by the magnitude of v: v̂ = (1 / |v|)(x, y, z). So v̂ = (x / |v|, y / |v|, z / |v|). This new vector points in the same direction as v, but its length is exactly 1. The Dot Product The dot product has two important forms. Algebraic form: a · b = a₁b₁ + a₂b₂ + a₃b₃. Geometric form: a · b = |a||b|cos(θ). The algebraic form uses co...

The Algebra Behind the Cross Product Magnitude

Image
This expansion shows why the expression |A| 2 |B| 2 − (A · B) 2 is equal to the squared magnitude of the cross product: |A × B| 2 Let A = (a 1 , a 2 , a 3 ) and B = (b 1 , b 2 , b 3 ) Then: |A| 2 = a 1 2 + a 2 2 + a 3 2 |B| 2 = b 1 2 + b 2 2 + b 3 2 Therefore: |A| 2 |B| 2 = (a 1 2 + a 2 2 + a 3 2 )(b 1 2 + b 2 2 + b 3 2 ) Expanding: |A| 2 |B| 2 = a 1 2 b 1 2 + a 1 2 b 2 2 + a 1 2 b 3 2 + a 2 2 b 1 2 + a 2 2 b 2 2 + a 2 2 b 3 2 + a 3 2 b 1 2 + a 3 2 b 2 2 + a 3 2 b 3 2 Now expand the dot product. A · B = a 1 b 1 + a 2 b 2 + a 3 b 3 So: (A · B) 2 = (a 1 b 1 + a 2 b 2 + a 3 b 3 ) 2 Expanding: (A · B) 2 = a 1 2 b 1 2 + a 2 2 b 2 2 + a 3 2 b 3 2 + 2a 1 b 1 a 2 b 2 + 2a 1 b 1 a 3 b 3 + 2a 2 b 2 a 3 b 3 Now subtract: |A| 2 |B| 2 − (A · B) 2 The matching diagonal terms cancel: a 1 2 b 1 2 ,   a 2 2 b 2 2 ,   a 3 2 b 3 2 This leaves: |A| 2 |B| 2 − (A · B) 2 = a 1 2...

Orthogonal Matrices and Mutually Orthogonal Vectors

Orthogonal Matrices and Mutually Orthogonal Vectors Orthogonal matrices appear naturally throughout linear algebra, geometry, physics, and computer graphics. They preserve lengths, angles, and orientation, which makes them fundamental in describing rotations and rigid motions in three-dimensional space. This article provides a clear and carefully structured explanation of what orthogonal matrices are, why they matter, and how to verify that a given matrix is orthogonal. 1. Definition of an Orthogonal Matrix Let M be an n × n square matrix. M is called orthogonal if it satisfies: M M T = I Here: M T is the transpose of M. I is the identity matrix of the same size. Because of this property, every orthogonal matrix has a very useful consequence: M -1 = M T This means that the inverse of an orthogonal matrix is obtained simply by transposing it. This property is central to rigid-body transformations in 3D geometry and computer graphics. 2...

The Difference Between the Lines 𝐀 + t𝐁 and 𝐁 + t(𝐀 − 𝐁)

Image
The Difference Between the Lines 𝐀 + t𝐁 and 𝐁 + t(𝐀 − 𝐁) A line in vector form is defined by two components: a base point that determines its position, and a direction vector that determines its orientation. Two expressions may involve the same vectors but still represent completely different lines when either the base point or the direction vector changes. The expressions L₁: 𝐀 + t𝐁 L₂: 𝐁 + t(𝐀 − 𝐁) provide a clear example of how distinct lines arise from different vector components. 1. Line L₁: 𝐀 + t𝐁 The expression 𝐀 + t𝐁 describes a line passing through the point represented by vector 𝐀 with direction vector 𝐁. As the real parameter t varies, the expression generates all points on the line. Base point: 𝐀 Direction vector: 𝐁 This is the line through 𝐀 directed along 𝐁. 2. Line L₂: 𝐁 + t(𝐀 − 𝐁) The expression 𝐁 + t(𝐀 − 𝐁) describes a different line. Its base point is 𝐁, and its direction vector is t...