Note: If you are viewing this document via social networking, bookmarking sites or email, mathematical equations coded with Latex may not display properly. Click here to view the post in Mathematics and Multimedia blog.
INTRODUCTION
In my previous latex blog, we have seen that Latex is capable of displaying complex mathematical expressions in blogs and forums. In this blog, we will discuss the very basics Latex – the most commonly used symbols in high school mathematics and how to code them.
Almost all Latex commands or codes begin with the \ symbol. For example, we want to write a fraction, we must use the \frac command. If we want to use Latex in a WordPress blog, we should enclose it with two dollar signs (see Figure 2) with the word “latex” after the first dollar sign. The dollar signs and the word “latex” is not a latex command, but it tells WordPress (or any other blog application) that enclosed is not an ordinary text, but a mathematical expression and should be displayed in Latex form. Blogs and forums have different ways of embedding Latex commands (see my previous latex blog for further explanation), so you must know how your blog application does. In the following discussion, we will use the WordPress format.
If we want to copy the text writtenbelow (without the drawing, of course), we can use a combination of text and Latex in writing the solution.
The solution was written as follows:
You should notice that the only latex command above is the \rightarrow command, but the equations are all written in Latex. This is because most of the time, it is advisable to write entire mathematical expressionsin Latex to make it look better in web pages.
You should also be careful about the spaces between in your latex code. No spaces before and after the dollar sign, and 1 space after the word “latex”.
BASIC COMMANDS
Below are the basic commands commonly used in high school mathematics. If you want to learn more about the other symbols, a list of symbols can be viewed here and a comprehensive list can be viewed here.
Exponents and Subscripts
In Latex, the symbol ^ is used for exponents and the symbol _ is used for subscript. The {} symbol is used for grouping.
| Expression | Command | Notes |
| 2^3 | ||
| 2^{10} | Note how {} is used. 2^10 will yield | |
| p_k | ||
| x^{3}_1 | ||
| 2^{a_k} | ||
| t_{n – 1} | Try omitting the {} and see what happens. | |
| c^2 = a^2 + b^2 |
Fractions
The command \frac is used to type fractions in Latex. The syntax is \frac{numerator}{denominator}.
| Expression | Command | Notes |
| \frac{2}{3} | ||
| \frac{3}{x + 5} | ||
| \frac{5}{x + \frac{1}{x}} | Notice that enclosed by the blue braces are the numerator and denominator of a fraction in the denominator, there is another fraction. |
Radicals
Radicals are written using the the \sqrt{expression} command. If the index, however, is greater than 2, the syntax is \sqrt[index]{expression}. (See examples 4 and 5}
| Expression | Command | Notes |
| \sqrt{5} | ||
| \sqrt{a + b} | ||
| \sqrt{a + \frac{1}{a}} | ||
| \sqrt[3]{x + 3} | You can write the index of the radical before the radicand expression. | |
| \sqrt[5]{(32)^2} |
Geometry
| Expression | Command | Notes |
| \overline{AB} \bot \overline{CD} | \botis the symbol for perpendicular | |
| \angle {ABC} \cong \angle {PQR} | ||
| \Delta{PQR} \approx \Delta{XYZ} | Delta, the fourth letter of the Greek alphabet, is the symbol for triangle |
With the Latex commands you already know, you will be surprised that you can already code a lot of expressions. Now try coding the quadratic formula. The code form (plus-minus) is \pm.
The fraction above is somewhat small. If you want it to appear in its full size, just add the \displastyle command before the \frac command and do not leave any white spaces. The command
\displaystyle\frac{3}{x+5}
will display .
GOING FURTHER
You can do a lot more things using Latex. You can create documents, articles, create cross references among your documents and so on. In fact, many books and ebooks nowadays are coded in Latex. In creating documents, however, we will need a Latex editor and a compiler. I am planning to make a tutorial on how to make Latex documents using a Latex editor (not very soon though), so you may want to subscribe to my blog for later updates if you are interested.
Mr. Kogler has also a latex tutorial for for advanced users here.
Note: If you want to test some of the latex commands, feel free to use the comment box.









Stumble It!






I am writing about the Subsets of Real Numbers and I was wondering if you knew how to code “not equal to”?
The code for not equal to is “\neq”.
[...] In my previous blogs, we have discussed how to use Latex in writing mathematical equations in blogs and websites, and we also have learned the most commonly used Latex commands. [...]
[...] my next Latex blog, we will learn the basics of coding [...]
[...] Latex Support. AOPS supports latex coding unlike other websites. Latex is used to embed mathematical expressions such as on websites, blogs and wikis. If you do not know about Latex, I have created a Latex tutorial here and tutorial here. [...]
[...] Latex Support. AOPS supports latex coding unlike other websites. Latex is used to embed mathematical expressions such as on websites, blogs and wikis. If you do not know about Latex, I have created a Latex tutorial here and here. [...]
Thanks. You should put the “\” symbol before the word “displaystyle”.
I love this thanks for teaching it!!
German tutorial about LaTeX
http://www.kwoxer.de/tutorials/latex/
[...] Latex. Latex is a code used for creating equations in blogs. With latex, you can construct mathematical equations such as . The basic symbols in latex are shown in the Scribd document in number 4, and I have two tutorials on latex here and here. [...]
[...] Commonly used Latex Commands [...]
[...] Latex Tutorial 2: Commonly used Latex Commands [...]
[...] more examples, this link is a pretty good place to start. Want even more symbols? Here you go. This entry was posted in [...]
[...] or if you’re looking for a refresher, or if you’re just one of the curious, there is a useful tutorial here. In addition, Jonas Reitz has kindly allowed us to link to an assignment in his Calc II class [...]
[...] to the mathematically inclined among us, but in the interest of intellectual curiosity, there is a useful tutorial/summary here. In addition, Jonas has kindly allowed us to link to an assignment in his Calc II class which [...]