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*}
How do you control whether an equation is numbered or not?
If you don’t want an equation or multiline equation numbered, add an asterisk to the tag.
Examples:
\begin{equation*} … \end{equation*}
\begin{multiline*} … \end{multiline*}
How do you add a line-break to a Latex eqation?
In multiline mode, put a double backslash where you want the line to break
\
How do you get equations to align vertically in Latex
The \align tag:
\begin{align}
a_1& =b_1+c_1\
a_2& =b_2+c_2-d_2+e_2
\end{align}
When using the \align tag, how do you define where the equations should align?
Include an ampersand (&) in each equation at the alignment point.
What types of matrice tags are available in the ansmath package?
- \matrix ( no brackets )
- \bmatrix ( square brackets )
- \Bmatrix ( curly brackets )
- \pmatrix ( round brackets )
- \vmatrix ( lines on either side of matrix )
- \Vmartix ( double lines on either side of the matrix)
How do you separate the entries in a matrix in amsmath
Use & between entries in the same row and
end each row with a double backslash \