Skip to content

Commit c59adf3

Browse files
committed
final adjustments
1 parent e3e3cf6 commit c59adf3

File tree

112 files changed

+2337
-1301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2337
-1301
lines changed

Calculus.tex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33

44
%\RequirePackage[l2tabu, orthodox]{nag}
55
\documentclass[10pt]{book}
6-
%\input{headers/pre_package}
76

87
\input{headers/APEX_format}
98
\usepackage{headers/apex_style}
109
\input{headers/Header_Calculus}
1110

1211
\input{options}
13-
\newcommand{\forwhom}{}
14-
%\newcommand{\forwhom}{ for Bismarck State College}
12+
13+
\setboolean{bsc}{false}
1514

1615
\printallanswers
1716
\printincolor

CalculusI.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ \part{Calculus I}
7070
\input{text/05_FTC}
7171
\input{text/06_Substitution}
7272

73+
\ifthenelse{\boolean{bsc}}{}{
7374

7475
\apexchapter{Applications of Integration}{chapter:app_of_int}
7576

@@ -103,4 +104,6 @@ \part{Calculus I}
103104
\input{text/07_Work}
104105
\input{text/07_Fluid_Force}
105106

107+
}
108+
106109
\cleardoublepage

CalculusII.tex

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
11
\setboolean{calc2included}{true}
22
\part{Calculus II}
33

