···11+\message{ !name(lesson1.tex)}% LESSON ONE
22+% Text following a percentage sign (%) is ignored by the typesetter.
33+% In this manual, we will use such text for comments and notes.
44+% You do not need to type out these comments.
55+66+\documentclass{amsart}
77+% Almost all commands start with a backslash (\).
88+% amsart is short for American Mathematical Society article.
99+1010+\thispagestyle{empty}
1111+%We use this to prevent a page number from appearing.
1212+1313+\begin{document}
1414+1515+\message{ !name(lesson1.tex) !offset(-3) }
1616+1717+\begin{center}
1818+ \textbf{Lesson One: The Basics}
1919+\end{center}
2020+2121+\textbf{Font Families}
2222+2323+% One or more blank lines end a paragraph and put the typesetter on a new line.
2424+I \textbf{love} math!
2525+2626+\LaTeX\ does \emph{not} rhyme with ``paychecks''!\\
2727+% The \ after \LaTeX creates a small horizontal space. Try leaving it out.
2828+% The \\ at the end creates additional vertical space between lines.
2929+% See Lesson Six for more on spacing.
3030+% In most cases, \emph and \textit look the same.
3131+3232+\textbf{Math Enviroments, Superscripts, and Subscripts}
3333+3434+The numbers 3, 4, and 5 are a Pythagorean triple because $3^2+4^2=5^2$.\\
3535+% The dollar signs ($) open and close the inline math environment.
3636+3737+We all know that $(x^n)'=nx^{n-1}$, but what is $(x^x)'$?\\
3838+% Note that the typesetter ignores multiple spaces as above.
3939+4040+The recursive definition for the Fibonacci numbers is
4141+4242+$F_1=1$, $F_2=1$, and $F_n=F_{n-1}+F_{n-2}$ for all integers $n>2$.\\
4343+4444+Compare $\frac{1}{a+b}\neq\frac{1}{a}+\frac{1}{b}$ to the following.
4545+4646+$$\frac{1}{a+b}\neq\frac{1}{a}+\frac{1}{b}$$
4747+%The double dollar signs ($$) open and close the displayed math environment.
4848+4949+We can also display it midline by using ``display-style'':
5050+$\displaystyle\frac{1}{a+b}\neq\frac{1}{a}+\frac{1}{b}$.\\
5151+% Make sure your typeset quotation marks look right!
5252+5353+% To force a page break at any place in your document, you can use
5454+% \pagebreak or \newpage.
5555+5656+\end{document}
5757+5858+\message{ !name(lesson1.tex) !offset(-58) }
+35
lesson1-answer.tex
···11+% EXERCISE ONE
22+33+\documentclass{amsart}
44+\thispagestyle{empty}
55+66+\begin{document}
77+88+\begin{center}
99+\textbf{Exercise One: The Basics}
1010+\end{center}
1111+1212+A certain math professor will \textbf{scream} and may even \textbf{cry} if you confuse
1313+the Latin terms \emph{id est}, meaning ``that is to say'' and \emph{exempli
1414+gratia}, meaning ``for instance.'' Compare the following.\\
1515+1616+I adore polynomials, \emph{e.g.}, $x^4+x^2+1$.
1717+1818+I adore polynomials, \emph{i.e.}, expressions of the form
1919+$a_0+a_1x+a_2x^2+\dots+a_nx^n$, where $a_0, a_1, ..., a_n$ are constants and $n$ is a
2020+non-negative integer.\\
2121+2222+Do you lie awake at night wondering what is the smallest positive integer that can be
2323+written as the sum of two perfect cubes in two distinct ways? Well, wonder no more:
2424+$$1729=10^3+9^3=12^3+1^3$$
2525+2626+We all learned in first grade that $(a+b)^3\neq a^3+b^3$, but when we study modular
2727+arithmetic we'll find that the two \textit{are} equal in ``mod 3.''\\
2828+2929+The famous mathematician Euler (rhymes with ``boiler'' \textbf{NOT} with ``ruler'') used
3030+the geometric series formula $a+ar+ar^2+ar^3+...=a/(1-r)$ to
3131+conclude the following.
3232+$$1-1+1-1+1-\dots = \frac{1}{2}$$
3333+But we know the formula only applies if $-1<r<1$, so this result is not valid.
3434+3535+\end{document}
+89
lesson1.tex
···11+% LESSON ONE
22+% Text following a percentage sign (%) is ignored by the typesetter.
33+% In this manual, we will use such text for comments and notes.
44+% You do not need to type out these comments.
55+66+\documentclass{amsart}
77+% Almost all commands start with a backslash (\).
88+% amsart is short for American Mathematical Society article.
99+1010+\thispagestyle{empty}
1111+%We use this to prevent a page number from appearing.
1212+1313+\begin{document}
1414+\begin{center}
1515+ \textbf{Lesson One: The Basics}
1616+\end{center}
1717+1818+\textbf{Font Families}
1919+2020+% One or more blank lines end a paragraph and put the typesetter on a new line.
2121+I \textbf{love} math!
2222+2323+\LaTeX\ does \emph{not} rhyme with ``paychecks''!\\
2424+% The \ after \LaTeX creates a small horizontal space. Try leaving it out.
2525+% The \\ at the end creates additional vertical space between lines.
2626+% See Lesson Six for more on spacing.
2727+% In most cases, \emph and \textit look the same.
2828+2929+\textbf{Math Enviroments, Superscripts, and Subscripts}
3030+3131+The numbers 3, 4, and 5 are a Pythagorean triple because $3^2+4^2=5^2$.\\
3232+% The dollar signs ($) open and close the inline math environment.
3333+3434+We all know that $(x^n)'=nx^{n-1}$, but what is $(x^x)'$?\\
3535+% Note that the typesetter ignores multiple spaces as above.
3636+3737+The recursive definition for the Fibonacci numbers is
3838+3939+$F_1=1$, $F_2=1$, and $F_n=F_{n-1}+F_{n-2}$ for all integers $n>2$.\\
4040+4141+Compare $\frac{1}{a+b}\neq\frac{1}{a}+\frac{1}{b}$ to the following.
4242+4343+$$\frac{1}{a+b}\neq\frac{1}{a}+\frac{1}{b}$$
4444+%The double dollar signs ($$) open and close the displayed math environment.
4545+4646+We can also display it midline by using ``display-style'':
4747+$\displaystyle\frac{1}{a+b}\neq\frac{1}{a}+\frac{1}{b}$.\\
4848+% Make sure your typeset quotation marks look right!
4949+5050+% To force a page break at any place in your document, you can use
5151+% \pagebreak or \newpage.
5252+5353+5454+\begin{center}
5555+ \textbf{Exercise One: The Basics}
5656+\end{center}
5757+5858+A certain math professor will \textbf{scream} and may even \textbf{cry} if you
5959+confuse the Latin terms \emph{id est}, meaning ``that is to say'' and
6060+\emph{exempli gratia}, meaning ``for instance.''
6161+Compare the following.\\
6262+6363+I adore polynomials, \emph{e.g.}, $x^{4}+x^{2}+1$.
6464+6565+6666+I adore polynomials, \emph{i.e.}, expressions of the form
6767+$a_{0} + a_{1}x + a_{2}x^{2} + \dots + a_{n}x^{n}$,where $a_{0},a_{1},...,a_{n}$ are
6868+constants and $n$ is a non-negative integer.\\
6969+7070+Do you lie awake at night wondering what is the smallest positive integer that
7171+can be written as the sum of the two perfect cubes in two distinct ways? Well,
7272+wonder no more:
7373+7474+$$ 1729 = 10^{3} + 9^{3} = 12^{3} + 1^{3} $$
7575+7676+We all learned in first grade that $(a + b)^{3} \neq a^{3} + b^{3}$, but when we
7777+study modular arithmetic we'll find that the two \emph{are} equal in ``mod 3.''
7878+7979+The famous mathematician Euler (rhymes with ``boiler'' \textbf{NOT} with
8080+``ruler'') used the geometric series formula
8181+$a + ar + ar^{2} + ar^{3} + ... = a / (1 - r)$ to conclude the following
8282+8383+$$ 1 - 1 + 1 - 1 + 1 - \dots = \frac{1}{2} $$
8484+8585+But we know the formula only applies if -1 $<$ $r$ $<$ 1, so this result is not
8686+valid.
8787+8888+8989+\end{document}