Vectors and Dot Product - Lecture Notes

Vectors in R^2 and Basic Operations

  • Vector: A fundamental mathematical object characterized by both magnitude (length or size) and direction. It represents a displacement or a force without a fixed starting point (a "free vector").

    • In a 2D Cartesian coordinate system (R^2), a vector is commonly represented as an ordered pair (x,y)(x, y), denoting its components along the x and y axes.

    • In a 3D Cartesian system (R^3), it is represented as (x,y,z)(x, y, z).

  • Displacement Vector: The vector from an initial point P to a terminal point Q, denoted as PQ\vec{PQ}.

    • It is computed by subtracting the coordinates of the initial point from the coordinates of the terminal point: PQ=QP\vec{PQ} = Q - P. This operation determines the change in each coordinate required to move from P to Q.

    • Example: If P=(1,3)P = (-1, 3) and Q=(3,7)Q = (3, 7), then the displacement vector is: PQ=QP=(3(1), 73)=(4,4)\vec{PQ} = Q - P = (3 - (-1),\ 7 - 3) = (4, 4).

  • Convention: Vectors are typically written using angle-bracket notation, e.g., <v1,v2>\lt v1, v2 \gt in R^2 or <v1,v2,v3>\lt v1, v2, v3 \gt in R^3, to distinguish them from points (p1,p2)(p1, p2). However, ordered pair notation is also commonly used interchangeably, especially when context makes it clear it's a vector.

Vector Representation and Components

  • A vector vv in R^2 can be uniquely expressed by its components as v=<v1,v2>v = \lt v1, v2 \gt.

  • Similarly, a vector vv in R^3 is v=<v1,v2,v3>v = \lt v1, v2, v3 \gt.

  • Component Form using Basis Vectors: Many vectors are also written as a linear combination of standard basis vectors, which are orthogonal (perpendicular) and unit length vectors aligned with the coordinate axes:

    • In R^2: The standard basis vectors are i=<1,0>i = \lt 1, 0 \gt (unit vector along the positive x-axis) and j=<0,1>j = \lt 0, 1 \gt (unit vector along the positive y-axis). Any vector v=<v1,v2>v = \lt v1, v2 \gt can then be written as v=v1i+v2jv = v1 \, i + v2 \, j. This form emphasizes how much the vector extends in each dimension.

    • In R^3: The standard basis vectors are i=<1,0,0>i = \lt 1, 0, 0 \gt, j=<0,1,0>j = \lt 0, 1, 0 \gt, and k=<0,0,1>k = \lt 0, 0, 1 \gt. A vector v=<v1,v2,v3>v = \lt v1, v2, v3 \gt can be written as v=v1i+v2j+v3kv = v1 \, i + v2 \, j + v3 \, k. This decomposition simplifies many vector calculations.

Vector Operations

  • Vector Addition (Tip-to-Tail Rule / Parallelogram Rule):

    • For two vectors v=<v1,v2>v = \lt v1, v2 \gt and w=<w1,w2>w = \lt w1, w2 \gt, their sum is found by adding their corresponding components: v+w=<v1+w1,v2+w2>v + w = \lt v1 + w1, v2 + w2 \gt.

    • Geometric Interpretation:

      • Tip-to-Tail: If you place the tail of vector ww at the head (tip) of vector vv, their sum v+wv + w is the vector from the tail of vv to the head of ww.

      • Parallelogram Rule: If vv and ww share the same initial point, their sum v+wv + w is the diagonal of the parallelogram formed by vv and ww. The other diagonal, wvw - v, represents a different vector.

    • Properties:

      • Addition is commutative: v+w=w+vv + w = w + v. The order of addition does not affect the resultant vector.

      • Displacement vectors can be composed by adding displacements, representing consecutive movements.

  • Scalar Multiplication:

    • For a scalar (a real number) α\alpha and a vector v=<v1,v2>v = \lt v1, v2 \gt, scalar multiplication scales each component of the vector: \alpha v = \lt \alpha v1, \alpha v2 \gt \text{ (in R^2)} . Similarly for R^3: \alpha \lt v1, v2, v3 \gt = \lt \alpha v1, \alpha v2, \alpha v3 \gt \text{ (in R^3)} .

    • Geometric Interpretation:

      • The length of the new vector becomes α|\alpha| times the length of the original vector (αv=αv||\alpha v|| = |\alpha| ||v||).

      • If \alpha > 0, the direction of the vector is preserved.

      • If \alpha < 0, the vector reverses its direction (points in the opposite way) while its length is scaled by α|\alpha|.

