Vectors in 2D
Work through the videos below in order. When you have watched them, take the quiz and try the exercises. A quiz score of at least 7 out of 10 suggests sufficient understanding.
Learning objectives¶
After working through this topic, you should be able to:
- Represent vectors in the coordinate plane and perform vector algebra
- Compute the dot product of two vectors and interpret the result
- Use parametric equations to describe a line in 2D (optional)
Videos¶
1. Vectors in 2D¶
Distinguish vectors from scalars, write vectors in component form, and add, subtract, and scale them.
2. Dot product¶
Compute the dot product, find vector length, and determine angles between vectors.
3. Parametric equation of a line (optional)¶
Describe a line in the plane using a position vector, a direction vector, and a parameter.
Quiz¶
When you have been through the videos, test your understanding with the quiz below. The quiz contains 10 questions. A score of at least 7 out of 10 suggests sufficient understanding. You can see your total score at the bottom of the page, as well as your score for each question. You can retake the quiz as many times as you like — results are not stored or assessed.
Question 1
Which of the following is a vector quantity?
Question 2
Which notation correctly represents a vector with horizontal component $3$ and vertical component $-2$?
Question 3
If $\mathbf{u} = \begin{pmatrix} 1 \\ 2 \end{pmatrix}$ and $\mathbf{v} = \begin{pmatrix} 4 \\ -1 \end{pmatrix}$, what is $\mathbf{u} + \mathbf{v}$?
Question 4
If $\mathbf{u} = \begin{pmatrix} 5 \\ 3 \end{pmatrix}$ and $\mathbf{v} = \begin{pmatrix} 2 \\ 1 \end{pmatrix}$, what is $\mathbf{u} - \mathbf{v}$?
Question 5
What is $3\mathbf{a}$ when $\mathbf{a} = \begin{pmatrix} 2 \\ -4 \end{pmatrix}$?
Question 6
What is the dot product $\mathbf{a} \cdot \mathbf{b}$ for $\mathbf{a} = \begin{pmatrix} 2 \\ 3 \end{pmatrix}$ and $\mathbf{b} = \begin{pmatrix} 4 \\ 1 \end{pmatrix}$?
Question 7
What is the length $|\mathbf{a}|$ of $\mathbf{a} = \begin{pmatrix} 3 \\ 4 \end{pmatrix}$?
Question 8
If $\theta$ is the angle between nonzero vectors $\mathbf{a}$ and $\mathbf{b}$, which expression equals $\cos\theta$?
Question 9
Vectors $\mathbf{u} = \begin{pmatrix} 1 \\ 2 \end{pmatrix}$ and $\mathbf{v} = \begin{pmatrix} 4 \\ -2 \end{pmatrix}$ are perpendicular. Why?
Question 10
A line is given by $\mathbf{r} = \mathbf{r}_0 + t\mathbf{d}$ with $\mathbf{r}_0 = \begin{pmatrix} 1 \\ 2 \end{pmatrix}$ and $\mathbf{d} = \begin{pmatrix} 3 \\ 1 \end{pmatrix}$. What is the position vector when $t = 2$?
Exercises¶
For step-by-step worked examples and formulas for this topic, see the Vectors in 2D tutorial.
Exercise 1¶
Given \(\mathbf{u} = \begin{pmatrix} 4 \\ -1 \end{pmatrix}\) and \(\mathbf{v} = \begin{pmatrix} 1 \\ 5 \end{pmatrix}\), find:
- \(\mathbf{u} + \mathbf{v}\)
- \(\mathbf{u} - \mathbf{v}\)
- \(3\mathbf{u}\)
- \(\begin{pmatrix} 5 \\ 4 \end{pmatrix}\)
- \(\begin{pmatrix} 3 \\ -6 \end{pmatrix}\)
- \(\begin{pmatrix} 12 \\ -3 \end{pmatrix}\)
Exercise 2¶
Given \(\mathbf{a} = \begin{pmatrix} 2 \\ 4 \end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix} 3 \\ -2 \end{pmatrix}\), compute \(\mathbf{a} \cdot \mathbf{b}\).
\(\mathbf{a} \cdot \mathbf{b} = 2 \cdot 3 + 4 \cdot (-2) = 6 - 8 = -2\)
Exercise 3¶
Find the length \(|\mathbf{c}|\) when \(\mathbf{c} = \begin{pmatrix} 6 \\ 8 \end{pmatrix}\).
\(|\mathbf{c}| = \sqrt{6^2 + 8^2} = \sqrt{36 + 64} = \sqrt{100} = 10\)
Exercise 4¶
Find \(\cos\theta\) for the angle \(\theta\) between \(\mathbf{a} = \begin{pmatrix} 3 \\ 0 \end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix} 0 \\ 4 \end{pmatrix}\).
\(\mathbf{a} \cdot \mathbf{b} = 0\), \(|\mathbf{a}| = 3\), and \(|\mathbf{b}| = 4\), so \(\cos\theta = 0\). The vectors are perpendicular.
Exercise 5¶
Are \(\mathbf{u} = \begin{pmatrix} 1 \\ 4 \end{pmatrix}\) and \(\mathbf{v} = \begin{pmatrix} 8 \\ -2 \end{pmatrix}\) perpendicular? Justify your answer.
Yes. \(\mathbf{u} \cdot \mathbf{v} = 1 \cdot 8 + 4 \cdot (-2) = 8 - 8 = 0\), so the vectors are perpendicular.
Exercise 6¶
Find the value of \(k\) such that \(\mathbf{a} = \begin{pmatrix} 2 \\ k \end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix} 3 \\ 1 \end{pmatrix}\) satisfy \(\mathbf{a} \cdot \mathbf{b} = 10\).
\(2 \cdot 3 + k \cdot 1 = 10 \;\Rightarrow\; 6 + k = 10 \;\Rightarrow\; k = 4\)
Exercise 7¶
Given \(\mathbf{a} = \begin{pmatrix} 3 \\ 1 \end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix} 1 \\ 2 \end{pmatrix}\), find \(2\mathbf{a} - \mathbf{b}\).
\(2\begin{pmatrix} 3 \\ 1 \end{pmatrix} - \begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 6 \\ 2 \end{pmatrix} - \begin{pmatrix} 1 \\ 2 \end{pmatrix} = \begin{pmatrix} 5 \\ 0 \end{pmatrix}\)
Exercise 8¶
A line passes through the origin with direction vector \(\mathbf{d} = \begin{pmatrix} 1 \\ 4 \end{pmatrix}\). Using \(\mathbf{r} = t\mathbf{d}\), find the point on the line when \(t = 3\).
\(\mathbf{r} = 3\begin{pmatrix} 1 \\ 4 \end{pmatrix} = \begin{pmatrix} 3 \\ 12 \end{pmatrix}\)
Exercise 9 (optional)¶
A line is given by \(\mathbf{r} = \begin{pmatrix} 2 \\ 1 \end{pmatrix} + t\begin{pmatrix} 2 \\ 3 \end{pmatrix}\). Find the position vector when \(t = 2\).
\(\mathbf{r} = \begin{pmatrix} 2 \\ 1 \end{pmatrix} + 2\begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 2 + 4 \\ 1 + 6 \end{pmatrix} = \begin{pmatrix} 6 \\ 7 \end{pmatrix}\)
Exercise 10¶
Given \(\mathbf{a} = \begin{pmatrix} 4 \\ 1 \end{pmatrix}\) and \(\mathbf{b} = \begin{pmatrix} 1 \\ 2 \end{pmatrix}\), find \(|\mathbf{a} + \mathbf{b}|\).
\(\mathbf{a} + \mathbf{b} = \begin{pmatrix} 5 \\ 3 \end{pmatrix}\), so \(|\mathbf{a} + \mathbf{b}| = \sqrt{5^2 + 3^2} = \sqrt{25 + 9} = \sqrt{34}\)
Total Score Summary
Your total score for all quizzes on this page is: 0 / 0