-
Notifications
You must be signed in to change notification settings - Fork 11
/
algebra.qmd
291 lines (176 loc) · 4.26 KB
/
algebra.qmd
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
{{< include macros.qmd >}}
## Elementary Algebra
::: notes
Mastery of [Elementary Algebra](https://en.wikipedia.org/wiki/Elementary_algebra) (a.k.a. "College Algebra") is a prerequisite for calculus,
which is a prerequisite for Epi 202 and Epi 203,
which are prerequisites for this course (Epi 204).
Nevertheless, each year,
some Epi 204 students are still uncomfortable
with algebraic manipulations of mathematical formulas.
Therefore, I include this section as a quick reference.
:::
### Equalities
:::{#thm-equal-trans}
#### Equalities are transitive
If $a=b$ and $b=c$, then $a=c$
:::
---
:::{#thm-substitution}
#### Substituting equivalent expressions
If $a = b$, then for any function $f(x)$, $f(a) = f(b)$
:::
---
### Inequalities
:::{#thm-add-ineq}
If $a<b$, then $a+c < b+c$
:::
---
:::{#thm-neg-ineq}
#### negating both sides of an inequality
If $a < b$, then: $-a > -b$
:::
---
:::{#thm-mult-ineq}
If $a < b$ and $c \geq 0$, then $ca < cb$.
:::
---
:::{#thm-negative-one}
$$-a = (-1)*a$$
:::
---
### Sums
:::{#thm-add-ident}
#### adding zero changes nothing
$$a+0=a$$
:::
---
:::{#thm-sum-symmetric}
#### Sums are symmetric
$$a+b = b+a$$
:::
---
:::{#thm-sum-assoc}
#### Sums are associative
::: notes
When summing three or more terms, the order in which you sum them does not matter:
:::
$$(a + b) + c = a + (b + c)$$
:::
---
### Products
---
:::{#thm-mult-one}
#### Multiplying by 1 changes nothing
$$a \times 1 = a$$
:::
---
:::{#thm-prod-symmetric}
#### Products are symmetric
$$a \times b = b \times a$$
:::
---
:::{#thm-prod-assoc}
#### Products are associative
$$(a \times b) \times c = a \times (b \times c)$$
:::
### Division
:::{#thm-prod-div}
#### Division can be written as a product
$$\frac {a}{b} = a \times \frac{1}{b}$$
:::
### Sums and products together
---
:::{#thm-mult-distr}
#### Multiplication is distributive
$$a(b+c) = ab + ac$$
:::
---
### Quotients
:::{#def-quotient}
#### Quotients, fractions, rates
::: notes
A **quotient**, **fraction**, or **rate** is a division of one quantity by another:
:::
$$\frac{a}{b}$$
::: notes
In epidemiology, rates typically have a quantity involving time or population in the denominator.
c.f. <https://en.wikipedia.org/wiki/Rate_(mathematics)>
:::
:::
:::{#def-ratio}
#### Ratios
A **ratio** is a quotient in which the numerator and denominator are measured using the same unit scales.
::: notes
c.f. <https://en.wikipedia.org/wiki/Ratio>
:::
:::
---
:::{#def-proportion}
### Proportion
In statistics, a "proportion" typically means a ratio where the numerator represents
a subset of the denominator.
:::: notes
See <https://en.wikipedia.org/wiki/Population_proportion>.
See also <https://en.wikipedia.org/wiki/Proportion_(mathematics)> for other meanings.
::::
:::
---
:::{#def-proportional}
### Proportional
Two functions $f(x)$ and $g(x)$ are **proportional** if
their ratio $\frac{f(x)}{g(x)}$ does not depend on $x$.
(c.f. <https://en.wikipedia.org/wiki/Proportionality_(mathematics)>)
:::
---
Additional reference for elementary algebra:
<https://en.wikipedia.org/wiki/Population_proportion#Mathematical_definition>
---
## Exponentials and Logarithms
:::{#thm-log-prod}
#### logarithm of a product is the sum of the logs of the factors
$$
\log{a\cd b} = \log{a} + \log{b}
$$
:::
:::{#cor-log-quot}
#### logarithm of a quotient
::: notes
The logarithm of a quotient is equal to the difference of the logs of the factors:
:::
$$\log{\frac{a}{b}} = \log{a} - \log{b}$$
:::
:::{#thm-log-exp}
#### logarithm of an exponential function
$$
\log{a^b} = b \cd \log{a}
$$
:::
:::{#thm-exp-sum}
#### exponential of a sum
::: notes
The exponential of a sum is equal to the product of the exponentials of the addends:
:::
$$\exp{a+b} = \exp{a} \cd \exp{b}$$
:::
:::{#cor-exp-sum}
#### exponential of a difference
::: notes
The exponential of a difference is equal to the quotient of the exponentials of the addends:
:::
$$\exp{a-b} = \frac{\exp{a}}{\exp{b}}$$
:::
---
:::{#thm-double-exp}
#### exponential of a product
$$a^{bc} = \paren{a^b}^c = \paren{a^c}^b$$
:::
---
:::{#cor-exp-ab}
#### natural exponential of a product
$$\exp{ab} = (\exp{a})^b = (\exp{b})^a$$
:::
---
:::{#thm-log-exp}
#### exp{} and log{} are mutual inverses
$$\exp{\log{a}} = \log{\exp{a}} = a$$
:::