Unit Vectors and Direction

  • A unit vector is a vector with a magnitude (length) of 1. It is primarily used to specify direction without implying a specific magnitude.

  • Any nonzero vector ww can be expressed as the product of its magnitude and a unit vector in its direction: w=wuw = ||w|| u, where uu is the unit vector (meaning u=1||u|| = 1).

  • In R^2, a unit vector can be conveniently parametrized by an angle θ\theta with respect to the positive x-axis: u=(cosθ,sinθ)u = (\cos \theta, \sin \theta). This form provides a direct way to specify direction using polar coordinates.

  • This effectively separates the concept of direction from magnitude, which is crucial in many physics and engineering applications (e.g., normalized vectors in graphics).

Parametric Curves and Kinematics (Vector-Valued Functions)

  • A parametric curve describes the position of a point over time, typically represented by a vector-valued function. For example, in R^2, P(t)=(x(t),y(t))P(t) = (x(t), y(t)) or in R^3, P(t)=(x(t),y(t),z(t))P(t) = (x(t), y(t), z(t)). Here, tt is the parameter, often representing time.

  • Velocity: The instantaneous velocity vector, v(t)v(t), is the derivative of the position vector with respect to time: v(t)=P(t)v(t) = P'(t). It represents the instantaneous rate of change of position and is always tangent to the path of the curve at point P(t)P(t). Its magnitude, v(t)||v(t)||, represents the instantaneous speed.

  • Displacement over an interval: For a time interval [t1,t2][t1, t2], the displacement, ΔP\Delta P, is the vector from the initial position to the final position: ΔP=P(t2)P(t1)\Delta P = P(t2) - P(t1).

  • Average Velocity: Over an interval [t1,t2][t1, t2], the average velocity is the total displacement divided by the time elapsed: vˉ=ΔPΔt=P(t2)P(t1)t2t1\bar{v} = \frac{\Delta P}{\Delta t} = \frac{P(t2) - P(t1)}{t2 - t1}.

  • Acceleration: The acceleration vector, a(t)a(t), is the derivative of the velocity vector with respect to time: a(t)=v(t)=P(t)a(t) = v'(t) = P''(t). It describes the rate of change of velocity, meaning it indicates how the speed, direction, or both are changing over time.

  • Force and Mass (Newtonian Context): According to Newton's Second Law, the net force F\vec{F} acting on an object is equal to the product of its mass mm (a scalar) and its acceleration a\vec{a} (a vector): F=ma\vec{F} = m \vec{a}. This equation explicitly links vector quantities (Force, Acceleration) with a scalar (mass).

