Skip to main content
Logo image

Section A.1 Vectors, mappings, and matrices

Note: 2 lectures
In real life, there is most often more than one variable. We wish to organize dealing with multiple variables in a consistent manner, and in particular organize dealing with linear equations and linear mappings, as those are both rather useful and rather easy to handle. Mathematicians joke that “to an engineer every problem is linear, and everything is a matrix.” And well, they (the engineers) are not wrong. Quite often, solving an engineering problem is figuring out the right finite-dimensional linear problem to solve, which is then solved with some matrix manipulation. Most importantly, linear problems are the ones that we know how to solve, and we have many tools to solve them. For engineers, mathematicians, physicists, and anybody else in a technical field, it is absolutely vital to learn linear algebra.
As motivation, suppose we wish to solve
\begin{equation*} \begin{aligned} & x-y = 2 , \\ & 2x+y = 4 , \end{aligned} \end{equation*}
for \(x\) and \(y\text{.}\) That is, we desire numbers \(x\) and \(y\) such that the two equations are satisfied. Let us perhaps start by adding the equations together to find
\begin{equation*} x+2x-y+y = 2+4, \qquad \text{or} \qquad 3x = 6 . \end{equation*}
In other words, \(x=2\text{.}\) Once we have that, we plug \(x=2\) into the first equation to find \(2-y=2\text{,}\) so \(y=0\text{.}\) OK, that was easy. What is all this fuss about linear equations. Well, try doing this if you have 5000 unknowns
One of the downsides of making everything look like a linear problem is that the number of variables tends to become huge.
. Also, we may have such equations not just of numbers, but of functions and derivatives of functions in differential equations. Clearly we need a systematic way of doing things. A nice consequence of making things systematic and simpler to write down is that it becomes easier to have computers do the work for us. Computers are rather stupid, they do not think, but are very good at doing lots of repetitive tasks precisely, as long as we figure out a systematic way for them to perform the tasks.

Subsection A.1.1 Vectors and operations on vectors

Consider \(n\) real numbers as an \(n\)-tuple:
\begin{equation*} (x_1,x_2,\ldots,x_n). \end{equation*}
The set of such \(n\)-tuples is the so-called \(n\)-dimensional space, often denoted by \({\mathbb R}^n\text{.}\) Sometimes we call this the \(n\)-dimensional euclidean space
Named after the ancient Greek mathematician Euclid of Alexandria (around 300 BC), possibly the most famous of mathematicians; even small towns often have Euclid Street or Euclid Avenue.
. In two dimensions, \({\mathbb R}^2\) is called the cartesian plane
Named after the French mathematician René Descartes (1596–1650). It is “cartesian” as his name in Latin is Renatus Cartesius.
. Each such \(n\)-tuple represents a point in the \(n\)-dimensional space. For example, the point \((1,2)\) in the plane \({\mathbb R}^2\) is one unit to the right and two units up from the origin.
When we do algebra with these \(n\)-tuples of numbers we call them vectors
A common notation to distinguish vectors from points is to write \((1,2)\) for the point and \(\langle 1,2 \rangle\) for the vector. We write both as \((1,2)\text{.}\)
. Mathematicians are keen on separating what is a vector and what is a point of the space or in the plane, and it turns out to be an important distinction, however, for the purposes of linear algebra we can think of everything being represented by a vector. A way to think of a vector, which is especially useful in calculus and differential equations, is an arrow. It is an object that has a direction and a magnitude. For instance, the vector \((1,2)\) is the arrow from the origin to the point \((1,2)\) in the plane. The magnitude is the length of the arrow. See Figure A.1. If we think of vectors as arrows, the arrow does not always have to start at the origin. If we do move it around, however, it should always keep the same direction and the same magnitude.

Figure A.1. The vector \((1,2)\) drawn as an arrow from the origin to the point \((1,2)\text{.}\)

