# Defining and differentiating vector-valued functions

> AP Calculus BC · Parametric Equations, Polar Coordinates, and Vector-Valued Functions
> Source: https://www.owlsprep.com/study/ap-calculus-bc-u9-defining-and-differentiating-vector-valued/

This module covers 2D vector-valued function definition, domain calculation, component-wise differentiation, velocity/acceleration/speed for motion problems, and the chain rule for composite vector functions, aligned to AP Calculus BC exam expectations.

**Prerequisites:** Limits of single-variable functions; Differentiation rules for single-variable functions; Basic vector operations in 2D

## Learning objectives

- Define vector-valued functions and calculate their domains
- Differentiate vector-valued functions component-wise using standard single-variable rules
- Calculate velocity, acceleration, and speed from a given position vector
- Apply the chain rule to composite vector-valued functions

## Definition and Domain of Vector-Valued Functions

A vector-valued function takes a single scalar input (almost always $t$, typically representing time in motion problems) and outputs a multi-dimensional vector. For AP Calculus BC, you will almost always work with 2D vector-valued functions, with 3D functions following identical rules.

**2D Vector-Valued Function** — A function where $x(t)$ and $y(t)$ are scalar functions of the common scalar parameter $t$. The domain of $\vec{r}(t)$ is the intersection of the domains of $x(t)$ and $y(t)$: $t$ is only in the domain if it is valid for both components.

*Notation:* \vec{r}(t) = \langle x(t), y(t) \rangle = x(t)\hat{i} + y(t)\hat{j}

*Example:* A parametric curve is the graph of a 2D vector-valued position function.

**Worked example:** Find the domain of the vector-valued function $\vec{r}(t) = \left\langle \frac{1}{t-2}, \sqrt{4 - t} \right\rangle$.

1. First, find the domain of the x-component $x(t) = \frac{1}{t-2}$. A rational function is undefined when the denominator is zero, so:

   $$t - 2 \neq 0 \implies t \neq 2$$
2. The domain of $x(t)$ is all real numbers except $t=2$, or $(-\infty, 2) \cup (2, \infty)$. Next, find the domain of the y-component $y(t) = \sqrt{4 - t}$. The expression inside a square root must be non-negative, so:

   $$4 - t \geq 0 \implies t \leq 4$$
3. The domain of $y(t)$ is $(-\infty, 4]$. The domain of $\vec{r}(t)$ is the intersection of the two domains, so we only keep values valid for both components. Excluding $t=2$ and all $t>4$, the final domain is:

   $$(-\infty, 2) \cup (2, 4]$$

> **Exam tip:** When finding the domain of a vector-valued function, always check each component individually. Common hidden restrictions (denominators, square roots, logarithms) are easy to miss if you only check one component.

## Component-Wise Differentiation of Vector-Valued Functions

The derivative of a vector-valued function is defined by the same limit structure as scalar functions:

$$\vec{r}'(t) = \lim_{\Delta t \to 0} \frac{\vec{r}(t + \Delta t) - \vec{r}(t)}{\Delta t}$$

Because vector operations work component-wise, this limit simplifies to a straightforward rule: differentiate each component function separately using all the single-variable differentiation rules you already know. For $\vec{r}(t) = \langle x(t), y(t) \rangle$, the derivative is:

$$\vec{r}'(t) = \langle x'(t), y'(t) \rangle$$

Intuitively, $\vec{r}'(t)$ is the tangent vector to the curve traced by $\vec{r}(t)$ at time $t$, pointing in the direction the curve moves as $t$ increases.

**Worked example:** Find $\vec{r}'(1)$ for the vector-valued function $\vec{r}(t) = \langle t^3 + \sin(2t), e^{t^2} \ln t \rangle$.

1. Differentiate the x-component $x(t) = t^3 + \sin(2t)$ using the power rule and chain rule for the sine term:

   $$x'(t) = 3t^2 + 2\cos(2t)$$
2. Differentiate the y-component $y(t) = e^{t^2} \ln t$ using the product rule and chain rule for the exponential term:

   $$y'(t) = \left(2t e^{t^2}\right)\ln t + e^{t^2} \cdot \frac{1}{t} = e^{t^2} \left(2t \ln t + \frac{1}{t}\right)$$
3. Substitute $t=1$ into both derivatives:

   $$x'(1) = 3(1)^2 + 2\cos(2(1)) = 3 + 2\cos 2 \approx 2.168 \\ y'(1) = e^{1^2} \left(2(1)\ln 1 + \frac{1}{1}\right) = e(0 + 1) = e \approx 2.718$$
4. The resulting derivative vector at $t=1$ is:

   $$\vec{r}'(1) = \langle 3 + 2\cos 2, e \rangle \approx \langle 2.168, 2.718 \rangle$$

> **Exam tip:** Always differentiate each component separately, don't try to treat the entire vector as a single scalar expression. If you forget that differentiation is component-wise, you will almost certainly make an error on components with products or composite functions.

## Velocity, Acceleration, and Speed from Position Vectors

When $\vec{r}(t)$ is the position vector of an object moving in the plane at time $t$, its first and second derivatives have standard physical interpretations that are frequently tested on the AP exam:

