{"id":160,"date":"2021-03-01T08:52:04","date_gmt":"2021-03-01T13:52:04","guid":{"rendered":"http:\/\/pressbooks.library.upei.ca\/statics\/?post_type=chapter&#038;p=160"},"modified":"2025-07-31T18:00:36","modified_gmt":"2025-07-31T22:00:36","slug":"dot-and-cross-product","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.upei.ca\/statics\/chapter\/dot-and-cross-product\/","title":{"raw":"1.4 Dot Product","rendered":"1.4 Dot Product"},"content":{"raw":"A dot product produces a single number to describe the product of two vectors. If you haven't taken linear algebra yet, this may be a new concept. This is a form of multiplication that is used to calculate work, unit vectors, and to find the angle between two vectors.\r\n<p style=\"text-align: center\">[latex]\\vec A\\cdot \\vec B=|\\vec A||\\vec B|\\cos\\theta[\/latex]<\/p>\r\n&nbsp;\r\n<div class=\"textbox\">\r\n\r\n<span>A vector can be multiplied by another vector, but it may not be divided by another vector. There are two kinds of products of vectors used broadly in physics and engineering. One kind of multiplication is a <\/span><em>scalar multiplication of two vectors<\/em><span>. Taking a scalar product of two vectors results in a number (a scalar), as its name indicates. Scalar products are used to define work and energy relations. For example, the work that a force (a vector) performs on an object while causing its displacement (a vector) is defined as a scalar product of the force vector with the displacement vector. A quite different kind of multiplication is a\u00a0<\/span><em>vector multiplication of vectors<\/em><span>. Taking a vector product of two vectors returns as a result a vector, as its name suggests. Vector products are used to define other derived vector quantities. For example, in describing rotations, a vector quantity called\u00a0<\/span><em>torque<\/em><span>\u00a0is defined as a vector product of an applied force (a vector) and its distance from pivot to force (a vector). It is important to distinguish between these two kinds of vector multiplications because the scalar product is a scalar quantity and a vector product is a vector quantity.<\/span>\r\n\r\n<span>Scalar multiplication of two vectors yields a scalar product.<\/span>\r\n<div class=\"textbox shaded\">\r\n<p id=\"fs-id1167131499095\" style=\"text-align: center\"><em><strong>Dot Product<\/strong><\/em><\/p>\r\nThe<span>\u00a0<\/span><strong>scalar product<\/strong><span> [latex]\\vec A\\cdot \\vec B[\/latex] <\/span>of two vectors [latex]\\vec A \\text{ and } \\vec B[\/latex]<span><\/span><span> <\/span>is a number defined by the equation:\r\n<div id=\"fs-id1167129962128\" style=\"text-align: center\"><span>[latex]\\vec A\\cdot \\vec B=|\\vec A||\\vec B| \\cos \\phi[\/latex]<\/span><\/div>\r\nwhere \u03d5 is the angle between the vectors. The scalar product is also called the <strong>dot product<\/strong> because of the dot notation that indicates it.\r\n\r\n<\/div>\r\nWhen the vectors are given in their vector component forms:\r\n<p style=\"text-align: center\">[latex]\\vec A=A_x\\underline{\\hat{i}}+A_y\\underline{\\hat{j}}+A_z\\underline{\\hat{k}}\\text{\u00a0 and\u00a0 }\\vec B=B_x\\underline{\\hat{i}}+B_y\\underline{\\hat{j}}+B_z\\underline{\\hat{k}}[\/latex]<\/p>\r\n<span>We can compute their scalar product as follows:<\/span>\r\n\r\n[latex]\\vec A\\cdot\\vec B=(A_x\\underline{\\hat{i}}+A_y\\underline{\\hat{j}}+A_z\\underline{\\hat{k}})\\cdot(B_x\\underline{\\hat{i}}+B_y\\underline{\\hat{j}}+B_z\\underline{\\hat{k}})\\\\=A_xB_x\\underline{\\hat{i}}\\cdot\\underline{\\hat{i}}+A_xB_y\\underline{\\hat{i}}\\cdot\\underline{\\hat{j}}+A_xB_z\\underline{\\hat{i}}\\cdot\\underline{\\hat{k}}\\\\+A_yB_x\\underline{\\hat{j}}\\cdot\\underline{\\hat{i}}+A_yB_y\\underline{\\hat{j}}\\cdot\\underline{\\hat{j}}+A_yB_z\\underline{\\hat{j}}\\cdot\\underline{\\hat{k}}\\\\+A_zB_x\\underline{\\hat{k}}\\cdot\\underline{\\hat{i}}+A_zB_y\\underline{\\hat{k}}\\cdot\\underline{\\hat{j}}+A_zB_z\\underline{\\hat{k}}\\cdot\\underline{\\hat{k}}[\/latex]\r\n\r\n<span>Since scalar products of two different unit vectors of axes give zero, and scalar products of unit vectors with themselves give one<\/span><span>, there are only three nonzero terms in this expression. Thus, the scalar product simplifies to:<\/span>\r\n<p style=\"text-align: center\">[latex]\\vec A\\cdot\\vec B=A_xB_x+A_yB_y+A_zB_z[\/latex]<\/p>\r\n<span>We can use the equation below to find the angle between two vectors. When we divide [latex]\\vec A\\cdot\\vec B=|\\vec A||\\vec B| \\cos\\phi[\/latex] by [latex]|\\vec A || \\vec B|[\/latex] , we obtain the equation for cos(\u03d5), into which we substitute the equation from above:<\/span>\r\n\r\n<span>[latex]\\text{cos}\\,\\phi =\\frac{\\overset{\\to }{A}\u00b7\\overset{\\to }{B}}{AB}=\\frac{{A}_{x}{B}_{x}+{A}_{y}{B}_{y}+{A}_{z}{B}_{z}}{AB}[\/latex]<\/span>\r\n\r\n<span>The angle \u03d5, <\/span><span>between vectors [latex]\\vec A \\text{ and }\\vec B[\/latex] <\/span><span> <\/span><span>is obtained by taking the inverse cosine of the expression above<\/span><span>.\u00a0<\/span>\r\n\r\n&nbsp;\r\n\r\nSource: University Physics Volume 1, OpenStax CNX,<a href=\"https:\/\/courses.lumenlearning.com\/suny-osuniversityphysics\/chapter\/2-4-products-of-vectors\"> https:\/\/courses.lumenlearning.com\/suny-osuniversityphysics\/chapter\/2-4-products-of-vectors<\/a> (many examples on this page).\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong>But what <em>IS <\/em>it?<\/strong>\r\n\r\n[caption id=\"attachment_546\" align=\"alignright\" width=\"208\"]<img src=\"http:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/220px-Dot_Product.svg_.png\" alt=\"A diagram shows two vectors, A and B, forming an angle \u03b8. The projection of A onto B is labeled as |A| cos\u03b8 with a dashed line perpendicular to B, and a right angle is indicated.\" class=\"wp-image-546\" title=\"https:\/\/en.wikipedia.org\/wiki\/Dot_product#\/media\/File:Dot_Product.svg\" width=\"208\" height=\"166\" \/> Source: https:\/\/en.wikipedia.org\/wiki\/Dot_product#\/media\/File:Dot_Product.svg[\/caption]\r\n\r\nThe dot product is the component of vector A along B ( |A| cos \u0398 ) times the magnitude (size of B). OR, it's the component of B on A times the magnitude of A. <span>Visually, this can be seen in the figure.\r\n<\/span>\r\n\r\nThere is a nice mathematical proof on page 169 of <a href=\"https:\/\/openlibrary.ecampusontario.ca\/catalogue\/item\/?id=ce74a181-ccde-491c-848d-05489ed182e7\">Calculus-Based Physics.\u00a0<\/a>\r\n\r\nOne neat thing about the dot product is that <span style=\"text-decoration: underline\">A<\/span> \u2022 <span style=\"text-decoration: underline\">B<\/span> = <span style=\"text-decoration: underline\">B<\/span> \u2022 <span style=\"text-decoration: underline\">A<\/span>\r\n\r\nAn example of a dot product is in a solar panel. To maximize efficiency, the rays coming from the sun should be perpendicular to the panels, that is, straight on. You could use the dot product between a vector of the sun's rays (yellow in the image below) and the unit vector perpendicular to the surface (green in the image) to calculate what portion of a ray that comes in at an angle produces energy.\r\n\r\n&nbsp;\r\n\r\n[caption id=\"attachment_868\" align=\"aligncenter\" width=\"1024\"]<img src=\"http:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-1024x683.png\" alt=\"A solar panel array in a grassy field with yellow arrows pointing down at the panels from above and green arrows pointing upward from below, under a clear blue sky.\" class=\"wp-image-868 size-large\" width=\"1024\" height=\"683\" \/> Arrows added to photo from Source: <a href=\"https:\/\/www.pxfuel.com\/en\/free-photo-ouswv\">https:\/\/www.pxfuel.com\/en\/free-photo-ouswv<\/a>[\/caption]\r\n\r\n<header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">Key Takeaways<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n<em>Basically: <\/em>Dot product is a method to find a number that is the product of two vectors.\r\n\r\n<em>Application: <\/em>Two ropes attached to a sign are being pulled in different directions. To find the angle between them, use the dot product of the two vectors.\r\n\r\n<em>Looking ahead: <\/em>We will use the dot product in Section 2.3 on particle equilibrium equations (and more in dynamics next semester).\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\n<\/div>","rendered":"<p>A dot product produces a single number to describe the product of two vectors. If you haven&#8217;t taken linear algebra yet, this may be a new concept. This is a form of multiplication that is used to calculate work, unit vectors, and to find the angle between two vectors.<\/p>\n<p style=\"text-align: center\">[latex]\\vec A\\cdot \\vec B=|\\vec A||\\vec B|\\cos\\theta[\/latex]<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox\">\n<p><span>A vector can be multiplied by another vector, but it may not be divided by another vector. There are two kinds of products of vectors used broadly in physics and engineering. One kind of multiplication is a <\/span><em>scalar multiplication of two vectors<\/em><span>. Taking a scalar product of two vectors results in a number (a scalar), as its name indicates. Scalar products are used to define work and energy relations. For example, the work that a force (a vector) performs on an object while causing its displacement (a vector) is defined as a scalar product of the force vector with the displacement vector. A quite different kind of multiplication is a\u00a0<\/span><em>vector multiplication of vectors<\/em><span>. Taking a vector product of two vectors returns as a result a vector, as its name suggests. Vector products are used to define other derived vector quantities. For example, in describing rotations, a vector quantity called\u00a0<\/span><em>torque<\/em><span>\u00a0is defined as a vector product of an applied force (a vector) and its distance from pivot to force (a vector). It is important to distinguish between these two kinds of vector multiplications because the scalar product is a scalar quantity and a vector product is a vector quantity.<\/span><\/p>\n<p><span>Scalar multiplication of two vectors yields a scalar product.<\/span><\/p>\n<div class=\"textbox shaded\">\n<p id=\"fs-id1167131499095\" style=\"text-align: center\"><em><strong>Dot Product<\/strong><\/em><\/p>\n<p>The<span>\u00a0<\/span><strong>scalar product<\/strong><span> [latex]\\vec A\\cdot \\vec B[\/latex] <\/span>of two vectors [latex]\\vec A \\text{ and } \\vec B[\/latex]<span><\/span><span> <\/span>is a number defined by the equation:<\/p>\n<div id=\"fs-id1167129962128\" style=\"text-align: center\"><span>[latex]\\vec A\\cdot \\vec B=|\\vec A||\\vec B| \\cos \\phi[\/latex]<\/span><\/div>\n<p>where \u03d5 is the angle between the vectors. The scalar product is also called the <strong>dot product<\/strong> because of the dot notation that indicates it.<\/p>\n<\/div>\n<p>When the vectors are given in their vector component forms:<\/p>\n<p style=\"text-align: center\">[latex]\\vec A=A_x\\underline{\\hat{i}}+A_y\\underline{\\hat{j}}+A_z\\underline{\\hat{k}}\\text{\u00a0 and\u00a0 }\\vec B=B_x\\underline{\\hat{i}}+B_y\\underline{\\hat{j}}+B_z\\underline{\\hat{k}}[\/latex]<\/p>\n<p><span>We can compute their scalar product as follows:<\/span><\/p>\n<p>[latex]\\vec A\\cdot\\vec B=(A_x\\underline{\\hat{i}}+A_y\\underline{\\hat{j}}+A_z\\underline{\\hat{k}})\\cdot(B_x\\underline{\\hat{i}}+B_y\\underline{\\hat{j}}+B_z\\underline{\\hat{k}})\\\\=A_xB_x\\underline{\\hat{i}}\\cdot\\underline{\\hat{i}}+A_xB_y\\underline{\\hat{i}}\\cdot\\underline{\\hat{j}}+A_xB_z\\underline{\\hat{i}}\\cdot\\underline{\\hat{k}}\\\\+A_yB_x\\underline{\\hat{j}}\\cdot\\underline{\\hat{i}}+A_yB_y\\underline{\\hat{j}}\\cdot\\underline{\\hat{j}}+A_yB_z\\underline{\\hat{j}}\\cdot\\underline{\\hat{k}}\\\\+A_zB_x\\underline{\\hat{k}}\\cdot\\underline{\\hat{i}}+A_zB_y\\underline{\\hat{k}}\\cdot\\underline{\\hat{j}}+A_zB_z\\underline{\\hat{k}}\\cdot\\underline{\\hat{k}}[\/latex]<\/p>\n<p><span>Since scalar products of two different unit vectors of axes give zero, and scalar products of unit vectors with themselves give one<\/span><span>, there are only three nonzero terms in this expression. Thus, the scalar product simplifies to:<\/span><\/p>\n<p style=\"text-align: center\">[latex]\\vec A\\cdot\\vec B=A_xB_x+A_yB_y+A_zB_z[\/latex]<\/p>\n<p><span>We can use the equation below to find the angle between two vectors. When we divide [latex]\\vec A\\cdot\\vec B=|\\vec A||\\vec B| \\cos\\phi[\/latex] by [latex]|\\vec A || \\vec B|[\/latex] , we obtain the equation for cos(\u03d5), into which we substitute the equation from above:<\/span><\/p>\n<p><span>[latex]\\text{cos}\\,\\phi =\\frac{\\overset{\\to }{A}\u00b7\\overset{\\to }{B}}{AB}=\\frac{{A}_{x}{B}_{x}+{A}_{y}{B}_{y}+{A}_{z}{B}_{z}}{AB}[\/latex]<\/span><\/p>\n<p><span>The angle \u03d5, <\/span><span>between vectors [latex]\\vec A \\text{ and }\\vec B[\/latex] <\/span><span> <\/span><span>is obtained by taking the inverse cosine of the expression above<\/span><span>.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Source: University Physics Volume 1, OpenStax CNX,<a href=\"https:\/\/courses.lumenlearning.com\/suny-osuniversityphysics\/chapter\/2-4-products-of-vectors\"> https:\/\/courses.lumenlearning.com\/suny-osuniversityphysics\/chapter\/2-4-products-of-vectors<\/a> (many examples on this page).<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>But what <em>IS <\/em>it?<\/strong><\/p>\n<figure id=\"attachment_546\" aria-describedby=\"caption-attachment-546\" style=\"width: 208px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/220px-Dot_Product.svg_.png\" alt=\"A diagram shows two vectors, A and B, forming an angle \u03b8. The projection of A onto B is labeled as |A| cos\u03b8 with a dashed line perpendicular to B, and a right angle is indicated.\" class=\"wp-image-546\" title=\"https:\/\/en.wikipedia.org\/wiki\/Dot_product#\/media\/File:Dot_Product.svg\" width=\"208\" height=\"166\" srcset=\"https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/220px-Dot_Product.svg_.png 220w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/220px-Dot_Product.svg_-65x52.png 65w\" sizes=\"auto, (max-width: 208px) 100vw, 208px\" \/><figcaption id=\"caption-attachment-546\" class=\"wp-caption-text\">Source: https:\/\/en.wikipedia.org\/wiki\/Dot_product#\/media\/File:Dot_Product.svg<\/figcaption><\/figure>\n<p>The dot product is the component of vector A along B ( |A| cos \u0398 ) times the magnitude (size of B). OR, it&#8217;s the component of B on A times the magnitude of A. <span>Visually, this can be seen in the figure.<br \/>\n<\/span><\/p>\n<p>There is a nice mathematical proof on page 169 of <a href=\"https:\/\/openlibrary.ecampusontario.ca\/catalogue\/item\/?id=ce74a181-ccde-491c-848d-05489ed182e7\">Calculus-Based Physics.\u00a0<\/a><\/p>\n<p>One neat thing about the dot product is that <span style=\"text-decoration: underline\">A<\/span> \u2022 <span style=\"text-decoration: underline\">B<\/span> = <span style=\"text-decoration: underline\">B<\/span> \u2022 <span style=\"text-decoration: underline\">A<\/span><\/p>\n<p>An example of a dot product is in a solar panel. To maximize efficiency, the rays coming from the sun should be perpendicular to the panels, that is, straight on. You could use the dot product between a vector of the sun&#8217;s rays (yellow in the image below) and the unit vector perpendicular to the surface (green in the image) to calculate what portion of a ray that comes in at an angle produces energy.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_868\" aria-describedby=\"caption-attachment-868\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-1024x683.png\" alt=\"A solar panel array in a grassy field with yellow arrows pointing down at the panels from above and green arrows pointing upward from below, under a clear blue sky.\" class=\"wp-image-868 size-large\" width=\"1024\" height=\"683\" srcset=\"https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-1024x683.png 1024w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-300x200.png 300w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-768x512.png 768w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-1536x1024.png 1536w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-65x43.png 65w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-225x150.png 225w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel-350x233.png 350w, https:\/\/pressbooks.library.upei.ca\/statics\/wp-content\/uploads\/sites\/56\/2021\/03\/Solar-Panel.png 1687w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-868\" class=\"wp-caption-text\">Arrows added to photo from Source: <a href=\"https:\/\/www.pxfuel.com\/en\/free-photo-ouswv\">https:\/\/www.pxfuel.com\/en\/free-photo-ouswv<\/a><\/figcaption><\/figure>\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">\n<\/header>\n<div class=\"textbox__content\">\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">Key Takeaways<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p><em>Basically: <\/em>Dot product is a method to find a number that is the product of two vectors.<\/p>\n<p><em>Application: <\/em>Two ropes attached to a sign are being pulled in different directions. To find the angle between them, use the dot product of the two vectors.<\/p>\n<p><em>Looking ahead: <\/em>We will use the dot product in Section 2.3 on particle equilibrium equations (and more in dynamics next semester).<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"author":74,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-160","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/pressbooks\/v2\/chapters\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/wp\/v2\/users\/74"}],"version-history":[{"count":43,"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/pressbooks\/v2\/chapters\/160\/revisions"}],"predecessor-version":[{"id":2840,"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/pressbooks\/v2\/chapters\/160\/revisions\/2840"}],"part":[{"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/pressbooks\/v2\/chapters\/160\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/pressbooks\/v2\/chapter-type?post=160"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/wp\/v2\/contributor?post=160"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/statics\/wp-json\/wp\/v2\/license?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}