-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest_of_original_example.txt
126 lines (94 loc) · 3.33 KB
/
rest_of_original_example.txt
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
\newpage
\section{Sample Chapter}
Let's dive right in!
\subsection{Some Definitions}
\begin{definition}
The \textbf{derivative} of a function $f:I\to\R$ at $a\in I$ is given by:
\begin{equation*}
f'(x)=\limx\frac{f(x)-f(a)}{x-a}
\end{equation*}
\end{definition}
\begin{center}
You know those awesome commutative diagrams?
\begin{tikzcd}
A \arrow[r,"p"] \arrow[d,red,"q"'] & B \arrow[d,"r" red] \\
C \arrow[r,red,"s"' blue] & D
\end{tikzcd}
The derivative has \emph{nothing} to do with them!
\end{center}
\begin{proposition}\label{diffcont}
If $f$ is differentiable at $a$, then $f$ is continuous at $a$.
\end{proposition}
\begin{proof}
Exercise (but only because this is a template).
\end{proof}
The converse of \Cref{diffcont} is not true in general.
\begin{examples}\leavevmode % This is needed to start the list in the next line so it won't be misaligned
\begin{enumerate}
\item $f(x)=\abs{x}$
\item $f(x)=\begin{cases} \sin(x) & x\ge 0 \\ 0 & x<0 \end{cases}$
\end{enumerate}
\end{examples}
\begin{theorem}
The following statements are true:
\begin{enumerate}
\item First statement
\item Second statement
\end{enumerate}
\end{theorem}
\begin{proof}% For some reason, the proof environment does not need \leavevmode
\begin{enumerate}
\item Trivial.
\item Trivial.\qedhere % qedhere is to place the qed symbol here instead of in the next line
\end{enumerate}
\end{proof}
\begin{corollary}
We are both very lucky to have each other as a collaborator.
\end{corollary}
\begin{proof}
We simply note that:
\begin{equation*}
\frac{1}{1}+\frac{1}{1}\gg\frac{1}{1} \qedhere
\end{equation*}
\end{proof}
\begin{remark}
This corollary is also obvious from empirical evidence.
\end{remark}
\begin{lemma}
$(a+b)^2=a^2+2ab+b^2$
\end{lemma}
\begin{proof}
Expand the left side.
\end{proof}
\begin{remarks}\leavevmode
\begin{enumerate}
\item It's also kind of obvious.
\item No extra points for guessing what $(a-b)^2$ is.
\end{enumerate}
\end{remarks}
\begin{example}
$(2+4)^2=2^2+2\cdot 2\cdot 4+4^2=36$
\end{example}
\begin{theorem}[Pythagoras' Theorem]\label{pythagoras}
If $c$ is the hypotenuse of a right triangle and $a$ and $b$ are the other two sides, then $a^2+b^2=c^2$.
\end{theorem}
\begin{proof}
Draw a picture and convince yourself.
\end{proof}
\hyperref[pythagoras]{Pythagoras' theorem} helps motivate the study of metric spaces, which you can learn about in \cite{sekhon}.\\
A lot of nice integrals can be computed using the residue theorem, see \cite[Section 5.2]{taylor}.
\newpage
\appendix
\section{Bonus Material}
The \verb!talign! and \verb!talign*! environments work like the \verb!align! and \verb!align*! environments, except they render equations in inline size. For example, \verb!\begin{align*}...\end{align*}! yields:
\begin{align*}
\sumn\frac{1}{n^2}=\frac{\pi^2}{6}
\end{align*}
While \verb!\begin{talign*}...\end{talign*}! yields:
\begin{talign*}
\sumn\frac{1}{n^2}=\frac{\pi^2}{6}
\end{talign*}
As usual, the purpose of \verb!*! is to prevent numbering of the equation.\\
Some commands, like \verb!\sumn!, can be used with or without a starting value (the default starting value is 1). For example, \verb!$\sumn\frac{1}{n^2}$! yields $\sumn\frac{1}{n^2}$, while \verb!$\sumn[69]\frac{1}{n^2}$! yields $\sumn[69]\frac{1}{n^2}$. This can be used in inline mode as well as display mode.
\newpage
\printbibliography