As vectors are arrows, when we want to give a name to a vector, we draw a little arrow above it:
\begin{equation*} \vec{x} \end{equation*}
Another popular notation is a bold \(\mathbf{x}\text{,}\) although we will use the little arrows. It may be easy to write a bold letter in a book, but it is not so easy to write it by hand on paper or on the board. Mathematicians often do not even write the arrows. A mathematician would write \(x\) and remember that \(x\) is a vector and not a number. Just like you remember that Bob is your uncle, and you don’t have to keep repeating “Uncle Bob” and you can just say “Bob.” In this book, however, we will call Bob “Uncle Bob” and write vectors with the little arrows.
The magnitude can be computed using the Pythagorean theorem. The vector \((1,2)\) drawn in the figure has magnitude \(\sqrt{1^2+2^2} = \sqrt{5}\text{.}\) The magnitude is denoted by \(\lVert \vec{x} \rVert\text{,}\) and, in any number of dimensions, it can be computed in the same way:
\begin{equation*} \lVert \vec{x} \rVert = \lVert (x_1,x_2,\ldots,x_n) \rVert = \sqrt{x_1^2+x_2^2+\cdots+x_n^2} . \end{equation*}
For reasons that will become clear in the next section, we often write vectors as so-called column vectors:
\begin{equation*} \vec{x} = \begin{bmatrix} x_{1} \\ x_2 \\ \vdots \\ x_n \end{bmatrix} . \end{equation*}
Don’t worry. It is just a different way of writing the same thing. For example, the vector \((1,2)\) can be written as
\begin{equation*} \begin{bmatrix} 1 \\ 2 \end{bmatrix} . \end{equation*}
The fact that we write arrows above vectors allows us to write several vectors \(\vec{x}_1\text{,}\) \(\vec{x}_2\text{,}\) etc., without confusing these with the components of some other vector \(\vec{x}\text{.}\)
So where is the algebra from linear algebra? Well, arrows can be added, subtracted, and multiplied by numbers. First we consider addition. If we have two arrows, we simply move along one, and then along the other. See Figure A.2.

Figure A.2. Adding the vectors \((1,2)\text{,}\) drawn dotted, and \((2,-3)\text{,}\) drawn dashed. The result, \((3,-1)\text{,}\) is drawn as a solid arrow.

It is rather easy to see what it does to the numbers that represent the vectors. Suppose we want to add \((1,2)\) to \((2,-3)\) as in the figure. We travel along \((1,2)\) and then we travel along \((2,-3)\text{.}\) What we did was travel one unit right, two units up, and then we travelled two units right, and three units down (the negative three). That means that we ended up at \(\bigl(1+2,2+(-3)\bigr) = (3,-1)\text{.}\) And that’s how addition always works:
\begin{equation*} \begin{bmatrix} x_{1} \\ x_2 \\ \vdots \\ x_n \end{bmatrix} + \begin{bmatrix} y_{1} \\ y_2 \\ \vdots \\ y_n \end{bmatrix} = \begin{bmatrix} x_1 + y_{1} \\ x_2+ y_2 \\ \vdots \\ x_n + y_n \end{bmatrix} . \end{equation*}
Subtracting is similar. What \(\vec{x}- \vec{y}\) means visually is that we first travel along \(\vec{x}\text{,}\) and then we travel backwards along \(\vec{y}\text{.}\) See Figure A.3. It is like adding \(\vec{x}+ (- \vec{y})\) where \(-\vec{y}\) is the arrow we obtain by erasing the arrow head from one side and drawing it on the other side, that is, we reverse the direction. In terms of the numbers, we simply go backwards both horizontally and vertically, so we negate both numbers. For instance, if \(\vec{y}\) is \((-2,1)\text{,}\) then \(-\vec{y}\) is \((2,-1)\text{.}\)

Figure A.3. Subtraction, the vector \((1,2)\text{,}\) drawn dotted, minus \((-2,1)\text{,}\) drawn dashed. The result, \((3,1)\text{,}\) is drawn as a solid arrow.

