
Vector-valued functions are parameterized curves.

### Vector-valued functions

A function $\vec {f}: \R \to \R ^3$ can be thought of as associating to each time $t$ a vector $\vector {x(t),y(t),z(t)}$.

Vector-valued functions simply map numbers to lists of numbers, that we interpret as vectors: Placing the tail of the vector at the origin, its head will sweep out a curve parameterized by $t$. Below we see a plot of the vector-valued function: Use the slider to see how the vector-valued function is “drawn” by the tip of the vector

#### How are vector-valued functions useful?

To get your imagination going, here are a few examples of what a function $f: \R \to \R ^3$ could represent:

• The $3$-dimensional position of a rocket in space as a function of time.
• The population of $3$ different species of bacteria found in a swimming pool as a function of the amount of chlorine in the water.
• The performance of $3$ different stocks as a function of time.
• The trunk width, height, and canopy radius of a tree as a function of time.
• The average temperature, humidity, and air pressure at a given latitude as a function of that latitude.
• The RGB color of a single pixel of a LCD screen varying over time.

Of the examples above, perhaps “position in space” is the best mental model to use to help you understand vector-valued functions.

### Lines in space

It is easy to create a vector-valued function that passes through two points $\vec {p}$ and $\vec {q}$:

What is the value of $\vecl (0)$?
$\vecl (0)$ is unknowable $\vecl (0)=\vec {p}$ $\vecl (0)=\vec {q}$ $\vecl (0)=\vec {q}-\vec {p}$
What is the value of $\vecl (1)$?
$\vecl (1)$ is unknowable $\vecl (1)=\vec {p}$ $\vecl (1)=\vec {q}$ $\vecl (1)=\vec {q}-\vec {p}$
What value of $t$ gives the midpoint of the tips of vectors $\vec {p}$ and $\vec {q}$?

Here we see vectors $\vec {p}$ and $\vec {q}$. In blue below we see the vector $t(\vec {q}-\vec {p})$ starting at point $\vec {p}$. Convince yourself that draws a line.

If we know that a line passes through two points (that we’ll notate with vectors) $\vec {p}$ and $\vec {q}$, then we know that it points in the direction $\vec {v} = \vec {q} - \vec {p}$, and passes through the tip of $\vec {p}$. Hence to make a line, We write Play around with the interactive below to see if you get the idea:

Using the ideas above, find an expression in terms of $t$ parameterizing the line passing through $\vec {p} = \vector {0,2,4}$ when $t=0$, and $\vec {q} = \vector {1,1,1}$ when $t=1$.
The line passes through $\vec {p}$ and points in the direction
Let $\vecl$ be a line that passes through the points $\vecl (0) = \vector {1,2,3}$ and $\vecl (1) = \vector {2,2,2}$. What are the components of $\vecl (t)$?
Let $\vecl (t) = \vec {p}+t\vec {v}$, then $\vecl (0) = \vec {p}$.

There are an infinite number of ways to parameterize the same line. Try your hand at the following puzzlers:

Compare and contrast the curves $\vec {f}(t) = \vector {-3+t,5+2t,1+3t}$ and $\vec {g}(t)=\vector {-3+2t,5+4t,1+6t}$.
They parameterize different lines. They parameterize the same line, but $\vec {f}(t)$ moves “twice as fast” as $\vec {g}(t)$. They parameterize the same line, but $\vec {g}(t)$ moves “twice as fast” as $\vec {f}(t)$. These are the same function!
Note, both lines start at the same point when $t=0$.
We can rewrite $\vec {f}$ and $\vec {g}$ as:
We can further rewrite $\vec {g}$ as:
Compare and contrast the curves $\vec {f}(t) = \vector {-3+t,5+2t,1+3t}$ and $\vec {g}(t)=\vector {-3-t,5-2t,1-3t}$.
They parameterize different lines. They parameterize the same line, but $\vec {f}(t)$ moves in the opposite direction compared with $\vec {g}(t)$. They parameterize the same line, but $\vec {g}(t)$ moves “twice as fast” as $\vec {f}(t)$. These are the same function!
Note both lines start at the same point when $t=0$.
We can rewrite $\vec {f}$ and $\vec {g}$ as:
We can further rewrite $\vec {g}$ as:

We can use these ideas to parameterize any line in space. However, our parameterizations will not be unique as there are infinitely many different ways to parameterize the same line. Some parameterizations may “move faster” than others, or in the opposite direction, or even at uneven rates!

#### Distance between a point and a line

Given a point $\vec {p}$, notated as the tip of a vector with its tail at the origin, and a line we often want to know the distance between $\vec {p}$ and $\vecl$.

This distance is the length of the shortest path from $\vec {p}$ to the line $\vecl$. How do we find this distance? Well:
(a)
Recalling that the magnitude of a vector $|\vec {w}| =\sqrt {\vec {w}\dotp \vec {w}}$ we could attempt to minimize the function using the derivative. The square-root of the minimum value will be the distance.
(b)
We could compute the distance between $\proj _{\vec {v}}(\vec {p}-\vec {q})$ and $\vec {p}-\vec {q}$. This is: Checkout the diagram below:
However, both of these methods are somewhat involved. Perhaps the quickest method for determining the distance between a point and a line is by using the cross product. Since the cross product is only defined in $\R ^3$, we need $3$-dimensional vectors. If we consider the vector $\vec {p}-\vec {q}$, we see by the definition of sine that the distance we are looking for is given by However, so we see that Try your hand at it by answering the following questions:
What is the distance between the point $(1,2,3)$ and the line that passes through the origin and $(1,-2,2)$?

