- Information
- AI Chat
Was this document helpful?
Linear algebra cheat sheet
Course: Linear Algebra and Applications (MATH 10)
4 Documents
Students shared 4 documents in this course
University: Pasadena City College
Was this document helpful?
Linear algebra explained in four pages
Excerpt from the NO BULLSHIT GUIDE TO LINEAR ALGEBRA by Ivan Savov
Abstract—This document will review the fundamental ideas of linear algebra.
We will learn about matrices, matrix operations, linear transformations and
discuss both the theoretical and computational aspects of linear algebra. The
tools of linear algebra open the gateway to the study of more advanced
mathematics. A lot of knowledge buzz awaits you if you choose to follow the
path of understanding, instead of trying to memorize a bunch of formulas.
I. INTRODUCTION
Linear algebra is the math of vectors and matrices. Let nbe a positive
integer and let Rdenote the set of real numbers, then Rnis the set of all
n-tuples of real numbers. A vector ~v ∈Rnis an n-tuple of real numbers.
The notation “∈S” is read “element of S.” For example, consider a vector
that has three components:
~v = (v1, v2, v3)∈(R,R,R)≡R3.
A matrix A∈Rm×nis a rectangular array of real numbers with mrows
and ncolumns. For example, a 3×2matrix looks like this:
A=2
4
a11 a12
a21 a22
a31 a32
3
5∈2
4
R R
R R
R R
3
5≡R3×2.
The purpose of this document is to introduce you to the mathematical
operations that we can perform on vectors and matrices and to give you a
feel of the power of linear algebra. Many problems in science, business,
and technology can be described in terms of vectors and matrices so it is
important that you understand how to work with these.
Prerequisites
The only prerequisite for this tutorial is a basic understanding of high school
math concepts1like numbers, variables, equations, and the fundamental
arithmetic operations on real numbers: addition (denoted +), subtraction
(denoted −), multiplication (denoted implicitly), and division (fractions).
You should also be familiar with functions that take real numbers as
inputs and give real numbers as outputs, f:R→R. Recall that, by
definition, the inverse function f−1undoes the effect of f. If you are
given f(x)and you want to find x, you can use the inverse function as
follows: f−1(f(x)) = x. For example, the function f(x) = ln(x)has the
inverse f−1(x) = ex, and the inverse of g(x) = √xis g−1(x) = x2.
II. DEFINITIONS
A. Vector operations
We now define the math operations for vectors. The operations we can
perform on vectors ~u = (u1, u2, u3)and ~v = (v1, v2, v3)are: addition,
subtraction, scaling, norm (length), dot product, and cross product:
~u +~v = (u1+v1, u2+v2, u3+v3)
~u −~v = (u1−v1, u2−v2, u3−v3)
α~u = (αu1, αu2, αu3)
||~u|| =qu2
1+u2
2+u2
3
~u ·~v =u1v1+u2v2+u3v3
~u ×~v =(u2v3−u3v2, u3v1−u1v3, u1v2−u2v1)
The dot product and the cross product of two vectors can also be described
in terms of the angle θbetween the two vectors. The formula for the dot
product of the vectors is ~u ·~v =k~ukk~vkcos θ. We say two vectors ~u and
~v are orthogonal if the angle between them is 90◦. The dot product of
orthogonal vectors is zero: ~u ·~v =k~ukk~vkcos(90◦) = 0.
The norm of the cross product is given by k~u ×~vk=k~ukk~vksin θ. The
cross product is not commutative: ~u ×~v 6=~v ×~u, in fact ~u ×~v =−~v ×~u.
1A good textbook to (re)learn high school math is minireference.com
B. Matrix operations
We denote by Athe matrix as a whole and refer to its entries as aij .
The mathematical operations defined for matrices are the following:
•addition (denoted +)
C=A+B⇔cij =aij +bij .
•subtraction (the inverse of addition)
•matrix product. The product of matrices A∈Rm×nand B∈Rn×ℓ
is another matrix C∈Rm×ℓgiven by the formula
C=AB ⇔cij =
n
X
k=1
aikbkj ,
2
4
a11 a12
a21 a22
a31 a32
3
5»b11 b12
b21 b22–=2
4
a11b11 +a12b21 a11b12 +a12b22
a21b11 +a22b21 a21b12 +a22b22
a31b11 +a32b21 a31b12 +a32b22
3
5
•matrix inverse (denoted A−1)
•matrix transpose (denoted T):
»α1α2α3
β1β2β3–T
=2
4
α1β1
α2β2
α3β3
3
5.
•matrix trace: Tr[A]≡Pn
i=1 aii
•determinant (denoted det(A)or |A|)
Note that the matrix product is not a commutative operation: AB 6=BA.
C. Matrix-vector product
The matrix-vector product is an important special case of the matrix-
matrix product. The product of a 3×2matrix Aand the 2×1column
vector ~x results in a 3×1vector ~y given by:
~y =A~x ⇔2
4
y1
y2
y3
3
5=2
4
a11 a12
a21 a22
a31 a32
3
5»x1
x2–=2
4
a11x1+a12x2
a21x1+a22x2
a31x1+a32x2
3
5
=x1
2
4
a11
a21
a31
3
5+x2
2
4
a12
a22
a32
3
5(C)
=2
4
(a11, a12)·~x
(a21, a22)·~x
(a31, a32)·~x
3
5.(R)
There are two2fundamentally different yet equivalent ways to interpret the
matrix-vector product. In the column picture, (C), the multiplication of the
matrix Aby the vector ~x produces a linear combination of the columns
of the matrix:~y =A~x =x1A[:,1] +x2A[:,2], where A[:,1] and A[:,2] are
the first and second columns of the matrix A.
In the row picture, (R), multiplication of the matrix Aby the vector ~x
produces a column vector with coefficients equal to the dot products of
rows of the matrix with the vector ~x.
D. Linear transformations
The matrix-vector product is used to define the notion of a linear
transformation, which is one of the key notions in the study of linear
algebra. Multiplication by a matrix A∈Rm×ncan be thought of as
computing a linear transformation TAthat takes n-vectors as inputs and
produces m-vectors as outputs:
TA:Rn→Rm.
2For more info see the video of Prof. Strang’s MIT lecture: bit.ly/10vmKcL
1