← Back to calculus 3

Vector-Valued Functions

From scalar functions to vector-valued functions

A scalar function f:RRf : \mathbb{R} \to \mathbb{R} takes a single number tt and returns a single number f(t)f(t). Its graph is a curve in the xyxy-plane — one input, one output.

A vector-valued function generalises this: instead of returning a single number, it returns a vector. More precisely, it is a map

r:RRn.\mathbf{r} : \mathbb{R} \to \mathbb{R}^n.

We are most interested in the case n=3n = 3, giving

r:RR3.\mathbf{r} : \mathbb{R} \to \mathbb{R}^3.
Scalar functionVector-valued function
InputtRt \in \mathbb{R}tRt \in \mathbb{R}
Outputf(t)Rf(t) \in \mathbb{R}r(t)R3\mathbf{r}(t) \in \mathbb{R}^3
Graphcurve in R2\mathbb{R}^2curve in R3\mathbb{R}^3
Calculusf(t)f'(t), fdt\int f\,dtr(t)\mathbf{r}'(t), rdt\int \mathbf{r}\,dt (component-wise)

The parameter tt often represents time, and r(t)\mathbf{r}(t) traces the position of a moving particle.


Component form and the connection to parametric curves

A vector-valued function r:RR3\mathbf{r} : \mathbb{R} \to \mathbb{R}^3 is written in component form as

r(t)=(f(t),g(t),h(t))=f(t)i+g(t)j+h(t)k,\boxed{\mathbf{r}(t) = \bigl(f(t),\, g(t),\, h(t)\bigr) = f(t)\,\mathbf{i} + g(t)\,\mathbf{j} + h(t)\,\mathbf{k},}

where ff, gg, h:RRh : \mathbb{R} \to \mathbb{R} are ordinary scalar functions called the component functions.

This is the 3D analogue of parametric curves: just as a 2D parametric curve

(x(t),y(t))\bigl(x(t), y(t)\bigr)

traces a path in the plane, the vector-valued function r(t)=(f(t),g(t),h(t))\mathbf{r}(t) = (f(t), g(t), h(t)) traces a space curve in R3\mathbb{R}^3. Every vector-valued function into R3\mathbb{R}^3 gives a parametric curve in space, and conversely.

In short: the component functions ff, gg, hh are the parametric equations x=f(t)x = f(t), y=g(t)y = g(t), z=h(t)z = h(t).

Write out the three component functions of

r(t)=(t2,  et,  sint).\mathbf{r}(t) = (t^2,\; e^t,\; \sin t).

Answer:

f(t)=t2,g(t)=et,h(t)=sint.f(t) = t^2, \quad g(t) = e^t, \quad h(t) = \sin t.

The corresponding parametric equations are x=t2x = t^2, y=ety = e^t, z=sintz = \sin t.

Let r(t)=(cost,sint,t)\mathbf{r}(t) = (\cos t,\, \sin t,\, t). Evaluate r(0)\mathbf{r}(0) and r(π)\mathbf{r}(\pi).

Answer:

r(0)=(1,0,0),r(π)=(1,0,π).\mathbf{r}(0) = (1, 0, 0), \qquad \mathbf{r}(\pi) = (-1, 0, \pi).

Space curves: examples

The graph of a vector-valued function r(t)\mathbf{r}(t) is a space curve — a one-dimensional path winding through three-dimensional space.

Example 1: Circular helix

r(t)=(cost,  sint,  t).\mathbf{r}(t) = (\cos t,\; \sin t,\; t).

r(t) = (cos t, sin t, t), t ∈ [0, 4π]


Example 2: Toroidal wave

r(t)=((4+sin20t)cost,    (4+sin20t)sint,    cos20t).\mathbf{r}(t) = \bigl((4 + \sin 20t)\cos t,\;\; (4 + \sin 20t)\sin t,\;\; \cos 20t\bigr).

The slowly-varying angle tt sweeps around a large circle of radius 4, while sin20t\sin 20t and cos20t\cos 20t produce rapid oscillations. The curve winds 20 times around the torus in one full revolution.

r(t) = ((4+sin 20t) cos t, (4+sin 20t) sin t, cos 20t)


Example 3: Torus knot

