Salta al contenuto
Note per Studenti Dot Product and Cross Product Report

Dot Product and Cross Product

In questa pagina 4
In questa pagina 3

Two ways of "multiplying" two vectors, with very different results: the first gives a number, the second a vector. Before: Vectors - Components, Sum and MagnitudeA vector has magnitude, direction and sense; in a Cartesian frame it is written through its components along i, j, k, and sum, difference and multiplication by a number act component by component, with the magnitude given by Pythagoras.Vectors - Components, Sum and Magnitude →. Next: Derivative and Integral of a VectorA time-dependent vector is differentiated and integrated component by component. The derivative of a unit vector is perpendicular to it and equals the rate of rotation times the normal unit vector, so the derivative of a vector has a parallel part (magnitude changes) and a perpendicular part (direction changes).Derivative and Integral of a Vector →. They will be used for the work of a force, for the moment of a force and angular momentum, and for circular motion (Circular MotionOn a circle the position is given by the angle θ(t): s = Rθ, v = ωR with ω = dθ/dt. Uniform motion: period T = 2π/ω, only centripetal acceleration ω²R. Non-uniform motion: also tangential acceleration αR. In vector form v = ω × r.Circular Motion →).

Dot product

Definition

The dot (scalar) product of a⃗\vec a and b⃗\vec b is the number

Definition (dot product). a⃗⋅b⃗=∣a⃗∣ ∣b⃗∣cos⁡θ=a bcos⁡θ\vec a \cdot \vec b = |\vec a|\,|\vec b|\cos\theta = a\,b\cos\theta

where θ\theta is the angle between the two arrows applied at the same point (0≤θ≤180°0 \le \theta \le 180°).

Example. A force of 1010 N on a displacement of 33 m inclined by 60°60° with respect to the force: F⃗⋅Δr⃗=10⋅3cos⁡60°=15 J\vec F\cdot\Delta\vec r = 10\cdot3\cos60° = 15\ \text{J}.

Meaning: the projection

bcos⁡θb\cos\theta is the (signed) projection of b⃗\vec b on the direction of a⃗\vec a: the length of the shadow of b⃗\vec b on the line of a⃗\vec a. Hence

a⃗⋅b⃗=a×(projection of b⃗ on a⃗)\vec a \cdot \vec b = a \times (\text{projection of } \vec b \text{ on } \vec a)

and, if u^\hat u is a unit vector, b⃗⋅u^=bcos⁡θ\vec b \cdot \hat u = b\cos\theta is exactly the component of b⃗\vec b along u^\hat u. In particular Cartesian components are dot products with the axis unit vectors: ax=a⃗⋅ı^a_x = \vec a \cdot \hat\imath, ay=a⃗⋅ȷ^a_y = \vec a \cdot \hat\jmath, az=a⃗⋅k^a_z = \vec a \cdot \hat k.

The sign

angle θ\theta cos⁡θ\cos\theta a⃗⋅b⃗\vec a \cdot \vec b
0°0° (parallel, same sense) 11 abab, the maximum
between 0°0° and 90°90° (acute) >0> 0 positive
90°90° (perpendicular) 00 zero
between 90°90° and 180°180° (obtuse) <0< 0 negative
180°180° (parallel, opposite) −1-1 −ab-ab, the minimum

Criterion (perpendicularity). Two non-zero vectors are perpendicular if and only if a⃗⋅b⃗=0\vec a \cdot \vec b = 0.

Example. a⃗=(2,3)\vec a = (2, 3) and b⃗=(−3,2)\vec b = (-3, 2): a⃗⋅b⃗=−6+6=0\vec a\cdot\vec b = -6 + 6 = 0, so they are perpendicular.

Magnitude: a⃗⋅a⃗=a2\vec a \cdot \vec a = a^2 (because θ=0\theta = 0), so ∣a⃗∣=a⃗⋅a⃗|\vec a| = \sqrt{\vec a \cdot \vec a}.

Properties

  • commutative: a⃗⋅b⃗=b⃗⋅a⃗\vec a \cdot \vec b = \vec b \cdot \vec a;
  • distributive: a⃗⋅(b⃗+c⃗)=a⃗⋅b⃗+a⃗⋅c⃗\vec a \cdot (\vec b + \vec c) = \vec a \cdot \vec b + \vec a \cdot \vec c;
  • with a number: (λa⃗)⋅b⃗=λ (a⃗⋅b⃗)(\lambda\vec a) \cdot \vec b = \lambda\,(\vec a \cdot \vec b).

With components

The axis unit vectors are perpendicular and of magnitude 11, so

