AP Precalculus · Functions involving parameters, vectors and matrices
Vectors
1What a vector is
A vector has both magnitude (size) and direction. It is drawn as an arrow and written in component form
$$\mathbf{v} = \langle v_1, v_2 \rangle$$
- The vector from $P(x_1, y_1)$ to $Q(x_2, y_2)$ is $\overrightarrow{PQ} = \langle x_2 - x_1, y_2 - y_1 \rangle$.
- Magnitude: $|\mathbf{v}| = \sqrt{v_1^2 + v_2^2}$.
- Direction angle $\theta$: $\tan\theta = \frac{v_2}{v_1}$ (check the quadrant). Then $\mathbf{v} = \langle |\mathbf{v}|\cos\theta, |\mathbf{v}|\sin\theta \rangle$.
- A unit vector has magnitude 1: $\frac{\mathbf{v}}{|\mathbf{v}|}$. The standard unit vectors are $\mathbf{i} = \langle 1, 0 \rangle$ and $\mathbf{j} = \langle 0, 1 \rangle$, so $\langle 3, -2 \rangle = 3\mathbf{i} - 2\mathbf{j}$.
$P(1, 2)$, $Q(4, 6)$.
- $\overrightarrow{PQ} = \langle 3, 4 \rangle$.
- $|\overrightarrow{PQ}| = 5$; unit vector $\left\langle \frac{3}{5}, \frac{4}{5} \right\rangle$.
Check yourself
The magnitude of ⟨−5, 12⟩ is:
Show the answer
13
√(25 + 144).
2Vector operations
- Addition: $\langle a, b \rangle + \langle c, d \rangle = \langle a + c, b + d \rangle$ (tip-to-tail, or the diagonal of a parallelogram).
- Scalar multiplication: $k\langle a, b \rangle = \langle ka, kb \rangle$ stretches the vector by $|k|$; if $k < 0$ it reverses direction.
- Subtraction: $\mathbf{u} - \mathbf{v} = \mathbf{u} + (-\mathbf{v})$.
$\mathbf{u} = \langle 2, -1 \rangle$, $\mathbf{v} = \langle -3, 4 \rangle$.
- $2\mathbf{u} + \mathbf{v} = \langle 4, -2 \rangle + \langle -3, 4 \rangle = \langle 1, 2 \rangle$.
Adding vectors tip to tail: 2u + v
Check yourself
⟨1, 3⟩ − 2⟨2, −1⟩ =
Show the answer
⟨−3, 5⟩
⟨1 − 4, 3 + 2⟩.
3The dot product and angles
The dot product is a number:
$$\mathbf{u}\cdot\mathbf{v} = u_1v_1 + u_2v_2 = |\mathbf{u}||\mathbf{v}|\cos\theta$$
where $\theta$ is the angle between the vectors.
- $\mathbf{u}\cdot\mathbf{v} = 0$ means the vectors are perpendicular (orthogonal).
- $\mathbf{u}\cdot\mathbf{v} > 0$: acute angle; $< 0$: obtuse angle.
angle between $\langle 3, 4 \rangle$ and $\langle 5, -12 \rangle$.
- Dot product: $15 - 48 = -33$.
- $\cos\theta = \frac{-33}{5 \times 13} = -\frac{33}{65}$, so $\theta \approx 120.5°$.
Check yourself
Are ⟨2, 6⟩ and ⟨9, −3⟩ perpendicular?
Show the answer
Yes, their dot product is 0
18 − 18 = 0.
4Applications: displacement, velocity and force
Vectors model quantities with direction:
- Velocity: a plane flies at 300 km/h on a bearing, with a wind vector added to give the ground velocity.
- Force: the resultant of several forces is their vector sum.
- Motion: position $\mathbf{p}(t) = \mathbf{p}_0 + t\mathbf{v}$ for constant velocity $\mathbf{v}$.
a boat moves at $\langle 8, 0 \rangle$ km/h through water, and the current is $\langle 0, -3 \rangle$ km/h.
- Resultant velocity $\langle 8, -3 \rangle$.
- Speed $\sqrt{64 + 9} = \sqrt{73} \approx 8.54$ km/h, at $\tan^{-1}\left(-\frac{3}{8}\right) \approx -20.6°$ (20.6° south of east).
a particle starts at $(1, 2)$ with velocity $\langle 3, -1 \rangle$ m/s. After 4 s it is at $(1 + 12, 2 - 4) = (13, -2)$.
Check yourself
A force ⟨4, 3⟩ N and a force ⟨−1, 1⟩ N act together. The resultant force has magnitude:
Show the answer
5 N
⟨3, 4⟩.
5Going deeper: components, the dot product and motion problems
A vector has magnitude and direction. In component form $\vec{v} = \langle a, b\rangle$; from point P to point Q, subtract: $\vec{PQ} = \langle x_Q - x_P, y_Q - y_P\rangle$.
Basics
- Magnitude: $|\vec{v}| = \sqrt{a^2 + b^2}$.
- Direction angle θ: $\tan\theta = \frac{b}{a}$, chosen in the correct quadrant.
- From magnitude and direction: $\vec{v} = \langle |\vec{v}|\cos\theta, |\vec{v}|\sin\theta\rangle$.
- Addition: add components (tip-to-tail geometrically).
- Scalar multiplication: multiply each component; a negative scalar reverses direction.
- Unit vector: $\frac{\vec{v}}{|\vec{v}|}$, with length 1. $\hat{i} = \langle 1, 0\rangle$, $\hat{j} = \langle 0, 1\rangle$.
$\vec{u} = \langle 3, 4\rangle$ and $\vec{v} = \langle -1, 2\rangle$.
- $\vec{u} + \vec{v} = \langle 2, 6\rangle$.
- $2\vec{u} - \vec{v} = \langle 7, 6\rangle$.
- $|\vec{u}| = 5$; unit vector $\langle 0.6, 0.8\rangle$.
- A vector of length 10 in the direction of $\vec{u}$: $\langle 6, 8\rangle$.
Dot product: $\vec{u}\cdot\vec{v} = u_1v_1 + u_2v_2 = |\vec{u}||\vec{v}|\cos\theta$. The result is a number.
- Zero: the vectors are perpendicular.
- Positive: the angle between them is acute; negative: obtuse.
Worked example (angle between vectors): the same $\vec{u}$ and $\vec{v}$.
- $\vec{u}\cdot\vec{v} = 3(-1) + 4(2) = 5$.
- $|\vec{v}| = \sqrt{5}$.
- $\cos\theta = \frac{5}{5\sqrt{5}} = 0.447$, so θ = 63.4°.
Worked example (perpendicular?): $\langle 2, -3\rangle\cdot\langle 6, 4\rangle = 12 - 12 = 0$: perpendicular.
Parallel vectors: one is a scalar multiple of the other: ⟨2, −3⟩ and ⟨−4, 6⟩.
Velocity and resultant
a plane flies due east at 200 mph in still air; a wind blows due north at 30 mph.
- Resultant $= \langle 200, 0\rangle + \langle 0, 30\rangle = \langle 200, 30\rangle$.
- Ground speed $= \sqrt{200^2 + 30^2} = 202.2$ mph.
- Direction: $\arctan\frac{30}{200} = 8.5°$ north of east.
Worked example (components of a force): a 50 N force acts at 40° above the horizontal.
- Horizontal: 50 cos 40° = 38.3 N.
- Vertical: 50 sin 40° = 32.1 N.
Vector-valued (parametric) description of a line: a particle starts at (1, 2) with constant velocity ⟨3, −1⟩:
$\vec{r}(t) = \langle 1, 2\rangle + t\langle 3, -1\rangle = \langle 1 + 3t, 2 - t\rangle$.
- Position at t = 4: (13, −2).
- Speed: $\sqrt{9 + 1} = 3.16$ units per unit time.
- It crosses the x-axis when 2 − t = 0: t = 2, at (7, 0).
Displacement against distance: displacement is a vector (net change in position); distance is the scalar length of the path.
Law of cosines from vectors: $|\vec{u} - \vec{v}|^2 = |\vec{u}|^2 + |\vec{v}|^2 - 2\vec{u}\cdot\vec{v}$.
Common mistakes
- Adding magnitudes in place of components.
- Wrong quadrant for the direction angle (a calculator's arctan gives only quadrants I and IV).
- Treating the dot product as a vector.
- Subtracting points in the wrong order.
- Confusing speed (magnitude) with velocity (vector).
Check yourself
What is the dot product of ⟨4, −2⟩ and ⟨1, 5⟩, and what does its sign indicate?
Show the answer
−6; the angle between the vectors is obtuse
4(1) + (−2)(5) = −6, and a negative dot product means an angle greater than 90°.
6For top marks
- Subtract end minus start for a displacement vector.
- Use the dot product formula to find angles; give degrees or radians as asked.
- Write directions clearly (angle from the positive x-axis, or a compass description).
- Remember the dot product is a scalar, while sums and scalar multiples are vectors.
"The unit vector in the direction of $\langle 6, -8 \rangle$ is $\langle 0.6, -0.8 \rangle$, so a speed of 25 in that direction gives $\langle 15, -20 \rangle$."
Check yourself
A vector of magnitude 10 in direction 30° from the positive x-axis is:
Show the answer
⟨5√3, 5⟩
⟨10 cos 30°, 10 sin 30°⟩.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera