8.5 Vectors in 2D and 3D, Dot Product, Cross Product & Scalar Triple Product
Key Takeaways
A vector in 3D Euclidean space is represented as v=xi+yj+zk with magnitude ∣v∣=x2+y2+z2; its direction cosines satisfy l2+m2+n2=1 and sin2α+sin2β+sin2γ=2.
The dot product u⋅v=∣u∣∣v∣cosθ=u1v1+u2v2+u3v3 evaluates orthogonality (u⋅v=0), projection ∣v∣u⋅v, and work done W=F⋅d.
The cross product u×v=(∣u∣∣v∣sinθ)n^ is evaluated via 3×3 determinant, evaluates parallelism (u×v=0), and determines parallelogram area ∣u×v∣ and triangle area 21∣u×v∣.
The scalar triple product [uvw]=u⋅(v×w) computes the volume of a parallelepiped (volume of tetrahedron is 61∣[uvw]∣), with [uvw]=0 establishing coplanarity.
The vector triple product satisfies the non-associative BAC-CAB identity u×(v×w)=(u⋅w)v−(u⋅v)w, and connects with dot and cross products via Lagrange's identity ∣u×v∣2=∣u∣2∣v∣2−(u⋅v)2.
Last updated: October 2026
Vectors in 2D and 3D, Dot Product, Cross Product & Scalar Triple Product
Vector algebra forms the mathematical infrastructure connecting pure analytic geometry with classical mechanics in the Pakistan ECAT syllabus (Intermediate Mathematics Part II and Physics Part I). In the ECAT examination, questions routinely bridge vector operations with physical concepts such as mechanical work, torque, projections, and 3D spatial geometry. Candidates must be fluent in component forms, determinant evaluations of cross and triple products, and algebraic shortcuts that bypass multi-line matrix expansions.
1. Vector Representation in Euclidean Space and Magnitudes
A vectorv in three-dimensional space R3 represents a directed line segment characterized by both magnitude and direction. Given an initial point A(x1,y1,z1) and a terminal point B(x2,y2,z2), the displacement vector AB is:
v=AB=(x2−x1)i+(y2−y1)j+(z2−z1)k=⟨x,y,z⟩
where i,j,k represent the standard right-handed orthonormal unit basis vectors directed along the positive x-, y-, and z-axes, respectively.
Magnitude (Norm) of a Vector
The Euclidean length or magnitude of v=xi+yj+zk is given by:
∣v∣=∥v∥=x2+y2+z2
The Unit Vector
A unit vectorv^ parallel to v with unit magnitude (∣v^∣=1) is obtained by dividing v by its magnitude:
v^=∣v∣v=x2+y2+z2xi+x2+y2+z2yj+x2+y2+z2zk
2. Direction Angles, Direction Cosines, and Direction Ratios
Let α,β,γ∈[0,π] denote the angles that non-zero vector v=xi+yj+zk forms with the positive x-, y-, and z-axes, respectively.
Direction Cosines (l,m,n)
The cosines of these directional angles are the direction cosines of v:
l=cosα=∣v∣x,m=cosβ=∣v∣y,n=cosγ=∣v∣z
Notice that the unit vector is composed directly of these direction cosines: v^=li+mj+nk.
ECAT Trap Alert: Questions frequently ask for sin2α+sin2β+sin2γ or cos(2α)+cos(2β)+cos(2γ). Recall cos(2θ)=2cos2θ−1, so ∑cos(2α)=2(l2+m2+n2)−3=2(1)−3=−1.
Direction Ratios
Any triad of real numbers a,b,c proportional to the direction cosines l,m,n are termed direction ratios (a:b:c=l:m:n). Direction cosines are recovered via:
l=±a2+b2+c2a,m=±a2+b2+c2b,n=±a2+b2+c2c
3. The Dot Product (Scalar Product)
Geometric and Component Definitions
The scalar (dot) product of two vectors u and v separated by angle θ∈[0,π] is defined as:
u⋅v=∣u∣∣v∣cosθ
In Cartesian components where u=u1i+u2j+u3k and v=v1i+v2j+v3k:
u⋅v=u1v1+u2v2+u3v3
Fundamental Properties of the Dot Product
Commutative Law:u⋅v=v⋅u.
Distributive Law:u⋅(v+w)=u⋅v+u⋅w.
Self Dot Product:u⋅u=∣u∣2⟹∣u∣=u⋅u.
Orthonormal Basis Relations:
i⋅i=j⋅j=k⋅k=1
i⋅j=j⋅k=k⋅i=0
Condition for Orthogonality
Two non-zero vectors u and v are mutually perpendicular (orthogonal, θ=90∘) if and only if their scalar product vanishes:
Scalar Projection (Component) of u onto v: The directed length of the shadow of u along v is:
projvu=∣u∣cosθ=∣v∣u⋅v=u⋅v^
Vector Projection of u onto v: The vector component parallel to v is:
u∥v=(∣v∣2u⋅v)v
Physical Application: Work Done
The mechanical work W performed by a constant force vector F moving a body through displacement d is:
W=F⋅d=∣F∣∣d∣cosθ
4. The Cross Product (Vector Product)
Geometric and Component Definitions
The vector (cross) product of two vectors u and v is a vector perpendicular to the plane containing u and v:
u×v=(∣u∣∣v∣sinθ)n^
where θ∈[0,π] is the interior angle and n^ is a unit normal vector whose direction is determined by the right-hand rule. In component form, the cross product is evaluated via the 3×3 determinant:
Two non-zero vectors u and v are collinear (parallel or anti-parallel, θ=0∘ or 180∘) if and only if:
u×v=0⟺v1u1=v2u2=v3u3
Lagrange's Identity
The magnitude of the cross product is linked to the dot product by Lagrange's Identity:
∣u×v∣2=∣u∣2∣v∣2−(u⋅v)2
ECAT Speed Trick: If asked for ∣u×v∣ when ∣u∣,∣v∣, and u⋅v are known, never compute angles or trigonometric tables. Apply Lagrange's Identity directly: ∣u×v∣=∣u∣2∣v∣2−(u⋅v)2.
Geometric Applications of the Cross Product
Area of a Parallelogram: With adjacent side vectors u and v:
Area=∣u×v∣
If the diagonals of a parallelogram are vectors d1 and d2:
Area=21∣d1×d2∣
Area of a Triangle: With adjacent sides u and v:
Area=21∣u×v∣
Unit Normal Vector to a Plane: A unit vector normal to the plane containing u and v is:
n^=±∣u×v∣u×v
Physical Application: Torque (Moment of a Force): The moment of a force F acting at position r relative to pivot O is:
τ=r×F
5. The Scalar Triple Product (Box Product)
Definition and Determinant Representation
The scalar triple product of three vectors u,v,w is defined as the dot product of u with the cross product of v and w, denoted by [uvw]:
[uvw]=u⋅(v×w)
In terms of Cartesian components:
[uvw]=u1v1w1u2v2w2u3v3w3
Algebraic Properties of the Box Product
Cyclic Invariance: The value is unchanged under cyclic permutation of the vectors:
[uvw]=[vwu]=[wuv]
Anti-Cyclic Sign Reversal: Swapping any two adjacent vectors negates the sign:
[uwv]=−[uvw]
Dot and Cross Interchangeability:
u⋅(v×w)=(u×v)⋅w
Vanishing Condition: If any two vectors are identical or linearly dependent (parallel), the box product is zero: [uuv]=0.
Geometric Applications: Volumes and Coplanarity
Volume of a Parallelepiped: The volume V of a parallelepiped having coterminous edges defined by u,v,w is:
V=[uvw]=u⋅(v×w)
Volume of a Tetrahedron: The volume of a tetrahedron formed by coterminous edges u,v,w is:
Vtetrahedron=61[uvw]
Coplanarity Condition: Three vectors u,v,w are coplanar (lie in the same geometric plane) if and only if their scalar triple product vanishes:
[uvw]=0⟺u1v1w1u2v2w2u3v3w3=0
6. The Vector Triple Product
The vector triple product of three vectors u,v,w is defined as:
u×(v×w)
Because (v×w) is normal to the plane of v and w, taking the cross product with u produces a vector that lies entirely within the plane of v and w.
The BAC-CAB Expansion Rule
The vector triple product expands into a linear combination of v and w via the celebrated BAC-CAB identity:
u×(v×w)=(u⋅w)v−(u⋅v)w
ECAT Trap Alert: The vector cross product is not associative:
u×(v×w)=(u×v)×w
Expanding the right-hand expression using BAC-CAB gives:
(u×v)×w=−w×(u×v)=−[(w⋅v)u−(w⋅u)v]=(u⋅w)v−(v⋅w)u
7. Master Reference Table of Vector Operations
Operation
Algebraic Formula
Output Type
Primary Physical / Geometric Meaning
Magnitude
∣v∣=x2+y2+z2
Scalar ≥0
Total Euclidean length / speed
Dot Product
u⋅v=∣u∣∣v∣cosθ=u1v1+u2v2+u3v3
Scalar
Orthogonality test (u⋅v=0), Work (W=F⋅d)
Scalar Projection
projvu=∣v∣u⋅v
Scalar
Directed magnitude of shadow on target axis
Cross Product
u×v=iu1v1ju2v2ku3v3
Vector
Parallelism test (u×v=0), Torque (τ=r×F)
Parallelogram Area
A=∣u×v∣
Scalar ≥0
Area enclosed by adjacent edge vectors
Triangle Area
A=21∣u×v∣
Scalar ≥0
Area enclosed by two adjacent sides
Scalar Triple Product
[uvw]=u1v1w1u2v2w2u3v3w3
Scalar
Volume of parallelepiped, Coplanarity ([uvw]=0)
Tetrahedron Volume
V=61[uvw]
Scalar ≥0
Volume enclosed by 4 triangular faces
Vector Triple Product
u×(v×w)=(u⋅w)v−(u⋅v)w
Vector
Vector in plane of v,w orthogonal to u
Loading diagram...
Vector Operations and Applications Flowchart
Test Your Knowledge
What is the volume of the parallelepiped whose coterminous edges are formed by the vectors u=i+2j+3k, v=2i+3j+k, and w=3i+j+2k?
A
12
B
14
C
16
D
18
Test Your Knowledge
If two vectors u and v satisfy ∣u∣=3, ∣v∣=4, and u⋅v=6, what is the magnitude of their vector cross product ∣u×v∣?
A
6
B
62
C
63
D
12
Test Your Knowledge
For what real value of α are the three vectors a=2i−j+k, b=i+2j−3k, and c=3i+αj+5k coplanar?
A
−4
B
4
C
−2
D
0
Sections you finish are checked off in the contents.