Try to use a similar technique for points and lines in $\R ^2$:

What is the distance between the point $(3,1)$ and the line that passes through the points $(1,1)$ and $(3,2)$?
To use the cross product, make these points $3$-dimensional by adding a $z$-component of $0$ to each point.
In this case $\vecl (t) = \vector {1,1,0} + t (\vector {3,2,0}-\vector {1,1,0})$.

However, depending on the question, you might want to think before blindly applying formulas. Try your hand at this last question:

Consider the line: What point on $\vecl$ is nearest to the point $(1,-1,-3)$?
Here, we are not asking for the distance, we are asking for the nearest point.
It will be easiest to use an orthogonal projection to answer this question.
The point on $\vecl$ closest to $(1,-1,-3)$ is:

### Circles and ellipses

Given two orthogonal unit vectors, $\uvec {u}$ and $\uvec {v}$, and any other vector $\vec {p}$, the vector-valued function gives a circle of radius $r$, centered at the tip of $\vec {p}$, lying in the plane containing $\uvec {u}$ and $\uvec {v}$. Moreover, to produce an ellipse, we write:

Let’s see an example.

Can you find a vector-valued formula for a circle of radius $3$ in the plane $y=2$ centered at $(3,2,0)$? A circle we seek is:

### Lines and curves embedded in surfaces

Curves can lie on surfaces. Typically, the surface is defined implicitly, and the curve is a vector-valued function. To check if the curve lies on the surface, break the curve into components and substitute:

• The $x$-component of the curve for $x$ in the equation of the surface.
• The $y$-component of the curve for $y$ in the equation of the surface.
• The $z$-component of the curve for $z$ in the equation of the surface.

If the equation defining the surfaces holds after the substitution, the curve lies on the surface. Try your hand at these puzzles:

Consider the plane: Which of the following lines are on this plane?
Separate each line into its component functions: $x$, $y$, and $z$, and see if the equation defining the surface is valid for all $t$.
$\vector {3,-3,3}+t\vector {-7,5,-1}$ $\vector {-1,-1,3}+t\vector {3,-2,3}$ $\vector {-4,2,2}+t\vector {5,-1,-1}$ $\vector {1,1,1}+t\vector {2,-4,2}$ $\vector {1,-1,-1}+t\vector {-7,5,1}$ $\vector {-2,-2,4}+t\vector {4,-2,2}$
Consider the planes:

Which of the following lines are on both of these planes?

Separate each line into its component functions: $x$, $y$, and $z$, and see if the equation defining each surface is valid for all $t$.
$\vector {22/7,38/7,-1}+t\vector {2,1,-1}$ $\vector {22/7,38/7,-1}+ t\vector {-2,-4,2}$ $\vector {8/7,10/7,1}+t\vector {4,2,-2}$ $\vector {15/7, 24/7, 0}+t\vector {7,-14,-7}$ $\vector {15/7, 24/7, 0}+t\vector {7,14,-7}$ $\vector {8/7,10/7,1}+t\vector {1,2,-1}$

Sometimes lines lie on surprising surfaces:

Consider the surface determined by all $x$, $y$ and $z$ such that: This surface looks something like: Which of the following lines lie on the surface $x^2+y^2=z^2+1$?
Separate each line into its component functions: $x$, $y$, and $z$, and see if the equation defining the surface is valid for all $t$.
$\vector {1,0,0} + t\vector {-5,0,5}$ $\vector {1,0,0} + t\vector {0,-3,3}$ $\vector {0,1,0} + t\vector {-7,0,-7}$ $\vector {0,1,0} + t\vector {-4,4,0}$ $\vector {1/2,\sqrt {3}/2,0} + t\vector {-\sqrt {3},1,2}$ $\vector {1/2,\sqrt {3}/2,0} + t\vector {-1,\sqrt {3},2}$

Though their formulation may be more complex, a vector-valued function that produces a curve is no different from that which produces a line (a line is a special type of curve!).

Consider the unit sphere: Which of the following curves lie on this sphere?
Separate each curve into its component functions: $x$, $y$, and $z$, and see if the equation defining the surface is valid for all $t$.
$\vector {\cos (t),\sin (t),0}$ $\vector {\sin (t),0,\cos (t)}$ $\vector {\cos (t),\sin (t),1}/\sqrt {2}$ $\vector {\sin (t),\sin (t),\cos (t)}/\sqrt {2}$
Consider the surface determined by all $x$, $y$ and $z$ such that: Which of the following curves lie on the surface $z^2=x^2+y^2$?
Separate each curve into its component functions: $x$, $y$, and $z$, and see if the equation defining the surface is valid for all $t$.
$\vector {t\cos (t),\sin (t),t}$ $\vector {6\cos (t),6\sin (t),1}$ $\vector {t\cos (t),t\sin (t),t}$ $\vector {\cos (t),-2\sin (t),-2}$ $\vector {6\cos (t),6\sin (t),6}$ $\vector {-2\cos (t),-2\sin (t),-2}$