# Integrating vector-valued functions

> AP Calculus BC · AP Calculus BC CED Unit 9
> Source: https://www.owlsprep.com/study/ap-calculus-bc-u9-integrating-vector-valued-functions/

This module covers indefinite and definite integration of 2D vector-valued functions, motion applications for finding position from velocity/acceleration, and arc length/total distance calculation for vector curves, all tested on AP Calculus BC.

**Prerequisites:** [Derivatives of vector-valued functions](https://www.owlsprep.com/study/ap-calculus-bc-u9-derivatives-of-vector-valued-functions/); Single-variable definite and indefinite integration; Parametric equations for planar motion

## Learning objectives

- Integrate indefinite and definite vector-valued functions component-wise
- Solve for position/velocity from acceleration/velocity using initial conditions
- Calculate arc length and total distance traveled for vector-valued curves
- Distinguish between net displacement and total distance for planar motion

## Indefinite and Definite Integration of Vector-Valued Functions

A 2D vector-valued function (the only form tested on AP Calculus BC) has the general form $\vec{r}(t) = \left< x(t), y(t) \right>$, where $x(t)$ and $y(t)$ are scalar functions of the parameter $t$ (almost always time for motion problems). Integration of vector-valued functions is done component-wise, by linearity of integration and vector addition.

$$\int \vec{r}(t) dt = \left< \int x(t) dt, \int y(t) dt \right> = \left< X(t) + C_1, Y(t) + C_2 \right> = \vec{R}(t) + \vec{C}$$

Where $X(t)$ is the antiderivative of $x(t)$, $Y(t)$ is the antiderivative of $y(t)$, and $\vec{C} = \left< C_1, C_2 \right>$ is the constant vector of integration. For definite integration, the Fundamental Theorem of Calculus extends directly to vector-valued functions:

$$\int_a^b \vec{r}(t) dt = \left< \int_a^b x(t) dt, \int_a^b y(t) dt \right> = \left< X(b) - X(a), Y(b) - Y(a) \right>$$

The result of a definite integral of a vector-valued function is always a constant vector, while the result of an indefinite integral is a family of vector-valued functions differing by a constant vector. This works because x and y components of planar motion are independent, with no cross-term interaction during integration.

**Worked example:** Find the indefinite integral of $\vec{v}(t) = \left< 4t - \cos t, 2e^{3t} \right>$.

1. Separate components to integrate independently: $v_x(t) = 4t - \cos t$ and $v_y(t) = 2e^{3t}$.
2. Integrate the x-component:

   $$\int (4t - \cos t) dt = 2t^2 - \sin t + C_1$$
3. Integrate the y-component:

   $$\int 2e^{3t} dt = \frac{2}{3}e^{3t} + C_2$$
4. Combine results into a single vector-valued antiderivative:

   $$\int \vec{v}(t) dt = \left< 2t^2 - \sin t, \frac{2}{3}e^{3t} \right> + \left< C_1, C_2 \right>$$

> **Exam tip:** On the AP exam, if you are asked for an indefinite integral of a vector-valued function, always include the constant vector; writing it as $\vec{C}$ is sufficient to earn full credit for the constant term in FRQ.

*Calculator:* forbidden

## Finding Position from Velocity/Acceleration with Initial Conditions

One of the most frequently tested applications of integrating vector-valued functions on the AP exam is solving for position $\vec{r}(t)$ given velocity $\vec{v}(t) = \vec{r}'(t)$, or velocity given acceleration $\vec{a}(t) = \vec{v}'(t)$, with initial conditions (e.g., initial position $\vec{r}(t_0) = \vec{r}_0$ or initial velocity $\vec{v}(t_0) = \vec{v}_0$).

The process follows the same component-wise integration rule, then we use the given initial condition to solve for the unknown constants $C_1$ and $C_2$. This is directly analogous to finding position from velocity for 1D motion, just extended to two independent components.

**Worked example:** A particle moves in the plane with acceleration $\vec{a}(t) = \left< 12t, -2\sin t \right>$ for $t \geq 0$. The initial velocity at $t=0$ is $\vec{v}(0) = \left< 2, 3 \right>$, and the initial position is $\vec{r}(0) = \left< 1, -1 \right>$. Find the velocity vector $\vec{v}(t)$.

1. Integrate the x-component of acceleration:

   $$\int 12t dt = 6t^2 + C_1$$
2. Integrate the y-component of acceleration:

   $$\int -2\sin t dt = 2\cos t + C_2$$
3. Use the initial velocity condition $v_x(0) = 2$: $6(0)^2 + C_1 = 2 \implies C_1 = 2$
4. Use the initial velocity condition $v_y(0) = 3$: $2\cos(0) + C_2 = 2 + C_2 = 3 \implies C_2 = 1$
5. Combine to get the final velocity vector:

   $$\vec{v}(t) = \left< 6t^2 + 2, 2\cos t + 1 \right>$$

To find position from velocity, repeat the integration step and use the initial position to solve for the new constant vector. AP FRQs often ask for both net displacement and total distance traveled, both relying on this integration step.

> **Exam tip:** If an FRQ asks for position at a specific time $t=T$, do not leave your answer in terms of $t$; always substitute $T$ into your position vector to get the final coordinate values, or you will lose a point for not answering the question asked.

*Calculator:* forbidden

## Arc Length and Total Distance for Vector-Valued Curves

For a plane curve given by the vector-valued function $\vec{r}(t) = \left< x(t), y(t) \right>$ for $a \leq t \leq b$, where $x'(t)$ and $y'(t)$ are continuous on $[a,b]$, the arc length $L$ of the curve from $t=a$ to $t=b$ is the integral of the magnitude of the derivative of $\vec{r}(t)$ (which equals speed for motion problems) over the interval.

$$L = \int_a^b |\vec{r}'(t)| dt = \int_a^b \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2} dt$$

This formula makes intuitive sense: we approximate the total length of the curve as the sum of infinitely many small tangent line segments, each of length approximately $|\vec{r}'(t)| dt$, so integrating gives the exact total length. For motion problems, this is also the formula for total distance traveled by a particle from $t=a$ to $t=b$.

**Worked example:** Find the total distance traveled by a particle with position vector $\vec{r}(t) = \left< 3\cos t, 3\sin t \right>$ from $t=0$ to $t=\pi$.

1. Differentiate each component to get the velocity vector:

   $$\vec{r}'(t) = \left< -3\sin t, 3\cos t \right>$$
2. Calculate the magnitude of the velocity vector (speed):

   $$|\vec{r}'(t)| = \sqrt{(-3\sin t)^2 + (3\cos t)^2} = \sqrt{9\sin^2 t + 9\cos^2 t}$$
3. Simplify using the Pythagorean identity $\sin^2 t + \cos^2 t = 1$:

   $$|\vec{r}'(t)| = \sqrt{9(\sin^2 t + \cos^2 t)} = 3$$
4. Integrate to get total distance traveled:

   $$L = \int_0^\pi 3 dt = 3t \bigg|_0^\pi = 3\pi$$

> **Exam tip:** Do not confuse arc length/total distance traveled with the magnitude of net displacement. Net displacement is the magnitude of $\int_a^b \vec{v}(t) dt$, while total distance is $\int_a^b |\vec{v}(t)| dt$—these are almost never equal.

*Calculator:* allowed

## Concept Check

**Check your understanding**

Test your understanding with this AP-style multiple-choice question:

1. The acceleration of a particle moving in the plane is $\vec{a}(t) = \left< 6t, -e^{-t} \right>$ for $t \geq 0$. If the initial velocity at $t=0$ is $\vec{v}(0) = \left< 1, 2 \right>$, what is $\vec{v}(1)$?

   - $\left< 4, 2 - \frac{1}{e} \right>$
   - $\left< 4, 1 + \frac{1}{e} \right>$
   - $\left< 7, 2 + \frac{1}{e} \right>$
   - $\left< 7, 1 - \frac{1}{e} \right>$

   *Answer:* $\left< 4, 1 + \frac{1}{e} \right>$

   *Why:* To solve, integrate acceleration component-wise: $v_x(t) = 3t^2 + 1$, $v_y(t) = e^{-t} + 1$. Substituting $t=1$ gives $v_x(1)=4$, $v_y(1)=1 + 1/e$, which matches option B.

## Common pitfalls

- **Wrong:** Forgetting to integrate both components and only presenting the x-component in the final position vector, stopping after integrating one component.
  - Why it fails: Students rush through motion problems and often overlook the y-component after finishing a more complicated x-component integral.
  - Correct: Always double-check that you have integrated both x and y components before applying initial conditions, and confirm both are present in your final answer.
- **Wrong:** Using the same constant $C$ for both x and y components instead of separate constants.
  - Why it fails: Students are used to single-variable integration with one constant, so they carry that habit over to vector-valued integration.
  - Correct: Label your constants for each component explicitly (e.g., $C_x$ and $C_y$) to remind yourself they can take different values.
- **Wrong:** Confusing net displacement with total distance traveled, by calculating the magnitude of the integral of velocity instead of integrating the magnitude of velocity.
  - Why it fails: The two phrases sound similar, and students mix up the order of the magnitude operation and integration.
  - Correct: When asked for total distance, immediately write down $\int_a^b |\vec{v}(t)| dt$ to anchor your work.
- **Wrong:** When calculating arc length, squaring only the coefficient of the derivative instead of the entire derivative term, e.g. writing $(-2)^2 \sin t + 2^2 \cos t$ instead of $(-2\sin t)^2 + (2\cos t)^2$.
  - Why it fails: Students rush the expansion of the square and drop the variable term.
  - Correct: Always put parentheses around the entire derivative before squaring when writing the arc length formula.
- **Wrong:** When solving for position from acceleration, integrating only once instead of twice.
  - Why it fails: Students forget acceleration is the derivative of velocity, which is the derivative of position, so two integration steps are required.
  - Correct: When starting from acceleration, first integrate to get velocity (solve for the velocity constant using initial velocity), then integrate velocity to get position (solve for the position constant using initial position).

## Cheatsheet

| Category | Formula | Notes |
| --- | --- | --- |
| Indefinite Integral (2D) | $\int \left< x(t), y(t) \right> dt = \left< \int x(t) dt, \int y(t) dt \right> = \vec{R}(t) + \vec{C}$ | $\vec{C} = \left< C_1, C_2 \right>$: separate constants per component |
| Definite Integral (2D) | $\int_a^b \left< x(t), y(t) \right> dt = \left< X(b)-X(a), Y(b)-Y(a) \right>$ | Result is a constant vector, extends FTC directly |
| Position from Velocity | $\vec{r}(t) = \int \vec{v}(t) dt + \vec{C}$ | Use initial position $\vec{r}(0) = \vec{r}_0$ to solve for constants |
| Velocity from Acceleration | $\vec{v}(t) = \int \vec{a}(t) dt + \vec{C}$ | Use initial velocity $\vec{v}(0) = \vec{v}_0$ to solve for constants |
| Arc Length / Total Distance | $L = \int_a^b \sqrt{(x'(t))^2 + (y'(t))^2} dt = \int_a^b \|\vec{r}'(t)\| dt$ | Derivatives must be continuous; equals total distance for motion |
| Net Displacement | $\Delta \vec{r} = \int_a^b \vec{v}(t) dt = \vec{r}(b) - \vec{r}(a)$ | Net displacement is a vector; its magnitude ≠ total distance |

## What's next

Mastering integration of vector-valued functions is a core prerequisite for the remaining topics in Unit 9 of AP Calculus BC, including arc length of parametric curves and area bounded by polar curves. These topics build directly on the component-wise integration and arc length fundamentals you practiced here, and multi-part AP FRQs often require connecting vector motion concepts to polar or parametric applications, so missing this foundation will cost you points. Beyond the AP exam, this topic lays the foundational logic for line integrals in college-level multivariable calculus, extending the component-wise integration idea to higher dimensions and more complex curve problems.

- [Solving motion problems using parametric and vector-valued functions](https://www.owlsprep.com/study/ap-calculus-bc-u9-solving-motion-problems-using-parametric/)
- [Defining polar coordinates and differentiating in polar form](https://www.owlsprep.com/study/ap-calculus-bc-u9-defining-polar-coordinates-and-differentiating/)
- [Finding the area of a polar region or the area enclosed by a single polar curve](https://www.owlsprep.com/study/ap-calculus-bc-u9-finding-the-area-of-a/)

---

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-integrating-vector-valued-functions/