ı^⋅ı^=ȷ^⋅ȷ^=k^⋅k^=1ı^⋅ȷ^=ȷ^⋅k^=k^⋅ı^=0\hat\imath \cdot \hat\imath = \hat\jmath \cdot \hat\jmath = \hat k \cdot \hat k = 1 \qquad \hat\imath \cdot \hat\jmath = \hat\jmath \cdot \hat k = \hat k \cdot \hat\imath = 0

Expanding (axı^+ayȷ^+azk^)⋅(bxı^+byȷ^+bzk^)(a_x\hat\imath + a_y\hat\jmath + a_z\hat k) \cdot (b_x\hat\imath + b_y\hat\jmath + b_z\hat k) with the distributive property, of the nine products only the three between equal unit vectors survive:

Formula (dot product with components). a⃗⋅b⃗=axbx+ayby+azbz\boxed{\vec a \cdot \vec b = a_x b_x + a_y b_y + a_z b_z}

Example. a⃗=(1,2,3)\vec a = (1, 2, 3) and b⃗=(4,−5,6)\vec b = (4, -5, 6): a⃗⋅b⃗=4−10+18=12\vec a\cdot\vec b = 4 - 10 + 18 = 12.

Typical use: the angle between two vectors. Compute the dot product with components and compare with the definition:

Formula (angle between two vectors). cos⁡θ=a⃗⋅b⃗∣a⃗∣ ∣b⃗∣=axbx+ayby+azbz∣a⃗∣ ∣b⃗∣\cos\theta = \frac{\vec a \cdot \vec b}{|\vec a|\,|\vec b|} = \frac{a_x b_x + a_y b_y + a_z b_z}{|\vec a|\,|\vec b|}

Example. a⃗=(2,1,0)\vec a = (2, 1, 0), b⃗=(1,3,0)\vec b = (1, 3, 0). Then a⃗⋅b⃗=2⋅1+1⋅3+0=5\vec a \cdot \vec b = 2 \cdot 1 + 1 \cdot 3 + 0 = 5, ∣a⃗∣=5|\vec a| = \sqrt 5, ∣b⃗∣=10|\vec b| = \sqrt{10}, and cos⁡θ=550=12\cos\theta = \frac{5}{\sqrt{50}} = \frac{1}{\sqrt 2}: θ=45°\theta = 45°.

In physics

The work of a constant force F⃗\vec F for a displacement Δr⃗\Delta\vec r is W=F⃗⋅Δr⃗=F Δrcos⁡θW = \vec F \cdot \Delta\vec r = F\,\Delta r\cos\theta: only the component of the force along the displacement counts. A force perpendicular to the displacement (like the reaction of a smooth plane) does no work.

Cross product

Definition

Definition (cross product). The cross (vector) product of a⃗\vec a and b⃗\vec b is the vector c⃗=a⃗×b⃗\vec c = \vec a \times \vec b with:

  1. magnitude ∣a⃗×b⃗∣=a bsin⁡θ|\vec a \times \vec b| = a\,b\sin\theta (0≤θ≤180°0 \le \theta \le 180°, so the magnitude is ≥0\ge 0);
  2. direction perpendicular to both a⃗\vec a and b⃗\vec b, i.e. perpendicular to the plane containing the two arrows;
  3. sense given by the right-hand rule: thumb along a⃗\vec a, index finger along b⃗\vec b, and the middle finger (bent at 90°90° to the palm) gives the sense of a⃗×b⃗\vec a \times \vec b. Equivalently: curling the fingers of the right hand in the sense that takes a⃗\vec a onto b⃗\vec b through the smaller angle, the thumb gives the sense of the product (screw rule: a screw turning from a⃗\vec a towards b⃗\vec b advances along a⃗×b⃗\vec a \times \vec b).

Example. a=3a = 3 m and b=4b = 4 m with θ=30°\theta = 30°: ∣a⃗×b⃗∣=3⋅4sin⁡30°=6 m2|\vec a\times\vec b| = 3\cdot4\sin30° = 6\ \text{m}^2, direction perpendicular to the plane of the two vectors.

Meaning of the magnitude

bsin⁡θb\sin\theta is the height of the parallelogram having a⃗\vec a and b⃗\vec b as sides (distance of the tip of b⃗\vec b from the line of a⃗\vec a). So ∣a⃗×b⃗∣=a⋅bsin⁡θ|\vec a \times \vec b| = a \cdot b\sin\theta is the area of the parallelogram built on the two vectors (half of it is the area of the triangle).

angle θ\theta ∣a⃗×b⃗∣\lvert\vec a \times \vec b\rvert
0°0° or 180°180° (parallel) zero
90°90° (perpendicular) abab, the maximum

Parallelism condition: two non-zero vectors are parallel if and only if a⃗×b⃗=0⃗\vec a \times \vec b = \vec 0. In particular a⃗×a⃗=0⃗\vec a \times \vec a = \vec 0.