Another intuitive thing to do to a vector is to scale it. We represent this by multiplication of a number with a vector. Because of this, when we wish to distinguish between vectors and numbers, we call the numbers scalars. For example, suppose we want to travel three times further. If the vector is \((1,2)\text{,}\) travelling 3 times further means going 3 units to the right and 6 units up, so we get the vector \((3,6)\text{.}\) We just multiply each number in the vector by 3. If \(\alpha\) is a number, then
\begin{equation*} \alpha \begin{bmatrix} x_{1} \\ x_2 \\ \vdots \\ x_n \end{bmatrix} = \begin{bmatrix} \alpha x_{1} \\ \alpha x_2 \\ \vdots \\ \alpha x_n \end{bmatrix} . \end{equation*}
Scaling (by a positive number) multiplies the magnitude and leaves direction untouched. The magnitude of \((1,2)\) is \(\sqrt{5}\text{.}\) The magnitude of 3 times \((1,2)\text{,}\) that is, \((3,6)\text{,}\) is \(3\sqrt{5}\text{.}\)
When the scalar is negative, then when we multiply a vector by it, the vector is not only scaled, but it also switches direction. Multiplying \((1,2)\) by \(-3\) means we should go 3 times further but in the opposite direction, so 3 units to the left and 6 units down, or in other words, \((-3,-6)\text{.}\) As we mentioned above, \(-\vec{y}\) is a reverse of \(\vec{y}\text{,}\) and this is the same as \((-1)\vec{y}\text{.}\)
In Figure A.4, you can see a couple of examples of what scaling a vector means visually.

Figure A.4. A vector \(\vec{x}\text{,}\) the vector \(2\vec{x}\) (same direction, double the magnitude), and the vector \(-1.5\vec{x}\) (opposite direction, 1.5 times the magnitude).

We put all of these operations together to work out more complicated expressions. Let us compute a small example:
\begin{equation*} 3 \begin{bmatrix} 1 \\ 2 \end{bmatrix} + 2 \begin{bmatrix} -4 \\ -1 \end{bmatrix} - 3 \begin{bmatrix} -2 \\ 2 \end{bmatrix} = \begin{bmatrix} 3(1)+2(-4)-3(-2) \\ 3(2)+2(-1)-3(2) \end{bmatrix} = \begin{bmatrix} 1 \\ -2 \end{bmatrix} . \end{equation*}
As we said a vector is a direction and a magnitude. Magnitude is easy to represent, it is just a number. The direction is usually given by a vector with magnitude one. We call such a vector a unit vector. That is, \(\vec{u}\) is a unit vector when \(\lVert \vec{u} \rVert = 1\text{.}\) For instance, the vectors \((1,0)\text{,}\) \((\nicefrac{1}{\sqrt{2}},\nicefrac{1}{\sqrt{2}})\text{,}\) and \((0,-1)\) are all unit vectors.
To represent the direction of a vector \(\vec{x}\text{,}\) we need to find the unit vector in the same direction. To do so, we simply rescale \(\vec{x}\) by the reciprocal of the magnitude, that is \(\frac{1}{\lVert \vec{x} \rVert} \vec{x}\text{,}\) or more concisely \(\frac{\vec{x}}{\lVert \vec{x} \rVert}\text{.}\)
As an example, the unit vector in the direction of \((1,2)\) is the vector
\begin{equation*} \frac{1}{\sqrt{1^2+2^2}} (1,2) = \left( \frac{1}{\sqrt{5}}, \frac{2}{\sqrt{5}} \right) . \end{equation*}

Subsection A.1.2 Linear mappings and matrices