4+
\ifthenelse{\boolean{bsc}}{
5+
6+
\apexchapter{Applications of Integration}{chapter:app_of_int}
7+
8+
We begin this chapter with a reminder of a few key concepts from \autoref{chapter:integration}. Let $f$ be a continuous function on $[a,b]$ which is partitioned into $n$ equally spaced subintervals as
9+
\[a=x_0 < x_1 < \cdots < x_{n-1}<x_n=b.\]
10+
Let $\Delta x=(b-a)/n$ denote the length of the subintervals, and let $c_i$ be any $x$-value in the $i^\text{ th}$ subinterval. \autoref{def:rie_sum} states that the sum
11+
\[\sum_{i=1}^n f(c_i)\Delta x\]
12+
is a \textit{Riemann Sum.} Riemann Sums are often used to approximate some quantity (area, volume, work, pressure, etc.). The \textit{approximation} becomes \textit{exact} by taking the limit
13+
\[\lim_{n\to\infty} \sum_{i=1}^n f(c_i)\Delta x.\]
14+
\autoref{thm:riemannSum} connects limits of Riemann Sums to definite integrals:
15+
\[\lim_{n\to\infty} \sum_{i=1}^n f(c_i)\Delta x = \int_a^b f(x)\ dx.\]
16+
Finally, the Fundamental Theorem of Calculus states how definite integrals can be evaluated using antiderivatives.
17+
18+
This chapter employs the following technique to a variety of applications. Suppose the value $Q$ of a quantity is to be calculated. We first approximate the value of $Q$ using a Riemann Sum, then find the exact value via a definite integral. We spell out this technique in the following Key Idea.
19+
20+
\keyidea{idea:app_of_defint}{Application of Definite Integrals Strategy}
21+
{Let a quantity be given whose value $Q$ is to be computed.\index{integration!general application technique}
22+
\begin{enumerate}
23+
\item Divide the quantity into $n$ smaller ``subquantities'' of value $Q_i$.
24+
\item Identify a variable $x$ and function $f(x)$ such that each subquantity can be approximated with the product $f(c_i)\Delta x$, where $\Delta x$ represents a small change in $x$. Thus $Q_i \approx f(c_i)\Delta x$.
25+
%% A sample approximation $f(c_i)\Delta x$ of $Q_i$ is called a \textit{differential element}.
26+
\item Recognize that $\ds Q\approx \sum_{i=1}^n Q_i = \sum_{i=1}^n f(c_i)\Delta x$, which is a Riemann Sum.
27+
\item Taking the appropriate limit gives $\ds Q = \int_a^b f(x)\ dx$
28+
\end{enumerate}}
29+
30+
This Key Idea will make more sense after we have had a chance to use it several times. We begin with Area Between Curves.%, which we addressed briefly in \autoref{sec:FTC}.
31+
32+
\input{text/07_Area_Between_Curves}
33+
\input{text/07_Disk_Washer_Method}
34+
\input{text/07_Shell_Method}
35+
\input{text/07_Work}
36+
\input{text/07_Fluid_Force}
37+
38+
}{}
39+
440
\ifthenelse{\boolean{isEarlyTrans}}{}{%
541
\apexchapter{Inverse Functions and L'H\^opital's Rule}{chapter:diff_conc}
642
% todo write a Inverse Functions prerequisite section reviewing logs

apexNotes.txt

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
Larry's notes on:
2-
p 542: requirements for Taylor's theorem
3-
S9.10: when is a function equal to a power series
4-
5-
Ally complains that "This HTML file does not have a language set" and "This HTML file contains an invalid heading structure"
6-
7-
check 3d images 6.3.6, 6.3.7
8-
get x.0 into pdf TOC sidebar
9-
.9.8#32 not an actual power series
10-
.10.1#11 spacing is odd
11-
.10.3 should it have speed?
12-
13-
prc html page please: need .prc
14-
website pretty please: need [A-Z.]
15-
1+
Ally complains that "This HTML file contains an invalid heading structure"
162

173

4+
../LaTeXML/bin/latexmlpost --split --destination=xmlonly/index.xml --format=xml Calculus.xml
185

6+
xsltproc -xinclude ../mathbook/xsl/mathbook-html.xsl --output pretext/index.html xmlonly/index.xml
197

8+
from pretext/
9+
xsltproc -xinclude ../../mathbook/xsl/mathbook-html.xsl index.html ../xmlonly/index.xml
2010

2111

2212

@@ -27,7 +17,7 @@ Instead of “Note: these are the same functions as in Exercises ##—##”, sho
2717

2818

2919
html could do:
30-
MBX conversion
20+
Pretext(MBX) conversion?
3121
http://aimath.org/knowlepedia/
3222
ebook (epub?) (https://www.amazon.com/gp/education-publishing ?)
3323
ET version
@@ -68,7 +58,6 @@ Should the notebook be distributed with the text? Eventually. CC-BY-NC, same a
6858

6959
My to do:
7060
5.2: use something other than $\Delta x$ to represent a partition
71-
obsolete pre_package
7261
check units in center of mass calculations
7362
\exerciseset -> \begin{exerciseset} 423 times
7463
\example -> \begin{example} 596 times
@@ -89,42 +78,3 @@ My to do:
8978
egrep -c '\dft\W' text/*tex | grep -v ':0$'
9079
vspace to addvspace, [small|med|big]skip to [small|med|big]break ?
9180

92-
93-
Typos:
94-
95-
1.5#19: x>0 should be x\ne0
96-
3.1 Theorem 3.1.1: $I$ should be a *finite* closed interval.
97-
3.4#3,4 p157: "Is is" should be "Is it" (twice).
98-
Example 3.5.2 Solution item 2: $(x^2+x-6)^2$ should be $(x^2-x-6)^2$.
99-
4.1#2: Newtons’ should be Newton’s.
100-
5.5 p251, line 7: the top corners of each trapezoid *lie* on the graph.
101-
6.3 p298: "vise-versa" should be "vice versa".
102-
6.8 p344 line 6: $\lim_{t\to0^-}\left(-\dfrac1t+1\right)$ should be $\lim_{t\to0^-}\left(-\dfrac1t-1\right)$.
103-
6.8 p349 Figure 6.8.12: The graph labels should be switched.
104-
7.5 p387 para 2: Three occurrences of “Newton” should be “newton”.
105-
7.5#1: Newton-meter should be newton-meter.
106-
7.5#27: “an truncated” should be “a truncated”.
107-
8.2 p422 line 7: $\left(\dfrac12\right)^2$ should be $\left(\dfrac12\right)^n$.
108-
8.2 p423 Definition 8.2.3: If a<0 and p is non-integral, then (an+b)^p may not be defined. You could assume that it's a p-series only when it's always defined, but it may be easier to just assume that a>0 and an+b≠0.
109-
8.4 Example 8.4.3#2: The summation should begin at 2.
110-
8.5 p452 Theorem 8.5.2: "partial sums" should be "partial sum".
111-
8.5 p452 Example 8.5.2: "sum" should be "sums"
112-
8.5 p453 line -6: The final inequality with $L$ is in the wrong order.
113-
8.7 p474 line -3: Maclaurin series should be Maclaurin polynomial.
114-
8.7 Theorem 8.7.1: The proof needs I to be an open interval. The maximum is then over all z between x and c, and requires that f^{(n+1)} be continuous. Changing the interval for the maximum simplifies Examples 8.7.3#1,2 & 8.7.5#3 and Exercises 8.7#23-25. 8.7#26 has other problems.
115-
8.7#21-24: The error bounds in the solution do not need \pm.
116-
8.7#26: The nth derivative is not bounded in n. Correct solution: The $n^\text{th}$ derivative of $f(x)=\sqrt x$ has a maximum on $[3,4]$ of $(2n-3)!!(-1)^{n+1}3^{1/2}6^{-n}$. Thus $\abs{R_n(3)}\leq \frac{3^{1/2}2^{-2}}{3^n n(n+1)}$. When $n=5$, this is less than $0.0001$.
117-
8.8 p488: Analyticity lets you go from a function to its power series. To go the other direction, you need the converse theorem. Something like: "If a function is equal to some power series on an interval, then that power series is the Taylor series of the function." Eg, Example 8.8.5 gives a power series for e^x cos x, but we don't have a way to know that it is the Taylor series.
118-
8.8 p494 line 8: "terms shown above *gives* the approximation"
119-
9.4 #5 The solution should specify the comparison ``for all $n\ge 3$''.
120-
8.4 # 23, 24, 31, 33: ditto
121-
8.8 Example 8.8.4, line -2: When -1<k<0, the interval of convergence is (-1,1]. (Indeed, (1+x)^k isn't defined when x=-1 and k<0.)
122-
9.4 p540 para 2, line 4: "It's rectangular" should be "Its rectangular".
123-
9.4 p542 para 4, line 3: 2\textsuperscript{nd} quadrant should be 1\textsuperscript{st} quadrant.
124-
9.5 Example 9.5.7: The parameter starts as t, but then switches to theta.
125-
9.5 # 7b: In the solution, you may want to have $(2/\pi)$ and $(\pi/2)$ in parentheses.
126-
12.8 Example 12.8.7 p757 line 5: these are simultaneously 0 only when $w=0$, with consequent changes in plurality in the next sentence.
127-
12.8 Example 12.8.7 p757 para4: This gives a volume of approximately 20,347.
128-
14 p840 line 9: "the one is well" should be "then one is well".
129-
14.3 p865 line 5: ``A region is simply connected\ldots'' should be ``A connected region is simply connected\ldots''.
130-

changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Changes for the 2019-XX version:
1818

1919
* A corrected proof for Theorem 9.4.1.
2020

21+
* Taylor's Theorem has a stronger conclusion regarding the bound on the error term.
22+
2123
* All known errata (106+) have been fixed.
2224

2325
Changes for the 2018-07 version:

errata/Errata.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186

187187
\section*{Digital Math Resources}
188188

189-
We are pleased to announce that the 3d files are now available online, linked from the book's distribution page at \url{http://arts-sciences.und.edu/math/calc-1-texts.cfm} (the page currently links to \url{https://sites.und.edu/timothy.prescott/apex/prc/}, but that may change in the near future). This makes it possible to use the mobile app ``3D PDF Reader'' by Tech Soft 3D to view the files on an Android or iOS device. Appropriate links to the apps are provided on the page. A single 3d file is several hundred kilobytes, so this could zap your data allotment if you're not careful.
189+
We are pleased to announce that the 3d files are now available online, linked from the book's distribution page at \url{https://arts-sciences.und.edu/academics/math/calc-1-texts.html} (the page currently links to \url{https://sites.und.edu/timothy.prescott/apex/prc/}, but that may change in the near future). This makes it possible to use the mobile app ``3D PDF Reader'' by Tech Soft 3D to view the files on an Android or iOS device. Appropriate links to the apps are provided on the page. A single 3d file is several hundred kilobytes, so this could zap your data allotment if you're not careful.
190190

191191
\end{document}
192192

headers/APEX_format.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
\usepackage{ifthen}
22

3-
\usepackage[HTML]{xcolor} % must occur before qrcode in apex_style
3+
\PassOptionsToPackage{HTML}{xcolor}
4+
%\usepackage[HTML]{xcolor} % must occur before qrcode in apex_style
45
\usepackage{tikz}
56
\usetikzlibrary{calc}
67

@@ -52,7 +53,7 @@
5253
\RequirePackage{calc}
5354

5455
\RequirePackage[nocomments]{latexml}
55-
\lxDocumentID{APEX}
56+
\lxDocumentID{apex}
5657

5758
\numberwithin{figure}{section}
5859
\newcounter{savefigure}

headers/Header_Calculus.tex

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
\newboolean{abridgeConics}
22
\setboolean{abridgeConics}{true}
33

4+
\usepackage[american]{babel}
5+
6+
\newcommand{\monthYear}{%
7+
\ifcase \month \or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi \space \number \year}
8+
%modified from \today. we could do
9+
%\usepackage[en-US]{datetime2}
10+
%\DTMlangsetup{showdayofmonth=false}
11+
% so that \today is just month and year
12+
%but LaTeXML doesn't have datetime2, so we need this anyway
13+
414
\usepackage{multirow}
515
\usepackage{fancyhdr}
616
%\pgfplotsset{width=\marginparwidth+1pt,compat=1.3}
@@ -322,7 +332,8 @@
322332
\newcommand{\apexindex}{%
323333
\cleardoublepage
324334
\phantomsection
325-
\iflatexml\chapter*{\indexname}\else\addcontentsline{toc}{chapter}{\indexname}\fi
335+
\iflatexml\chapter*{\indexname}\fi
336+
\addcontentsline{toc}{chapter}{\indexname}
326337
% set the ``see'' entries that shouldn't refer to a page number
327338
\ifthenelse{\boolean{calc2included}}{%
328339
\index{$"!$|see {factorial}} % 08 sequences
@@ -338,6 +349,10 @@
338349
}
339350
340351
352+
\newboolean{bsc}
353+
\newcommand{\forwhom}{\ifthenelse{\boolean{bsc}}{ for Bismarck State College}{}}
354+
355+
341356
\usepackage[
342357
bookmarksnumbered,
343358
hidelinks,
@@ -349,7 +364,8 @@
349364
\hypersetup{
350365
pdftitle={APEX Calculus LT},
351366
pdfauthor={UND Math Dept and Greg Hartman, VMI},
352-
unicode
367+
unicode,
368+
pdflang=EN-US
353369
}
354370
\usepackage{bookmark}
355371
@@ -364,7 +380,7 @@
364380
% \apex has to be used after hyperref
365381
% lxNavbar has to come after latexml
366382
\begin{lxNavbar}
367-
\lxRef{coverpagetitle}{\apex\ Calculus LT}\\
383+
\lxRef{lxApexTOC}{Table of Contents}\\
368384
\lxContextTOC
369385
\end{lxNavbar}
370386

headers/apex_style.sty

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -375,29 +375,47 @@
375375
\newcommand*{\lxenumerate}[1]{\begin{enumerate}[#1]}
376376

377377

378-
378+
% this has been annoying
379+
% I want the document to go: #.0, chap title, chap intro, #.1
380+
% I want the TOC to omit the #.0
381+
% I want the pdf bookmarks to keep #.0
382+
% I tried to have a \pdfbookmark to the prerequisite section filed under the chapter,
383+
% but the link was out of order, so it doesn't work
384+
% instead, we'll go with:
385+
% [pdfbookmark]chap title, #.0, [toc]chap title, [pdfbookmark]chap intro, #.1
379386
\newcommand*{\apexchapter}[3][]{%
380387
\setcounter{figure}{0}% in case there are figures before the first section
381388
\clearpage\thispagestyle{empty}\cleardoublepage%
382389
% \setboolean{chapter_already_has_exercises}{false}%
383-
\ifthenelse{\equal{#1}{}}{}{% else, there is a #1 argument
384-
% we want the ``Chapter'' heading to come after the prerequisite section
385-
\stepcounter{chapter}%
390+
\ifthenelse{\equal{#1}{}}{% no prereq section
391+
\chapter{#2}\label{#3}%
392+
}{% else, there is a #1 argument
393+
\refstepcounter{chapter}%
394+
\pdfbookmark[chapter]{\thechapter\ #2}{#3}
386395
\addtocounter{section}{-1}%
387396
\fancyhead[LE]{\chaptername\ \thechapter\ \ \ \ {#2}}%
388-
\let\saveaddcontentsline=\addcontentsline%
389-
\renewcommand{\addcontentsline}[3]{}%
390-
\input{#1}%
391-
\let\addcontentsline=\saveaddcontentsline%
397+
\bgroup
398+
\renewcommand{\addcontentsline}[3]{}%
399+
\let\oldsection=\section
400+
\renewcommand{\section}[1]{%
401+
\oldsection{##1}
402+
\label{prereq#3}
403+
\pdfbookmark[section]{\thesection\ ##1}{prereq#3}
404+
}
405+
\input{#1}%
406+
\egroup
407+
\restoregeometry
408+
% the grouping intercepted the restoregeometry at the end of the prereq's exercises
392409
\fancyhead[LE]{\nouppercase{\leftmark}}%
393-
\addtocounter{chapter}{-1}%
394-
\setcounter{savefigure}{\value{figure}}% to avoid getting reset by \chapter
395-
}%
396-
\chapter{#2}\label{#3}%
397-
\thispagestyle{empty}%
398-
\ifthenelse{\equal{#1}{}}{}{% else, there is a #1 argument
399-
\setcounter{figure}{\value{savefigure}}%
410+
\chapter*{\thechapter: #2}\label{#3}
411+
% \thispagestyle{fancy}%
412+
\hypersetup{bookmarksdepth=-2}% make the next line not appear in the pdf bookmarks
413+
\addcontentsline{toc}{chapter}{\string\numberline{\arabic{chapter}}#2}
414+
\hypersetup{bookmarksdepth=2}
415+
\pdfbookmark[section]{Chapter Introduction}{#3}
416+
\fancyhead[LE]{\chaptername\ \thechapter\ \ \ \ {#2}}%
400417
}%
418+
\thispagestyle{fancy}%
401419
}
402420

403421

headers/apex_style.sty.ltxml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ DefMacro('\coloredbox{}{}'); # avoids problems?
4848
# exhibit problem:
4949
# \parbox{\linewidth} {\href{https://youtu.be/2CsQ_l1S2_Y}{has underscores}}
5050

51-
DefConstructor('\lxIncludeJavascriptFile{}',
52-
'<ltx:resource type="text/javascript" src="#1" />');
53-
DefConstructor('\lxIncludeCssFile{}',
54-
'<ltx:resource type="text/css" src="#1" />');
51+
DefMacro('\lxIncludeJavascriptFile{}',
52+
'\AtBeginDocument{\lx@include@file{javascript}{#1}}');
53+
DefMacro('\lxIncludeCssFile{}',
54+
'\AtBeginDocument{\lx@include@file{css}{#1}}');
55+
56+
DefConstructor('\lx@include@file{}{}',
57+
'<ltx:resource type="text/#1" src="#2" />');
5558

5659
DefConstructor('\makeStyles{}{}',
5760
'<ltx:resource type="text/css">'.
@@ -117,24 +120,14 @@ DefMacro('\flushinnerequ{}','{#1}');
117120
DefMacro('\flushouterequ{}','{#1}');
118121

119122
# some Macros we do need
123+
120124
DefMacroI('\textcent',undef,"\x{00A2}");
121-
DefMacro('\lvert','\vert');
122-
DefMacro('\rvert','\vert');
123-
DefMacro('\lVert','\Vert');
124-
DefMacro('\rVert','\Vert');
125+
#DefMacro('\lvert','\vert');
126+
#DefMacro('\rvert','\vert');
127+
#DefMacro('\lVert','\Vert');
128+
#DefMacro('\rVert','\Vert');
125129
DefMacro('\lxenumerate{}','\begin{enumerate}');
126130
DefMacro('\psBill'); # todo
127-
#DefMacro('\pdfbookmark[]{}{}','\addcontentsline{toc}{#1}{#2}'); # from hyperref
128-
# that will work if #1 is "chapter" etc, but not a number or missing
129-
# and hyperref doesn't add it to the table of contents
130-
#DefMacro('\pdfbookmark[]{}{}',sub {
131-
# my($gullet,$level,$text,$name)=@_;
132-
# $level //= 'chapter';
133-
# if ( looks_like_number($level) ) {
134-
# $level = ['chapter','section','subsection','subsubsection']->[$level];
135-
# }
136-
# (T_CS('\\'.$level),T_BEGIN,$text,T_END); });
137-
138131

139132
# some macros we don't need
140133
DefMacro('\drawexampleline');

0 commit comments

Comments
 (0)