-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01-function-notation.qmd
More file actions
974 lines (764 loc) · 30.6 KB
/
01-function-notation.qmd
File metadata and controls
974 lines (764 loc) · 30.6 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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
# Functions and Function Notation
:::::{.my-objectives}
:::{.my-objectives-header}
Learning Objectives
:::
::::{.my-objectives-container}
- Determine whether a relation represents a function.
- Find the value of a function.
- Determine whether a function is one-to-one.
- Use the vertical line test to identify functions.
- Graph the functions listed in the library of functions.
::::
:::::
## Determining Whether a Relation Represents a Function
::: {#def-relation-domain-range}
##### Relation - domain - range
> "A **relation** is a set of ordered pairs. The set of the first
> components of each ordered pair is called the **domain** and the set
> of the second components of each ordered pair is called the
> **range.**" ([Abramson, 2021, p.
> 18](zotero://select/library/items/U57DQZPG))
> ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=18&annotation=FLKWG5KA))
:::
{#fig-01-01 fig-alt="" fig-align="center"
width="100%"}
::: {#def-function}
##### Function
"A function is a relation in which each possible input value leads to
exactly one output value. We say 'the output is a function of the
input.' The input values make up the domain, and the output values make
up the range." ([Abramson, 2021, p.
18](zotero://select/library/items/U57DQZPG))
([pdf](zotero://open-pdf/library/items/68C8JXSW?page=18&annotation=6PJT7CNS))
:::
::: callout-important
**Given a relationship between two quantities, determine whether the
relationship is a function.**
1. Identify the input values.
2. Identify the output values.
3. If each input value leads to only one output value, classify the
relationship as a function. If any input value leads to two or more
outputs, do not classify the relationship as a function.
:::
::: {#exm-pricelist}
Are price lists examples of functions?
- Each item has its price, so the price is a function of its items.
This is even valid if several items have the same price because
there is for each item exactly one price.
- Several items have the same price, that's why item is not a function
of price.
:::
### Using Function Notation
::: {#def-function-notation}
##### Function Notation: Input value - independent variable & Output value - dependent variable
> "The notation $y = f(x)$ defines a function named $f$, This is read as
> 'y is a function of x'. The letter $x$ represents the input value, or
> independent variable. The letter $y$ or $f(x)$ represents the output
> value, or dependent variable." ([Abramson, 2021, p.
> 21](zotero://select/library/items/U57DQZPG))
> ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=21&annotation=XWZMACMS))
:::
### Representing Functions Using Tables
> "A common method of representing functions is in the form of a table.
> The table rows or columns display the corresponding input and output
> values." ([Abramson, 2021, p.
> 22](zotero://select/library/items/U57DQZPG))
> ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=22&annotation=NBNN3GKY))
## Finding Input and Output Values of a Function
### Evaluation of Functions in Algebraic Forms
::: callout-important
**Given the formula for a function & evaluate**
1. Substitute the input variable in the formula with the value
provided.
2. Calculate the result.
:::
::: my-example
::: my-example-header
**Example 6**: Evaluating Functions at Specific Values
:::
::: my-example-container
Evaluate $𝑓(𝑥)= x^2 + 3x − 4$ at:
**x = 2**
$$f(2) = 2^2 + 3 \times 2 - 4 = 6$$ **a**
$$f(a) = a^2 + 3a - 4$$ **a + h** $$
\begin{align*}
f(a + h) = (a + h)^2 + 3(a + h) - 4 \\
f(a + h) = a^2 + 2ah + h^2 + 3a + 3h -4
\end{align*}
$$
**evaluate** $\frac{f(a + h) - f(a)}{h}$
$$
\begin{align*}
\frac{f(a + h) - f(a)}{h} = \frac{a^2 + 2ah + h^2 + 3a + 3h -4 - (a^2 + 3a - 4)}{h}\\
= \frac{2ah + h^2 + 3h}{h} \\
= 2a + h + 3
\end{align*}
$$
:::
:::
::: my-example
::: my-example-header
**Example 7**: Evaluating Functions
:::
::: my-example-container
**Given the function** $h(p) = p^2 + 2p?, evaluate ?h(4)$\$
$$
\begin{align*}
h(4) = 4^2 + 2 \times 4 \\
h(4) = 24
\end{align*}
$$
:::
:::
::: my-example
::: my-example-header
**Try It 4**:
:::
::: my-example-container
Given the function $g(m) = \sqrt{m - 4}$, evaluate g(5)
$$
g(5) = \sqrt{5 - 4} = 1
$$
:::
:::
::: my-example
::: my-example-header
**Example 8**: Solving Functions
:::
::: my-example-container
Given the function $h(p) = p^2 + 2p$, solve for $h(p) = 3$
$$
\begin{align*}
3 = p^2 + 2p\\
p^2 + 2p - 3 = 0 \text{ [substract 3 from each side]} \\
(p + 3) (p - 1) = 0 \text{ [factor]}\\
\text{set each factor equal to 0 and solve for p in each case} \\
p + 3 = 0, p = -3 \\
p - 1 = 0, p = +1
\end{align*}
$$ {#eq-example-8}
:::
:::
::: callout-warning
I couldn't solve Example 8 (@eq-example-8), because I didn't use the
factor transformation of the equation. I came up with only one solution
$p = 1$ after I had transformed to $p^2 + 2p - 3 = 0$.
:::
::: r-code
::: r-code-header
For a better understanding I replicated [Figure
6](https://openstax.org/books/precalculus-2e/pages/1-1-functions-and-function-notation#Figure_01_01_006)
of the book, p.16.
:::
::: r-code-container
```{r}
#| label: fig-pb-example-8
#| fig-cap: "Graph for the function $h(p) = p^2 + 2p$ showing the solution for $h(p) = 3$"
#| attr-source: '#lst-fig-pb-example-8 lst-cap="Plot function $h(p) = p^2 + 2p$"'
#| fig.align: center
ggplot2::ggplot() +
ggplot2::scale_x_continuous(limits = c(-5, 5), breaks = seq(-5, 5, 1)) +
ggplot2::geom_function(fun = function(x) x^2 + (2 * x)) +
ggplot2::geom_hline(yintercept = 0, linetype = "solid") +
ggplot2::geom_hline(yintercept = 3, linetype = "solid",
color = "darkgreen", linewidth = 1) +
ggplot2::geom_segment(ggplot2::aes(x = -3, y = 0, xend = -3, yend = +3,
color = "orange"), show.legend = FALSE, linewidth = 1) +
ggplot2::geom_segment(ggplot2::aes(x = 1, y = 0, xend = 1, yend = +3,
color = "orange"), show.legend = FALSE, linewidth = 1) +
ggplot2::geom_point(ggplot2::aes(x = -3, y = +3,
fill = "blue"), size = 2, show.legend = FALSE) +
ggplot2::geom_point(ggplot2::aes(x = 1, y = +3,
fill = "blue"), size = 2, show.legend = FALSE) +
ggplot2::theme_bw() +
ggplot2::labs(
title = expression(paste("Function h(p) = ", p^2 + 2 * p)),
x = "p",
y = "h(p)"
)
```
:::
:::
::: my-example
::: my-example-header
**Try It 5**
:::
::: my-example-container
Given the function $g(m) = \sqrt{m - 4}$, solve $g(m) = 2$
$$
\begin{align*}
2 = \sqrt{m - 4} \\
2 = \sqrt{8 - 4} \\
m = 8
\end{align*}
$$
:::
:::
### Evaluating Functions Expressed in Formulas
::: callout-important
**Given a function in equation form, write its algebraic formula**
> "Some functions are defined by mathematical rules or procedures
> expressed in equation form. If it is possible to express the function
> output with a formula involving the input quantity, then we can define
> a function in algebraic form." ([Abramson, 2021, p.
> 26](zotero://select/library/items/U57DQZPG))
> ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=26&annotation=4WB76Q72))
1. Solve the equation to isolate the output variable on one side of the
equal sign, with the other side as an expression that involves only
the input variable.
2. Use all the usual algebraic methods for solving equations, such as
adding or subtracting the same quantity to or from both sides, or
multiplying or dividing both sides of the equation by the same
quantity. ([Abramson, 2021, p.
26](zotero://select/library/items/U57DQZPG))
:::
:::::{.my-example}
:::{.my-example-header}
**Example 9**: Finding an Equation of a Function
:::
::::{.my-example-container}
Express the relationship $2n + 6p = 12$ as a function $p = f(n)$, if possible.
$$
\begin{align*}
2n + 6p = 12 \\
6p = 12 - 2n \\
p = \frac{12 - 2n}{6} \\
p = \frac{6 - n}{3} \\
p = 2 - \frac{1}{3}n \\
p = f(n) = 2 - \frac{1}{3}n
\end{align*}
$$
::::
:::::
:::::{.my-example}
:::{.my-example-header}
**Example 10**: Expressing the Equation of a Circle as a Function
:::
::::{.my-example-container}
Does the equation $x^2 + y^2 = 1$ represent a function with $x$ as input and $y$ as output? If so, express the relationship as a function $y = f(x)$.
$$
\begin{align*}
x^2 + y^2 = 1 \\
y^2 = 1 - x^2 \\
y = \sqrt{1 - x^2} \\
\end{align*}
$$
::::
:::::
::: {.callout-warning}
My solution is wrong as it would mean that $y = f(x)$ could be represented as function! I did not take into account that there are **two solutions**: $y = \pm \sqrt{1 - x^2}$. We get for $y$ two outputs; the formula is therefore not a function.
:::
:::::{.my-example}
:::{.my-example-header}
**Try It 6**
:::
::::{.my-example-container}
If $x-8y^3=0$, express $y as a function of $x$:
$$
\begin{align*}
x-8y^3=0 \\
-8y^3 = -x \\
y^3 = \frac{x}{8} \\
y = \frac{\sqrt[3]{x}}{8}\\
y = f(x) = \frac{1}{2} \sqrt[3]{x}
\end{align*}
$$
::::
:::::
::: {.callout-note}
There are relationships expressed by an equation that do represent a function but cannot be represented by an algebraic formula.
:::
### Evaluating a Function Given in Tabular Form
> “As we saw above, we can represent functions in tables. Conversely, we can use information in tables to write functions, and we can evaluate functions using the tables.” ([Abramson, 2021, p. 27](zotero://select/library/items/U57DQZPG)) ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=27&annotation=ZJ3WDDHY))
::: {.callout-important}
**Given is input value, identify output value**
1. Find the given input in the row (or column) of input values.
2. Identify the corresponding output value paired with that input value.
**Given is output value, identify input value**
1. Find the given output values in the row (or column) of output values, noting every time that output value appears.
2. Identify the input value(s) corresponding to the given output value.
:::
:::::{.my-example}
:::{.my-example-header}
**Example 11**
:::
::::{.my-example-container}
| $n$ | 1 | 2 | 3 | 4 | 5 |
|:----:|---|---|---|---|---|
| $g(n)$ | 8 | 6 | 7 | 6 | 8 |
: Evaluating and Solving a Tabular Function {#tbl-tabular-function}
**Evaluate $g(3)$** **Solution: g(3) = 7**
**Solve $g(n) = 6$** **Solution: n = 2 and n = 4**
::::
:::::
::: {.callout-warning}
Again I have not followed exactly the proposed procedure "noting **every time** that output value appears". So I have only reported the first part of the solution $n = 2$!
:::
:::::{.my-example}
:::{.my-example-header}
**Try it 7**
:::
::::{.my-example-container}
Using @tbl-tabular-function to evaluate $g(1)$. **Solution $g(1) = 8$**
::::
:::::
### Finding Function Values from a Graph
::: {.callout-note}
Don't forget: Solving a function equation using a graph requires **finding all instances** of the given output value on the graph and observing the corresponding input value(s).
:::
:::::{.my-example}
:::{.my-example-header}
**Example 12**: Reading Function Values from a Graph
:::
::::{.my-example-container}
{#fig-01-07 fig-alt="parable with f(1) = 0, and f(0) = 1" fig-align="center"
width="70%"}
***
Evaluate $f(2)$: **Solution = f(2) = 1**
Solve $f(x)=4$: **Solution = f(3) and f(-1)**
::::
:::::
:::::{.my-example}
:::{.my-example-header}
**Try it 8**
:::
::::{.my-example-container}
Using @fig-01-07 solve $f(x) = 1$
**Solution $f(0)$ and $f(2)$**.
::::
:::::
## Determining Whether a Function is One-to-One
:::{#def-one-to-one-function}
A one-to-one function is a function in which each output value corresponds to exactly one input value.
:::
:::::{.my-example}
:::{.my-example-header}
**Example 13**: Determining Whether a Relationship Is a One-to-One Function
:::
::::{.my-example-container}
Is the area of a circle a function of its radius? If yes, is the function one-to-one?
The area = $\pi \times r^2$. $\pi$ is a constant, so yes: The area of a circle is a function of its radius. Yes, it is a `r glossary("one-to-one function")`.
::::
:::::
::: {.callout-warning}
The book answer is more elaborate: It is important to say that both values of the function $f(r) = \sqrt\frac{{A}}{{\pi}}$ are positive numbers, so that there is only one solution!
:::
:::::{.my-example}
:::{.my-example-header}
**Try it 9**
:::
::::{.my-example-container}
(a) Is a balance a function of the bank account number? **Yes**
(b) Is a bank account number a function of the balance? **No**
(c) Is a balance a one-to-one function of the bank account number? **No**
::::
:::::
::: {.callout-warning}
My answer was correct, but in the future I should always add the reason for my solution: For example in this case:
(a) **yes**, because each bank account has a single balance at any given time
(b) **no**, because several bank account numbers may have the same balance
(c) **no**, because the same output may correspond to more than one input
:::
:::::{.my-example}
:::{.my-example-header}
**Try it 10**
:::
::::{.my-example-container}
Evaluate the following:
(a) If each percent grade earned in a course translates to one letter grade, is the letter grade a function of the percent grade?: **Yes**, the letter grade is a function of the percent grade as I can calculate the letter grade from each percent grade.
(b) If so, is the function one-to-one? **No**, because different percent grades may result in the same letter grade.
::::
:::::
## Using the Vertical Line Test
> “The **vertical line test** can be used to determine whether a graph represents a function. If we can draw any vertical line that intersects a graph more than once, then the graph does *not* define a function because a function has only one output value for each input value.” ([Abramson, 2021, p. 32](zotero://select/library/items/U57DQZPG)) ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=32&annotation=R9WLIZBA))
::: {.callout-important}
Given a graph, use the vertical line test to determine if the graph represents a function.
1. Inspect the graph to see if any vertical line drawn would intersect the curve more than once.
2. If there is any such line, determine that the graph does not represent a function.
:::
{#fig-01-11
fig-alt="Three different functions: Left: a S-curve around the x-axis representing a function, because a vertical line cannot not cross two points of the curve: Middle and right: Half an O open to thre right and an ellipse do not represent a function, because a vertical line intersect two different points of the curves." fig-align="center"
width="100%"}
:::::{.my-example}
:::{.my-example-header}
**Example 14**
:::
::::{.my-example-container}
Which of the graphs in @fig-01-12 represent(s) a function $y=f(x)$?
{#fig-01-12
fig-alt="Three graphs: Left (a): an inverted S-curve crossing the coordinate axis. Middle (b): A line from (0,1) to (12,-3). Right (c): A circle with radio 3 centered at the the coordinate axis." fig-align="center"
width="100%"}
**Solution**: (a) and (b) are functions. (c) is not a function, because a vertical line would cross twice the curve.
::::
:::::
:::::{.my-example}
:::{.my-example-header}
**Try it 11**
:::
::::{.my-example-container}
Does the graph in @fig-01-14 represent a function?
{#fig-01-14
fig-alt="Graph shows a V with the deepest point at the coordinate axis." fig-align="center"
width="50%"}
**Solution:** Yes, you can't cross with a vertical line the graph twice.
::::
:::::
## Using the Horizontal Line Test
> “Once we have determined that a graph defines a function, an easy way to determine if it is a one-to-one function is to use the horizontal line test. Draw horizontal lines through the graph. If any horizontal line intersects the graph more than once, then the graph does not represent a one-to-one function.” ([Abramson, 2021, p. 34](zotero://select/library/items/U57DQZPG)) ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=34&annotation=L9I5J3YA))
::: {.callout-important}
Given a graph of a function, use the horizontal line test to determine if the graph represents a one-to-one function.
1. Inspect the graph to see if any horizontal line drawn would intersect the curve more than once.
2. If there is any such line, determine that the function is not one-to-one.
:::
:::::{.my-example}
:::{.my-example-header}
**Example 15**
:::
::::{.my-example-container}
Consider the functions shown in @fig-01-12(a) and @fig-01-12(b). Are either of the functions one-to-one?
**Solution**: Only @fig-01-12(b) is a one-to-one function, because a horizontal line cannot cross the graph twice. @fig-01-12(a) is not a one-to-one function because a horizontal line would cross the curve three times.
::::
:::::
::: {.callout-warning}
The book answer is more detailed: There are places where a horizontal line would only cross once (for example at y = 4 or y = -4), places where it would cross twice (for example y = 3 or y = -3, here the horizontal line is a tangent and a crossing), but there also places (as I have mentioned in my solution) where the horizontal line intersects the graph three times (for instance y = 0).
The important thing is that it is not a one-to-one function if it could cross more than once.
:::
:::::{.my-example}
:::{.my-example-header}
**Try it 12**
:::
::::{.my-example-container}
Is the graph shown in @fig-01-12(c) one-to-one?
**Solution**: No, a horizontal line intersects the graph twice.
::::
:::::
## Identifying Basic Toolkit Functions
There are some
> “toolkit functions,” which form a set of basic named functions for which we know the graph, formula, and special properties.” ([Abramson, 2021, p. 35](zotero://select/library/items/U57DQZPG)) ([pdf](zotero://open-pdf/library/items/68C8JXSW?page=35&annotation=9UJ2IB3U))
I will add the full table so that I can consult these different functions with their name and properties.
{#fig-toolkit-1
fig-alt="alt-text" fig-align="center"
width="100%"}
{#fig-toolkit-2
fig-alt="alt-text" fig-align="center"
width="100%"}
## Other Resources
:::::{.my-resource}
:::{.my-resource-header}
Access the following online resources for additional instruction and practice with functions
:::
::::{.my-resource-container}
- [Determine if a Relation is a Function](http://openstax.org/l/relationfunction)
- [Vertical Line Test](http://openstax.org/l/vertlinetest)
- [Introduction to Functions](http://openstax.org/l/introtofunction)
- [Vertical Line Test on Graph](http://openstax.org/l/vertlinegraph)
- [One-to-one Functions](http://openstax.org/l/onetoone)
- [Graphs as One-to-one Functions](http://openstax.org/l/graphonetoone)
::::
:::::
## Section Exercises
::: {.callout-note}
I will only try odd numbered exercises as only these puzzles have published solutions officially.
:::
### Verbal
:::::{.my-solution}
:::{.my-solution-header}
1. What is the difference between a relation and a function?
:::
::::{.my-solution-container}
Relation is an umbrella-term signifying a general relationship between two items. A function is a more specialized notion where every input item produces an output item.
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
3. Why does the vertical line test tell us whether the graph of a relation represents a function?
:::
::::{.my-solution-container}
If the vertical line test does intersect only once with the graph then it conforms with the definition of a function, where each input is related to one output.
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
5. Why does the horizontal line test tell us whether the graph of a function is one-to-one?
:::
::::{.my-solution-container}
If the horizontal line test does only intersect once with the graph then the graph represents a one-to-one function.
::::
:::::
### Algebraic
:::::{.my-solution}
:::{.my-solution-header}
7. Determine whether the relation represents a function.
:::
::::{.my-solution-container}
{$(a,b), (b,c), (c,c)$}
Yes, this is a function because each input relates to an input, even if two different input items (b and c) relate to the same outcome (c). But if vice versa the same input item would point to two different output item then it would not be a function.
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
9. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$y = x^2$ **Yes**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
11. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$3x^2 + y = 14$ **Yes**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
13. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$y = -2x^2 + 40$ **Yes**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
15. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$x = \frac{3y + 5}{7y - 1}$ **Yes**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
17. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$y = \frac{3x + 5}{7x - 1}$ **Yes**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
19. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$2xy = 1$ **Yes**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
21. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$y = x^3$ **Yes**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
23. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$x = \pm\sqrt{1-y}$ **Yes**
::::
:::::
::: {.callout-warning}
## NEEDS REWRITING (Exercise 23, 33 and 37)
I have to rewrite this callout after watching [Does $x = ±sqrt(1 − y)$ represent $y$ as a Function of $x$?](https://www.youtube.com/watch?v=jOlhdHZ39Yk) of The Glaser Tutorial Company!
An additional question: Do I have to solve the equations of all questions of this kind (asking if it is a function or not) and to draw the equation in order to apply the vertical line test?
It is also a good idea to compare the Precalculus exercises with the [Math topics of the videos](https://www.youtube.com/@GlaserTutoring/playlists?view=50&sort=dd&shelf_id=4) of The Glaser Tutorial Company. There are several hundreds of videos and it seems there is not only an overlap with Precalculus but their videos are following in detail the Precalculus content!
***
I thought that exercise 23 is not a function because of $\pm$, signifying that there are two output values. Actually I did not understand why exercise 23 is a function.
So I searched for a solution of the equation in the internet and found exactly my question asked at [math.stackexchange](https://math.stackexchange.com/questions/4040159/when-x-pm-sqrty-1-is-y-a-function-of-x-how-to-deal-with-the-pm)!
After reading the question and both answers with all comments several times I believe I understood the problem: Central for my understanding was the start of the answer by [Rhys Hughes](https://math.stackexchange.com/users/487658/rhys-hughes) followed by his comment:
$$
\begin{align*}
x = \pm y \\
x^2 = y^2 (\text{and not }\pm y^2 \text{ because …} ) \\
x^2 = \pm (y^2) \\
x^2 = \pm(1)^2y^2 \\
x^2 = y^2
\end{align*}
$$
:::
:::::{.my-solution}
:::{.my-solution-header}
25. Determine whether the relation represents $y$ as a function of $x$.
:::
::::{.my-solution-container}
$y^2 = x^2$ **No**
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
27. Evaluate $f$ at the indicated values $f(-3), f(2), f(-a), -f(a), f(a+h)$.
:::
::::{.my-solution-container}
$f(x) = 2x -5$
$$
\begin{align*}
f(-3) = -6 -5 = -11 \\
f(2) = -1 \\
f(-a) = -2a -5 \\
-f(a) = -(2a -5) = -2a + 5\\
f(a+h) = 2(a+h) - 5 = 2a + 2h - 5
\end{align*}
$$
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
29. Evaluate $f$ at the indicated values $f(-3), f(2), f(-a), -f(a), f(a+h)$.
:::
::::{.my-solution-container}
$f(x) = \sqrt{2-x} + 5$
$$
\begin{align*}
f(-3) = \sqrt{2-(-3)} + 5 = \sqrt{5} + 5 \\
f(2) = \sqrt{2-2} + 5 = 5 \\
f(-a) = \sqrt{2-(-a)} + 5 = \sqrt{2+a} + 5 \\
-f(a) = -(\sqrt{2-a} + 5) = -\sqrt{2-a} - 5 \\
f(a+h) = \sqrt{2-(a+h)} + 5 = \sqrt{2 - a - h} + 5
\end{align*}
$$
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
31. Evaluate $f$ at the indicated values $f(-3), f(2), f(-a), -f(a), f(a+h)$.
:::
::::{.my-solution-container}
$f(x) = \mid x-1 \mid - \mid x+1 \mid$
$$
\begin{align*}
f(-3) = | - 3 - 1 | - | -3 + 1 | = 4 - 2 = 2\\
f(2) = | 2 - 1 | - | 2 + 1 | = 1 - 3 = -2 \\
f(-a) = |-a -1| - |-a +1| \\
-f(a) = -(|a - 1| - |a + 1|) \\
f(a+h) = |a + h -1| - |a + h +1|
\end{align*}
$$
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
33. Given the function $g(x) = x^2 + 2x$, evaluate $\frac{g(x) - g(a)}{x-a}, x \ne a$.
:::
::::{.my-solution-container}
$$
\begin{align*}
\frac{g(x) - g(a)}{x-a} = \frac{(x^2 + 2x) - (a^2 + 2a)}{x-a} \\
\frac{g(x) - g(a)}{x-a} = \frac{x^2 + 2x - a^2 - 2a}{x-a} \\
\frac{g(x) - g(a)}{x-a} = \frac{(x-a)(x+a+2)}{x-a} \\
\frac{g(x) - g(a)}{x-a} = x + a + 2
\end{align*}
$$ {#eq-exercise-1-33}
::::
:::::
::: {.callout-warning}
I had no idea how to solve Exercise 33 (@eq-exercise-1-33) . Again I found the explication of the solution at [math.stackexchange](https://math.stackexchange.com/questions/3619578/given-gx-x2-2x-evaluate-frac-gx-gax-a).
Decisive for my understanding were three points:
1. I had only to substitute for $g(x)$ and $g(a)$. So the denominator $x-a$ remains $x-a$.
2. The substitute for $g(a)$ is equivalent to the substitute for $g(x)$. Instead of $g(x) = x^2 + 2x$ I have to use $g(a) = a^2 + 2a$.
3. The factorization with $(x-a)$, so that the denominator can be cancelled. I have to confess that I have limited knowledge of [polynomial factorization](https://mathworld.wolfram.com/PolynomialFactorization.html).
:::
:::::{.my-solution}
:::{.my-solution-header}
35. Given the function $f(x) = 8-3x$
:::
::::{.my-solution-container}
Evaluate $f(-2)$
$$
\begin{align*}
f(-2) = 8 - 3 (-2) \\
f(-2) = 14
\end{align*}
$$
Solve $f(x) = -1$
$$
\begin{align*}
-1 = 8 - 3x \\
- 1 - 8 = -3x \\
\frac{-9}{-3} = x \\
3 = x
\end{align*}
$$
::::
:::::
:::::{.my-solution}
:::{.my-solution-header}
37. Given the function $f(x) = x^2 - 3x$
:::
::::{.my-solution-container}
Evaluate $f(5)$
$$
\begin{align*}
f(5) = 5^2 - 3 \times 5\\
f(5) = 10
\end{align*}
$$
Solve $f(x) = 4$
$$
\begin{align*}
x^2 - 3x = 4\\
4 + 3x = x^2 \\
\end{align*}
$$ {#eq-exercise-1-37}
::::
:::::
::: {.callout-warning}
I couldn't solve the second part of the exercise: Solve $f(x) = 4$. I searched on the internet and discovered [Mathepower](https://www.mathepower.com/en/index.php), a program for solving equation. I entered my problem and got the following correct answer with a detailed explanation of every step of calculation.
My problem: I do not know how to complete the square.
{#fig-mathepower-solution.png
fig-alt="Calculation of $x^2 - 3x = 4$, explained step by step" fig-align="center"
width="100%"}
To generate a solution I could have used also [WolframAlpha](https://www.wolframalpha.com/).
{#fig-wolfram-alpha-solution
fig-alt="Displays input ($x^2 - 3x = 4$), plots the graph, shows alternate form of the equation, the numberline with the solution and the algebraic solution set." fig-align="center"
width="100%"}
:::
::: {.callout-caution}
I got the impression that I need to refresh my knowledge about factoring `r glossary("polynomials")` and solving of quadratic equations. So I registered with the Khan Academy and finished Unit 13 [Quadratics:Multiplying & Factoring](https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:quadratics-multiplying-factoring) of Algebra 1.
At first I thought I would need also need Unit 14 [Quadratic functions & equation](https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:quadratic-functions-equations), but after some exercises I got the impression that these skills already overlap with the tutorials of the Precalculus book, so I stopped my excursion for the time being.
:::
::: {.callout-warning}
Ok, so with that refreshed knowledge I understand now better the factoring solution of Exercise 33 (@eq-exercise-1-33) and solving strategy of Exercise 37 (@eq-exercise-1-37). But still it was not everything completely clear to me.
**1. Given the function $g(x) = x^2 + 2x$, evaluate $\frac{g(x) - g(a)}{x-a}, x \ne a$**
In @eq-exercise-1-33 I understood that I need to factor out the denominator $x-a$. But whenever I tried it I got a slightly different result $x+a+4$ instead of $x+a+2$. Looking again in the internet I noticed that there is a [YouTube video](https://www.youtube.com/watch?v=xdQj-YWHFhg) by [The Glaser Tutoring Company](https://www.youtube.com/@GlaserTutoring) exactly to the same problem: Evaluate the Given Function: $g(x) = x2 + 2x$!!
It turned out that I factored out wrongly:
$$
\begin{align*}
\frac{g(x) - g(a)}{x-a} = \frac{(x^2 + 2x) - (a^2 + 2a)}{x-a}\\
= \frac{x(x+2)-(a)(a+2)}{x-a} \\
= (x+2)-(a+2) \text{ Cancelation of } x-a \text{ is WRONG!}\\
= x-a+4
\end{align*}
$$
The correct way is:
$$
\begin{align*}
\frac{g(x) - g(a)}{x-a} = \frac{(x^2 + 2x) - (a^2 + 2a)}{x-a} \\
= \frac{x^2 + 2x - a^2 - 2a}{x-a} \\
= \frac{x^2 - a^2 + 2x - 2a}{x-a} \text{ regrouping the nominator!} \\
= \frac{(x+a)(x-a) + (2x - 2a)}{x-a} \text{ a term of the form } (a^2-b^2) \text{ is always} (a+b)(a-b)! \\
= \frac{(x+a)(x-a) +2(x - a)}{x-a} \text{ factor out 2 in the second term}\\
\text{ only now it is save to cancel } (x-a)!\\
= (x+a)+2 \text{ = solution!}
\end{align*}
$$
**2. Given the function $f(x) = x^2 - 3x$ solve for $f(x) = 4$**
Concerning @eq-exercise-1-37 I learned that I have to set quadratic equations to 0. But I didn't understand why MathePower completed the square by adding $-(\frac{3}{2})^2$. Finally I solved this exercise again with the help of a [YouTube video](https://www.youtube.com/watch?v=5MOD3OoP2nI) by [The Glaser Tutoring Company](https://www.youtube.com/@GlaserTutoring).
I knew that I could factor out the equation $0 = x^2 - 3x - 4$ with +1 and -4 but then I forgot that each product has to be set to zero. (Even I learned this one day before!). So - instead of not using the more complex solution with $-(\frac{3}{2})^2$ - I got:
$$
\begin{align*}
x^2 - 3x = 4\\
x^2 - 3x - 4 = 0 \\
(x - 4)(x + 1) = 0 \text{ now: set each term to zero} \\
x - 4 = 0; x = 4 \\
x + 1 = 0; x = -1 \\
\text{The solution set is } \{4; -1\}
\end{align*}
$$
:::
### Graphical
### Numeric
### Technology
### Real-world Applications