---
title: "Vectors | FiveStudy"
description: "Vector components and magnitude, direction angles, adding and scaling, unit vectors and i, j form, the dot product and angles, and vector triangles."
url: https://fivestudy.com/guides/ap-precalculus-4-8-vectors
---

[AP Precalculus](https://fivestudy.com/ap-precalculus) · Study guide

# Vectors

[Figure: FiveStudy]

FiveStudy

AP® Precalculus · Unit 4 · Functions Involving Parameters, Vectors, and Matrices

AP® Precalculus · Unit 4 · Functions Involving Parameters, Vectors, and Matrices

# *Vectors*

A vector is a quantity with both a size and a direction, like a displacement, a velocity or a force. This guide covers components and magnitude, combining vectors, unit vectors, the dot product, and solving vector triangles.

1. Components and magnitude 2. Adding and scaling vectors 3. Unit vectors 4. The dot product 5. Vector triangles

The idea in one paragraph

The vector from \(P_1(x_1, y_1)\) to \(P_2(x_2, y_2)\) is \(\langle a, b\rangle = \langle x_2 - x_1, y_2 - y_1\rangle\), also written \(a\vec i + b\vec j\). Its **magnitude** is \(\sqrt{a^2 + b^2}\) and its direction is that of the segment from the origin to \((a, b)\); with direction angle \(\theta\), the components are \(\langle |\vec v|\cos\theta, |\vec v|\sin\theta\rangle\). Vectors add and scale component by component. A **unit vector** has magnitude 1: divide a vector by its magnitude. The **dot product** \(\langle a_1, b_1\rangle \cdot \langle a_2, b_2\rangle = a_1a_2 + b_1b_2\) equals \(|\vec u||\vec v|\cos\theta\), so for nonzero vectors it is 0 when, and only when, they are perpendicular.

## 1 Components and magnitude

**Figure 1.** A vector records only how far and which way: the arrow from P₁ to P₂ and the arrow from the origin to (3, 4) are the same vector.

Worked Example 1 Components, magnitude and direction

### Find the vector from \(P_1(1, -2)\) to \(P_2(4, 2)\), its magnitude and its direction angle.

1. 1

   Components: \(\langle 4 - 1, 2 - (-2)\rangle = \langle 3, 4\rangle\).

2. 2

   Magnitude: \(|\vec v| = \sqrt{3^2 + 4^2} = 5\).

3. 3

   Direction: the angle with the positive x-axis has \(\tan\theta = \frac43\); in quadrant I, \(\theta \approx 53.13°\).

**Answer:** \(\langle 3, 4\rangle\), magnitude 5, direction about 53.13° (Figure 1).

Worked Example 2 Components from length and angle

### A vector has magnitude 10 and direction 150°. Find its components.

1. 1

   \(\vec v = \langle |\vec v|\cos\theta, |\vec v|\sin\theta\rangle = \langle 10\cos 150°, 10\sin 150°\rangle\).

2. 2

   \(= \langle -5\sqrt3, 5\rangle \approx \langle -8.660, 5\rangle\).

**Answer:** \(\langle -5\sqrt3, 5\rangle\)

Write it like this

“\(\vec v = \langle 3, 4\rangle\) has magnitude \(\sqrt{3^2 + 4^2} = 5\) and points about 53.13° above the positive x-axis.”

Common Mistake 1 · Subtracting the points in the wrong order

The vector from \(P_1\) to \(P_2\) is end minus start. \(P_1 - P_2 = \langle -3, -4\rangle\) has the same length but points the opposite way.

## 2 Adding and scaling vectors

**Figure 2.** Start v where u ends; the sum runs from the start of u to the end of v. Equal scales keep the angles true.

Worked Example 3 Combining vectors

### With \(\vec u = \langle 2, -1\rangle\) and \(\vec v = \langle -3, 4\rangle\), find \(\vec u + \vec v\), \(3\vec u\), \(\vec u - \vec v\) and \(2\vec u - \vec v\).

1. 1

   Add or subtract matching components: \(\vec u + \vec v = \langle -1, 3\rangle\), \(\vec u - \vec v = \langle 5, -5\rangle\).

2. 2

   Scalar multiples multiply each component: \(3\vec u = \langle 6, -3\rangle\), parallel to \(\vec u\) and 3 times as long.

3. 3

   \(2\vec u - \vec v = \langle 4, -2\rangle - \langle -3, 4\rangle = \langle 7, -6\rangle\).

**Answer:** \(\langle -1, 3\rangle\), \(\langle 6, -3\rangle\), \(\langle 5, -5\rangle\), \(\langle 7, -6\rangle\) (Figure 2).

Common Mistake 2 · Adding magnitudes

\(|\vec u + \vec v|\) is not \(|\vec u| + |\vec v|\) unless the vectors point the same way. Here \(\sqrt5 + 5 \approx 7.24\), but \(|\langle -1, 3\rangle| = \sqrt{10} \approx 3.16\).

## 3 Unit vectors

Worked Example 4 Unit vectors and i, j form

### Find the unit vector in the direction of \(\langle 3, 4\rangle\), and write \(\langle 3, 4\rangle\) with \(\vec i\) and \(\vec j\).

1. 1

   Divide by the magnitude: \(\frac15\langle 3, 4\rangle = \langle 0.6, 0.8\rangle\). Its length is \(\sqrt{0.36 + 0.64} = 1\).

2. 2

   \(\vec i = \langle 1, 0\rangle\) and \(\vec j = \langle 0, 1\rangle\), so \(\langle 3, 4\rangle = 3\vec i + 4\vec j\).

**Answer:** \(\langle 0.6, 0.8\rangle\); \(3\vec i + 4\vec j\)

## 4 The dot product

\[ \vec u \cdot \vec v = a_1a_2 + b_1b_2 = |\vec u|\,|\vec v|\cos\theta \]

Worked Example 5 Dot product and the angle between vectors

### Find \(\vec u \cdot \vec v\) and the angle between \(\vec u = \langle 2, -1\rangle\) and \(\vec v = \langle -3, 4\rangle\). Are \(\langle 2, 3\rangle\) and \(\langle -3, 2\rangle\) perpendicular?

1. 1

   \(\vec u \cdot \vec v = 2(-3) + (-1)(4) = -10\). \(|\vec u| = \sqrt5\), \(|\vec v| = 5\).

2. 2

   \(\cos\theta = \dfrac{\vec u \cdot \vec v}{|\vec u||\vec v|} = \dfrac{-10}{5\sqrt5} \approx -0.894\), so \(\theta \approx 153.43°\).

3. 3

   \(\langle 2, 3\rangle \cdot \langle -3, 2\rangle = -6 + 6 = 0\): a dot product of 0 means perpendicular.

**Answer:** \(-10\), about 153.43°; yes, perpendicular.

Common Mistake 3 · Expecting a vector from a dot product

The dot product of two vectors is a single number, not a vector. A negative value means the angle between them is more than 90°.

## 5 Vector triangles

Adding two vectors tip to tail forms a triangle. Its unknown side or angle can be found from components, or with the Law of Cosines (\(c^2 = a^2 + b^2 - 2ab\cos C\)) and the Law of Sines (\(\frac{\sin A}{a} = \frac{\sin B}{b}\)).

Worked Example 6 A resultant with the Law of Cosines

### A hiker walks 4 km east, then 3 km in the direction 60° north of east. How far is she from the start?

1. 1

   Components: \(\langle 4, 0\rangle + \langle 3\cos 60°, 3\sin 60°\rangle = \langle 5.5, 2.598\rangle\), with length \(\approx 6.083\) km.

2. 2

   Check with a triangle: the two legs meet at an angle of \(180° - 60° = 120°\), so \(d^2 = 4^2 + 3^2 - 2(4)(3)\cos 120° = 25 + 12 = 37\).

3. 3

   \(d = \sqrt{37} \approx 6.083\) km, in the direction \(\arctan\frac{2.598}{5.5} \approx 25.28°\) north of east.

**Answer:** About 6.083 km from the start.

### Quick reference

| Operation | Formula |
| --- | --- |
| From \(P_1\) to \(P_2\) | \(\langle x_2 - x_1, y_2 - y_1\rangle\) |
| Magnitude | \(\sqrt{a^2 + b^2}\) |
| From length and angle | \(\langle \|\vec v\|\cos\theta, \|\vec v\|\sin\theta\rangle\) |
| Sum, scalar multiple | Component by component |
| Unit vector | \(\frac{\vec v}{\|\vec v\|}\) |
| Dot product | \(a_1a_2 + b_1b_2 = \|\vec u\|\|\vec v\|\cos\theta\) |
| Perpendicular | \(\vec u \cdot \vec v = 0\) |

FiveStudy AP® Precalculus · Vectors