Properties (careful: different from the product of numbers)

  • anticommutative: b⃗×a⃗=− a⃗×b⃗\vec b \times \vec a = -\,\vec a \times \vec b. Swapping the order reverses the sense. The order of the factors matters.
  • distributive: a⃗×(b⃗+c⃗)=a⃗×b⃗+a⃗×c⃗\vec a \times (\vec b + \vec c) = \vec a \times \vec b + \vec a \times \vec c;
  • with a number: (λa⃗)×b⃗=λ (a⃗×b⃗)(\lambda\vec a) \times \vec b = \lambda\,(\vec a \times \vec b);
  • not associative: in general a⃗×(b⃗×c⃗)≠(a⃗×b⃗)×c⃗\vec a \times (\vec b \times \vec c) \ne (\vec a \times \vec b) \times \vec c.

Products between unit vectors

With a right-handed triad (the one always used: xx to the right, yy upward, zz out of the page):

Formula (products between unit vectors). ı^×ȷ^=k^ȷ^×k^=ı^k^×ı^=ȷ^\hat\imath \times \hat\jmath = \hat k \qquad \hat\jmath \times \hat k = \hat\imath \qquad \hat k \times \hat\imath = \hat\jmath

(one "goes round" i→j→k→ii \to j \to k \to i), while in the opposite order a minus sign appears: ȷ^×ı^=−k^\hat\jmath \times \hat\imath = -\hat k, etc. And ı^×ı^=ȷ^×ȷ^=k^×k^=0⃗\hat\imath \times \hat\imath = \hat\jmath \times \hat\jmath = \hat k \times \hat k = \vec 0.

Example. (2ı^)×(3ȷ^)=6 k^(2\hat\imath)\times(3\hat\jmath) = 6\,\hat k, while swapping the order (3ȷ^)×(2ı^)=−6 k^(3\hat\jmath)\times(2\hat\imath) = -6\,\hat k.

With components

Expanding with the distributive property and the unit-vector table:

Formula (cross product with components). a⃗×b⃗=(aybz−azby) ı^+(azbx−axbz) ȷ^+(axby−aybx) k^\vec a \times \vec b = (a_y b_z - a_z b_y)\,\hat\imath + (a_z b_x - a_x b_z)\,\hat\jmath + (a_x b_y - a_y b_x)\,\hat k

Example. a⃗=(1,2,3)\vec a = (1, 2, 3) and b⃗=(4,5,6)\vec b = (4, 5, 6): a⃗×b⃗=(2⋅6−3⋅5, 3⋅4−1⋅6, 1⋅5−2⋅4)=(−3, 6, −3)\vec a\times\vec b = (2\cdot6 - 3\cdot5,\ 3\cdot4 - 1\cdot6,\ 1\cdot5 - 2\cdot4) = (-3,\ 6,\ -3).

To remember it, use the symbolic determinant expanded along the first row:

a⃗×b⃗=∣ı^ȷ^k^axayazbxbybz∣\vec a \times \vec b = \begin{vmatrix} \hat\imath & \hat\jmath & \hat k \\ a_x & a_y & a_z \\ b_x & b_y & b_z \end{vmatrix}

Case of the plane (very frequent). If a⃗\vec a and b⃗\vec b lie in the xyxy plane (az=bz=0a_z = b_z = 0), only the zz component survives:

Formula (cross product in the plane). a⃗×b⃗=(axby−aybx) k^\vec a \times \vec b = (a_x b_y - a_y b_x)\,\hat k

The product is perpendicular to the page: outward if axby−aybx>0a_x b_y - a_y b_x > 0 (from a⃗\vec a to b⃗\vec b one turns counterclockwise), inward if negative (clockwise).

Example. With the same vectors as before, a⃗=(2,1,0)\vec a = (2, 1, 0), b⃗=(1,3,0)\vec b = (1, 3, 0): a⃗×b⃗=(2⋅3−1⋅1) k^=5 k^\vec a \times \vec b = (2 \cdot 3 - 1 \cdot 1)\,\hat k = 5\,\hat k. Check with the definition: absin⁡θ=510sin⁡45°=50⋅22=5ab\sin\theta = \sqrt{5}\sqrt{10}\sin 45° = \sqrt{50} \cdot \frac{\sqrt2}{2} = 5 ✓. The sign is positive because b⃗\vec b (at 71.6°71.6° from the xx axis) is reached from a⃗\vec a (at 26.6°26.6°) turning counterclockwise.

In physics

Summary

dot product a⃗⋅b⃗\vec a \cdot \vec b cross product a⃗×b⃗\vec a \times \vec b
result number vector perpendicular to a⃗\vec a and b⃗\vec b
magnitude abcos⁡θab\cos\theta (signed) absin⁡θab\sin\theta
zero if vectors perpendicular vectors parallel
maximum if parallel perpendicular
swapping factors same changes sign
components axbx+ayby+azbza_x b_x + a_y b_y + a_z b_z determinant with ı^,ȷ^,k^\hat\imath, \hat\jmath, \hat k
typical use angle between vectors, projections, work areas, moments, rotations

Common mistakes

  • Confusing the two products: the dot product is a number; writing a⃗⋅b⃗=(5,0,0)\vec a \cdot \vec b = (5, 0, 0) is meaningless.
  • Swapping the order in the cross product: r⃗×F⃗\vec r \times \vec F and F⃗×r⃗\vec F \times \vec r are opposite; the moment is always written with r⃗\vec r first.
  • Using the left hand or a left-handed triad: the sense comes out wrong.
  • Wrong sign of the ȷ^\hat\jmath component when expanding the determinant: the correct formula is azbx−axbza_z b_x - a_x b_z (or −(axbz−azbx)-(a_x b_z - a_z b_x)).
  • Thinking sin⁡θ\sin\theta and cos⁡θ\cos\theta are interchangeable: the dot product measures how aligned the vectors are, the cross product how perpendicular.

Versione ripasso

Dot product

a⃗⋅b⃗=abcos⁡θ=axbx+ayby+azbz\vec a \cdot \vec b = ab\cos\theta = a_x b_x + a_y b_y + a_z b_z A number. bcos⁡θb\cos\theta is the projection of b⃗\vec b on a⃗\vec a; components are ax=a⃗⋅ı^a_x = \vec a \cdot \hat\imath, etc. Maximum abab for parallel vectors, zero iff perpendicular (a⃗⋅b⃗=0\vec a \cdot \vec b = 0), negative for obtuse angles. ∣a⃗∣=a⃗⋅a⃗|\vec a| = \sqrt{\vec a \cdot \vec a}. Commutative and distributive.

Angle between vectors: cos⁡θ=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos\theta = \frac{\vec a \cdot \vec b}{|\vec a||\vec b|} Example: a⃗=(2,1,0)\vec a = (2,1,0), b⃗=(1,3,0)\vec b = (1,3,0): a⃗⋅b⃗=5\vec a\cdot\vec b = 5, cos⁡θ=5/50\cos\theta = 5/\sqrt{50}, θ=45°\theta = 45°. Physics: work W=F⃗⋅Δr⃗W = \vec F \cdot \Delta\vec r; a force perpendicular to the displacement does no work.

Cross product

Vector a⃗×b⃗\vec a \times \vec b of magnitude absin⁡θab\sin\theta (area of the parallelogram), perpendicular to both, sense by the right-hand rule. Zero iff parallel. Anticommutative: b⃗×a⃗=−a⃗×b⃗\vec b \times \vec a = -\vec a \times \vec b; distributive; not associative.

ı^×ȷ^=k^,ȷ^×k^=ı^,k^×ı^=ȷ^\hat\imath \times \hat\jmath = \hat k, \quad \hat\jmath \times \hat k = \hat\imath, \quad \hat k \times \hat\imath = \hat\jmath a⃗×b⃗=(aybz−azby)ı^+(azbx−axbz)ȷ^+(axby−aybx)k^\vec a \times \vec b = (a_y b_z - a_z b_y)\hat\imath + (a_z b_x - a_x b_z)\hat\jmath + (a_x b_y - a_y b_x)\hat k

In the plane: a⃗×b⃗=(axby−aybx)k^\vec a \times \vec b = (a_x b_y - a_y b_x)\hat k, outward if positive (counterclockwise from a⃗\vec a to b⃗\vec b). Example: (2,1,0)×(1,3,0)=5k^(2,1,0)\times(1,3,0) = 5\hat k.

Physics: moment M⃗=r⃗×F⃗\vec M = \vec r \times \vec F (magnitude force times lever arm), angular momentum L⃗=r⃗×mv⃗\vec L = \vec r \times m\vec v, circular motion v⃗=ω⃗×r⃗\vec v = \vec\omega \times \vec r (Circular MotionOn a circle the position is given by the angle θ(t): s = Rθ, v = ωR with ω = dθ/dt. Uniform motion: period T = 2π/ω, only centripetal acceleration ω²R. Non-uniform motion: also tangential acceleration αR. In vector form v = ω × r.Circular Motion →).

Typical mistakes

  • Treating the dot product as a vector.
  • Swapping the order of the cross product (r⃗\vec r first).
  • Left hand or left-handed triad.
  • Wrong sign of the ȷ^\hat\jmath component.

Teoria collegata