18.06 - Linear Algebra Cheatsheet: 1 Vectors
18.06 - Linear Algebra Cheatsheet: 1 Vectors
18.06 - Linear Algebra Cheatsheet: 1 Vectors
Remark: This is not intended as a definitive list of everything you are meant to memorize for 18.06.
Some of these ideas will be familiar, some of them less so. This is a reference document for you to look
up definitions if you come across something that seems unfamiliar/confusing.
1 Vectors
1. When we talk about vectors in 18.06, we are usually referring to column vectors.
2. A two-dimensional vector v is defined by its two components, v1 and v2 . We write the vector as
v
v= 1
v2
4. In general, a vector v can have n components, and would then be an n-dimensional vector (a n × 1
array):
v1
v2
v= .
..
vn
5. We can always multiply vectors by scalars. We can also add two vectors, provided they have the
same dimensions.
7. The length (or magnitude) of a vector v is written kvk. It is given by the following formula:
n
X
kvk2 = v12 + v22 + ... + vn2 = vi2
i=1
Then the dot product (or inner product) of these two vectors, u·v, is given by the following formula:
u · v = u1 v1 + u2 v2 + ... + un vn
10. The angle between two vectors u and v is given by the following formula:
u·v
cos θ =
kukkvk
11. We say that a nonzero vector u is parallel to a nonzero vector v if u = av for some scalar a 6= 0.
We sometimes say that u and v are in the same direction.
v T = v1 v2 · · ·
vn
14. We can multiply a n-dimensional row vector by a n-dimensional column vector. The order of
multiplication matters:
• The first index denotes the row, the second number the column.
4. A diagonal matrix is a matrix which only has entries along its diagonal.
5. The identity matrix I is a square, diagonal matrix. The entries along the diagonal are all equal to
1. The identity matrix is the only matrix for which IA = A for all square matrices A.
6. We can compute the product of three matrices ABC either as (AB)C (multiply AB and then
multiply on the right by C), or as A(BC) (multiply BC and then multiply on the left by A).
Matrix multiplication is associative.
2. If A is a square matrix, then it might have an inverse A−1 , so that AA−1 = A−1 A = I. The
unique solution of the linear system Ax = b in this case is x = A−1 b.
3. If A and B are square matrices with inverses A−1 and B −1 , then (AB)−1 = B −1 A−1 .
4. The inverse
of a square matrix does not always exist. We have already seen that for a 2 × 2 matrix
a b
A= , we have the following formula
c d
−1 1 d −b
A =
ad − bc −c a
2.3 Transposes
1. The transpose of a matrix A is denoted by AT . The transpose is the matrix formed by taking the
columns of A and making them the rows of AT .
3. If A is m × n, then AT is n × m.
4. AT A and AAT can always be computed. They are both square matrices, even if A is rectangular.
If A is n × m, then AT A is m × m and AAT is n × n.
5. (AB)T = B T AT .
2. An equivalent definition: suppose a matrix Q has n columns given by the vectors q1 , ..., qn . Then
Q is orthogonal if the column vectors are orthonormal. This means that qiT qj = 0 for i 6= j, and
kqi k = 1.
3. If Q is square and orthogonal, then we also have that QQT = I, and so Q−1 = QT .
ax + by + cd = f,
where a, b, c, d ∈ R are scalars. The plane contains the origin if and only if f = 0.
a
2. The normal to this plane is given by the vector w = b .
c
x
3. The equation of the plane may equivalently be written as w · x = wT x = f , where x = y .
z
3.2 Hyperplanes
x1
1. A hyperplane in Rn is the set of points with position vectors x = ... obeying the equation
xn
w1 x1 + w2 x2 + ...wn xn = f
wn
3.3 Surfaces
• A surface in three dimensions is described by an equation f (x, y, z) = Const.