{"id":138,"date":"2019-03-10T21:54:56","date_gmt":"2019-03-11T01:54:56","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/?post_type=chapter&#038;p=138"},"modified":"2019-05-08T17:59:34","modified_gmt":"2019-05-08T21:59:34","slug":"equations","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/chapter\/equations\/","title":{"raw":"Equations","rendered":"Equations"},"content":{"raw":"<h2>Commands<\/h2>\r\nLatex allows you to quickly write mathematical equations by specifying characters using commands you can type using the keyboard.\u00a0For example, we can write [latex] ax^2 + bx + c = 0 [\/latex] using the code\r\n\r\n<code>[\u200clatex] ax^2 + bx + c = 0 [\/latex]<\/code>\r\n\r\nWhile some common math symbols like +\/- and exponentiation have a single symbol on the keyboard, most commands start with \"\\\" and then describe the command. An example of an equation that requires \\ commands is\u00a0[latex] \\cos^2 \\theta + \\sin^2 \\theta = 1 [\/latex], which requires commands for the sine, cosine, and angle:\r\n\r\n<code>[\u200clatex] \\cos^2 \\theta + \\sin^2 \\theta = 1 [\/latex]<\/code>\r\n\r\nThe table below shows some common \"\\\" commands for symbols, in addition to the trigonometric functions and Greek letters used in the previous example.\r\n<table style=\"border-collapse: collapse;width: 99%\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 33%;text-align: center\" colspan=\"2\"><strong>Algebra<\/strong><\/td>\r\n<td style=\"width: 33%;text-align: center\" colspan=\"2\"><strong>Calculus<\/strong><\/td>\r\n<td style=\"width: 33%;text-align: center\" colspan=\"2\"><strong>Logic<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 13%\">[latex]\\times[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\times<\/td>\r\n<td style=\"width: 13%\">[latex]\\lim[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\lim<\/td>\r\n<td style=\"width: 13%\">[latex]\\neg[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\neg<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 13%\">[latex]\\div[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\div<\/td>\r\n<td style=\"width: 13%\">[latex]\\int[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\int<\/td>\r\n<td style=\"width: 13%\">[latex]\\rightarrow[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\rightarrow<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 13%\">[latex]\\pm[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\pm<\/td>\r\n<td style=\"width: 13%\">[latex]\\nabla[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\nabla<\/td>\r\n<td style=\"width: 13%\">[latex]\\exists[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\exists<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 13%\">[latex]\\approx[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\approx<\/td>\r\n<td style=\"width: 13%\">[latex]\\partial[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\partial<\/td>\r\n<td style=\"width: 13%\">[latex]\\forall[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\forall<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 13%\">[latex]\\equiv[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\equiv<\/td>\r\n<td style=\"width: 13%\">[latex]\\sum[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\sum<\/td>\r\n<td style=\"width: 13%\">[latex]\\in[\/latex]<\/td>\r\n<td style=\"width: 20%\">\\in<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nCommands can also take arguments using curly brackets. For example, the fraction and square root in the quadratic formula both take arguments.\r\n\r\n<code>[\u200clatex] x = \\frac{-b \\pm \\sqrt{b^2 + 4ac}}{2a} [\/latex]<\/code>\r\n\r\n[latex] \\displaystyle x = \\frac{-b \\pm \\sqrt{b^2 + 4ac}}{2a} [\/latex]\r\n\r\nSuperscripts and subscripts are also considered arguments. Use ^{} to create a superscript. If, no brackets are used, only the first character will be part of the superscript.\r\n<code>[\u200clatex]e^{i \\pi} = -1[\/latex]<\/code>\r\n\r\n[latex]\\displaystyle e^{i \\pi} = -1[\/latex]\r\n\r\nUse _{} to create a subscript. Again, if no brackets are used only the first character will be part of the subscript.\r\n\r\n<code>[\u200clatex] x_1 + x_2 = 2x_3[\/latex]<\/code>\r\n\r\n[latex]\\displaystyle x_1 + x_2 = 2x_3[\/latex]\r\n\r\nYou can add a subscript and a superscript to the same item. The order of the subscript and superscript does not matter. For example:\r\n\r\n<code>[\u200clatex]\\int_{a}^{b} u dv = u(x)v(x)|_a^b - \\int^{b}_a v du [\/latex]<\/code>\r\n\r\n[latex]\\displaystyle \\int_{a}^{b} u dv = u(x)v(x)|_a^b - \\int^{b}_a v du [\/latex]\r\n\r\nLatex is generally not sensitive to white space when typesetting math. Outside of Pressbooks, the commands <code>\\;, \\:, \\,<\/code> explicitly add large, medium, and small spaces respectively. However, these commands do not seem to be compatible with the QuickLaTeX plugin. As a workaround, you can use the command <code>\\hspace{}<\/code> to add a specific amount of horizontal white space. For example, we can add a space between the functions and the differential variable:\r\n\r\n<code>[\u200clatex]\\int_{a}^{b} u \\hspace{2pt} dv = u(x)v(x)|_a^b \\int^{b}_a v \\hspace{2pt} du[\/latex]<\/code>\r\n\r\n[latex]\\displaystyle \\int_{a}^{b} u \\hspace{2pt} dv = u(x)v(x)|_a^b - \\int^{b}_a v \\hspace{2pt} du[\/latex]\r\n\r\n<h3>Errors<\/h3>\r\nIf a statement is not entered correctly, the equation may not display as expected or QuickLaTeX may display an error. Errors take practice to read. For example, if I were to try to write the quadratic formula as\r\n\r\n<code>[\u200clatex] x = \\frac{-b \\pm \\sqrt{b^2 + 4ac}{2a} [\/latex]<\/code>\r\n\r\nI would get the error\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot.png\" alt=\"\" width=\"401\" height=\"164\" class=\"alignnone wp-image-620\" \/>\r\n\r\nTry to spot what is causing the error. The answer is given in the solutions to the exercises for this section.","rendered":"<h2>Commands<\/h2>\n<p>Latex allows you to quickly write mathematical equations by specifying characters using commands you can type using the keyboard.\u00a0For example, we can write <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-3e476ca4abc14582a8ffbef80602f546_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#32;&#97;&#120;&#94;&#50;&#32;&#43;&#32;&#98;&#120;&#32;&#43;&#32;&#99;&#32;&#61;&#32;&#48;&#32;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"105\" style=\"vertical-align: -2px;\" \/> using the code<\/p>\n<p><code>[\u200clatex] ax^2 + bx + c = 0 [\/latex]<\/code><\/p>\n<p>While some common math symbols like +\/- and exponentiation have a single symbol on the keyboard, most commands start with &#8220;\\&#8221; and then describe the command. An example of an equation that requires \\ commands is\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-cd408cfe8e3d264b21a9ffd52aa99a54_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#32;&#92;&#99;&#111;&#115;&#94;&#50;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#43;&#32;&#92;&#115;&#105;&#110;&#94;&#50;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#61;&#32;&#49;&#32;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"113\" style=\"vertical-align: -2px;\" \/>, which requires commands for the sine, cosine, and angle:<\/p>\n<p><code>[\u200clatex] \\cos^2 \\theta + \\sin^2 \\theta = 1 [\/latex]<\/code><\/p>\n<p>The table below shows some common &#8220;\\&#8221; commands for symbols, in addition to the trigonometric functions and Greek letters used in the previous example.<\/p>\n<table style=\"border-collapse: collapse;width: 99%\">\n<tbody>\n<tr>\n<td style=\"width: 33%;text-align: center\" colspan=\"2\"><strong>Algebra<\/strong><\/td>\n<td style=\"width: 33%;text-align: center\" colspan=\"2\"><strong>Calculus<\/strong><\/td>\n<td style=\"width: 33%;text-align: center\" colspan=\"2\"><strong>Logic<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-3bac7ed3771eaca92280a7fe213490af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#105;&#109;&#101;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\times<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-22ba7784479e40b8eca4c48e47454355_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#105;&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"20\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\lim<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-d21bc2deb13f2b4bf9d3fcc35a9036eb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#110;&#101;&#103;\" title=\"Rendered by QuickLaTeX.com\" height=\"5\" width=\"9\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\neg<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-b9fec29657d24d0499bd175eaa85bdc6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#105;&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\div<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-2de01d1f1dc6a78953fb4ad0439c012f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#105;&#110;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"9\" style=\"vertical-align: -4px;\" \/><\/td>\n<td style=\"width: 20%\">\\int<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-f803d9950799c0101c405bbb3f2852e2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;\" title=\"Rendered by QuickLaTeX.com\" height=\"9\" width=\"14\" style=\"vertical-align: -1px;\" \/><\/td>\n<td style=\"width: 20%\">\\rightarrow<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-ab5f77782e599c17705c55123ac5382d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"11\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\pm<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-7993e6159b1991a2cde0016b6b567432_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#110;&#97;&#98;&#108;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"12\" style=\"vertical-align: -1px;\" \/><\/td>\n<td style=\"width: 20%\">\\nabla<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-3a12ce65fde639056c475bbaafdf6f88_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#120;&#105;&#115;&#116;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"8\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\exists<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-d7d1a0c20cc7380cac3c6166ec43e469_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#112;&#112;&#114;&#111;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\approx<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-94ab6af4355b2a6eec9b8624527d605e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -1px;\" \/><\/td>\n<td style=\"width: 20%\">\\partial<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-55a8a60999fd6a0a2bc5c9169cfbe90b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#102;&#111;&#114;&#97;&#108;&#108;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -1px;\" \/><\/td>\n<td style=\"width: 20%\">\\forall<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-e37e123828391116842e2e5a6182b064_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#113;&#117;&#105;&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"11\" style=\"vertical-align: 0px;\" \/><\/td>\n<td style=\"width: 20%\">\\equiv<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-515e170cedbb8c8bbcae5c7dff3e6c55_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#117;&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"15\" style=\"vertical-align: -4px;\" \/><\/td>\n<td style=\"width: 20%\">\\sum<\/td>\n<td style=\"width: 13%\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-1a7bd40d75aa5e1a1adf4a3e7b484a5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#105;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"9\" width=\"8\" style=\"vertical-align: -1px;\" \/><\/td>\n<td style=\"width: 20%\">\\in<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Commands can also take arguments using curly brackets. For example, the fraction and square root in the quadratic formula both take arguments.<\/p>\n<p><code>[\u200clatex] x = \\frac{-b \\pm \\sqrt{b^2 + 4ac}}{2a} [\/latex]<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-b7dfc3236c441b71696f5d986e6d1b4f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#32;&#92;&#100;&#105;&#115;&#112;&#108;&#97;&#121;&#115;&#116;&#121;&#108;&#101;&#32;&#120;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#45;&#98;&#32;&#92;&#112;&#109;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#98;&#94;&#50;&#32;&#43;&#32;&#52;&#97;&#99;&#125;&#125;&#123;&#50;&#97;&#125;&#32;\" title=\"Rendered by QuickLaTeX.com\" height=\"33\" width=\"129\" style=\"vertical-align: -10px;\" \/><\/p>\n<p>Superscripts and subscripts are also considered arguments. Use ^{} to create a superscript. If, no brackets are used, only the first character will be part of the superscript.<br \/>\n<code>[\u200clatex]e^{i \\pi} = -1[\/latex]<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-85fc30002fabef037f4e33ecb11663c8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#105;&#115;&#112;&#108;&#97;&#121;&#115;&#116;&#121;&#108;&#101;&#32;&#101;&#94;&#123;&#105;&#32;&#92;&#112;&#105;&#125;&#32;&#61;&#32;&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"56\" style=\"vertical-align: -1px;\" \/><\/p>\n<p>Use _{} to create a subscript. Again, if no brackets are used only the first character will be part of the subscript.<\/p>\n<p><code>[\u200clatex] x_1 + x_2 = 2x_3[\/latex]<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-bf02d928ed4be932a262111359b410ac_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#105;&#115;&#112;&#108;&#97;&#121;&#115;&#116;&#121;&#108;&#101;&#32;&#120;&#95;&#49;&#32;&#43;&#32;&#120;&#95;&#50;&#32;&#61;&#32;&#50;&#120;&#95;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"87\" style=\"vertical-align: -3px;\" \/><\/p>\n<p>You can add a subscript and a superscript to the same item. The order of the subscript and superscript does not matter. For example:<\/p>\n<p><code>[\u200clatex]\\int_{a}^{b} u dv = u(x)v(x)|_a^b - \\int^{b}_a v du [\/latex]<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-fa7b1df2a90d13efe5ab21469ea4d1a7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#105;&#115;&#112;&#108;&#97;&#121;&#115;&#116;&#121;&#108;&#101;&#32;&#92;&#105;&#110;&#116;&#95;&#123;&#97;&#125;&#94;&#123;&#98;&#125;&#32;&#117;&#32;&#100;&#118;&#32;&#61;&#32;&#117;&#40;&#120;&#41;&#118;&#40;&#120;&#41;&#124;&#95;&#97;&#94;&#98;&#32;&#45;&#32;&#92;&#105;&#110;&#116;&#94;&#123;&#98;&#125;&#95;&#97;&#32;&#118;&#32;&#100;&#117;&#32;\" title=\"Rendered by QuickLaTeX.com\" height=\"37\" width=\"195\" style=\"vertical-align: -13px;\" \/><\/p>\n<p>Latex is generally not sensitive to white space when typesetting math. Outside of Pressbooks, the commands <code>\\;, \\:, \\,<\/code> explicitly add large, medium, and small spaces respectively. However, these commands do not seem to be compatible with the QuickLaTeX plugin. As a workaround, you can use the command <code>\\hspace{}<\/code> to add a specific amount of horizontal white space. For example, we can add a space between the functions and the differential variable:<\/p>\n<p><code>[\u200clatex]\\int_{a}^{b} u \\hspace{2pt} dv = u(x)v(x)|_a^b \\int^{b}_a v \\hspace{2pt} du[\/latex]<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/ql-cache\/quicklatex.com-ed12fc1944f71b4b1a07a0ae96db1d0b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#105;&#115;&#112;&#108;&#97;&#121;&#115;&#116;&#121;&#108;&#101;&#32;&#92;&#105;&#110;&#116;&#95;&#123;&#97;&#125;&#94;&#123;&#98;&#125;&#32;&#117;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#50;&#112;&#116;&#125;&#32;&#100;&#118;&#32;&#61;&#32;&#117;&#40;&#120;&#41;&#118;&#40;&#120;&#41;&#124;&#95;&#97;&#94;&#98;&#32;&#45;&#32;&#92;&#105;&#110;&#116;&#94;&#123;&#98;&#125;&#95;&#97;&#32;&#118;&#32;&#92;&#104;&#115;&#112;&#97;&#99;&#101;&#123;&#50;&#112;&#116;&#125;&#32;&#100;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"37\" width=\"200\" style=\"vertical-align: -13px;\" \/><\/p>\n<h3>Errors<\/h3>\n<p>If a statement is not entered correctly, the equation may not display as expected or QuickLaTeX may display an error. Errors take practice to read. For example, if I were to try to write the quadratic formula as<\/p>\n<p><code>[\u200clatex] x = \\frac{-b \\pm \\sqrt{b^2 + 4ac}{2a} [\/latex]<\/code><\/p>\n<p>I would get the error<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot.png\" alt=\"\" width=\"401\" height=\"164\" class=\"alignnone wp-image-620\" srcset=\"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot.png 966w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot-300x122.png 300w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot-768x313.png 768w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot-65x27.png 65w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot-225x92.png 225w, https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-content\/uploads\/sites\/654\/2019\/03\/Error-Screenshot-350x143.png 350w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/p>\n<p>Try to spot what is causing the error. The answer is given in the solutions to the exercises for this section.<\/p>\n","protected":false},"author":671,"menu_order":1,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[47],"contributor":[],"license":[],"class_list":["post-138","chapter","type-chapter","status-publish","hentry","chapter-type-standard"],"part":119,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/chapters\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/users\/671"}],"version-history":[{"count":25,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/chapters\/138\/revisions"}],"predecessor-version":[{"id":787,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/chapters\/138\/revisions\/787"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/parts\/119"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/chapters\/138\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/pressbooks\/v2\/chapter-type?post=138"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/contributor?post=138"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/introtolatex\/wp-json\/wp\/v2\/license?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}