A vector-valued function \(F\) is a rule that takes a vector \(\vec{x}\) and returns another vector \(\vec{y}\text{.}\) For example, \(F\) could be a scaling that doubles the size of vectors:
\begin{equation*} F(\vec{x}) = 2 \vec{x} . \end{equation*}
Applied to say \((1,3)\) we get
\begin{equation*} F \left( \begin{bmatrix} 1 \\ 3 \end{bmatrix} \right) = 2 \begin{bmatrix} 1 \\ 3 \end{bmatrix} = \begin{bmatrix} 2 \\ 6 \end{bmatrix} . \end{equation*}
If \(F\) is a mapping that takes vectors in \({\mathbb R}^2\) to \({\mathbb R}^2\) (such as the above), we write
\begin{equation*} F \colon {\mathbb R}^2 \to {\mathbb R}^2 . \end{equation*}
The words function and mapping are used rather interchangeably, although more often than not, mapping is used when talking about a vector-valued function, and the word function is often used when the function is scalar-valued.
A beginning student of mathematics (and many a seasoned mathematician), that sees an expression such as
\begin{equation*} f(3x+8y) \end{equation*}
yearns to write
\begin{equation*} 3f(x)+8f(y) . \end{equation*}
After all, who hasn’t wanted to write \(\sqrt{x+y} = \sqrt{x} + \sqrt{y}\) or something like that at some point in their mathematical lives. Wouldn’t life be simple if we could do that? Of course we cannot always do that (for example, not with the square roots!) But there are many other functions where we can do exactly the above. Such functions are called linear.
A mapping \(F \colon {\mathbb R}^n \to {\mathbb R}^m\) is called linear if
\begin{equation*} F(\vec{x}+\vec{y}) = F(\vec{x})+F(\vec{y}), \end{equation*}
for any vectors \(\vec{x}\) and \(\vec{y}\text{,}\) and also
\begin{equation*} F(\alpha \vec{x}) = \alpha F(\vec{x}) , \end{equation*}
for any scalar \(\alpha\text{.}\) The \(F\) we defined above that doubles the size of all vectors is linear. Let us check:
\begin{equation*} F(\vec{x}+\vec{y}) = 2(\vec{x}+\vec{y}) = 2\vec{x}+2\vec{y} = F(\vec{x})+F(\vec{y}) , \end{equation*}
and also
\begin{equation*} F(\alpha \vec{x}) = 2 \alpha \vec{x} = \alpha 2 \vec{x} = \alpha F(\vec{x}) . \end{equation*}
We also call a linear function a linear transformation. If you want to be really fancy and impress your friends, you can call it a linear operator. When a mapping is linear we often do not write the parentheses. We write simply
\begin{equation*} F \vec{x} \end{equation*}
instead of \(F(\vec{x})\text{.}\) We do this because linearity means that the mapping \(F\) behaves like multiplying \(\vec{x}\) by “something.” That something is a matrix.
A matrix is an \(m \times n\) array of numbers (\(m\) rows and \(n\) columns). A \(3 \times 5\) matrix is
\begin{equation*} A = \begin{bmatrix} a_{11} & a_{12} & a_{13} & a_{14} & a_{15} \\ a_{21} & a_{22} & a_{23} & a_{24} & a_{25} \\ a_{31} & a_{32} & a_{33} & a_{34} & a_{35} \end{bmatrix} . \end{equation*}
The numbers \(a_{ij}\) are called elements or entries.
A column vector is simply an \(m \times 1\) matrix. Similarly to a column vector there is also a row vector, which is a \(1 \times n\) matrix. If we have an \(n \times n\) matrix, then we say that it is a square matrix.
Now how does a matrix \(A\) relate to a linear mapping? Well a matrix tells you where certain special vectors go. Let’s give a name to those certain vectors. The standard basis vectors of \({\mathbb R}^n\) are
\begin{equation*} \vec{e}_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \\ \vdots \\ 0 \end{bmatrix} , \qquad \vec{e}_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \\ \vdots \\ 0 \end{bmatrix} , \qquad \vec{e}_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \\ \vdots \\ 0 \end{bmatrix} , \qquad \cdots , \qquad \vec{e}_n = \begin{bmatrix} 0 \\ 0 \\ 0 \\ \vdots \\ 1 \end{bmatrix} . \end{equation*}
In \({\mathbb R}^3\) these vectors are
\begin{equation*} \vec{e}_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} , \qquad \vec{e}_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix} , \qquad \vec{e}_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix} . \end{equation*}
You may recall from calculus of several variables that these are sometimes called \(\vec{\imath}\text{,}\) \(\vec{\jmath}\text{,}\) \(\vec{k}\text{.}\)
The reason these are called a basis is that every other vector can be written as a linear combination of them. For example, in \({\mathbb R}^3\) the vector \((4,5,6)\) can be written as
\begin{equation*} 4 \vec{e}_1 + 5 \vec{e}_2 + 6 \vec{e}_3 = 4 \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} + 5 \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix} + 6 \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix} = \begin{bmatrix} 4 \\ 5 \\ 6 \end{bmatrix} . \end{equation*}
So how does a matrix represent a linear mapping? Well, the columns of the matrix are the vectors where \(A\) as a linear mapping takes \(\vec{e}_1\text{,}\) \(\vec{e}_2\text{,}\) etc. For instance, consider
\begin{equation*} M = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} . \end{equation*}
As a linear mapping \(M \colon {\mathbb R}^2 \to {\mathbb R}^2\) takes \(\vec{e}_1 = \left[ \begin{smallmatrix} 1 \\ 0 \end{smallmatrix} \right]\) to \(\left[ \begin{smallmatrix} 1 \\ 3 \end{smallmatrix} \right]\) and \(\vec{e}_2 = \left[ \begin{smallmatrix} 0 \\ 1 \end{smallmatrix} \right]\) to \(\left[ \begin{smallmatrix} 2 \\ 4 \end{smallmatrix} \right]\text{.}\) In other words,
\begin{equation*} M \vec{e}_1 = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 1 \\ 0 \end{bmatrix} = \begin{bmatrix} 1 \\ 3 \end{bmatrix}, \qquad \text{and} \qquad M \vec{e}_2 = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 0 \\ 1 \end{bmatrix} = \begin{bmatrix} 2 \\ 4 \end{bmatrix}. \end{equation*}
More generally, if we have an \(n \times m\) matrix \(A\text{,}\) that is, we have \(n\) rows and \(m\) columns, then the mapping \(A \colon {\mathbb R}^m \to {\mathbb R}^n\) takes \(\vec{e}_j\) to the \(j^{\text{th}}\) column of \(A\text{.}\) For example,
\begin{equation*} A = \begin{bmatrix} a_{11} & a_{12} & a_{13} & a_{14} & a_{15} \\ a_{21} & a_{22} & a_{23} & a_{24} & a_{25} \\ a_{31} & a_{32} & a_{33} & a_{34} & a_{35} \end{bmatrix} \end{equation*}
represents a mapping from \({\mathbb R}^5\) to \({\mathbb R}^3\) that does
\begin{equation*} A \vec{e}_1 = \begin{bmatrix} a_{11} \\ a_{21} \\ a_{31} \end{bmatrix} , \qquad A \vec{e}_2 = \begin{bmatrix} a_{12} \\ a_{22} \\ a_{32} \end{bmatrix} , \qquad A \vec{e}_3 = \begin{bmatrix} a_{13} \\ a_{23} \\ a_{33} \end{bmatrix} , \qquad A \vec{e}_4 = \begin{bmatrix} a_{14} \\ a_{24} \\ a_{34} \end{bmatrix} , \qquad A \vec{e}_5 = \begin{bmatrix} a_{15} \\ a_{25} \\ a_{35} \end{bmatrix} . \end{equation*}
What about another vector \(\vec{x}\) that is not in the standard basis? Where does it go? We use linearity. First, we write the vector as a linear combination of the standard basis vectors:
\begin{equation*} \vec{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \end{bmatrix} = x_1 \begin{bmatrix} 1 \\ 0 \\ 0 \\ 0 \\ 0 \end{bmatrix} + x_2 \begin{bmatrix} 0 \\ 1 \\ 0 \\ 0 \\ 0 \end{bmatrix} + x_3 \begin{bmatrix} 0 \\ 0 \\ 1 \\ 0 \\ 0 \end{bmatrix} + x_4 \begin{bmatrix} 0 \\ 0 \\ 0 \\ 1 \\ 0 \end{bmatrix} + x_5 \begin{bmatrix} 0 \\ 0 \\ 0 \\ 0 \\ 1 \end{bmatrix} = x_1 \vec{e}_1 + x_2 \vec{e}_2 + x_3 \vec{e}_3 + x_4 \vec{e}_4 + x_5 \vec{e}_5 . \end{equation*}
\begin{equation*} A \vec{x} = A ( x_1 \vec{e}_1 + x_2 \vec{e}_2 + x_3 \vec{e}_3 + x_4 \vec{e}_4 + x_5 \vec{e}_5 ) = x_1 A\vec{e}_1 + x_2 A\vec{e}_2 + x_3 A\vec{e}_3 + x_4 A\vec{e}_4 + x_5 A\vec{e}_5 . \end{equation*}
If we know where \(A\) takes all the basis vectors, we know where it takes all vectors.
Suppose \(M\) is the \(2 \times 2\) matrix from above, then
\begin{equation*} M \begin{bmatrix} -2 \\ 0.1 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} -2 \\ 0.1 \end{bmatrix} = -2 \begin{bmatrix} 1 \\ 3 \end{bmatrix} + 0.1 \begin{bmatrix} 2 \\ 4 \end{bmatrix} = \begin{bmatrix} -1.8 \\ -5.6 \end{bmatrix} . \end{equation*}
Every linear mapping from \({\mathbb R}^m\) to \({\mathbb R}^n\) can be represented by an \(n \times m\) matrix. You just figure out where it takes the standard basis vectors. Conversely, every \(n \times m\) matrix represents a linear mapping. Hence, we may think of matrices being linear mappings, and linear mappings being matrices.
Or can we? In this book we study mostly linear differential operators, and linear differential operators are linear mappings, although they are not acting on \({\mathbb R}^n\text{,}\) but on an infinite-dimensional space of functions:
\begin{equation*} L f = g . \end{equation*}
For a function \(f\) we get a function \(g\text{,}\) and \(L\) is linear in the sense that
\begin{equation*} L ( f + h) = Lf + Lh, \qquad \text{and} \qquad L (\alpha f) = \alpha Lf . \end{equation*}
for any number (scalar) \(\alpha\) and all functions \(f\) and \(h\text{.}\)
So the answer is not really. But if we consider vectors in finite-dimensional spaces \({\mathbb R}^n\) then yes, every linear mapping is a matrix. We have mentioned at the beginning of this section, that we can “make everything a vector.” That’s not strictly true, but it is true approximately. Those “infinite-dimensional” spaces of functions can be approximated by a finite-dimensional space, and then linear operators are just matrices. So approximately, this is true. And as far as actual computations that we can do on a computer, we can work only with finitely many dimensions anyway. If you ask a computer or your calculator to plot a function, it samples the function at finitely many points and then connects the dots
If you have ever used Matlab, you may have noticed that to plot a function, we take a vector of inputs, ask Matlab to compute the corresponding vector of values of the function, and then we ask it to plot the result.
. It does not actually give you infinitely many values. The way that you have been using the computer or your calculator so far has already been a certain approximation of the space of functions by a finite-dimensional space.
To end the section, we notice how \(A \vec{x}\) can be written more succintly. Suppose
\begin{equation*} A = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \end{bmatrix} \qquad \text{and} \qquad \vec{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} . \end{equation*}
\begin{equation*} A \vec{x} = \begin{bmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} a_{11} x_1 + a_{12} x_2 + a_{13} x_3 \\ a_{21} x_1 + a_{22} x_2 + a_{23} x_3 \end{bmatrix} . \end{equation*}
For example,
\begin{equation*} \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 2 \\ -1 \end{bmatrix} = \begin{bmatrix} 1 \cdot 2 + 2 \cdot (-1) \\ 3 \cdot 2 + 4 \cdot (-1) \end{bmatrix} = \begin{bmatrix} 0 \\ 2 \end{bmatrix} . \end{equation*}
That is, you take the entries in a row of the matrix, you multiply them by the entries in your vector, you add things up, and that’s the corresponding entry in the resulting vector.

