Notes on Cartesian Vectors: Dot Product, Cross Product, and Projections
A vector in three dimensions can be written in Cartesian form using the three orthogonal unit vectors \mathbf{i}, \mathbf{j}, \mathbf{k}: each vector has components along x, y, z. If
\mathbf{a} = ax \mathbf{i} + ay \mathbf{j} + az \mathbf{k} and \mathbf{b} = bx \mathbf{i} + by \mathbf{j} + bz \mathbf{k}, then:
- Vector addition is performed componentwise:
\n\mathbf{a} + \\mathbf{b} = (ax + bx) \mathbf{i} + (ay + by) \mathbf{j} + (az + bz) \mathbf{k}. - Vector subtraction is also componentwise:
\n\mathbf{b} - \mathbf{a} = (bx - ax) \mathbf{i} + (by - ay) \mathbf{j} + (bz - az) \mathbf{k}.
Dot Product: Definition, Geometry, and Basic Properties
The dot product of two Cartesian vectors is defined as
<br/>a⋅b=a<em>xb</em>x+a<em>yb</em>y+a<em>zb</em>z.<br/>
Geometrically, it also equals the product of the magnitudes and the cosine of the angle between them:
<br/>a⋅b=∣a∣∣b∣cosθ.<br/>
This makes the dot product useful for finding angles and projections.
- Utility: the dot product can be used to find the angle between two lines or vectors via
cosθ=fraca⋅b∣a∣∣b∣. - Parallel and perpendicular components relative to a line: the dot product helps determine components along a given direction.
- The dot product is also called the scalar product, because the result is a scalar (not a vector).
Properties of the Dot Product
- Commutative law:
<br/>a⋅b=b⋅a.<br/> - Distributive law:
<br/>a⋅(b+c)=(a⋅b)+(a⋅c).<br/> - Scalar multiplication: for any scalar \lambda,
(lambdaa)⋅b=a⋅(lambdab)=lambda(a⋅b).<br/> - Unit vectors: \mathbf{3} = \hat{} \mathbf{i}, \mathbf{j}, \mathbf{k} play the role of the standard basis. Note that
i⋅i=1,j⋅j=1,k⋅k=1,
and any pair of distinct unit vectors are orthogonal:
i⋅j=j⋅i=i⋅k=k⋅i=j⋅k=k⋅j=0.
</li></ul><h5id="projectionandthegeometricinterpretationofthedotproduct">ProjectionandtheGeometricInterpretationoftheDotProduct</h5><ul><li>Thedotproductprovidestheprojectionofonevectorontoanother.Theprojectionofbontoahaslength∣b∣cosθ.Sincea⋅b=∣a∣∣b∣cosθ,itfollowsthatthedotproductequalsthemagnitudeofthefirstvectortimestheprojectionofthesecondontothefirst:</li><li>Scalarprojectionofbontoa:<br/> a \cdot b = |\mathbf{a}| \, (\text{projection of } \mathbf{b} \text{ onto } \mathbf{a}). </li><li>Ifweusetheunitvectoralonga,a^=a/∣a∣,thenthevectorprojectionofbontoa^is<br/> \text{proj}_{\hat{a}} \\mathbf{b} = (\mathbf{b} \cdot \hat{a}) \hat{a}. </li><li>Inaforceproblem,thedotproducthelpsquantifyhowmuchoneforceactsalongthedirectionofanotherviaprojection.</li></ul><h3id="dotproductwiththebasisvectorsandcomponents">DotProductwiththeBasisVectorsandComponents</h3><ul><li>Thedotproductofanyvectorwiththebasisvectorsgivesitscomponents:<br/> \,\mathbf{a} \cdot \mathbf{i} = ax, \mathbf{a} \cdot \mathbf{j} = ay, \mathbf{a} \cdot \mathbf{k} = a_z. </li><li>Forunitvectorsinteractingwiththemselvesorwitheachother:<br/> \mathbf{i} \cdot \mathbf{i} = 1,
\mathbf{j} \cdot \mathbf{j} = 1,
\mathbf{k} \cdot \mathbf{k} = 1,
<br/> \mathbf{i} \cdot \mathbf{j} = \mathbf{j} \cdot \mathbf{i} = \mathbf{i} \cdot \mathbf{k} = \mathbf{k} \cdot \mathbf{i} = \mathbf{j} \cdot \mathbf{k} = \mathbf{k} \cdot \mathbf{j} = 0. </li></ul><h3id="crossproductdefinitionmagnitudeanddirection">CrossProduct:Definition,Magnitude,andDirection</h3><p>Fortwovectorsaandb,thecrossproductisanothervector:<br/> \mathbf{a} \times \mathbf{b} =
\begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \cr ax & ay & az \cr bx & by & bz \end{vmatrix} = (ay bz - az by) \mathbf{i} + (az bx - ax bz) \mathbf{j} + (ax by - ay bx) \mathbf{k}. </p><ul><li>Thecrossproductisavector,notascalar,anditisperpendiculartotheplanecontainingaandb.</li><li>Magnitude: |\mathbf{a} \times \mathbf{b}| = |\mathbf{a}| \, |\mathbf{b}| \, \sin \theta. </li><li>Directionisgivenbytheright−handrule:pointthefingersfromatob,andthethumbpointsinthedirectionofa×b.</li><li>Thecrossproductisnotcommutative:<br/> \mathbf{a} \times \mathbf{b}
eq \mathbf{b} \times \mathbf{a}, \text{in fact } \mathbf{a} \times \mathbf{b} = - (\mathbf{b} \times \mathbf{a}). </li><li>Scalarmultiplicationanddistributivity:<br/> (\lambda \\mathbf{a}) \times \mathbf{b} = \lambda (\mathbf{a} \times \mathbf{b}) = \\mathbf{a} \times (\lambda \\mathbf{b}), <br/> \mathbf{a} \times (\mathbf{b} + \mathbf{c}) = \mathbf{a} \times \mathbf{b} + \mathbf{a} \times \mathbf{c}. </li></ul><h4id="crossproductwithunitvectorsandexamples">CrossProductwithUnitVectorsandExamples</h4><ul><li>Fundamentalcyclicrelations(right−handrule):<br/> \mathbf{i} \times \mathbf{j} = \mathbf{k}, \mathbf{j} \times \mathbf{k} = \mathbf{i}, \mathbf{k} \times \mathbf{i} = \mathbf{j}. </li><li>Antisymmetryinreversedorder:<br/> \mathbf{j} \times \mathbf{i} = -\mathbf{k}, \mathbf{k} \times \mathbf{j} = -\mathbf{i}, \mathbf{i} \times \mathbf{k} = -\mathbf{j}. </li><li>Crossproductsofidenticalunitvectorsvanish:<br/> \mathbf{i} \times \mathbf{i} = \mathbf{j} \times \mathbf{j} = \mathbf{k} \times \mathbf{k} = 0. </li></ul><h5id="crossproductincomponentsanddeterminants">CrossProductinComponentsandDeterminants</h5><ul><li><p>Ahandywaytocomputeaa×bisthedeterminant:<br/> \mathbf{a} \times \mathbf{b} = \det \begin{pmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \cr ax & ay & az \cr bx & by & bz \end{pmatrix} = (ay bz - az by) \mathbf{i} + (az bx - ax bz) \mathbf{j} + (ax by - ay bx) \mathbf{k}. </p></li><li><p>Longhand(component−wise)expansionisconsistentwiththedeterminantmethodandisalsoshowninpracticeinlectures.</p></li></ul><h3id="projectionscomponentsandthreedimensionalgeometry">Projections,Components,andThree−DimensionalGeometry</h3><ul><li>Projectionofavectorontoaline(definedbyaunitvectoru^)canbeexpressedas:<br/> \text{Parallel component: } \mathbf{a}_{\parallel} = (\mathbf{a} \cdot \hat{u}) \hat{u}. </li><li>Thescalarprojection(lengthalongtheline)isa⋅u^.</li><li>Theperpendicularcomponentistheremainder:a<em>⊥=a−a</em>∥.</li><li>Ifyouwanttheprojectionofaontotheaxisdefinedbyanon−unitvector,use<br/> \text{proj}_{\mathbf{b}} \mathbf{a} = \left( \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{b}|^2} \right) \mathbf{b}. </li><li>Foraunitaxisalongthex−direction,u^=i,andtheprojectionlengthisa<em>x,whiletheprojectionvectorisa</em>xi.</li><li>In3D,findingprojectionsbypuregeometryismorechallenging;thedotproductandunitvectorsprovideastraightforwardmethod.</li><li>Thesignofthedotproductindicatesdirection:iftheresultispositive,theprojectionalignswiththeunitvector;ifnegative,itpointsoppositetothataxis.</li></ul><h3id="practicalnotesvectoroperationsin3dproblems">PracticalNotes:VectorOperationsin3DProblems</h3><ul><li>Theresultantofscalarprojectionsalongaxescanbeusedtoanalyzehowoneforceprojectsontoanotherinagivendirection.</li><li>Thedotproductisakeytoolforresolvingforcesandcomponentsalongspecifieddirections,especiallywhencombiningmultipleforcesorcomponentsin3Dspace.</li><li>Remembertomaintainaconsistentright−handcoordinatesystemthroughoutproblems:inthestandardsystem,ipointsalong+x,jalong+y,andkalong+z(positiveztypicallyupwards).</li><li>Inallcross−products,watchfornon−commutativity:swappingtheorderflipsthesignoftheresult;indotproductstheorderdoesnotmatter.</li></ul><h3id="quickreferenceformulas">QuickReferenceFormulas</h3><ul><li>VectorsinCartesianform:<br/> \mathbf{a} = ax \mathbf{i} + ay \mathbf{j} + az \mathbf{k}, \quad \ \mathbf{b} = bx \mathbf{i} + by \mathbf{j} + bz \mathbf{k}. </li><li>Sumanddifference:<br/> \mathbf{a} + \mathbf{b} = (ax + bx) \mathbf{i} + (ay + by) \mathbf{j} + (az + bz) \mathbf{k}, \\mathbf{b} - \mathbf{a} = (bx - ax) \mathbf{i} + (by - ay) \mathbf{j} + (bz - az) \mathbf{k}. </li><li>Dotproduct:<br/> \mathbf{a} \cdot \mathbf{b} = ax bx + ay by + az bz = |\mathbf{a}| |\mathbf{b}| \, \cos \theta. </li><li>Magnitudeofavector:<br/> |\mathbf{a}| = \sqrt{ax^2 + ay^2 + a_z^2}. </li><li>Anglebetweenvectors:<br/> \cos \theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}| \, |\mathbf{b}|}, \\theta = \arccos\left( \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}| \ |\mathbf{b}|} \right). </li><li>Projection(vector)ontounitdirectionu^:<br/> \text{proj}_{\hat{u}} \mathbf{a} = (\mathbf{a} \cdot \hat{u}) \hat{u}. </li><li>Crossproduct:<br/> \mathbf{a} \times \mathbf{b} = (ay bz - az by) \mathbf{i} + (az bx - ax bz) \mathbf{j} + (ax by - ay bx) \mathbf{k}, <br/> |\mathbf{a} \times \mathbf{b}| = |\mathbf{a}| |\mathbf{b}| \sin \theta. </li><li>Determinantform(alternative):<br/> \mathbf{a} \times \mathbf{b} = \det \begin{pmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \cr ax & ay & az \cr bx & by & bz \end{pmatrix}. </li><li>Cyclicbasisrelations(right−handrule):<br/> \mathbf{i} \times \mathbf{j} = \mathbf{k}, \mathbf{j} \times \mathbf{k} = \mathbf{i}, \mathbf{k} \times \mathbf{i} = \mathbf{j}, <br/>and<br/> \mathbf{j} \times \mathbf{i} = -\mathbf{k}, \mathbf{k} \times \mathbf{j} = -\mathbf{i}, \mathbf{i} \times \mathbf{k} = -\mathbf{j}. $$ - Consistency reminder: always use the same right-hand coordinate system to avoid confusion across problems.