-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmathematics.tex
More file actions
49 lines (40 loc) · 1.01 KB
/
mathematics.tex
File metadata and controls
49 lines (40 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
\chapter{Mathematics}
\section{Equations}\label{sec:mathematics:equations}
Inline equation (text and math): $E=mc^2$
Equation without a number:
$$E = mc^2$$
Numbered equation:
\begin{equation} \label{eq:euler}
E = mc^2
\end{equation}
How to split an equation on multiple lines:
\begin{equation} \label{eq:split}
\begin{split}
A & = \frac{\pi r^2}{2} \\
& = \frac{1}{2} \pi r^2
\end{split}
\end{equation}
\section{Subequations}
\begin{subequations}
\begin{align}
f(x) &= a x^2+b x +c\\
f'(x) &= 2 a x +b
\end{align}
\end{subequations}
\section{Matrices}\label{sec:mathematics:matrices}
\begin{equation}
\begin{bmatrix}
x_{11} & x_{12} & x_{13} & \dots & x_{1n} \\
x_{21} & x_{22} & x_{23} & \dots & x_{2n} \\
\vdots & \vdots & \vdots & \ddots & \vdots \\
x_{d1} & x_{d2} & x_{d3} & \dots & x_{dn}
\end{bmatrix}
\end{equation}
\section{Cases}
\begin{equation}
f(n) =
\begin{cases}
n/2 & \quad \text{if } n \text{ is even}\\
-(n+1)/2 & \quad \text{if } n \text{ is odd}\\
\end{cases}
\end{equation}