Exercises A.1.3 Exercises


On a piece of graph paper draw the vectors:
  1. \(\displaystyle \begin{bmatrix} 2 \\ 5 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} -2 \\ -4 \end{bmatrix}\)
  3. \(\displaystyle (3,-4)\)


On a piece of graph paper draw the vector \((1,2)\) starting at (based at) the given point:
  1. based at \((0,0)\)
  2. based at \((1,2)\)
  3. based at \((0,-1)\)


On a piece of graph paper draw the following operations. Draw and label the vectors involved in the operations as well as the result:
  1. \(\displaystyle \begin{bmatrix} 1 \\ -4 \end{bmatrix} + \begin{bmatrix} 2 \\ 3 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} -3 \\ 2 \end{bmatrix} - \begin{bmatrix} 1 \\ 3 \end{bmatrix}\)
  3. \(\displaystyle 3\begin{bmatrix} 2 \\ 1 \end{bmatrix}\)


Compute the magnitude of
  1. \(\displaystyle \begin{bmatrix} 7 \\ 2 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} -2 \\ 3 \\ 1 \end{bmatrix}\)
  3. \(\displaystyle (1,3,-4)\)


  1. \(\displaystyle \begin{bmatrix} 2 \\ 3 \end{bmatrix} + \begin{bmatrix} 7 \\ -8 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} -2 \\ 3 \end{bmatrix} - \begin{bmatrix} 6 \\ -4 \end{bmatrix}\)
  3. \(\displaystyle -\begin{bmatrix} -3 \\ 2 \end{bmatrix}\)
  4. \(\displaystyle 4\begin{bmatrix} -1 \\ 5 \end{bmatrix}\)
  5. \(\displaystyle 5\begin{bmatrix} 1 \\ 0 \end{bmatrix} + 9 \begin{bmatrix} 0 \\ 1 \end{bmatrix}\)
  6. \(\displaystyle 3\begin{bmatrix} 1 \\ -8 \end{bmatrix} - 2 \begin{bmatrix} 3 \\ -1 \end{bmatrix}\)


