Vector Operations Notes (2D Vectors, Dot and Cross Product)

  • Vector representation in 2D

    • A vector a can be written as a=a<em>xi^+a</em>yj^.\mathbf{a} = a<em>x \hat{\mathbf{i}} + a</em>y \hat{\mathbf{j}}.

    • Similarly, b=b<em>xi^+b</em>yj^.\mathbf{b} = b<em>x \hat{\mathbf{i}} + b</em>y \hat{\mathbf{j}}.

    • When adding vectors, add corresponding components:

    • c=a+bc<em>x=a</em>x+b<em>x,  c</em>y=a<em>y+b</em>y.\mathbf{c} = \mathbf{a} + \mathbf{b} \Rightarrow c<em>x = a</em>x + b<em>x,\; c</em>y = a<em>y + b</em>y.

    • If a component is missing (zero), treat it as zero in the addition.

    • Subtraction is component-wise: ab=(a<em>xb</em>x)i^+(a<em>yb</em>y)j^=a+(b).\mathbf{a} - \mathbf{b} = (a<em>x - b</em>x)\hat{\mathbf{i}} + (a<em>y - b</em>y)\hat{\mathbf{j}} = \mathbf{a} + (-\mathbf{b}).

  • Dot product (2D and 3D)

    • For 2D vectors a=a<em>xi^+a</em>yj^,b=b<em>xi^+b</em>yj^,\mathbf{a} = a<em>x \hat{\mathbf{i}} + a</em>y \hat{\mathbf{j}}, \quad \mathbf{b} = b<em>x \hat{\mathbf{i}} + b</em>y \hat{\mathbf{j}},
      ab=a<em>xb</em>x+a<em>yb</em>y.\mathbf{a} \cdot \mathbf{b} = a<em>x b</em>x + a<em>y b</em>y.

    • In 3D, with a=a<em>xi^+a</em>yj^+a<em>zk^,  b=b</em>xi^+b<em>yj^+b</em>zk^,\mathbf{a} = a<em>x \hat{\mathbf{i}} + a</em>y \hat{\mathbf{j}} + a<em>z \hat{\mathbf{k}}, \; \mathbf{b} = b</em>x \hat{\mathbf{i}} + b<em>y \hat{\mathbf{j}} + b</em>z \hat{\mathbf{k}},
      the dot product is ab=a<em>xb</em>x+a<em>yb</em>y+a<em>zb</em>z.\mathbf{a} \cdot \mathbf{b} = a<em>x b</em>x + a<em>y b</em>y + a<em>z b</em>z.

    • Basis dot products (important for intuition):

    • i^i^=1,j^j^=1,i^j^=0.\hat{\mathbf{i}} \cdot \hat{\mathbf{i}} = 1, \quad \hat{\mathbf{j}} \cdot \hat{\mathbf{j}} = 1,\quad \hat{\mathbf{i}} \cdot \hat{\mathbf{j}} = 0.

    • Geometric interpretation: ab=abcosθ,\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}|\,|\mathbf{b}|\cos\theta, where θ\theta is the angle between the vectors.

    • Therefore, cosθ=abab.\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|}.

    • Projections: the component of b\mathbf{b} along a\mathbf{a} satisfies bcosθ=aba.|\mathbf{b}|\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|}.

  • Magnitude of a vector

    • a=a<em>x2+a</em>y2+az2.|\mathbf{a}| = \sqrt{a<em>x^2 + a</em>y^2 + a_z^2}.

    • In 2D, this becomes a=a<em>x2+a</em>y2.|\mathbf{a}| = \sqrt{a<em>x^2 + a</em>y^2}.

  • Cross product (3D) and its relation to 2D

    • For 3D vectors, a×b=i^amp;j^amp;k^ a<em>xamp;a</em>yamp;a<em>z b</em>xamp;b<em>yamp;b</em>z\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} &amp; \hat{\mathbf{j}} &amp; \hat{\mathbf{k}} \ a<em>x &amp; a</em>y &amp; a<em>z \ b</em>x &amp; b<em>y &amp; b</em>z \end{vmatrix}
      which yields a vector perpendicular to both a and b.

    • Key component relations: i^×j^=k^,j^×i^=k^.\hat{\mathbf{i}} \times \hat{\mathbf{j}} = \hat{\mathbf{k}},\quad \hat{\mathbf{j}}\times\hat{\mathbf{i}} = -\hat{\mathbf{k}}.

    • In 2D problems, the cross product is often discussed via its z-component: a<em>xb</em>ya<em>yb</em>xa<em>x b</em>y - a<em>y b</em>x, which equals the magnitude of the 2D parallelogram area and points in the ±z direction.

    • Orthogonality check: i^×i^=0,j^×j^=0.\hat{\mathbf{i}} \times \hat{\mathbf{i}} = \mathbf{0},\quad \hat{\mathbf{j}} \times \hat{\mathbf{j}} = \mathbf{0}.

    • Note from transcript: cross product is “opposite” in behavior to the dot product: dot product uses parallel alignment (cos θ), cross product uses perpendicular orientation (sin θ) for magnitude.

  • Worked example 1: dot product and magnitudes (A = 3i + 2j, B = 0i + 8j)

    • Define components: a=3i^+2j^,b=0i^+8j^.\mathbf{a} = 3\hat{\mathbf{i}} + 2\hat{\mathbf{j}}, \quad \mathbf{b} = 0\hat{\mathbf{i}} + 8\hat{\mathbf{j}}.

    • Dot product: ab=(3)(0)+(2)(8)=16.\mathbf{a} \cdot \mathbf{b} = (3)(0) + (2)(8) = 16.

    • Magnitudes: a=32+22=133.606,b=02+82=8.|\mathbf{a}| = \sqrt{3^2 + 2^2} = \sqrt{13} \approx 3.606, \quad |\mathbf{b}| = \sqrt{0^2 + 8^2} = 8.

    • Angle between: cosθ=abab=16(13)(8)0.5547,\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|} = \frac{16}{(\sqrt{13})(8)} \approx 0.5547, hence θ=arccos(0.5547)56.0.\theta = \arccos(0.5547) \approx 56.0^{\circ}.

    • Projection of b onto a: bcosθ=aba=16134.441.|\mathbf{b}|\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|} = \frac{16}{\sqrt{13}} \approx 4.441.

    • Cross product (magnitude, 3D viewpoint): a×b=absinθ=(13)(8)sin(56.0)24,|\mathbf{a} \times \mathbf{b}| = |\mathbf{a}|\,|\mathbf{b}|\sin\theta = (\sqrt{13})(8)\sin(56.0^{\circ}) \approx 24, and in 3D this would be the vector a×b=(0,0,24).\mathbf{a} \times \mathbf{b} = (0,0,24).

    • Common pitfall noted in transcript corrections: the speaker incorrectly stated some magnitudes (e.g., claiming |a| = 5). The correct magnitude is 133.606.\sqrt{13} \approx 3.606.

  • Worked example 2: quick cross-check from a common 2D setup (A = 2i + 1j, B = 2i + 1j or similar)

    • General method: add components to get the resultant, or apply dot/cross as needed.

    • Takeaway: addition is component-wise, dot product uses component-wise multiplication, and cross product in 3D gives a vector perpendicular with magnitude |a||b|sinθ.

  • Key takeaways and practical implications

    • Always treat vectors via their components; add/subtract component-wise: cx = ax ± bx, cy = ay ± by, etc.

    • Dot product provides a measure of how aligned two vectors are: if θ = 0°, a · b = |a||b|; if θ = 90°, a · b = 0.

    • The dot product is a scalar; the cross product is a vector (in 3D) perpendicular to the plane of the inputs.

    • The magnitude and angle relationships are linked: a · b = |a||b| cosθ and |a × b| = |a||b| sinθ (in 3D, with cross product vector direction given by the right-hand rule).

    • Projections are derived from the dot product; one common form is the component of b along a: bcosθ=aba.|\mathbf{b}|\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|}.

  • Quick reference formulas (for review)

    • Vector: a=a<em>xi^+a</em>yj^+azk^.\mathbf{a} = a<em>x \hat{\mathbf{i}} + a</em>y \hat{\mathbf{j}} + a_z \hat{\mathbf{k}}.

    • Dot product (2D): ab=a<em>xb</em>x+a<em>yb</em>y.\mathbf{a} \cdot \mathbf{b} = a<em>x b</em>x + a<em>y b</em>y.

    • Dot product (3D): ab=a<em>xb</em>x+a<em>yb</em>y+a<em>zb</em>z.\mathbf{a} \cdot \mathbf{b} = a<em>x b</em>x + a<em>y b</em>y + a<em>z b</em>z.

    • Magnitude: a=a<em>x2+a</em>y2+az2.|\mathbf{a}| = \sqrt{a<em>x^2 + a</em>y^2 + a_z^2}.

    • Angle: cosθ=abab,θ=arccos(abab).\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|},\quad \theta = \arccos\left(\frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|}\right).

    • Projection of b onto a: bcosθ=aba.|\mathbf{b}|\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|}.

    • Cross product (3D): a×b=i^amp;j^amp;k^ a<em>xamp;a</em>yamp;a<em>z b</em>xamp;b<em>yamp;b</em>z.\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} &amp; \hat{\mathbf{j}} &amp; \hat{\mathbf{k}} \ a<em>x &amp; a</em>y &amp; a<em>z \ b</em>x &amp; b<em>y &amp; b</em>z \end{vmatrix}.

    • 2D cross-product magnitude (z-component): a<em>xb</em>ya<em>yb</em>x.a<em>x b</em>y - a<em>y b</em>x.

  • Note on the transcript content

    • The speaker mixed several concepts and sometimes produced incorrect numerical results (e.g., misidentifying magnitudes). The formulas and workflows above reflect standard vector algebra and correct values for the examples shown. If you’re ever unsure about a computed magnitude or angle, recalculate from the definitions above using the components.

  • Vector Representation

    • A vector a\mathbf{a} can be written as components: a=a<em>xi^+a</em>yj^+azk^.\mathbf{a} = a<em>x \hat{\mathbf{i}} + a</em>y \hat{\mathbf{j}} + a*z \hat{\mathbf{k}}.

    • Vector addition/subtraction is component-wise: c=a±bc<em>x=a</em>x±b<em>x,  c</em>y=a<em>y±b</em>y\mathbf{c} = \mathbf{a} \pm \mathbf{b} \Rightarrow c<em>x = a</em>x \pm b<em>x,\; c</em>y = a<em>y \pm b</em>y.

  • Dot Product

    • Scalar product for 2D vectors ab=a<em>xb</em>x+a<em>yb</em>y\mathbf{a} \cdot \mathbf{b} = a<em>x b</em>x + a<em>y b</em>y, and for 3D ab=a<em>xb</em>x+a<em>yb</em>y+a<em>zb</em>z\mathbf{a} \cdot \mathbf{b} = a<em>x b</em>x + a<em>y b</em>y + a<em>z b</em>z.

    • Geometric interpretation: ab=abcosθ\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}\,|\mathbf{b}|\cos\theta, where hetaheta is the angle between vectors. It measures alignment.

    • Used to find the angle between vectors: cosθ=abab\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}\,|\mathbf{b}|}.

    • Projections: the component of b\mathbf{b} along a\mathbf{a} is aba\frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|}.

  • Magnitude of a Vector

    • The length of a vector a\mathbf{a} is |a=a<em>x2+a</em>y2+az2\text{|}\mathbf{a}| = \sqrt{a<em>x^2 + a</em>y^2 + a_z^2} (for 3D) or |a=a<em>x2+a</em>y2\text{|}\mathbf{a}| = \sqrt{a<em>x^2 + a</em>y^2} (for 2D).

  • Cross Product (primarily 3D)

    • a×b\mathbf{a} \times \mathbf{b} yields a vector perpendicular to both a\mathbf{a} and b\mathbf{b} (in 3D).

    • Calculated using a determinant: a×b=i^amp;j^amp;k^ a<em>xamp;a</em>yamp;a<em>z b</em>xamp;b<em>yamp;b</em>z\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} &amp; \hat{\mathbf{j}} &amp; \hat{\mathbf{k}} \ a<em>x &amp; a</em>y &amp; a<em>z \ b</em>x &amp; b<em>y &amp; b</em>z \end{vmatrix}.

    • In 2D, the cross product's magnitude (z-component) is a<em>xb</em>ya<em>yb</em>xa<em>x b</em>y - a<em>y b</em>x, representing the area of the parallelogram formed by the vectors.

    • The cross product's magnitude is related by |a×b=absinθ\text{|}\mathbf{a} \times \mathbf{b}| = |\mathbf{a}\,|\mathbf{b}|\sin\theta.

  • Key Principles

    • Vector operations (addition, subtraction, dot product) are performed component-wise.

    • The dot product results in a scalar, while the cross product (in 3D) results in a vector.

    • Dot product indicates vector alignment (parallels), cross product indicates perpendicular orientation (magnitude related to sine).

  • Quick Reference Formulas

    • Vector: a=a<em>xi^+a</em>yj^+azk^\mathbf{a} = a<em>x \hat{\mathbf{i}} + a</em>y \hat{\mathbf{j}} + a*z \hat{\mathbf{k}}

    • Dot product (3D): ab=a<em>xb</em>x+a<em>yb</em>y+a<em>zb</em>z\mathbf{a} \cdot \mathbf{b} = a<em>x b</em>x + a<em>y b</em>y + a<em>z b</em>z

    • Magnitude: |a=a<em>x2+a</em>y2+az2\text{|}\mathbf{a}| = \sqrt{a<em>x^2 + a</em>y^2 + a*z^2}

    • Angle: cosθ=abab\cos\theta = \frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}\,|\mathbf{b}|}

    • Cross product (3D): a×b=i^amp;j^amp;k^ a<em>xamp;a</em>yamp;a<em>z b</em>xamp;b<em>yamp;b</em>z\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{\mathbf{i}} &amp; \hat{\mathbf{j}} &amp; \hat{\mathbf{k}} \ a<em>x &amp; a</em>y &amp; a<em>z \ b</em>x &amp; b<em>y &amp; b</em>z \end{vmatrix}