forked from byoshiwara/mfg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsection-2-4.xml
More file actions
400 lines (379 loc) · 23 KB
/
section-2-4.xml
File metadata and controls
400 lines (379 loc) · 23 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
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<?xml version="1.0" encoding="UTF-8" ?>
<!-- <mathbook><book> -->
<section xml:id="MathModels" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Functions as Mathematical Models</title>
<introduction></introduction>
<subsection><title>The Shape of the Graph</title>
<p>
Creating a good model for a situation often begins with deciding what kind of function to use. An appropriate model can depend on very qualitative considerations, such as the general shape of the graph. What sort of function has the right shape to describe the process we want to model? Should it be increasing or decreasing, or some combination of both? Is the slope constant or is it changing?</p>
<p> In Examples <xref ref="example-home-to-school" text="global"/> and <xref ref="concavity" text="global"/>, we investigate how the shape of a graph illustrates the nature of the process it models.</p>
<example xml:id="example-home-to-school">
<p>
Forrest leaves his house to go to school. For each of the following situations, sketch a possible graph of Forrest's distance from home as a function of time.
<ol label="a">
<li><p>Forrest walks at a constant speed until he reaches the bus stop.</p></li>
<li><p>Forrest walks at a constant speed until he reaches the bus stop; then he waits there until the bus arrives.</p></li>
<li><p>Forrest walks at a constant speed until he reaches the bus stop, waits there until the bus arrives, and then the bus drives him to school at a constant speed.</p></li>
</ol>
</p>
<solution>
<ol label="a">
<li><p>The graph is a straight-line segment, as shown in <xref ref="fig-home-to-school" text="type-global"/>a. It begins at the origin because at the instant Forrest leaves the house, his distance from home is 0. (In other words, when <m>t = 0, y = 0</m>.) The graph is a straight line because Forrest has a constant speed. The slope of the line is equal to Forrest’s walking speed.
<figure xml:id="fig-home-to-school"><caption></caption><image source="images/fig-home-to-school" width="100%"><description>distance from home</description></image></figure>
</p></li>
<li><p>The graph begins like the graph in part (a). But while Forrest waits for the bus, his distance from home remains constant, so the graph at that time is a horizontal line, as shown in <xref ref="fig-home-to-school" text="type-global"/>b. The line has slope <m>0</m> because while Forrest is waiting for the bus, his speed is <m>0</m>.
</p></li>
<li><p>
The graph begins like the graph in part (b). The last section of the graph represents the bus ride. It has a constant slope because the bus is moving at a constant speed. Because the bus (probably) moves faster than Forrest walks, the slope of this segment is greater than the slope for the walking section. The graph is shown in <xref ref="fig-home-to-school" text="type-global"/>c.
</p></li>
</ol>
</solution>
</example>
<exercise xml:id="exercise-walk-to-store"><statement>
Erin walks from her home to a convenience store, where she buys some cat food, and then walks back home. Sketch a possible graph of her distance from home as a function of time.
</statement>
<answer><p><image source="images/fig-in-ex-ans-2-4-1" width="50%"><description>piecewise graph</description></image> </p></answer>
</exercise>
<p>
The graphs in <xref ref="example-home-to-school" text="type-global"/> are piecewise linear, because Forrest traveled at a constant rate in each segment. In addition to choosing a graph that is increasing, decreasing, or constant to model a process, we can consider graphs that bend upward or downward. The bend is called the <term>concavity</term><idx>concavity</idx> of the graph.
</p>
<example xml:id="concavity">
<p>The two functions described in this example are both increasing functions, but they increase in different ways. Match each function to its graph in <xref ref="fig-concavity" text="type-global"/> and to the appropriate table of values.</p>
<ol label="a">
<li><p>The number of flu cases reported at an urban medical center during an epidemic is an increasing function of time, and it is growing at a faster and faster rate.</p></li>
<li><p>The temperature of a potato placed in a hot oven increases rapidly at first, then more slowly as it approaches the temperature of the oven.</p></li>
</ol>
<sidebyside>
<table xml:id="table-flu-cases"><tabular top="major" halign="center" right="minor" left="minor" bottom="minor">
<row bottom="minor">
<cell><m>x</m></cell>
<cell><m>0</m></cell>
<cell><m>2</m></cell>
<cell><m>5</m></cell>
<cell><m>10</m></cell>
<cell><m>15</m></cell>
</row>
<row>
<cell><m>y</m></cell>
<cell><m>70</m></cell>
<cell><m>89</m></cell>
<cell><m>123</m></cell>
<cell><m>217</m></cell>
<cell><m>383</m></cell>
</row>
</tabular><caption></caption></table>
<table xml:id="table-oven-temperature"><tabular top="major" halign="center" right="minor" left="minor" bottom="minor">
<row bottom="minor">
<cell><m>x</m></cell>
<cell><m>0</m></cell>
<cell><m>2</m></cell>
<cell><m>5</m></cell>
<cell><m>10</m></cell>
<cell><m>15</m></cell>
</row>
<row>
<cell><m>y</m></cell>
<cell><m>70</m></cell>
<cell><m>219</m></cell>
<cell><m>341</m></cell>
<cell><m>419</m></cell>
<cell><m>441</m></cell>
</row>
</tabular><caption></caption></table>
</sidebyside>
<figure xml:id="fig-concavity"><caption></caption><image source="images/fig-concavity" width="80%"><description>increasing graphs of opposite concavity</description></image></figure>
<solution>
<ol label="a">
<li><p>The number of flu cases is described by <xref ref="fig-concavity" text="type-global"/>(A) and <xref ref="table-flu-cases" text="type-global"/>. The function values in <xref ref="table-flu-cases" text="type-global"/> increase at an increasing rate. We can see this by computing the rate of change over successive time intervals.
<md><mrow>x = 0 \text{ to } x = 5: </mrow>
<mrow>m = \frac{\Delta y}{\Delta x}=\frac{123-70}{5-0} = 10.6</mrow>
<mrow></mrow>
<mrow> x = 5\text{ to } x = 10:</mrow>
<mrow> m = \frac{\Delta y}{\Delta x}=\frac{217-123}{10-5} = 18.8</mrow>
<mrow></mrow>
<mrow>x = 10 \text{ to } x = 15:</mrow>
<mrow>m = \frac{\Delta y}{\Delta x}
=\frac{383 - 217}{15 - 10} = 33.2</mrow> </md>
The increasing rates can be seen in <xref ref="fig-concave-up" text="type-global" />; the graph bends upward as the slopes increase.
<figure xml:id="fig-concave-up"><caption></caption><image source="images/fig-concave-up" width="50%"><description>cocave up graph</description></image></figure>
</p></li>
<li><p>
The temperature of the potato is described by <xref ref="fig-concavity" text="type-global"/>(B) and <xref ref="table-oven-temperature" text="type-global"/>. The function values in table (2) increase, but at a decreasing rate.
<md><mrow>x = 0\text { to } x = 5:</mrow>
<mrow>m =\frac{\Delta y}{\Delta x}=\frac{341-70}{5 - 0}= 54.2</mrow>
<mrow></mrow>
<mrow>x = 5 \text{ to } x = 10:</mrow>
<mrow>m =\frac{\Delta y}{\Delta x}=\frac{419 - 341}{10 - 5}= 15.6</mrow>
<mrow></mrow>
<mrow>x = 10 \text{ to } x = 15:</mrow>
<mrow>m =\frac{\Delta y}{\Delta x}=\frac{441 - 419}{15 - 10}= 4.4</mrow>
</md>
The decreasing slopes can be seen in <xref ref="fig-concave-down" text="type-global"/>. The graph is increasing but bends downward.
<figure xml:id="fig-concave-down"><caption></caption><image source="images/fig-concave-down" width="45%"><description>cocave down graph</description></image></figure>
</p></li>
</ol>
</solution></example>
<exercise xml:id="exercise-concavity"><statement>
Francine bought a cup of cocoa at the cafeteria. The cocoa cooled off rapidly at first, and then gradually approached room temperature. Which graph in <xref ref="fig-concavity2" text="type-global"/> more accurately reflects the temperature of the cocoa as a function of time? Explain why. Is the graph you chose concave up or concave down?
<figure xml:id="fig-concavity2"><caption></caption><image source="images/fig-concavity2" width="50%"><description>decreasing graphs of opposite concavity</description></image></figure>
</statement>
<answer><p>
(a): The graph has a steep negative slope at first, corresponding to an initial rapid drop in the temperature of the cocoa. The graph becomes closer to a horizontal line, corresponding to the cocoa approaching room temperature. The graph is concave up.</p></answer>
</exercise>
</subsection>
<subsection><title>Using the Basic Functions as Models</title>
<p>
In this section, we consider some situations that can be modeled by the basic functions. <xref ref="example-sound" text="type-global"/> illustrates an application of the function <m>f (x) =\sqrt{x}</m>.
</p>
<example xml:id="example-sound">
<p>
The speed of sound is a function of the temperature of the air in kelvins. (The temperature, <m>T</m>, in kelvins is given by <m>T = C + 273</m>, where <m>C</m> is the temperature in degrees Celsius.) The table shows the speed of sound, <m>s</m>, in meters per second, at various temperatures, <m>T</m>.
</p><p>
<sidebyside><tabular top="major" halign="center" right="minor" left="minor" bottom="minor">
<row bottom="minor">
<cell><m>T ~ (\degree K)</m></cell>
<cell><m>0</m></cell>
<cell><m>20</m></cell>
<cell><m>50</m></cell>
<cell><m>100</m></cell>
<cell><m>200</m></cell>
<cell><m>400</m></cell>
</row>
<row>
<cell><m>T ~ (\text{m/sec})</m></cell>
<cell><m>0</m></cell>
<cell><m>89.7</m></cell>
<cell><m>141.8</m></cell>
<cell><m>200.6</m></cell>
<cell><m>283.7</m></cell>
<cell><m>401.2</m></cell>
</row>
</tabular></sidebyside></p>
<ol label="a">
<li><p>
Plot the data to obtain a graph. Which of the basic functions does your graph most resemble?</p></li>
<li><p>
Find a value of <m>k</m> so that <m>s = k f (T )</m> fits the data.</p></li>
<li><p>
On a summer night when the temperature is 20° Celsius, you see a flash of lightning, and <m>6</m> seconds later you hear the thunderclap. Use your function to estimate your distance from the thunderstorm.</p></li>
</ol>
<solution>
<ol label="a">
<li><p>
The graph of the data is shown in <xref ref="fig-speed-sound" text="type-global" />. The shape of the graph reminds us of the square root function, <m>y = \sqrt{x}</m>.
<figure xml:id="fig-speed-sound"><caption></caption><image source="images/fig-speed-sound" width="50%"><description>speed of sound</description></image></figure>
</p></li>
<li><p>
We are looking for a value of <m>k</m> so that the function <m>f (T ) = k \sqrt{T}</m> fits the data. We substitute one of the data points into the formula and solve for <m>k</m>. If we choose the point <m>(100, 200.6)</m>, we obtain
<me>200.6 = k \sqrt{100 }</me>
and solving for <m>k</m> yields <m>k = 20.06</m>. We can check that the formula <m>s = 20.06 \sqrt{T} </m> is a good fit for the rest of the data points as well. Thus, we suggest the function
<me>f (T ) = 20.06\sqrt{T}</me>
as a model for the speed of sound.
</p></li>
<li>
<p>First, use the model to calculate the speed of sound at a temperature of 20° Celsius. The Kelvin temperature is
<me>T = 20 + 273 = 293</me>
so we evaluate <m>s = f (T )</m> for <m>T = 293</m>.
<me>f (293) = 20.06\sqrt{293}\approx 343.4</me>
Thus, <m>s</m> is approximately 343.4 meters per second.</p><p></p>
<p>
The lightning and the thunderclap occur simultaneously, and the speed of light is so fast (about 30,000,000 meters per second) that we see the lightning flash as it occurs. So if the sound of the thunderclap takes <m>6</m> seconds after the flash to reach us, we can use our calculated speed of sound to find our distance from the storm.
\begin{align}
\text{distance} \amp= \text{speed} \times \text{time} \\
\amp = (343.4\text{ m/sec}) (6 \text{ sec}) = 2060.4 \text{ meters}
\end{align}
The thunderstorm is <m>2060</m> meters, or about <m>1.3</m> miles, away.
</p>
</li>
</ol>
</solution></example>
<exercise xml:id="exercise-UVI"><statement><p>
The ultraviolet index (UVI) is issued by the National Weather Service as a forecast of the amount of ultraviolet radiation expected to reach Earth around noon on a given day. The data show how much exposure to the sun people can take before risking sunburn.</p><p>
<sidebyside><tabular top="major" halign="center" right="minor" left="minor" bottom="minor">
<row bottom="minor">
<cell>UVI</cell>
<cell><m>2</m></cell>
<cell><m>3</m></cell>
<cell><m>4</m></cell>
<cell><m>5</m></cell>
<cell><m>6</m></cell>
<cell><m>8</m></cell>
<cell><m>10</m></cell>
<cell><m>12</m></cell>
</row>
<row>
<cell><line>Minutes to burn</line><line>(more sensitive)</line></cell>
<cell><m>30</m></cell>
<cell><m>20</m></cell>
<cell><m>15</m></cell>
<cell><m>12</m></cell>
<cell><m>10</m></cell>
<cell><m>7.5</m></cell>
<cell><m>6</m></cell>
<cell><m>5</m></cell>
</row>
<row>
<cell><line>Minutes to burn</line><line>(more sensitive)</line></cell>
<cell><m>150</m></cell>
<cell><m>100</m></cell>
<cell><m>75</m></cell>
<cell><m>60</m></cell>
<cell><m>50</m></cell>
<cell><m>37.5</m></cell>
<cell><m>30</m></cell>
<cell><m>25</m></cell>
</row>
</tabular></sidebyside>
<ol label="a">
<li><p>Plot <m>m</m>, the minutes to burn, against <m>u</m>, the UVI, to obtain two graphs, one for people who are more sensitive to sunburn, and another for people less sensitive to sunburn. Which of the basic functions do your graphs most resemble?</p></li>
<li><p>For each graph, find a value of <m>k</m> so that <m>m = k f(u)</m> fits the data.</p></li>
</ol>
</p></statement>
<answer><p><ol label="a">
<li><p><image source="images/fig-in-ex-ans-2-4-3" width="40%"><description>two concave up decreasing curves</description></image>
The graphs resemble <m>f (x) = \frac{1}{x}</m>.
</p></li>
<li><p>More sensitive: <m>k = 60</m>, Less sensitive: <m>k = 300</m> </p></li>
</ol></p></answer>
</exercise>
<p>
At this point, a word of caution is in order. There is more to choosing a model than finding a curve that fits the data. A model based purely on the data is called an <term>empirical model</term><idx>empirical model</idx>. However, many functions have similar shapes over small intervals of their input variables, and there may be several candidates that model the data. Such a model simply describes the general shape of the data set; the parameters of the model do not necessarily correspond to any actual process.
</p>
<p>
In contrast, <term>mechanistic models</term><idx>mechanistic models</idx> provide insight into the biological, chemical, or physical process that is thought to govern the phenomenon under study. Parameters derived from mechanistic models are quantitative estimates of real system properties. Here is what GraphPad Software has to say about modeling:
</p>
<p>
"Choosing a model is a scientific decision. You should base your choice on your understanding of chemistry or physiology (or genetics, etc.). The choice should not be based solely on the shape of the graph.
</p>
<p>
"Some programs . . . automatically fit data to hundreds or thousands of equations and then present you with the equation(s) that fit the data best. Using such a program is appealing because it frees you from the need to choose an equation. The problem is that the program has no understanding of the scientific context of your experiment. The equations that fit the data best are unlikely to correspond to scientifically meaningful models. You will not be able to interpret the best-fit values of the variables, and the results are unlikely to be useful for data analysis."</p>
<p> (Source: <em>Fitting Models to Biological Data Using Linear and Nonlinear Regression</em>, Motulsky <ampersand/> Christopoulos, GraphPad Software, 2003)
</p>
</subsection>
<subsection><title>Modeling with Piecewise Functions</title>
<p>
Recall that a piecewise function is defined by different formulas on different portions of the <m>x</m>-axis.
</p>
<example xml:id="example-income-tax">
<p>
In 2005, the income tax <m>T(x)</m> for a single taxpayer with a taxable income <m>x</m> under <dollar/>150,000 was given by the following table.
</p>
<table>
<caption>(Source: www.savewealth.com/taxes/rates)</caption>
<tabular top="major" halign="left" right="minor" left="minor" bottom="minor">
<col halign="left" />
<col />
<col />
<col />
<col />
<col halign="left"/>
<!-- -->
<row>
<cell colspan="2" halign="center">If taxpayer's income is...</cell>
<cell colspan="3" halign="center">Then the estimated tax is...</cell>
</row>
<row bottom="medium">
<cell>Over</cell>
<cell>But not over</cell>
<cell>Base tax</cell>
<cell>+Rate</cell>
<cell>Of the amount over</cell>
</row>
<row>
<cell><dollar/>0</cell>
<cell><dollar/>7300</cell>
<cell><dollar/>0</cell>
<cell>10<percent/></cell>
<cell><dollar/>0</cell>
</row>
<row>
<cell><dollar/>7300</cell>
<cell><dollar/>29,700</cell>
<cell><dollar/>730</cell>
<cell>15<percent/></cell>
<cell><dollar/>7300</cell>
</row>
<row>
<cell><dollar/>29,700</cell>
<cell><dollar/>71,950</cell>
<cell><dollar/>4090</cell>
<cell>25<percent/></cell>
<cell><dollar/>29,700</cell>
</row>
<row>
<cell><dollar/>71,950</cell>
<cell><dollar/>150,150</cell>
<cell><dollar/>14,652.50</cell>
<cell>28<percent/></cell>
<cell><dollar/>71,950</cell>
</row>
</tabular>
</table>
<ol label="a">
<li><p>Calculate the tax on incomes of <dollar/>500, <dollar/>29,700, and <dollar/>40,000.</p></li>
<li><p>Write a piecewise function for <m>T(x)</m>.</p></li>
<li><p>Graph the function <m>T(x)</m>.</p></li>
</ol>
<solution>
<ol label="a">
<li><p>
An income of <m>x = \alert{500}</m> is in the first tax bracket, so the tax is
<me>T(\alert{500}) = 0 + 0.10(\alert{500}) = 50</me>
The income <m>x = 29,700</m> is just on the upper edge of the second tax bracket. The amount over <dollar/>7300 is <dollar/>29,700 - <dollar/>7300, so
<me>T(\alert{29,700}) = 730 + 0.15(\alert{29,700} - 7300) = 4090</me>
The income <m>x = 40,000</m> is in the third bracket, so the tax is
<me>T (\alert{40,000}) = 4090 + 0.25(\alert{40,000} - 29,700) = 6665</me></p></li>
<li><p>
The first two columns of the table give the tax brackets, or the <m>x</m>-intervals on which each piece of the function is defined. In each bracket, the tax <m>T(x)</m> is given by
<me>\text{Base tax} + \text{Rate}\cdot(\text{Amount over bracket base}) </me>
For example, the tax in the second bracket is
<me>T (x) = 730 + 0.15(x - 7300)</me>
Writing the formulas for each of the four tax brackets gives us
<me>
T(x) =
\begin{cases}
0.10x \amp 0 \le x \le 7300\\
730 + 0.15(x - 7300) \amp 7300\lt x\le 29,700\\
4090 + 0.25(x - 29,700) \amp 29,700\lt x\le 71,950\\
14,652.50 + 0.28(x - 71,950)\amp 71,950\lt x\le 150,150\\
\end{cases}
</me>
</p></li>
<li><p>
The graph of <m>T</m> is piecewise linear.
<ul>
<li>The first piece starts at the origin and has slope <m>0.10</m>.</li>
<li> The second piece is in point-slope form, <m>y = y_1 + m(x - x_1)</m>, so it has slope <m>0.15</m> and passes through the point <m>(7300, 730)</m>.</li>
<li> Similarly, the third piece has slope <m>0.25</m> and passes through <m>(29,700, 40,490)</m>.</li>
<li> The fourth piece has slope <m>0.28</m> and passes through <m>(71,950, 14,652.5)</m>.</li>
</ul>
<p></p>
<p> You can check that for this function, all four pieces are connected at their endpoints, as shown in <xref ref="fig-income-tax" text="type-global" />.</p>
<figure xml:id="fig-income-tax"><caption></caption><image source="images/fig-income-tax" width="40%"><description>income tax graph</description></image></figure>
</p></li>
</ol>
</solution>
</example>
<exercise xml:id="exercise-water-bill"><statement>
As part of a water conservation program, the utilities commission in Arid, New Mexico, establishes a two-tier system of monthly billing for residential water usage: The commission charges a <dollar/>30 service fee plus <dollar/>2 per hundred cubic feet (HCF) of water if you use 50 HCF or less, and a <dollar/>50 service fee plus <dollar/>3 per HCF of water if you use over 50 HCF (1 HCF of water is about 750 gallons).
<ol label="a">
<li><p>Write a piecewise formula for the water bill, <m>B(w)</m>, as a function of the amount of water used, <m>w</m>, in HCF.</p></li>
<li><p>Graph the function <m>B</m>.</p></li>
</ol>
</statement>
<answer><p><ol label="a">
<li><p><m>
B(w) =
\begin{cases}
30 + 2w \amp 0 \le w \le 50\\
50 + 3w \amp w \gt 50\\
\end{cases}
</m>
</p></li>
<li><p><image source="images/fig-in-ex-ans-2-4-4" width="40%"><description>broken piecewise graph</description></image> </p></li>
</ol></p></answer></exercise>
</subsection>
<xi:include href="./summary-2-4.xml" /> <!-- summary -->
<xi:include href="./section-2-4-exercises.xml" /> <!-- exercises -->
</section>
<!-- </book> </mathbook> -->