Basic Formulae Flashcards
How do you create a subscript in Latex?
An underscore
a_1
How do you group characters together to appear in a superscript, subscript or any tagged element?
Group them using a parentheses (curly brackets)
a^{n+1}
How would you add both a subscript and a superscript to an Latex element?
Use the appropriate tags, one after the other
n_{k+1}^2
How do you add superscripts to superscripts?
Nest the parentheses
What’s the latex code for a dot product ?
( as in 6 times 7 using a dot or
A dot V for matrices)
\cdot
Example:
5\cdot6=30
What’s the Latex code for a multiplication X symbol?
\times
What’s the Latex code for a root symbol?
\sqrt[n]{expression}
where n is the nth root. If you leave out n, you will generate the sqrt symbol.
What’s the Latex code for a plus or minus symbol?
/pm
What is the Latex code for a fraction?
\frac{expression in the numerator}{expression in the denominator}
Example:
\frac{n+2}{n-1}
What is the Latex code for a fraction that will appear in-line?
\dfrac{expr}{expr}
Example:
This equation $ \dfrac{5}{n-1} $ is an example
How do you put Latex in in-line mode to display an equation?
Use one of the following delimiters:
( … )
[… ]
$ … $
\begin{math} … \end{math}
They all work and the choice is a matter of taste.
How do you put Latex in Display Mode to show equations?
Use one of the following sets of brackets:
- [… ],
- \begin{displaymath} … \end{displaymath} or
- \begin{equation} … \end{equation}
What package is required in Latex to display many math formulas?
amsmath
How do you include the amsmath package in a Latex document?
In the preamble of the document include the code:
\usepackage{amsmath}
How do you write a multi-line equation in Latex?
Use the multline tag:
\begin{multline*}
p(x) = 3x^6 + 14x^5y + 590x^4y^2 + 19x^3y^3\
- 12x^2y^4 - 12xy^5 + 2y^6 - a^3b^3
\end{multline*}