



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Samuel R. Buss - Spring 2003
Revision 1.1. (Corrections appreciated!) These notes review the topics I lectured on while covering sections 4.1, 4.2, and 5.1 of the textbook Linear Algebra with Applications by S. Leon for my Math 20F class at UCSD. These notes do not cover everything you need to know from these chapters, so you should read the chapters as well. The material is in slightly different order than that presented in class.
Definition Let V and W be vector spaces and f : V → W. The function f is called a linear transformation provided the following condition holds: For all x, y ∈ V and all scalars α, β ,
f (αx + βy) = αf (x) + βf (y). (1) A linear transformation may also be called a “linear function,” a “linear map”, a “linear operator,” etc. All these terms have the same meaning.
Theorem 1 If f is a linear function, then f ( 0 ) = 0.
Proof: Let x, y be arbitrary elements of V and use α = β = 0. Then 0·x = 0·y = 0 and since 0 · f (x) = 0 · f (y) = 0 , equation (1) tells us that f ( 0 ) = 0. 2
Theorem 2 A function f : V → W is linear if and only if the following two conditions hold:
a. For all x, y ∈ V , f (x + y) = f (x) + f (y). b. For all x ∈ V and all α ∈ R, f (αx) = αf (x).
Proof: First suppose that conditions a. and b. hold. Then,
f (αx + βy) = f (αx) + f (βy) by condition a. = αf (x) + βf (y) by condition b.
Thus f is linear. We have proved that conditions a. and b. together imply that f is linear. It remains to prove that any linear transformation satisfies conditions a. and b. To prove a., use (1) with α = β = 1. To prove b., use (1) with β = 0. 2
Theorem 3 Let f be a linear transformation. Then, for all αi , vi ,
f (α 1 v 1 + α 2 v 2 + · · · + αnvn) = α 1 f (v 1 ) + α 2 f (v 2 ) + · · · + αnf (vn).
Proof: To prove this, use equation (1) repeatedly. (The additions may be associated arbitrarily of course.) 2
A basic property of linear transformations is that they can be represented by a matrix.
Definition Let f : Rn^ → Rm^ be a linear transformation. Then, we say that a m × n matrix A represents the linear transformation f iff
f (x) = Ax, for all x ∈ Rn^. (2)
Note that the definition makes sense: If A is m × n, then for any x ∈ Rn^ , we have Ax ∈ Rm^. Thus, the mapping x 7 → Ax is indeed a mapping from Rn to Rm^. Indeed, the mapping x 7 → Ax is clearly a linear map (you should prove this!), so every m × n matrix A represents a linear transformation from Rn to Rm^. Now, we show how to construct the matrix A that represents a linear function f. The next theorem tell us this is always possible.
Theorem 4 Let f : Rn^ → Rm^ be a linear transformation. Let ai = f (ei) for all i (ei is the i-th standard basis vector). Then the matrix A = (a 1 a 2 · · · an) represents f.
In words, the theorem says that the matrix A that represents f is formed by letting the columns of A equal the values of f (ei).
Proof: To prove this, first note that Aei = ai = f (ei). For general x ∈ Rn^ , we have
x = x 1 e 1 + x 2 e 2 + · · · + xnen,
so, by Theorem 3,
f (x) = x 1 f (e 1 ) + x 2 f (e 2 ) + · · · + xnf (en).
But, we also have Ax = x 1 a 1 + x 2 a 2 + · · · + xnan , which is equal to the same thing. Thus A represents f. 2
Let x = (x 1 x 2 · · · xn)T^ and y = (y 1 y 2 · · · yn)T^.
Definition The scalar product of x and y is denoted x · y and is defined to equal x · y = x 1 y 1 + x 2 y 2 + · · · + xnyn.
The scalar product is sometimes called the “dot product” or the “inner product.” The column vectors x and y are both n × 1 matrices. Their tranposes, xT and yT^ , are 1 × n matrices. Thus, if we form the matrix product xT^ y , or the matrix product yT^ x, the result is a 1 × 1 matrix, that is to say, a scalar. In fact, this is the same as the scalar product.
u
x
ϕ
(u · x)u = (||x|| cos ϕ)u
Figure 1: The projection of x onto the line parallel to a unit vector u. ϕ is the angle between u and x. How would the picture look if ϕ were between 90 ◦^ and 180◦^?
The matrix that represents this is A =
. As expected, the first
column of A is
1
which is the reflection of
0
across the line y = x. Similarly, A’s second column is the reflection of
1
across the same line.
The function that projects a point x orthogonally (perpendicularly) onto the x-axis is defined by f (x) = (x 1 0)T^. Or, equivalently, this can be expressed as f (x) = x 1 e 1.
The matrix that represents this function is A =
The function f that projects a point x onto the line y = x can be defined by
f (x) =
1 2 (x^1 +^ x^2 ) 1 2 (x^1 +^ x^2 )
One way to understand this definition of f (x) is that it is equal to the average of x and its reflection across the line y = x as defined two examples above.
The matrix A that represents the projection f is A =
2
1 1 2 2
1 2
Let u be a unit vector, that is, ||u|| = 1. Let L be the line through the origin that equals Span(u). We shall define a function f (x) that equals the projection of the point x onto the line L. First, the so-called scalar projection of x onto the line L is equal to ||x|| cos(θ) = x · u. Here, θ is the angle between x and u; see either Figure 1
above or the figure 5.1.2 on page 227 of the Leon textbook. The scalar projection is the length of the projection of x onto the line L. Second, the so-called vector projection of x onto the line L is equal to the scalar projection multiplied by u, that is, it is equal to
(x · u)u. (3)
This vector projection is what is commonly called “the projection” of x onto u.
To find a matrix that represents the function that projects x onto the unit vector u, we rewrite the quantity (3) using matrix multiplications as
(x · u)u = (uT^ x)u = u(uT^ x) (uT^ x is a scalar) = (uuT^ )x (associativity of matrix multiplication)
Thus, the matrix uuT^ represents the projection function x 7 → (x · u)u. What is the matrix uuT^? If we are working in Rn^ , then u is an n × 1 matrix and u is a 1 × n matrix, so their product is a n × n matrix. For instance, in R^3 , it equals
uuT^ =
u 1 u 2 u 3
(^) (u 1 u 2 u 3 ) =
u^21 u 1 u 2 u 1 u 3 u 1 u 2 u^22 u 2 u 3 u 1 u 3 u 2 u 3 u^23
This is an example of a symmetric matrix:
Definition A matrix A is symmetric iff A = AT^.
The formulas in the previous example were correct only when u is unit vector (with magnitude equal to one). For general non-zero vectors u, the same kind of analysis works: the only change is that you should first normalize u by dividing by its magnitude. Thus, the vector projection of x onto the line through the origin in the direction u is equal to x · u ||u||^2 u =
uT^ x uT^ u u.
The matrix that represents this projection is the matrix
uuT uT^ u
Note that this is also a symmetric matrix.
You can confirm that A is the correct matrix representation by checking that Ax = u × x holds for all x. Note that the matrix A is an example of a skew-symmetric matrix:
Definition A matrix A is skew-symmetric iff A = −AT^.
A skew-symmetric matrix must be square. Also, the diagonal elements of skew-symmetric matrix are equal to zero.