$$\begin{aligned} \text{Position: } \vec{r}(t) &= \langle x(t), y(t) \rangle \\ \text{Velocity: } \vec{v}(t) &= \vec{r}'(t) = \langle x'(t), y'(t) \rangle \\ \text{Acceleration: } \vec{a}(t) &= \vec{r}''(t) = \langle x''(t), y''(t) \rangle \end{aligned}$$

Velocity is a vector that gives the direction of motion and the rate of movement. Speed is the scalar magnitude (length) of the velocity vector, calculated as:

$$\text{speed} = |\vec{v}(t)| = \sqrt{(x'(t))^2 + (y'(t))^2}$$

> **tip**
>
> AP exam questions very frequently ask for speed rather than velocity, so it is critical to remember the difference between the two quantities.

**Worked example:** A particle moves in the plane with position vector $\vec{r}(t) = \langle 3\cos t, 4\sin t \rangle$ for $t \geq 0$. Find the velocity vector, acceleration vector, and speed at $t = \frac{\pi}{3}$.

1. Differentiate position to get velocity, then substitute $t = \frac{\pi}{3}$. We know $\sin\left(\frac{\pi}{3}\right) = \frac{\sqrt{3}}{2}$ and $\cos\left(\frac{\pi}{3}\right) = \frac{1}{2}$:

   $$\vec{v}(t) = \langle -3\sin t, 4\cos t \rangle \implies \vec{v}\left(\frac{\pi}{3}\right) = \left\langle -\frac{3\sqrt{3}}{2}, 2 \right\rangle$$
2. Differentiate velocity to get acceleration, then substitute $t = \frac{\pi}{3}$:

   $$\vec{a}(t) = \langle -3\cos t, -4\sin t \rangle \implies \vec{a}\left(\frac{\pi}{3}\right) = \left\langle -\frac{3}{2}, -2\sqrt{3} \right\rangle$$
3. Calculate speed as the magnitude of velocity:

   $$\text{speed} = \sqrt{\left(-\frac{3\sqrt{3}}{2}\right)^2 + (2)^2} = \sqrt{\frac{27}{4} + 4} = \sqrt{\frac{43}{4}} = \frac{\sqrt{43}}{2} \approx 3.279$$

> **Exam tip:** When a question asks for speed, remember it is a scalar magnitude, not a vector. If you give the velocity vector instead of its magnitude on an FRQ, you will lose points. Always check the question wording for "velocity" vs "speed".

## Chain Rule for Composite Vector-Valued Functions

If $\vec{r}$ is a function of $u$, and $u$ is itself a function of $t$, we have a composite vector-valued function $\vec{r}(u(t))$. The chain rule for this composite follows the same structure as for scalar functions, and still operates component-wise:

$$\frac{d\vec{r}}{dt} = \frac{d\vec{r}}{du} \cdot \frac{du}{dt}$$

For $\vec{r}(u) = \langle x(u), y(u) \rangle$, this expands to:

$$\frac{d\vec{r}}{dt} = \langle x'(u(t)) \cdot u'(t), y'(u(t)) \cdot u'(t) \rangle$$

This rule commonly appears in motion problems where a path parameter is a function of time, or when reparameterizing a curve.

**Worked example:** Let $\vec{r}(u) = \langle u^2, 3u + 1 \rangle$, where $u(t) = e^{2t}$. Find $\frac{d\vec{r}}{dt}$ when $t = 0$.

1. First, find $\frac{d\vec{r}}{du}$ by differentiating each component of $\vec{r}$ with respect to $u$:

   $$\frac{d\vec{r}}{du} = \langle 2u, 3 \rangle$$
2. Next, find $\frac{du}{dt}$ by differentiating $u(t) = e^{2t}$ with respect to $t$:

   $$\frac{du}{dt} = 2e^{2t}$$
3. Apply the chain rule to get the general derivative:

   $$\frac{d\vec{r}}{dt} = \frac{d\vec{r}}{du} \cdot \frac{du}{dt} = \langle 2u \cdot 2e^{2t}, 3 \cdot 2e^{2t} \rangle = \langle 4u e^{2t}, 6 e^{2t} \rangle$$
4. Substitute $t=0$ to get the derivative at the requested point. Note that $u(0) = e^{0} = 1$:

   $$\frac{d\vec{r}}{dt}\bigg|_{t=0} = \langle 4(1)(1), 6(1) \rangle = \langle 4, 6 \rangle$$

> **Exam tip:** When working with composite vector-valued functions, don't forget to multiply by the derivative of the inner function. It's easy to drop the $\frac{du}{dt}$ term because you're focused on remembering component-wise differentiation.

## Concept Check

**Check your understanding**

Test your understanding of component-wise differentiation with this AP-style multiple choice question:

1. Which of the following is equal to the derivative of $\vec{r}(t) = \langle t^2 e^{t^3}, \ln(\cos t) \rangle$?

   - $\langle 3t^4 e^{t^3}, -\tan t \rangle$
   - $\langle 2t e^{t^3} + 3t^4 e^{t^3}, -\tan t \rangle$
   - $\langle 2t e^{t^3} + 3t^2 e^{t^3}, \tan t \rangle$
   - $\langle 6t^2 e^{t^3}, -\frac{1}{\sin t} \rangle$

   *Answer:* $\langle 2t e^{t^3} + 3t^4 e^{t^3}, -\tan t \rangle$

   *Why:* Correct! You applied the product rule and chain rule to the x-component, and the chain rule to the y-component to get the right result.

## Common pitfalls

- **Wrong:** Writing the domain of $\vec{r}(t) = \langle 1/t, \sqrt{t} \rangle$ as $[0, \infty)$, ignoring the $t=0$ restriction on the x-component.
  - Why it fails: Students only check the last component and forget that all components must be defined for $t$ to be in the domain.
  - Correct: Always write down the domain of each component separately, then compute their intersection to get the domain of the vector-valued function.
- **Wrong:** Differentiating $\vec{r}(t) = \langle t \sin t, t e^t \rangle$ as $\vec{r}'(t) = \langle \cos t, e^t \rangle$, forgetting the product rule on each component.
  - Why it fails: Students think vector differentiation adds new rules that override single-variable rules, or forget that every component needs full single-variable differentiation.
  - Correct: For each component, apply all relevant single-variable differentiation rules (product, quotient, chain) as if it were a standalone scalar function.
- **Wrong:** When asked for speed of a particle with velocity $\vec{v}(t) = \langle 2, 3 \rangle$, answering $\langle 2, 3 \rangle$ instead of $\sqrt{13}$.
  - Why it fails: Students confuse velocity (a vector quantity) with speed (the scalar magnitude of velocity).
  - Correct: Always check the question wording: if it asks for speed, compute the magnitude of the velocity vector after finding the components.
- **Wrong:** Differentiating $\vec{r}(t) = \langle \sin(t^2), \cos(t^2) \rangle$ as $\vec{r}'(t) = \langle \cos(t^2), -\sin(t^2) \rangle$, forgetting the chain rule on the inner $t^2$ term.
  - Why it fails: Students focus on remembering that differentiation is component-wise and miss chain rule steps inside individual components.
  - Correct: After writing the derivative of the outer function in each component, always check if the argument of the function is anything other than $t$, and multiply by the derivative of the argument if needed.
- **Wrong:** For the composite vector function $\vec{r}(u(t))$, writing the derivative as $\langle x'(u(t)), y'(u(t)) \rangle$, omitting the factor of $u'(t)$ on both components.
  - Why it fails: Students forget that the chain rule applies to the whole vector, not just individual components, and miss the common outer factor.
  - Correct: Always apply the chain rule explicitly: write $\frac{d\vec{r}}{dt} = \frac{d\vec{r}}{du} \cdot \frac{du}{dt}$ before substituting values.

## Cheatsheet

| Category | Formula | Notes |
| --- | --- | --- |
| General 2D Vector-Valued Function | $\vec{r}(t) = \langle x(t), y(t) \rangle = x(t)\hat{i} + y(t)\hat{j}$ | Input is scalar $t$, output is vector; domain is intersection of domains of $x(t), y(t)$ |
| Derivative of Vector-Valued Function | $\vec{r}'(t) = \langle x'(t), y'(t) \rangle$ | Differentiate each component separately; $\vec{r}'(t)$ is the tangent vector to the curve |
| Velocity Vector (from position) | $\vec{v}(t) = \vec{r}'(t) = \langle x'(t), y'(t) \rangle$ | Vector describing direction and rate of motion |
| Acceleration Vector | $\vec{a}(t) = \vec{r}''(t) = \langle x''(t), y''(t) \rangle$ | Second derivative of the position vector |
| Speed (scalar) | $\text{speed} = \|\vec{v}(t)\| = \sqrt{(x'(t))^2 + (y'(t))^2}$ | Magnitude of the velocity vector; always a non-negative scalar |
| Chain Rule for Composite | $\frac{d\vec{r}}{dt} = \frac{d\vec{r}}{du} \cdot \frac{du}{dt}$ | For $\vec{r}(u(t))$, applies component-wise to all dimensions |

## What's next

Now that you have mastered defining and differentiating vector-valued functions, you are ready to extend these concepts to integrating vector-valued functions, which is used to find position from velocity and calculate displacement along a parametric curve. This topic is the foundation for analyzing motion in the plane, a common AP Calculus BC FRQ topic that ties together parametric equations, vector functions, and derivatives of scalar functions. Understanding vector-valued functions also prepares you for arc length calculation of parametric curves and the calculus of polar functions, which are other key topics in Unit 9 of the AP Calculus BC CED.

- [Integrating Vector-Valued Functions](https://www.owlsprep.com/study/ap-calculus-bc-u9-integrating-vector-valued-functions/)
- [Unit 9 Overview](https://www.owlsprep.com/study/ap-calculus-bc-u9-overview/)
- [Solving motion problems using parametric and vector-valued functions](https://www.owlsprep.com/study/ap-calculus-bc-u9-solving-motion-problems-using-parametric/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-calculus-bc-u9-defining-and-differentiating-vector-valued/