r(t)=((2+cos1.5t)cost,    (2+cos1.5t)sint,    sin1.5t).\mathbf{r}(t) = \bigl((2 + \cos 1.5t)\cos t,\;\; (2 + \cos 1.5t)\sin t,\;\; \sin 1.5t\bigr).

Here the angular frequency 1.51.5 is a half-integer, so the curve does not close after one revolution. It closes after tt completes 4π4\pi (two revolutions), forming a knot on the torus.

r(t) = ((2+cos 1.5t) cos t, (2+cos 1.5t) sin t, sin 1.5t)


Limits and continuity

Limit

The limit of a vector-valued function is taken component-wise. If r(t)=(f(t),g(t),h(t))\mathbf{r}(t) = (f(t), g(t), h(t)), then

limtar(t)=(limtaf(t),    limtag(t),    limtah(t)),\lim_{t \to a} \mathbf{r}(t) = \Bigl(\lim_{t \to a} f(t),\;\; \lim_{t \to a} g(t),\;\; \lim_{t \to a} h(t)\Bigr),

provided all three component limits exist.

Example. Let r(t)=(sintt,  et,  t2)\mathbf{r}(t) = \left(\dfrac{\sin t}{t},\; e^t,\; t^2\right). Then

limt0r(t)=(limt0sintt,  e0,  02)=(1,1,0).\lim_{t \to 0} \mathbf{r}(t) = \left(\lim_{t \to 0}\frac{\sin t}{t},\; e^0,\; 0^2\right) = (1, 1, 0).

Continuity

r\mathbf{r} is continuous at t=at = a if

limtar(t)=r(a).\lim_{t \to a} \mathbf{r}(t) = \mathbf{r}(a).

Equivalently, r\mathbf{r} is continuous at aa if and only if each component function ff, gg, hh is continuous at aa.

Find

limt1(t2,  lnt,  t).\lim_{t \to 1} \bigl(t^2,\; \ln t,\; \sqrt{t}\bigr).

Answer:

limt1t2=1,limt1lnt=0,limt1t=1.\lim_{t \to 1} t^2 = 1, \quad \lim_{t \to 1} \ln t = 0, \quad \lim_{t \to 1} \sqrt{t} = 1.

So the limit is (1,0,1)(1, 0, 1).

Is

r(t)=(t21t1,  cost,  t)\mathbf{r}(t) = \left(\frac{t^2 - 1}{t - 1},\; \cos t,\; t\right)

continuous at t=1t = 1?

Answer:

The first component is t21t1=t+1\dfrac{t^2-1}{t-1} = t+1 for t1t \neq 1, but r(1)\mathbf{r}(1) requires dividing by zero — the function is not defined at t=1t=1, hence not continuous there.

(If we define r(1)=(2,cos1,1)\mathbf{r}(1) = (2, \cos 1, 1), the extended function is continuous.)

For

r(t)=(t,    ln(t1),    et),\mathbf{r}(t) = \Bigl(\sqrt{t},\;\; \ln(t-1),\;\; e^t\Bigr),

on what interval is r\mathbf{r} continuous?

Answer:

  • t\sqrt{t} is continuous for t0t \ge 0.
  • ln(t1)\ln(t-1) is continuous for t>1t > 1.
  • ete^t is continuous everywhere.

The intersection is t>1t > 1, i.e., the interval (1,)(1, \infty).


Example: intersection curve from two surfaces

Problem. Find a vector-valued function r(t)\mathbf{r}(t) whose graph is the curve of intersection of the cylinder

x2+y2=1x^2 + y^2 = 1

and the plane

y+z=2.y + z = 2.

Solution.

The cylinder x2+y2=1x^2 + y^2 = 1 says that (x,y)(x, y) lies on the unit circle at every height zz. Parametrize the circle exactly as a parametric curve:

x=cost,y=sint.x = \cos t, \qquad y = \sin t.

Now use the plane equation y+z=2y + z = 2 to solve for zz:

z=2y=2sint.z = 2 - y = 2 - \sin t.

Therefore the intersection curve is

r(t)=(cost,    sint,    2sint),t[0,2π].\boxed{\mathbf{r}(t) = (\cos t,\;\; \sin t,\;\; 2 - \sin t), \quad t \in [0, 2\pi].}

Verification. For all tt:

x2+y2=cos2t+sin2t=1x^2 + y^2 = \cos^2 t + \sin^2 t = 1 \checkmark y+z=sint+(2sint)=2y + z = \sin t + (2 - \sin t) = 2 \checkmark

The graph below shows the cylinder x2+y2=1x^2+y^2=1 (blue), the plane y+z=2y+z=2 (yellow), and the intersection curve (red).

Cylinder x²+y²=1 (blue) ∩ Plane y+z=2 (yellow) → r(t) = (cos t, sin t, 2−sin t)

Reading the components. The three component functions tell the whole story:

ComponentFormulaRole
x=f(t)x = f(t)cost\cos tmoves left–right, period 2π2\pi
y=g(t)y = g(t)sint\sin tmoves front–back, period 2π2\pi
z=h(t)z = h(t)2sint2 - \sin taltitude, highest when sint=1\sin t = -1, lowest when sint=1\sin t = 1

Notice that zz and yy are mirror images of each other around z=2z=2: whenever the curve dips to its lowest yy, it rises to its highest zz, and vice versa.

Find r(t)\mathbf{r}(t) for the intersection of x2+y2=4x^2 + y^2 = 4 and the plane x+z=3x + z = 3.

Answer:

Parametrize the circle of radius 2: x=2costx = 2\cos t, y=2sinty = 2\sin t.

From the plane: z=3x=32costz = 3 - x = 3 - 2\cos t.

r(t)=(2cost,    2sint,    32cost),t[0,2π].\mathbf{r}(t) = (2\cos t,\;\; 2\sin t,\;\; 3 - 2\cos t), \quad t \in [0, 2\pi].

Check:

x2+y2=4cos2t+4sin2t=4x^2 + y^2 = 4\cos^2 t + 4\sin^2 t = 4 \checkmarkx+z=2cost+32cost=3x + z = 2\cos t + 3 - 2\cos t = 3 \checkmark

Mixed practice

Write a vector-valued function for the line through (1,2,3)(1, 2, 3) in the direction (4,1,0)(4, -1, 0).

Use the vector form of a line from Lines and Planes.

r(t)=(1+4t,    2t,    3),tR.\mathbf{r}(t) = (1 + 4t,\;\; 2 - t,\;\; 3), \quad t \in \mathbb{R}.

What familiar surface does the curve r(t)=(3cost,3sint,5)\mathbf{r}(t) = (3\cos t, 3\sin t, 5) lie on?

Consider x2+y2x^2 + y^2 and the value of zz.

x2+y2=9cos2t+9sin2t=9x^2 + y^2 = 9\cos^2 t + 9\sin^2 t = 9 and z=5z = 5 is constant. So the curve lies on the circular cylinder x2+y2=9x^2 + y^2 = 9 at height z=5z = 5 — it is a circle of radius 3.

Evaluate

limt0(1costt2,    sin2tt,    e3t).\lim_{t \to 0} \left(\frac{1 - \cos t}{t^2},\;\; \frac{\sin 2t}{t},\;\; e^{3t}\right).

Use standard limits: limt01costt2=12\lim_{t\to 0}\dfrac{1-\cos t}{t^2} = \dfrac{1}{2} and limt0sin2tt=2\lim_{t\to 0}\dfrac{\sin 2t}{t} = 2.

limt01costt2=12,limt0sin2tt=2,e0=1.\lim_{t\to 0}\frac{1-\cos t}{t^2}=\frac{1}{2}, \quad \lim_{t\to 0}\frac{\sin 2t}{t}=2, \quad e^0=1.

So the limit is (12,2,1)\left(\dfrac{1}{2}, 2, 1\right).

Find r(t)\mathbf{r}(t) for the intersection of the cylinder y2+z2=9y^2 + z^2 = 9 with the plane x+y=5x + y = 5.

Parametrize the circle y2+z2=9y^2 + z^2 = 9 using yy and zz, then solve for xx from the plane.

Parametrize: y=3costy = 3\cos t, z=3sintz = 3\sin t.

From the plane: x=5y=53costx = 5 - y = 5 - 3\cos t.

r(t)=(53cost,    3cost,    3sint),t[0,2π].\mathbf{r}(t) = (5 - 3\cos t,\;\; 3\cos t,\;\; 3\sin t), \quad t \in [0, 2\pi].