Unit 1 and Unit 2 studied maps of the form \(\mathbf{x}\mapsto A\mathbf{x}\text{.}\) We now allow more general rules. The output may be a scalar, a vector, or several scalar component functions collected together.
A vector-valued map is usually written \(F:\R^n\to\R^m\text{.}\) A scalar-valued function is usually written \(f:\R^n\to\R\text{.}\) Any vector-valued map \(F:\R^n\to\R^m\) has \(m\) component functions, or coordinate functions, the scalar-valued functions \(F_1,\dots,F_m:\R^n\to\R\) such that
More generally, vector-valued and scalar-valued functions may only be defined on a subset of vectors in \(\R^n\text{,}\) rather than defined everywhere, so their domain may be a proper subset of \(\R^n\text{.}\)
In other words, a scalar-valued function takes in an input and outputs scalars, and a vector-valued function takes in an input and outputs vectors (recall DefinitionΒ 1.1.1).
If \(\mathbf{x}\) is a point in \(\R^n\text{,}\) recall the length of \(\mathbf{x}\text{,}\) denoted \(\| \mathbf{x} \|\text{,}\) from DefinitionΒ 1.1.3. The length of a vector defines a scalar-valued function from \(\R^n\) to \(\R\text{.}\) Find two different vectors with the same length. What does this say about whether the output determines the input?
There are many different choices one could make here. For instance, the vector \((3,4)\) and the vector \((5,0)\) both have the same length. Other examples are the vectors \((1,2)\) and \((-1,2)\text{.}\)
Let \(A\) be an \(m \times n\) matrix. The linear map (recall DefinitionΒ 1.3.15) \(T: \R^n \to \R^m\) defined by \(T(\mathbf{x}) = T_A(\mathbf{x}) = A\mathbf{x}\) is a vector-valued map. Each component function is a row dot product.
If \(\mathbf{a}_1, \dots, \mathbf{a}_m\) are the rows of \(A\text{,}\) and \(T_1, \dots, T_m\) are the component functions of \(T\text{,}\) then for each \(j\text{,}\) express the function \(T_j\) in terms of the row \(\mathbf{a}_j\text{.}\)
which defines a linear map \(T_A: \R^3 \to \R^2\text{.}\) Compute its component functions for a general input \(\mathbf{x}\text{,}\) and its output for the specific input \(\mathbf{x} = (3, -1, 2)\text{.}\)
A matrix sends grid lines to grid lines. A nonlinear map can bend grid lines. The square-grid visualization samples points and grid lines, not only the corners.
The four corners have the same images under \(F\) and under \(T(x,y)=(x+y,y)\text{.}\) The midpoint does not. A grid includes edge and interior points, so it can show bending that the four corners miss.
A square-grid diagram keeps track of input points and output points at the same time. The color identifies the original input point. The grid lines show how nearby input points move.
A colored grid in the unit square is shown next to its images under a linear shear and a nonlinear shear. The linear shear sends the grid to straight slanted grid lines. The nonlinear shear bends some grid lines even though the four corners match the linear shear.
Figure3.1.4.Square-grid visualization for \(T(x,y)=(x+y,y)\) and \(F(x,y)=(x+y^2,y)\text{.}\) The color identifies the original input point. The two maps agree on the four corners, but the nonlinear map bends grid lines.
SubsectionDomains, ranges, graphs, and level curves
SubsubsectionDomain and range
Definition3.1.5.Domain and range.
The domain of a function is the set of all inputs for that function, and the range is the set of all possible outputs. More formally, if a function \(f\) takes inputs from a set \(X\) and outputs elements in a set \(Y\text{,}\) then the domain of \(f\) is the set \(X\text{,}\) and the range is the set of all \(y \in Y\) for which \(y = f(x)\) for some \(x \in X\text{,}\) which we might write in set notation as \(\{ y \in Y: y = f(x)\ \text{for some}\ x \in X \}\text{.}\)
In calculus, we often define the domain of a function \(f\)implicitly, by defining \(f\) in terms of an expression, and then letting the domain of \(f\) be the set of all values which, when substituted into that expression, lead to a well-defined quantity. For instance, we might discuss βthe functionβ \(f(x,y) = x/y\text{,}\) by which we mean the function with domain \(\{ (x,y) \in \R^2 : y \neq 0 \}\) and range \(\R\text{.}\)
For scalar-valued functions of two variables, domains and level curves are subsets of the plane. These pictures help us see where a function is defined and how its outputs change.
The expression that defines the function \(f\) consists of the sum of two terms, and so to find the domain of \(f\text{,}\) we must identify where both terms are well defined.
The term \(\ln(y - x^2)\) is well defined when the input to \(\ln\) is positive, i.e., when \(y - x^2 > 0\text{.}\) We may rearrange this inequality to read \(y > x^2\)
So \(f\) is well-defined when both \(y > x^2\) and when \(x \geq 0\text{,}\) and so the domain of \(f\) is the set of all points \((x,y)\) such that \(x \geq 0\) and \(y > x^2\text{.}\) Using set notation, we can also write the domain as the set
\begin{equation*}
\{ (x,y) \in \R^2: x \geq 0\ \text{and}\ y > x^2 \}\text{.}
\end{equation*}
The set is the region in the plane bounded from below by the parabola \(y = x^2\text{,}\) and on the left by the \(y\)-axis, as depicted in FigureΒ 3.1.6.
The figure shows coordinate axes with a vertical boundary at \(x=0\) and an upward-opening parabola \(y=x^2\text{.}\) The shaded purple region lies to the right of the \(y\)-axis and above the parabola. The drawing emphasizes that the domain requires both \(x\geq 0\) and \(y>x^2\text{.}\)
The expression defining the function \(f\) consists of the product of \(e^x\) and \(\sin y\text{,}\) and so \(f\) is well-defined precisely when \(e^x\) and \(\sin y\) are both well-defined. Both expressions are well-defined for all inputs. And so the domain of \(f\) is the set \(\R^2\text{.}\)
The expression defining \(f\) is a fraction with numerator \(\sqrt{x}\) and denominator \(\sqrt{y}\text{.}\) The expression is therefore well-defined when both the numerator and denominator are well defined, and when the denominator is non-zero.
The numerator \(\sqrt{x}\) is well-defined when \(x \geq 0\text{.}\) The denominator \(\sqrt{y}\) is well-defined when \(y \geq 0\text{,}\) and is non-zero when \(y > 0\text{.}\)
So the domain of \(f\) is the set of all \((x,y) \in \R^2\) with \(x \geq 0\) and \(y > 0\text{,}\) or in set notation, the set
\begin{equation*}
\{(x,y) \in \mathbb{R}^2 : x \geq 0\ \text{ and }\ y > 0\}\text{.}
\end{equation*}
This set is the first quadrant in the \(xy\)-plane, including the positive \(y\)-axis, but excluding the origin and the positive \(x\)-axis. See FigureΒ 3.1.7.
The coordinate plane is shaded purple in the region with \(x\geq 0\) and \(y>0\text{.}\) The \(y\)-axis is included as part of the boundary, while the \(x\)-axis is drawn as a dashed red boundary to show it is excluded. A handwritten note points out that the dashed boundary is where \(y=0\text{.}\)
When \(f\) is a scalar-function of two variables, the graph of \(f\) is a set of triples \((x,y,f(x,y))\text{,}\) and thus a subset of \(\R^3\text{,}\) and can therefore be visualized as a surface. See FigureΒ 3.1.9 for a picture of the graph of the function \(f(x,y) = x e^{-x^2-y^2}\text{.}\)
The figure shows a 3D coordinate system with a red mesh surface for \(z=x e^{-x^2-y^2}\text{.}\) The surface rises to a rounded ridge on the positive \(x\) side and falls to a matching trough on the negative \(x\) side. Away from the origin, the surface flattens toward the \(xy\)-plane.
A level curve of a scalar function \(f\) of two variables is the curve consisting of pairs \((x,y)\) satisfying the equation \(f(x,y) = c\text{,}\) for some \(c \in \R\text{.}\) A contour plot is a sketch in \(\R^2\) depicting level curves of a function \(f\) for many different values of \(c\text{.}\)
The different values of \(c\) which are chosen to be depicted in a contour plot are often (but not always) obtained by varying \(c\) by a common difference, obtaining βconsecutiveβ level sets.
The left side lists level values such as \(1\text{,}\)\(e\text{,}\)\(e^4\text{,}\) and \(e^9\) with the corresponding equations for \(x^2+y^2\text{.}\) The right side shows concentric circles centered at the origin in the \(xy\)-plane. Larger level values correspond to circles farther from the origin.