(a) A shop notes the price $P$ of a good and the number $D$ of units sold on five days:
| day | Mon | Tue | Wed | Thu | Fri |
|---|---|---|---|---|---|
| $P$ | $8$ | $10$ | $12$ | $10$ | $9$ |
| $D$ | $70$ | $55$ | $40$ | $61$ | $64$ |
Do these five pairs $(P, D)$ lie on the graph of a function of $P$? Explain with Definition 1.1.
(b) Is the set of points $(x, y)$ with $y^2 = x$ the graph of a function of $x$?
(c) Can the same set be described by a function if the roles are exchanged, so that $x$ is given by $y$?
Hint
“Exactly one” is the word to test. Look for one input with two different outputs.
(a) No. The price $P = 10$ occurs twice, on Tuesday with $D = 55$ and on Thursday with $D = 61.$ A function of $P$ must give the input $10$ exactly one value, and here it would need two. In the plane: the vertical line $P = 10$ meets the set of points twice.
(b) No. For $x = 4$ both $y = 2$ and $y = -2$ satisfy $y^2 = x,$ so the vertical line $x = 4$ meets the set twice. (The set is a parabola lying on its side.)
(c) Yes. For each real number $y$ there is exactly one $x,$ namely $x = y^2.$ So $x$ is a function of $y,$ with domain all real numbers. Whether a curve is the graph of a function depends on which variable is the input.
(a) No: $P = 10$ has two different values of $D.$ (b) No: $x = 4$ gives $y = \pm 2.$ (c) Yes: $x = y^2.$