Magnitude (Length) of a Vector

  • The magnitude or length of a vector is calculated using the Pythagorean theorem, representing the distance from the origin to the point (v1,v2)(v1, v2) (if the vector's tail is at the origin).

  • For a vector v=<v1,v2>v = \lt v1, v2 \gt in R^2, its magnitude is given by: v=v12+v22||v|| = \sqrt{v1^2 + v2^2}.

  • For a vector v=<v1,v2,v3>v = \lt v1, v2, v3 \gt in R^3, its magnitude is: v=v12+v22+v32||v|| = \sqrt{v1^2 + v2^2 + v3^2}.

  • Example: For v=(3,4,5)v = (3, 4, 5), its magnitude is: v=32+42+52=9+16+25=50=52||v|| = \sqrt{3^2 + 4^2 + 5^2} = \sqrt{9 + 16 + 25} = \sqrt{50} = 5\sqrt{2}.

  • The magnitude is also known as the Euclidean norm of the vector, representing its length in Euclidean space.

Unit Vector and Direction of a Vector

  • As noted previously, any nonzero vector ww can be uniquely expressed by its magnitude and a unit vector uu pointing in the same direction: w=wuw = ||w|| u. Here, uu captures the pure directional aspect of ww.

  • The unit vector uu in the direction of ww is obtained by normalizing ww (dividing it by its own magnitude): u=wwu = \frac{w}{||w||}, provided w0w \neq 0.

  • In R^2, a unit vector can also be characterized by the angle θ\theta it makes with the positive x-axis: u=(cosθ,sinθ)u = (\cos \theta, \sin \theta). This provides an alternative way to define the direction.

Dot Product (Inner Product) of Vectors

  • The dot product (also known as the scalar product or inner product) is an algebraic operation that takes two vectors and returns a single scalar quantity.

  • For vectors a=<a1,a2,a3>a = \lt a1, a2, a3 \gt and b=<b1,b2,b3>b = \lt b1, b2, b3 \gt in R^3, the dot product is calculated as the sum of the products of their corresponding components: ab=a1b1+a2b2+a3b3a \cdot b = a1 b1 + a2 b2 + a3 b3.

  • In R^2: For a=<a1,a2>a = \lt a1, a2 \gt and b=<b1,b2>b = \lt b1, b2 \gt, the dot product is ab=a1b1+a2b2a \cdot b = a1 b1 + a2 b2. The R^3 definition simply adds the third component product.

  • Algebraic Properties:

    • Commutative: ab=baa \cdot b = b \cdot a. The order of the vectors does not affect the result.

    • Distributive (Bilinear): (a+b)c=ac+bc(a + b) \cdot c = a \cdot c + b \cdot c. The dot product distributes over vector addition.

    • Scalar Multiplication Associativity: α(ab)=(αa)b=a(αb)\alpha (a \cdot b) = (\alpha a) \cdot b = a \cdot (\alpha b). A scalar factor can be moved freely within the dot product calculation.

    • Property with magnitude: aa=a2a \cdot a = ||a||^2. The dot product of a vector with itself equals its magnitude squared.

  • Relationship to the Angle Between Vectors (Geometric Interpretation):

    • A crucial property of the dot product is its connection to the angle between two non-zero vectors. If a0a \neq 0 and b0b \neq 0, then: ab=abcosϕa \cdot b = ||a|| \, ||b|| \, \cos \phi, where ϕ\phi is the angle between vectors aa and bb (0ϕπ0 \le \phi \le \pi).

    • This formula allows us to calculate the angle between two vectors if their magnitudes and dot product are known, irrespective of their coordinate representation.

    • Example: Given a=(2,1,3)a = (2, 1, -3) and b=(2,1,1)b = (-2, 1, 1):

      • Calculate the dot product: ab=2(2)+1(1)+(3)(1)=4+13=6a \cdot b = 2(-2) + 1(1) + (-3)(1) = -4 + 1 - 3 = -6.

      • Calculate magnitudes: a=22+12+(3)2=4+1+9=14||a|| = \sqrt{2^2 + 1^2 + (-3)^2} = \sqrt{4 + 1 + 9} = \sqrt{14}. b=(2)2+12+12=4+1+1=6||b|| = \sqrt{(-2)^2 + 1^2 + 1^2} = \sqrt{4 + 1 + 1} = \sqrt{6}.

      • Find the angle: cosϕ=abab=6146=684=6221=3210.6547\cos \phi = \frac{a \cdot b}{||a|| \, ||b||} = \frac{-6}{\sqrt{14}\sqrt{6}} = \frac{-6}{\sqrt{84}} = -\frac{6}{2\sqrt{21}} = -\frac{3}{\sqrt{21}} \approx -0.6547.

      • Thus, ϕcos1(0.6547)131\phi \approx \cos^{-1}(-0.6547) \approx 131^{\circ}. This is an obtuse angle.

  • Special Cases and Interpretations:

    • Perpendicular (Orthogonal) Vectors: If aa and bb are perpendicular, the angle between them is 9090^{\circ} (π/2\pi/2 radians), so cosϕ=0\cos \phi = 0. Therefore, ab=0a \cdot b = 0. This is a powerful test for orthogonality.

    • Acute Angle: If a \cdot b > 0, then \cos \phi > 0, implying ϕ\phi is an acute angle (0 \le \phi < 90^{\circ}).

    • Obtuse Angle: If a \cdot b < 0, then \cos \phi < 0, implying ϕ\phi is an obtuse angle (90^{\circ} < \phi \le 180^{\circ}).

    • Zero Vector: If either vector is the zero vector, the dot product is 0, and the angle between them is undefined.

    • Vector Projection: The dot product is also used to calculate the scalar projection of one vector onto another, which represents how much one vector extends in the direction of another. The projection of bb onto aa is given by projab=(aba2)a\text{proj}_a b = \left( \frac{a \cdot b}{||a||^2} \right) a.

Law of Cosines (Vector Form)

  • A fundamental identity linking vector magnitudes and the dot product is the vector form of the Law of Cosines:
    ab2=a2+b22ab||a - b||^2 = ||a||^2 + ||b||^2 - 2\,a \cdot b.

  • This formula relates the square of the magnitude of the difference between two vectors to the squares of their individual magnitudes and their dot product.

  • It mathematically describes the third side of a triangle formed by vectors aa, bb, and aba - b. By rearranging this equation, one can derive the angle formula: cosϕ=a2+b2ab22ab\cos \phi = \frac{||a||^2 + ||b||^2 - ||a - b||^2}{2||a|| \, ||b||}. Alternatively, substituting ab=abcosϕa \cdot b = ||a|| ||b|| \cos \phi directly yields the familiar Law of Cosines.

  • Consequences:

    • If you know the magnitudes a||a|| and b||b||, and the dot product aba \cdot b, you can directly compute the angle ϕ\phi between them without needing their explicit coordinates.

    • This identity provides a robust way to analyze geometric configurations using vector algebra.

Quick Computation Checks and Examples

  • Example Recap for Dot Product and Magnitude:

    • Given a=(2,1,3)a = (2, 1, -3) and b=(2,1,1)b = (-2, 1, 1):

      • Dot Product: ab=6a \cdot b = -6

      • Magnitudes: a=14,b=6||a|| = \sqrt{14}, ||b|| = \sqrt{6}

      • Cosine of angle: cosϕ=6/(146)=3/210.6547\cos \phi = -6 / (\sqrt{14} \sqrt{6}) = -3 / \sqrt{21} \approx -0.6547

      • Angle: ϕ131\phi \approx 131^{\circ} (indicating an obtuse angle, consistent with a negative dot product).

  • Example for Magnitude in R^2:

    • For v=(3,4)v = (3, 4): v=32+42=9+16=25=5||v|| = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5.

  • Example for Displacement and Velocity in Kinematics:

    • If P(t)P(t) is a position vector-valued function, the instantaneous velocity v(t)=P(t)v(t) = P'(t).

    • Over an interval [t1,t2][t1, t2], the displacement is ΔP=P(t2)P(t1)\Delta P = P(t2) - P(t1). The average velocity is ΔP/(t2t1)\Delta P / (t2 - t1), which is a vector pointing in the direction of the net displacement.

Summary of Key Formulas

  • Displacement: PQ=QP\vec{PQ} = Q - P

  • Magnitude: For v=<v1,v2>v = \lt v1, v2 \gt or v=<v1,v2,v3>v = \lt v1, v2, v3 \gt, v=v12+v22(+v32)||v|| = \sqrt{v1^2 + v2^2 (+ v3^2)}

  • Unit Vector (Normalization): u=vvfor v0u = \frac{v}{||v||} \quad \text{for } v \neq 0; conversely, v=vuv = ||v|| u

  • Dot Product: For a=<a1,a2>a = \lt a1, a2 \gt and b=<b1,b2>b = \lt b1, b2 \gt (or with a3,b3a3, b3 components), ab=a1b1+a2b2(+a3b3)a \cdot b = a1 b1 + a2 b2 (+ a3 b3)

  • Angle Between Vectors: For non-zero vectors aa and bb, cosϕ=abab\cos \phi = \frac{a \cdot b}{||a|| \, ||b||}

  • Law of Cosines (Vector Form): ab2=a2+b22ab||a - b||^2 = ||a||^2 + ||b||^2 - 2\, a \cdot b

  • Unit Vector in R^2 (Parametric): u=(cosθ,sinθ)u = (\cos \theta, \sin \theta)

  • Ray of a Unit Direction: If a0a \neq 0, then aa can be written as a=aua = ||a|| u, where uu is the unit vector pointing in the direction of aa.

Connections and Relevance

  • These concepts are foundational to analytic geometry, providing a powerful way to represent and manipulate geometric objects (points, lines, planes) using algebraic methods (vectors).

  • The dot product is particularly significant as it acts as a bridge between algebra and geometry, enabling detailed calculations related to angles, perpendicularity, and projections (e.g., finding the component of a force in a certain direction, determining work done by a force).

  • Magnitude, unit vectors, and direction are critical for normalization procedures in various fields, such as computer graphics (e.g., calculating light reflection and surface normals), physics (e.g., specifying force directions), and engineering (e.g., material stress analysis).

  • Kinematic quantities (displacement, velocity, acceleration) are inherently vector quantities, making this framework indispensable for analyzing motion in physics and mechanical engineering. They allow for a comprehensive understanding of how objects move and interact in space.

Ethical, Philosophical, and Practical Notes

  • The use of Cartesian coordinate representation is a conventional choice that greatly simplifies vector arithmetic and linear algebra. While other coordinate systems (e.g., cylindrical, spherical) exist, the core vector operations remain analogous.

  • A deep understanding of vectors fosters both intuitive qualitative thinking about physical phenomena (e.g., the direction of a force, the path of a projectile) and rigorous quantitative analysis in fields like fluid dynamics, electromagnetism, and structural analysis.

  • When interpreting dot product results and the angles they imply, remember that a result of zero signifies perpendicularity, a positive result implies an acute angle, and a negative result indicates an obtuse angle. These geometric interpretations are vital for problem-solving and accurate model interpretation in scientific and engineering contexts, guiding decisions and predictions. Vectors thus provide a language for describing spatial relationships and dynamic processes with precision.