Find the unit vector in the direction of the given vector
  1. \(\displaystyle \begin{bmatrix} 1 \\ -3 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} 2 \\ 1 \\ -1 \end{bmatrix}\)
  3. \(\displaystyle (3,1,-2)\)


If \(\vec{x} = (1,2)\) and \(\vec{y}\) are added together, we find \(\vec{x}+\vec{y} = (0,2)\text{.}\) What is \(\vec{y}\text{?}\)


Write \((1,2,3)\) as a linear combination of the standard basis vectors \(\vec{e}_1\text{,}\) \(\vec{e}_2\text{,}\) and \(\vec{e}_3\text{.}\)


If the magnitude of \(\vec{x}\) is 4, what is the magnitude of
  1. \(\displaystyle 0\vec{x}\)
  2. \(\displaystyle 3\vec{x}\)
  3. \(\displaystyle -\vec{x}\)
  4. \(\displaystyle -4\vec{x}\)
  5. \(\displaystyle \vec{x}+\vec{x}\)
  6. \(\displaystyle \vec{x}-\vec{x}\)


Suppose a linear mapping \(F \colon {\mathbb R}^2 \to {\mathbb R}^2\) takes \((1,0)\) to \((2,-1)\) and it takes \((0,1)\) to \((3,3)\text{.}\) Where does it take
  1. \(\displaystyle (1,1)\)
  2. \(\displaystyle (2,0)\)
  3. \(\displaystyle (2,-1)\)


