Calculus of Vector-Valued Functions
A parametric curve is made of
In the last chapter, we learned how to construct and interpret these curves. We now ask the usual questions of calculus: What happens as the parameter approaches a particular value? How quickly is the curve changing? And how can we recover a vector-valued function from its rate of change?
7.1Differentiation of Vector-Valued Functions
Before defining the derivative, we need one brief observation about limits. Taking limits of a parametric curve is just taking the limit of each component function.
Definition 7.1 (Limits of Parametric Curves). If
Example 7.2 (Limits of Parametric Curves). Let
Compute the limit
Computing the limit componentwise we see we just need to evaluate three limits:
The first of these is continuous at zero, so we can plug in directly. The second is the standard limit
Recall the single variable definition of the derivative:
The same definition works for parametric curves:
Definition 7.3 (Differentiating Curves). The derivative of a parametric curve
The numerator here is a vector connecting two points of the curve that get closer together as
However, we don't need to calculate the derivative using this limit statement every time! We can use the fact that limits distribute over the components of the function to prove that we can also take the derivative one component at a time.
Theorem 7.4 (Differentiating Curves Componentwise). If
Once we know the derivative, the tangent line is an immediate calculation. For example, let
At
Therefore the tangent line is
Because of this, it is straightforward to show that differentiation of vector functions obeys the familiar laws of single-variable calculus: you can break it up over sums and pull out scalars. But now there are three types of products: do we multiply the vector function by a scalar function, or take its dot or cross product with another vector?
Theorem 7.5 (Differentiation Product Laws).
The cross-product rule applies to vector-valued functions in
There is also a chain rule: although we cannot generally compose one curve inside another, we can plug a scalar function in as the parameter of a curve.
Theorem 7.6 (The Chain Rule).
You probably notice a similarity to the single variable calculus versions in all of these: they're as close as possible, except now being about vector functions! But these simple looking rules actually provide us a new powerful set of tools, they tell us about the rate of change at the same time as dot and cross products - which we know can measure areas and angles!
As one quick example, we'll prove a very useful fact about curves defined by vectors of constant length.
Theorem 7.7 (Curves on the Sphere). If a curve
Proof. Since the magnitude of a vector can be calculated from its dot product, we see that
Taking the derivative of this with the product rule, we find
The dot product is commutative (order does not matter), so we can rearrange the left-hand side:
Dividing by two shows that the dot product of
7.2Motion and Integration
When the parameter
Velocity records both the direction and rate of motion. Its magnitude
records only how fast the particle is moving.
The story of vector valued integration is similarly straightforward. Recall the definition of integration via Riemann sum:
We can apply the same definition to vector-valued functions because it is composed only of addition and scalar multiplication.
Definition 7.8 (Integrating Vector-Valued Functions). If
But wait! Both scalar multiplication and addition are operations we can perform componentwise on a vector. So we can break this large Riemann sum into a standard Riemann sum in each component. Taking the limit tells us that we can integrate vector functions componentwise.
Theorem 7.9 (Integrating Curves Componentwise). If
The Riemann sum in the definition has a concrete meaning when the vector function is velocity: each term is approximately the displacement during one short interval of time.
We will only find limited use of this in our class, as there are other types of integrals along curves that will prove more important. Nonetheless this does show up in many applications of multivariable calculus to engineering and physics, where one may wish to recover position from velocity, or velocity from acceleration.
Example 7.10 (Displacement from Velocity). If
An integral gives a change, so recovering the function itself also requires an
initial value. If the velocity
and
The same is true for acceleration: our phones contain sensors called three-axis accelerometers. These measure acceleration as a function of time:
But this is not what software running on the phone wants or needs: it cares about your position in space, for example when using augmented reality. Given the necessary initial conditions, it can integrate acceleration to get velocity and then integrate again to get position. For any engineers in the class—if you have accelerometers in the Hive, this could be a fun project to code. Write a small Python program to numerically integrate (i.e., compute a Riemann sum from) the output data of an accelerometer and track your hand's position as you move it around.
Real accelerometer data also includes gravity, measurement noise, and errors in the phone's orientation. Because those errors are integrated along with the signal, a small velocity error can grow into a large position error. The idea is simple; making it reliable is the hard part.
The magnitude