{"id":2674,"date":"2022-04-09T07:02:40","date_gmt":"2022-04-09T07:02:40","guid":{"rendered":"https:\/\/www.scijournal.org\/articles\/?p=2674"},"modified":"2022-07-14T03:22:17","modified_gmt":"2022-07-13T19:22:17","slug":"cross-product-symbol-in-latex","status":"publish","type":"post","link":"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex","title":{"rendered":"How to create a cross product symbol in LaTeX"},"content":{"rendered":"\n<p><em>This article aims to show you a simple way to create a <\/em><em>cross product symbol<\/em><em> in LaTeX.<\/em><\/p>\n\n\n\n<p>LaTeX most of the time is used to write documents that include many mathematics operations and procedures. And when dealing with vectors, in algebra or calculus, the cross product surely will be there.<\/p>\n\n\n\n<p>We will discuss how to write cross-product symbols in LaTeX. A cross-product symbol is sometimes referred to as a vector product in LaTeX.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_67_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a29c3841f830\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a29c3841f830\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\/#LaTeX_Cross_Product_Command\" title=\"LaTeX Cross Product Command\">LaTeX Cross Product Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\/#Cross_Product_%E2%80%93_Unit_Vector\" title=\"Cross Product &#8211; Unit Vector\">Cross Product &#8211; Unit Vector<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\/#Cross_Product_%E2%80%93_Matrix_Form\" title=\"Cross Product &#8211; Matrix Form\">Cross Product &#8211; Matrix Form<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\/#Cross_product_%E2%80%93_Parenthesis_form\" title=\"Cross product &#8211; Parenthesis form\">Cross product &#8211; Parenthesis form<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\/#Further_Reading\" title=\"Further Reading\">Further Reading<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"LaTeX_Cross_Product_Command\"><\/span><strong>LaTeX Cross Product Command<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The cross product of two vectors is operation between denoted by an X, which results in a third orthogonal vector to the other two. Both vectors must have the same size usually in a 3-D space.&nbsp;<\/p>\n\n\n\n<p>Denoted as x, a multiplication symbol, the command for the cross product is \\<strong>times<\/strong>, it does not require extra packages or arguments, the use of the amsmath package to improve the output is optional, and the <strong>math mode is required<\/strong>. For example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\documentclass{article}\n\\usepackage{amsmath}\n\\begin{document}\n\n$$\\vec{a}\\times\\vec{b}$$ %times\n\n\\end{document}\n<\/pre><\/div>\n\n\n<p>With the \/vec{} command, you can specify one single character and it will be returned with an arrow mark on top of it.<\/p>\n\n\n\n<p>We need to use the \/vec{} command in the equation before the variable or value in curly brackets to represent the variable or integer value in the vector. To transform the values &#8220;x&#8221; and &#8220;b&#8221; to vectors, we&#8217;ve inserted the \/vec{} command before and after the &#8220;times&#8221; instruction.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"145\" height=\"90\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image5-1.png\" alt=\"cross product symbol in Latex\" class=\"wp-image-2677\"\/><figcaption>Vector product LaTeX output, \\times is the cross symbol<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cross_Product_%E2%80%93_Unit_Vector\"><\/span><strong>Cross Product &#8211; Unit Vector<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The first form of the cross product is with a unit vector, to generate the vector output, you use the \\<strong>vec<\/strong>{} command. For example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\begin{document}\n\n$$\\vec{a}\\times\\vec{b} =|a||b|\\sin \\theta\\hat{n}$$ %times character\n\\end{document}\n<\/pre><\/div>\n\n\n<p>A single character is passed as argument to the \/vec{a} command and is returned with an arrow mark.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"109\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image2-2.png\" alt=\"cross product symbol in Latex\" class=\"wp-image-2678\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image2-2.png 561w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image2-2-300x58.png 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><figcaption>Single cross character in the middle of the two symbols for vectors<\/figcaption><\/figure><\/div>\n\n\n<p>The angle between the a and b is denoted by <a href=\"https:\/\/www.codecogs.com\/eqnedit.php?latex=%5Ctheta#0\" target=\"_blank\" rel=\"noopener\"><\/a> (theta), the unit vector perpendicular to <strong>a<\/strong>, <strong>b<\/strong> by \\<strong>hat<\/strong>{}.<\/p>\n\n\n\n<p>When you are writing the vector product in LaTeX, depending on the mathematics involved you have two options.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cross_Product_%E2%80%93_Matrix_Form\"><\/span><strong>Cross Product &#8211; Matrix Form<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Basically the Cross Product has two forms related to its Matrix form therefore it has two LaTeX commands available. To define it with matrices you will need the latex commands for the \\<strong>pmatrix<\/strong> and <strong>\\vmatrix<\/strong> environment and the amsmath package.<\/p>\n\n\n\n<p>The first form with <strong>\\vmatrix<\/strong> environment is usually used with determinants. For example you can write<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n...\n$$\n\\begin{vmatrix} %matrix used for determinants\n    \\hat{i} &amp; \\hat{j} &amp; \\hat{k} \\\\\n    a_1 &amp; a_2 &amp; a_3 \\\\\n    b_1 &amp; b_2 &amp; b_3\n\\end{vmatrix}\n$$\n...\n<\/pre><\/div>\n\n\n<p>Gives the output<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"486\" height=\"310\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image3-2.png\" alt=\"cross product symbol in Latex\" class=\"wp-image-2679\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image3-2.png 486w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image3-2-300x191.png 300w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/figure><\/div>\n\n\n<p>The <strong>&amp;<\/strong> defines each column and <strong>\\\\<\/strong> represent each row or line for any element. Now you can defined the cross product as<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$$\n\\vec{a} \\times \\vec{b} =\n\\begin{vmatrix}\n    i &amp; j &amp; k \\\\\n    a_1 &amp; a_2 &amp; a_3 \\\\\n    b_1 &amp; b_2 &amp; b_3\n\\end{vmatrix} =\n(a_{2}b_{3}-a_{3}b_{2})i +\n(a_{3}b_{}1-a_{1}b_{3})j+\n(a_{1}b_{2}-a_{2}b_{1})k\n$$\n<\/pre><\/div>\n\n\n<p>Gives the output<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"119\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image1-2.png\" alt=\"cross product symbol in Latex\" class=\"wp-image-2680\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image1-2.png 797w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image1-2-300x45.png 300w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image1-2-768x115.png 768w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><figcaption>This is the most common representation of cross product of two vectors<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cross_product_%E2%80%93_Parenthesis_form\"><\/span><strong>Cross product &#8211; Parenthesis form<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The second form is a matrix with parenthesis defined by the \\<strong>pmatrix <\/strong>environment. For example<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\\begin{center}\n\nGiven$\\vec{a}=\\begin{pmatrix} a_{1}\\\\ a_{2}\\\\ a_{3} \\end{pmatrix}$ and $\\vec{b}=\\begin{pmatrix} b_{1}\\\\ b_{2}\\\\ b_{3} \\end{pmatrix}$.\n    $\\vec{a} \\times \\vec{b}$ is defined as:\n    $\\vec{a} \\times \\vec{b} =\n    (a_{2}b_{3}-a_{3}b_{2})i +\n    (a_{3}b_{}1-a_{1}b_{3})j +\n    (a_{1}b_{2}-a_{2}b_{1})k$\n\n\\end{center}\n<\/pre><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"156\" src=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image6-3.png\" alt=\"cross product symbol in Latex\" class=\"wp-image-2681\" srcset=\"https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image6-3.png 712w, https:\/\/www.scijournal.org\/articles\/wp-content\/uploads\/2022\/04\/image6-3-300x66.png 300w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/figure><\/div>\n\n\n<p>parenthesis matrix form<\/p>\n\n\n\n<p>The \\\\&nbsp; commands define each line of the elements in the parenthesis matrix form.<\/p>\n\n\n\n<p>Since it is built-in in LaTeX, don\u2019t try to complicate the code with packages for this symbol.<\/p>\n\n\n\n<p>Now you know its definition, how to represent this multiplication symbol, how to work with cross products and the two forms it has to insert in your LaTeX code.&nbsp;<\/p>\n\n\n\n<p>I hope this post was helpful in guiding you using the wonderful tool that LaTeX is, and as always, keep writing in LaTeX.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Further_Reading\"><\/span><strong>Further Reading<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>LaTex Tutorial<\/strong> <strong>on Symbols<\/strong><\/p>\n\n\n\n<ol><li><a href=\"https:\/\/www.scijournal.org\/articles\/hat-symbol-in-latex\">How to create a hat symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/prime-symbol-in-latex\">How to create a prime symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/absolute-value-symbol-in-latex\">How to create an absolute value symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/approximate-symbol-in-latex\">How to create an approximate symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/intersection-symbol-in-latex\">How to create an intersection symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/empty-set-symbol-in-latex\">How to create the empty set symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-symbol-in-latex\">How to write a degree symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dot-product-in-latex\">How to write a dot product in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-symbol-in-latex\">How to Write a Greater Than Symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/norm-symbol-in-latex\">How to write a norm symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/plus-minus-symbol-in-latex\">How to write A Plus-Minus Symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/proportional-to-symbol-in-latex\">How to write a proportional to symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/real-number-symbol-in-latex\">How to write a real number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/tilde-symbol-in-latex\">How to write a tilde symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/union-symbol-in-latex\">How to write a union symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/vector-in-latex\">How to write a vector in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/infinity-symbol-in-latex\">How to write an infinity symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/bold-text-in-latex\">How to write bold text in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/dots-symbols-in-latex\">How To Write Dots Symbols In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/arrow-symbols-in-latex\">How to write the arrow symbols in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/degree-celsius-symbol-in-latex\">How to write the Degree celsius symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/equal-or-not-equal-symbol-in-latex\">How to write the equal or not equal symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/euro-symbol-in-latex\">How to write the Euro symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/floor-symbol-in-latex\">How to write the floor symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/gradient-operator-symbol-in-latex\">How to write the gradient operator symbol in LaTeX<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/greater-than-or-equal-to-symbol-in-latex\">How To Write The Greater Than Or Equal To Symbol In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/integer-number-symbol-in-latex\">How to write the integer number symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/less-than-symbol-in-latex\">How to write the less than symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/natural-numbers-symbol-in-latex\">How to write the Natural numbers symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/parallel-symbol-in-latex\">How to write the parallel symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/percent-symbol-in-latex\">How to write the percent symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/square-root-symbol-in-latex\">How to write the square root symbol in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/subset-in-latex\">How To Write The Symbol For A Subset In LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/therefore-in-latex\">How to write the symbol for therefore in LaTeX?<\/a><\/li><li><a href=\"https:\/\/www.scijournal.org\/articles\/mathbb-command-in-latex\">How to write with the mathbb in LaTeX?<\/a><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This article aims to show you a simple way to create a cross product symbol in LaTeX. LaTeX most of the time is used to write documents that include many mathematics operations and procedures. And when dealing with vectors, in algebra or calculus, the cross product surely will be there. We will discuss how to &#8230; <a title=\"How to create a cross product symbol in LaTeX\" class=\"read-more\" href=\"https:\/\/www.scijournal.org\/articles\/cross-product-symbol-in-latex\" aria-label=\"Read more about How to create a cross product symbol in LaTeX\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":2682,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[39],"_links":{"self":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/2674"}],"collection":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/comments?post=2674"}],"version-history":[{"count":3,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/2674\/revisions"}],"predecessor-version":[{"id":5643,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/posts\/2674\/revisions\/5643"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media\/2682"}],"wp:attachment":[{"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/media?parent=2674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/categories?post=2674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scijournal.org\/articles\/wp-json\/wp\/v2\/tags?post=2674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}