Suppose a linear mapping \(F \colon {\mathbb R}^3 \to {\mathbb R}^2\) takes \((1,0,0)\) to \((2,1)\text{,}\) it takes \((0,1,0)\) to \((3,4)\text{,}\) and it takes \((0,0,1)\) to \((5,6)\text{.}\) Write down the matrix representing the mapping \(F\text{.}\)


Suppose that a mapping \(F \colon {\mathbb R}^2 \to \mathbb{R}^2\) takes \((1,0)\) to \((1,2)\text{,}\) \((0,1)\) to \((3,4)\text{,}\) and \((1,1)\) to \((0,-1)\text{.}\) Explain why \(F\) is not linear.


(challenging)   Let \({\mathbb R}^3\) represent the space of quadratic polynomials in \(t\text{:}\) a point \((a_0,a_1,a_2)\) in \({\mathbb R}^3\) represents the polynomial \(a_0 + a_1 t + a_2 t^2\text{.}\) Consider the derivative \(\frac{d}{dt}\) as a mapping of \({\mathbb R}^3\) to \({\mathbb R}^3\text{,}\) and note that \(\frac{d}{dt}\) is linear. Write down \(\frac{d}{dt}\) as a \(3 \times 3\) matrix.


Compute the magnitude of
  1. \(\displaystyle \begin{bmatrix} 1 \\ 3 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} 2 \\ 3 \\ -1 \end{bmatrix}\)
  3. \(\displaystyle (-2,1,-2)\)
