PHY568-Lec-3-Vector Algebra
PHY568-Lec-3-Vector Algebra
What is a vector?
• A vector is a quantity that has both magnitude and direction.
Examples: Displacement, velocity, force, electric field, magnetic field, current density
• Magnitude of vector
A = A = Ax + Ay
2 2
in 2-D
A= A = Ax + Ay + Az
2 2 2
in 3-D
Vectors in Terms of Components
a) 166.42 N, 51.37°
b) -103.9 ax – 130 ay
Position vector
A point P in Cartesian coordinates may be represented by (x, y, z).
The position vector rP (or radius vector) of point P is defined as the directed distance from
the origin O (0,0,0) to P: i.e.,
Distance vector @ separation vector
The distance vector is the displacement from one point to another.
EXERCISE 4
EXERCISE 5
Compute the distance between the vectors ⟨2,3,5⟩ and ⟨2,0,9⟩.
Answer = 5
Vector multiplication
Dot Product @ Scalar Product
ax ax
az ay
𝒂𝑥 × 𝒂𝑥 = 𝒂𝑦 × 𝒂𝑦 = 𝒂𝑧 × 𝒂𝑧 = 0
𝒂𝑥 × 𝒂𝑦 = 𝒂𝑥 𝒂𝑦 sin 90o = 1 1 1 =1
Triple Products
Exercise 6
Three field quantities are given by
𝑷 = 2 𝒂𝒙 − 𝒂𝒛
𝑸 = 2 𝒂𝒙 − 𝒂𝒚 + 2𝒂𝒛
𝑹 = 2 𝒂𝒙 − 3𝒂𝒚 + 𝒂𝒛
Determine:
(a) (𝑷 + 𝑸) × (𝑷 − 𝑸)
(b)Q ⋅ (𝑹 × 𝑷)
(c) P ⋅ (𝑸 × 𝑹)
(d) sin θQR (ans: 0.5976)
(e) P × (𝑸 × 𝑹) (ans: 2ax + 3ay + 4az)
(f) A unit vector perpendicular to both Q and R
ans: ±(0.745ax + 0.298ay – 0.596az)
Components of a vector
A direct application of a scalar product is its use in determining the projection
(or component of a vector in a given direction). The projection can be scalar or vector.
Expanding a vector into two perpendicular components, one parallel to a given direction
(parallel to a given vector) and the second is perpendicular to the given vector.
Suppose we have vector A and we are given a vector B. Sometimes we are asked to find
the parallel and perpendicular components of A to B.
𝐀⋅𝐁 𝐁 𝐀⋅𝐁
𝐀∥ = A = 2𝐁 (Projection of A on B, or the parallel component to B)
AB 𝐵 B
𝐀⋅𝐁
The perpendicular component is 𝐀 ⊥ = 𝐀 − 𝐀 ∥ = 𝐀 − 𝐁
B2
Example
Given v = i - 2j + 2k and u = 4i - 3k find
a) 9.644
b) -5 ax – 2 ay + 8 az
c) 8.20