Docsity

Solutions to Math 222 Exam 2 - Prof. Michael Stecher, Exams of Mathematics

Toggle sidebar
bg1
Math 222 Solutions to Exam 2 April 12, 2001
1. (15) Define the following terms. With each term include an example of what you are defining. No
example, no credit.
(a) Linear transformation from a vector space Uinto a vector space V.
A linear transformation, L, from Uto Vis a function with domain Uand co-domain Vsuch
that
L(~x +~y) = L(~x) + L(~y)
L(α~x) = αL (~x)
An example of a linear transformation from R2to R2is
L(x1, x2) = (0,0) .
(b) Length of a vector ~x in R5.
If ~x = (x1, x2, x3, x4, x5), then ||~x|| =px2
1+x2
2+x2
3+x2
4+x2
5. A specific example is
||(1,1,0,0,0)|| =√2 .
(c) Vector projection of ~x onto ~y, where ~x and ~y are two vectors in Rn.
The projection of ~x onto ~y equals ~x ·~y
||~y||2~y. An example in R2is
Proj(1,0) (3,4) = 3
1(1,0) = (3,0) .
2. (10) Let ~x = (1,2,−5,1) and ~y = (3,−1,1,2).
(a) What is the length of ~x?
The length of ~x equals √1 + 4 + 25 + 1 = √31 .
(b) Are the vectors ~x and ~y perpendicular?
The dot product of ~x and ~y equals 3 −2−5 + 2 = −2. Since the dot product is not equal to zero,
the vectors are not perpendicular.
pf3
pf4
pf5

Partial preview of the text

Download Solutions to Math 222 Exam 2 - Prof. Michael Stecher and more Exams Mathematics in PDF only on Docsity!

Math 222 Solutions to Exam 2 April 12, 2001

  1. (15) Define the following terms. With each term include an example of what you are defining. No example, no credit.

(a) Linear transformation from a vector space U into a vector space V.

A linear transformation, L, from U to V is a function with domain U and co-domain V such that

L (~x + ~y) = L (~x) + L (~y) L (α~x) = αL (~x)

An example of a linear transformation from R^2 to R^2 is

L (x 1 , x 2 ) = (0, 0).

(b) Length of a vector ~x in R^5.

If ~x = (x 1 , x 2 , x 3 , x 4 , x 5 ), then ||~x|| =

x^21 + x^22 + x^23 + x^24 + x^25. A specific example is

||(1, 1 , 0 , 0 , 0)|| =

(c) Vector projection of ~x onto ~y, where ~x and ~y are two vectors in Rn.

The projection of ~x onto ~y equals

~x · ~y ||~y||^2

~y. An example in R^2 is

Proj(1,0) (3, 4) =

  1. (10) Let ~x = (1, 2 , − 5 , 1) and ~y = (3, − 1 , 1 , 2).

(a) What is the length of ~x?

The length of ~x equals (^) √ 1 + 4 + 25 + 1 =

(b) Are the vectors ~x and ~y perpendicular?

The dot product of ~x and ~y equals 3 − 2 − 5 + 2 = −2. Since the dot product is not equal to zero, the vectors are not perpendicular.

  1. (25) Let V = {(x 1 , x 2 , x 3 , x 4 ) : x 1 + x 2 + x 4 = 0}.

(a) Find a basis of V.

The coefficient matrix of the system of equations x 1 + x 2 + x 4 = 0 is [ 1 1 0 1

]

The free variables are x 2 , x 3 , and x 4. Thus, a basis of V is

{(− 1 , 1 , 0 , 0) , (0, 0 , 1 , 0), (− 1 , 0 , 0 , 1)}.

(b) Find an orthonormal basis of V.

Call the vectors in the basis from part a. ~v 1 , ~v 2 , and ~v 3 respectively. Then an orthonormal basis of V is

~u 1 =

~v 1 ‖~v 1 ‖

~u 2 = ~v 2 − (~v 2 · ~u 1 ) ~u 1 ‖~v 2 − (~v 2 · ~u 1 ) ~u 1 ‖

(0, 0 , 1 , 0) − 0 ~u 1 ‖~v 2 − (~v 2 · ~u 1 ) ~u 1 ‖

~u 3 =

~v 3 − (~v 3 · ~u 1 ) ~u 1 − (~v 3 · ~u 2 ) ~u 2 ‖~v 3 − (~v 3 · ~u 1 ) ~u 1 − (~v 3 · ~u 2 ) ~u 2 ‖

~v 3 −

~u 1 − 0 ~u 2

‖~v 3 − (~v 3 · ~u 1 ) ~u 1 − (~v 3 · ~u 2 ) ~u 2 ‖

(c) Find the projection of ~x = (1, 1 , 1 , 1) onto V.

The projection of ~x onto V equals

ProjV ~x = (~x · ~u 1 ) u 1 + (~x · ~u 2 ) u 2 + (~x · ~u 3 ) u 3 = 0 ~u 1 + ~u 2 + 0 ~u 3 = ~u 2 = (0, 0 , 1 , 0)

(d) Find the distance from ~x = (1, 1 , 1 , 1) to V.

The distance from ~x to V equals

‖~x − ProjV ~x‖ = ‖(1, 1 , 1 , 1) − (0, 0 , 1 , 0)‖ = ‖(1, 1 , 0 , 1)‖ =

  1. (15) Find an equation for the straight line which best fits the set of points {(− 2 , 2) , (− 1 , 0) , (1, 1) , (3, 2)}.

If y = mx + b is the equation of the line, the coefficients m and b should satisfy the system of equations

− 2 m + b = 2 −m + b = 0 m + b = 1 3 m + b = 2

Writing this as a matrix equation we have A~x = ~y where

A =

 , and^ ~y^ =

This system does not have a solution, so the normal equations are used to find the least squares solution

~x =

AT^ A

AT^ ~y

[

]− 1 [

]

[

] [

]

[

]

Thus, the best straight line fit to the data is

y =

x +

≈ 0. 119 x + 1..

  1. (15) Suppose that L is a linear transformation from R^2 into R^2. Let ~v 1 = (1, −3) and ~v 2 = (3, 1). Suppose that L (~v 1 ) = ~v 1 and L (~v 2 ) = −~v 2.

(a) Describe this transformation geometrically.

The vectors ~v 1 and ~v 2 are orthogonal and hence are linearly independent. They therefore form a basis of R^2. Since L leaves ~v 1 fixed and sends ~v 2 to −~v 2 , it is clear that L reflects R^2 through the straight line passing through the origin in the direction of ~v 1. For if ~x is any vector in R^2 , we write ~x = a 1 ~v 1 + a 2 ~v 2. Thus,

L (~x) = a 1 L (~v 1 ) + a 2 L (~v 2 ) = a 1 ~v 1 − a 2 ~v 2.

(b) Find the matrix representation of L with respect to the standard basis of R^2.

We first need to write ~e 1 and ~e 2 as linear combinations of ~v 1 and ~v 2. The matrix

P =

[

]

is the transition (change of basis) matrix from the basis {~v 1 , ~v 2 } to the standard basis. Thus, the columns of P −^1 will be the coordinates of the standard basis with respect to the basis {~v 1 , ~v 2 }.

P −^1 =

[

]

Thus,

L (~e 1 ) =

L (~v 1 ) +

L (~v 2 ) =

~v 1 −

~v 2 =

L (~e 2 ) =

L (~v 1 ) +

L (~v 2 ) =

~v 1 −

~v 2 =

Thus, the matrix representation of L with respect to the standard basis of R^2 is [ − 8 / 10 − 6 / 10 − 6 / 10 8 / 10

]

[

]