a) \(\sqrt{10}\)     b) \(\sqrt{14}\)     c) \(3\)


Find the unit vector in the direction of the given vector
  1. \(\displaystyle \begin{bmatrix} -1 \\ 1 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} 1 \\ -1 \\ 2 \end{bmatrix}\)
  3. \(\displaystyle (2,-5,2)\)
a)  \(\begin{bmatrix} \frac{-1}{\sqrt{2}} \\ \frac{1}{\sqrt{2}} \end{bmatrix}\)     b) \(\begin{bmatrix} \frac{1}{\sqrt{6}} \\ \frac{-1}{\sqrt{6}} \\ \frac{2}{\sqrt{6}} \end{bmatrix}\)     c) \(\left( \frac{2}{\sqrt{33}},\frac{-5}{\sqrt{33}},\frac{2}{\sqrt{33}} \right)\)


  1. \(\displaystyle \begin{bmatrix} 3 \\ 1 \end{bmatrix} + \begin{bmatrix} 6 \\ -3 \end{bmatrix}\)
  2. \(\displaystyle \begin{bmatrix} -1 \\ 2 \end{bmatrix} - \begin{bmatrix} 2 \\ -1 \end{bmatrix}\)
  3. \(\displaystyle -\begin{bmatrix} -5 \\ 3 \end{bmatrix}\)
  4. \(\displaystyle 2\begin{bmatrix} -2 \\ 4 \end{bmatrix}\)
  5. \(\displaystyle 3\begin{bmatrix} 1 \\ 0 \end{bmatrix} + 7 \begin{bmatrix} 0 \\ 1 \end{bmatrix}\)
  6. \(\displaystyle 2\begin{bmatrix} 2 \\ -3 \end{bmatrix} - 6 \begin{bmatrix} 2 \\ -1 \end{bmatrix}\)
a) \(\begin{bmatrix} 9 \\ -2 \end{bmatrix}\)     b) \(\begin{bmatrix} -3 \\ 3 \end{bmatrix}\)     c) \(\begin{bmatrix} 5 \\ -3 \end{bmatrix}\)     d) \(\begin{bmatrix} -4 \\ 8 \end{bmatrix}\)     e) \(\begin{bmatrix} 3 \\ 7 \end{bmatrix}\)     f) \(\begin{bmatrix} -8 \\ 3 \end{bmatrix}\)


If the magnitude of \(\vec{x}\) is 5, what is the magnitude of
  1. \(\displaystyle 4\vec{x}\)
  2. \(\displaystyle -2\vec{x}\)
  3. \(\displaystyle -4\vec{x}\)
a) \(20\)     b) \(10\)     c) \(20\)


Suppose a linear mapping \(F \colon {\mathbb R}^2 \to {\mathbb R}^2\) takes \((1,0)\) to \((1,-1)\) and it takes \((0,1)\) to \((2,0)\text{.}\) Where does it take
  1. \(\displaystyle (1,1)\)
  2. \(\displaystyle (0,2)\)
  3. \(\displaystyle (1,-1)\)
a) \((3,-1)\)     b) \((4,0)\)     c) \((-1,-1)\)
For a higher quality printout use the PDF version: