You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aeaa8de
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: 01-basics.Rmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# The Basics {#the-basics}
2
2
3
-
Water engineering calculations depend on reliable algebra. Flow, storage, concentration, pressure, and treatment problems all require careful work with numbers, expressions, equations, and inequalities. This chapter begins with real numbers and arithmetic, then develops sets, exponents, roots, polynomials, equations, lines, rational expressions, and inequalities. Units and physical restrictions remain part of every calculation. A solution is complete only when its algebra is correct, its units are appropriate, and its meaning is reasonable in context.
3
+
Water engineering calculations depend on reliable algebra. Flow, storage, concentration, pressure, and treatment problems all require careful work with numbers, expressions, equations, and inequalities. This chapter begins with real numbers and arithmetic, then develops sets, exponents, roots, polynomials, equations, lines, rational expressions, and inequalities. Units and physical restrictions remain part of every calculation. A solution is complete only when its algebra is correct, its units are appropriate, and its meaning is reasonable in context.
Copy file name to clipboardExpand all lines: 02-functions.Rmd
+75-33Lines changed: 75 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Functions {#functions}
2
2
3
-
Functions provide a precise way to describe how one quantity depends on another. In water engineering, a function may connect time to tank volume, flow to pressure loss, concentration to sensor output, or pipe diameter to cross-sectional area. A function is more than a formula. Its domain states which inputs are permitted, its range states which outputs occur, and its graph shows how the output changes. This chapter follows the progression of the MATH 128 notes from function notation and graphs through rates of change, transformations, combinations, composition, one-to-one and onto behaviour, and inverse functions. Throughout the chapter, units and physical restrictions are treated as part of the model.
3
+
Functions provide a precise way to describe how one quantity depends on another. In water engineering, a function may connect time to tank volume, flow to pressure loss, concentration to sensor output, or pipe diameter to cross-sectional area. A function is more than a formula. Its domain states which inputs are permitted, its range states which outputs occur, and its graph shows how the output changes.
4
+
5
+
This chapter progresses from function notation and graphs through rates of change, transformations, combinations, composition, one-to-one and onto behaviour, and inverse functions. Throughout the chapter, units and physical restrictions are treated as part of the model.
4
6
5
7
::: {.learning-outcomes}
6
8
**Learning outcomes.** By the end of this chapter, you should be able to:
@@ -68,13 +70,11 @@ The entire expression $x+h$ replaces the original input variable.
68
70
**Domain.** The set of inputs for which a function is defined.
69
71
:::
70
72
71
-
::: {.definition-box}
72
-
**Range.** The set of outputs a function actually produces.
73
-
:::
73
+
74
74
75
75
The algebraic domain is found by excluding operations that are undefined over the real numbers. A denominator cannot equal zero. The radicand of an even root must be nonnegative, and it must be positive when that root appears in a denominator. Logarithmic inputs, introduced later, must be positive. Physical models may add restrictions such as $t\ge0$, $Q\ge0$, or a maximum equipment setting.
76
76
77
-
Range is often easiest to determine from a graph. The function $g(x)=|x|$ has domain $\mathbb R$ and range $[0,\infty)$. A quadratic opening upward has a minimum output at its vertex. A reciprocal function may exclude a horizontal value. State range restrictions on outputs, not inputs.
77
+
78
78
79
79
::: {.worked-example}
80
80
[**Worked Example: Finding a radical domain**]{.worked-example-title}
@@ -91,6 +91,18 @@ the denominator requires $x(x+3)>0$. A sign chart gives $x<-3$ or $x>0$, so the
91
91
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>The denominator requires $x-5>0$, so the domain is $(5,\infty)$.</details>
92
92
:::
93
93
94
+
95
+
96
+
97
+
::: {.definition-box}
98
+
**Range.** The set of outputs a function actually produces.
99
+
:::
100
+
101
+
102
+
Range is often easiest to determine from a graph. The function $g(x)=|x|$ has domain $\mathbb R$ and range $[0,\infty)$. A quadratic opening upward has a minimum output at its vertex. A reciprocal function may exclude a horizontal value. State range restrictions on outputs, not inputs.
103
+
104
+
105
+
94
106
::: {.worked-example}
95
107
[**Worked Example: Interpreting the range of a storage model**]{.worked-example-title}
96
108
@@ -131,6 +143,25 @@ Familiar parent graphs make it possible to recognize new functions quickly. Piec
131
143
132
144
Important parent functions include constant and linear functions, powers such as $x^2$ and $x^3$, roots such as $\sqrt{x}$ and $\sqrt[3]{x}$, reciprocal functions such as $1/x$ and $1/x^2$, and the absolute-value function $|x|$. For each, know the general shape, domain, range, intercepts, symmetry, and asymptotes.
133
145
146
+
147
+
148
+

149
+
150
+
151
+
152
+
::: {.worked-example}
153
+
[**Worked Example: Recognizing an absolute-value response**]{.worked-example-title}
154
+
155
+
The function $E(x)=|x-7|$ measures distance from the target 7. Its graph is V-shaped, has vertex $(7,0)$, domain $\mathbb R$, and range $[0,\infty)$.
156
+
:::
157
+
158
+
::: {.try-it}
159
+
**Try It.** State the vertex and range of $y=|x+3|$.
160
+
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>The vertex is $(-3,0)$ and the range is $[0,\infty)$.</details>
161
+
:::
162
+
163
+
164
+
134
165
A piecewise function uses different rules on different parts of its domain. Endpoint symbols determine which rule applies. A solid point represents an included endpoint, while an open point represents an excluded endpoint. Evaluate a boundary input using the rule whose condition includes equality.
135
166
136
167
::: {.worked-example}
@@ -148,16 +179,7 @@ Then $P(4)=48$ and $P(5)=60$. The second rule is used at $t=5$ because it includ
148
179
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>$P(7)=60+8(7-5)=76$.</details>
149
180
:::
150
181
151
-
::: {.worked-example}
152
-
[**Worked Example: Recognizing an absolute-value response**]{.worked-example-title}
153
-
154
-
The function $E(x)=|x-7|$ measures distance from the target 7. Its graph is V-shaped, has vertex $(7,0)$, domain $\mathbb R$, and range $[0,\infty)$.
155
-
:::
156
182
157
-
::: {.try-it}
158
-
**Try It.** State the vertex and range of $y=|x+3|$.
159
-
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>The vertex is $(-3,0)$ and the range is $[0,\infty)$.</details>
160
-
:::
161
183
162
184
### Net change, average rate of change, and difference quotients
163
185
@@ -169,11 +191,7 @@ Between inputs $a$ and $b$, net change is $f(b)-f(a)$ and average rate of change
169
191
170
192
$$\frac{f(b)-f(a)}{b-a}.$$
171
193
172
-
Its units are output units per input unit. For inputs $a$ and $a+h$, this becomes the difference quotient
173
-
174
-
$$\frac{f(a+h)-f(a)}{h},\qquad h\ne0.$$
175
-
176
-
For a linear function, the average rate of change is constant and equals its slope. For nonlinear functions, it depends on the interval.
194
+
Its units are output units per input unit.
177
195
178
196
::: {.worked-example}
179
197
[**Worked Example: Finding an average inflow rate**]{.worked-example-title}
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>$(30-18)/(10-4)=2$ m³/min.</details>
189
207
:::
190
208
209
+
210
+
For inputs $a$ and $a+h$, the average value becomes the difference quotient
211
+
212
+
$$\frac{f(a+h)-f(a)}{h},\qquad h\ne0.$$
213
+
214
+
For a linear function, the average rate of change is constant and equals its slope. For nonlinear functions, it depends on the interval.
215
+
216
+
217
+
191
218
::: {.worked-example}
192
219
[**Worked Example: Simplifying a difference quotient**]{.worked-example-title}
193
220
@@ -226,15 +253,7 @@ Graphs support both qualitative interpretation and numerical problem solving. Th
226
253
227
254
The solutions of $f(x)=g(x)$ are the $x$-coordinates where their graphs intersect. The inequality $f(x)<g(x)$ holds where the graph of $f$ lies below the graph of $g$. Include intersection points only when equality is part of the comparison.
228
255
229
-
::: {.definition-box}
230
-
**Increasing function.** A function whose outputs rise as inputs increase on a specified interval.
231
-
:::
232
256
233
-
::: {.definition-box}
234
-
**Local extremum.** A local maximum or minimum value compared with nearby function values.
235
-
:::
236
-
237
-
An interval of increase or decrease is described with input values. A turning point may be a local maximum or minimum. A graph can have several local extrema, and a local extremum need not be the greatest or least value on the entire domain.
238
257
239
258
::: {.worked-example}
240
259
[**Worked Example: Solving an equation graphically**]{.worked-example-title}
@@ -247,6 +266,22 @@ To solve $x^2-1=8-x^2$, graph $y=x^2-1$ and $y=8-x^2$. Their intersections satis
247
266
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>$x=-2$ and $x=2$.</details>
248
267
:::
249
268
269
+
270
+

271
+
272
+
::: {.definition-box}
273
+
**Increasing function.** A function whose outputs rise as inputs increase on a specified interval.
274
+
:::
275
+
276
+
::: {.definition-box}
277
+
**Local extremum.** A local maximum or minimum value compared with nearby function values.
278
+
:::
279
+
280
+
An interval of increase or decrease is described with input values. A turning point may be a local maximum or minimum. A graph can have several local extrema, and a local extremum need not be the greatest or least value on the entire domain.
281
+
282
+
283
+
284
+
250
285
::: {.worked-example}
251
286
[**Worked Example: Describing a quadratic's behaviour**]{.worked-example-title}
252
287
@@ -262,6 +297,9 @@ For $f(x)=-(x-3)^2+8$, the vertex $(3,8)$ is a maximum. The function increases o
262
297
263
298
If $c>0$, $f(x)+c$ shifts upward and $f(x)-c$ shifts downward. The graph of $f(x-c)$ shifts right, while $f(x+c)$ shifts left. The graph of $-f(x)$ reflects across the $x$-axis, and $f(-x)$ reflects across the $y$-axis. Multiplying by $a$ changes vertical scale by $|a|$ and reflects vertically when $a<0$. Replacing $x$ by $kx$ changes horizontal scale by $1/|k|$.
264
299
300
+
301
+

302
+
265
303
Order matters. Work from inside to outside: horizontal scale, horizontal shift, vertical scale or reflection, then vertical shift. Track a small set of key points rather than producing a new table from scratch.
266
304
267
305
::: {.worked-example}
@@ -361,12 +399,6 @@ The composition converts time directly to area.
361
399
362
400
The horizontal line test identifies one-to-one graphs. Algebraically, assume $f(a)=f(b)$ and show that $a=b$. To prove that a function is not one-to-one, one counterexample with two inputs sharing an output is enough.
363
401
364
-
::: {.definition-box}
365
-
**Onto function.** A function whose range equals its stated codomain.
366
-
:::
367
-
368
-
Onto depends on the codomain. The rule $f(x)=x^2$ from $\mathbb R$ to $\mathbb R$ is not onto because it produces no negative outputs. The same rule from $\mathbb R$ to $[0,\infty)$ is onto.
@@ -378,6 +410,16 @@ For $f(x)=5(x-2)^5-7$, suppose $f(a)=f(b)$. Then $(a-2)^5=(b-2)^5$, so $a-2=b-2$
378
410
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>No. For example, $h(0)=0$ and $h(3)=0$.</details>
379
411
:::
380
412
413
+
414
+
415
+
::: {.definition-box}
416
+
**Onto function.** A function whose range equals its stated codomain.
417
+
:::
418
+
419
+
Onto depends on the codomain. The rule $f(x)=x^2$ from $\mathbb R$ to $\mathbb R$ is not onto because it produces no negative outputs. The same rule from $\mathbb R$ to $[0,\infty)$ is onto.
Copy file name to clipboardExpand all lines: 03-polynomial-rational-functions.Rmd
+37-6Lines changed: 37 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# Polynomial and Rational Functions {#polynomial-rational-functions}
2
2
3
-
Polynomial and rational functions describe curved relationships that linear models cannot capture. Quadratic models represent areas and trajectories, higher-degree polynomials can model responses with several turning points, and rational functions describe ratios whose behaviour may change sharply near excluded inputs. This chapter develops the graphical features emphasized in the MATH 128 notes: vertex form, completing the square, intercepts, local extrema, end behaviour, zeros and multiplicity, asymptotes, holes, and systematic graphing. Water-engineering examples include basin dimensions, pump-response curves, and models whose denominators represent operational limits. Algebraic work is connected continually to graph shape and physical interpretation.
3
+
Polynomial and rational functions describe curved relationships that linear models cannot capture. Quadratic models represent areas and trajectories, higher-degree polynomials can model responses with several turning points, and rational functions describe ratios whose behaviour may change sharply near excluded inputs.
4
+
5
+
This chapter develops graphical features of curves: vertex form, completing the square, intercepts, local extrema, end behaviour, zeros and multiplicity, asymptotes, holes, and systematic graphing.
6
+
7
+
Water-engineering examples include basin dimensions, pump-response curves, and models whose denominators represent operational limits. Algebraic work is connected continually to graph shape and physical interpretation.
4
8
5
9
::: {.learning-outcomes}
6
10
**Learning outcomes.** By the end of this chapter, you should be able to:
@@ -23,11 +27,16 @@ A quadratic function has a parabolic graph whose direction, width, vertex, and i
23
27
24
28
### Vertex form and intercepts
25
29
26
-
In vertex form,
30
+
In vertex form, a quadratic has the form:
31
+
32
+
$$f(x)=a(x-h)^2+k.$$
33
+
34
+
The vertex is $(h,k)$. The graph opens upward when $a>0$ and downward when $a<0$. If $a>0$, the vertex gives the minimum value $k$; if $a<0$, it gives the maximum. The magnitude $|a|$ controls vertical stretch or compression. Find $y$-intercepts by setting $x=0$ and $x$-intercepts by solving $f(x)=0$.
35
+
36
+
37
+

27
38
28
-
$$f(x)=a(x-h)^2+k,$$
29
39
30
-
the vertex is $(h,k)$. The graph opens upward when $a>0$ and downward when $a<0$. If $a>0$, the vertex gives the minimum value $k$; if $a<0$, it gives the maximum. The magnitude $|a|$ controls vertical stretch or compression. Find $y$-intercepts by setting $x=0$ and $x$-intercepts by solving $f(x)=0$.
31
40
32
41
::: {.worked-example}
33
42
[**Worked Example: Graphing from vertex form**]{.worked-example-title}
@@ -87,7 +96,7 @@ The vertex is $(-5,-18)$.
87
96
88
97
For $2x^2-12x+5$,
89
98
90
-
$$2(x^2-6x)+5=2[(x-3)^2-9]+5=2(x-3)^2-13.$$
99
+
$$2(x^2-6x)+5=2[(x-3)^2-9]+5=2(x-3)^2-13.$$
91
100
92
101
The vertex is $(3,-13)$.
93
102
:::
@@ -137,6 +146,9 @@ For $P(x)=2x^3-5x^2+x+1$, the leading term is $2x^3$. Therefore, $P(x)\to\infty$
137
146
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>As $x\to\infty$, $P(x)\to-\infty$; as $x\to-\infty$, $P(x)\to\infty$.</details>
138
147
:::
139
148
149
+
150
+

151
+
140
152
::: {.worked-example}
141
153
[**Worked Example: Bounding the number of turns**]{.worked-example-title}
142
154
@@ -159,14 +171,20 @@ At a zero of odd multiplicity, a polynomial changes sign and crosses the axis. A
159
171
::: {.worked-example}
160
172
[**Worked Example: Sketching a factored cubic**]{.worked-example-title}
161
173
162
-
For $P(x)=5(x+2)(x-1)(x-3)$, the zeros $-2$, 1, and 3 all have multiplicity 1, so the graph crosses at each. The $y$-intercept is 30. Positive cubic end behaviour runs from lower left to upper right.
174
+
For $P(x)=5(x+2)(x-1)(x-3)$, the zeros $-2$, $1$, and $3$ all have multiplicity 1, so the graph crosses at each. The $y$-intercept is 30. Positive cubic end behaviour runs from lower left to upper right.
163
175
:::
164
176
165
177
::: {.try-it}
166
178
**Try It.** Describe the intercept behaviour of $x(x-4)^2$.
167
179
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>It crosses at $x=0$ and touches without crossing at $x=4$.</details>
168
180
:::
169
181
182
+
183
+
184
+
185
+
186
+
187
+
170
188
::: {.worked-example}
171
189
[**Worked Example: Interpreting repeated process thresholds**]{.worked-example-title}
172
190
@@ -178,12 +196,19 @@ For $R(q)=-q^2(2q+3)(q-1)$, the zero at $q=0$ has multiplicity 2, so the graph t
178
196
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>It touches at $x=-1$, crosses at $x=3$, and has positive odd-degree behaviour from lower left to upper right.</details>
179
197
:::
180
198
199
+
200
+
201
+
202
+
181
203
::: {.applied-problem}
182
204
**Applied Problem: Analyzing a treatment-response polynomial.** A dimensionless response is $R(q)=-0.01q(q-20)^2(q-50)$. Identify the zeros and their multiplicities, state where the graph crosses or touches the axis, and describe its end behaviour.
183
205
184
206
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>The zeros are 0 and 50 with multiplicity 1, and 20 with multiplicity 2. The graph crosses at 0 and 50 and touches at 20. The degree is 4 and the leading coefficient is negative, so both ends approach $-\infty$.</details>
185
207
:::
186
208
209
+
210
+

211
+
187
212
### Practice Problems
188
213
189
214
1. Describe the end behaviour of $3x^4-2x+1$. <detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>Both ends approach $\infty$.</details>
@@ -226,6 +251,12 @@ the domain excludes $x=1,-2$. There is a hole at $(1,2/3)$ and a vertical asympt
226
251
<detailsclass="answer-dropdown"><summary><strong>Check Your Work</strong></summary>It simplifies to $(x-2)/(x-3)$ with $x\ne-2,3$. There is a hole at $(-2,4/5)$ and a vertical asymptote at $x=3$.</details>
227
252
:::
228
253
254
+
255
+
256
+

257
+
258
+
259
+
229
260
::: {.worked-example}
230
261
[**Worked Example: One-sided behaviour near an operating limit**]{.worked-example-title}
0 commit comments