Docsity

Linear Algebra Homework: Proving Linearity, Vector Lengths, and Unit Vector Search - Prof., Assignments of Linear Algebra

Toggle sidebar
bg1
Department of Mathematics Linear Algebra and Probability
Homework Key
Assignment 2
Friday, February 6
Assignment
•p. 19: 2, 3, 4ab, 5, 6abc, 8abc.
•Prove that the function f(x) = Axis linear. Here Ais the matrix we looked at in
class.
•p. 29: 1, 4, 5, 6, 8, 10
Page 19
2. Suppose u= (−0.6,0.8),v= (3,4),and w= (8,6).Compute the lengths kuk,kvk,
and kwk.Check the Schwarz inequalities |u·v| ≤ kukkvkand |v·w| ≤ kvkkwk.
Observe that
kuk=√0.62+ 0.82= 1,kvk=√32+ 42= 5,and kwk=√82+ 62= 10.
Also note that
|u·v|=−0.6·3+0.8·4 = 1.4,and |v·w|= 3 ·8+4·6 = 48.
So we see that
|u·v|= 1.4≤5 = 1 ·5 = kukkvk,and |v·w|= 48 ≤50 = 5 ·10 = kvkkwk.
3. Find unit vectors in the directions of vand win problem 2, and the cosine of the angle
θformed by these vectors. Choose vectors a,b,and cthat make 0 degrees, 90 degree,
and 180 degree angles with the vector wfrom problem 2.
Unit vectors in the directions of vand ware
v1=1
kvkv=3/5
4/5,and w1=1
kwkw=4/5
3/5,
1
pf3
pf4
pf5

Partial preview of the text

Download Linear Algebra Homework: Proving Linearity, Vector Lengths, and Unit Vector Search - Prof. and more Assignments Linear Algebra in PDF only on Docsity!

Department of Mathematics Linear Algebra and Probability

Homework Key

Assignment 2

Friday, February 6

Assignment

  • p. 19: 2, 3, 4ab, 5, 6abc, 8abc.
  • Prove that the function f (x) = Ax is linear. Here A is the matrix we looked at in class.
  • p. 29: 1, 4, 5, 6, 8, 10

Page 19

  1. Suppose u = (− 0. 6 , 0 .8), v = (3, 4), and w = (8, 6). Compute the lengths ‖u‖, ‖v‖, and ‖w‖. Check the Schwarz inequalities |u · v| ≤ ‖u‖‖v‖ and |v · w| ≤ ‖v‖‖w‖.

Observe that

‖u‖ =

  1. 62 + 0. 82 = 1, ‖v‖ =

32 + 4^2 = 5, and ‖w‖ =

82 + 6^2 = 10.

Also note that

|u · v| = − 0. 6 · 3 + 0. 8 · 4 = 1. 4 , and |v · w| = 3 · 8 + 4 · 6 = 48.

So we see that

|u · v| = 1. 4 ≤ 5 = 1 · 5 = ‖u‖‖v‖, and |v · w| = 48 ≤ 50 = 5 · 10 = ‖v‖‖w‖.

  1. Find unit vectors in the directions of v and w in problem 2, and the cosine of the angle θ formed by these vectors. Choose vectors a, b, and c that make 0 degrees, 90 degree, and 180 degree angles with the vector w from problem 2.

Unit vectors in the directions of v and w are

v 1 =

‖v‖

v =

[

]

, and w 1 =

‖w‖

w =

[

]

respectively. The cosine of the angle formed by v and w is the same as the cosine of the angle formed by v 1 and w 1 , and this is just

v 1 · w 1 = 0. 6 ∗ 0 .8 + 0. 8 ∗ 0 .6 = 0. 96.

There is no requirement that a, b, and c be unit vectors. So we’ll choose vectors that have the same length as w. Of course w makes an angle of 0 degrees with itself. So we can choose a = w. To get an angle of 90 degrees, we can swap coordinates and change the sign of one coordinate. So if we choose b = (− 6 , 8), we see that b · w = − 6 · 8 + 8 · 6 = 0. So b and w are perpendicular. Finally to get an angle of 180 degrees, we can multiply w by −1 and c = (− 8 , −6).

  1. For any unit vectors v and w, find the dot products (actual numbers) of

(a) v and −v. (b) v + w and v − w.

(a) Observe that

v · (−v) = v · [(−1)v] = (−1)(v · v) = (−1)‖v‖^2 = (−1)(1)^2 = − 1.

(b) Observe that

(v + w) · (v − w) = v · (v − w) + w · (v − w) = (v · v) − (v · w) + (w · v) − (w · w) = 12 + 0 − 12 = 0.

  1. Find unit vectors u 1 and u 2 in the directions of v = (3, 1) and w = (2, 1 , 2). Find unit vectors U 1 and U 2 that are perpendicular to u 1 and u 2.

To get the unit vectors u 1 and u 2 , we can divide v and w by their lengths:

u 1 =

(3, 1), and u 2 =

To get vectors perpendicular to u 1 and u 2 , we just need to choose vectors whose dot products with u 1 and u 2 are zero. We can then normalize to get unit vectors:

U 1 =

(1, −3), and U 2 =

  1. (a) Describe every vector w = (w 1 , w 2 ) that is perpendicular to v = (− 2 , 1).

(b) The vectors that are perpendicular to V = (1, 1 , 1) lie on a ?????.

b b + c b + c + d

e e + f e + f + g

b c d

e f g

= f (u) + f (v).

Similarly,

f (au) = A

a

b c d

= A

ab ac ad

ab ac ad

ab ab + ac ab + ac + ad

= a

b b + c b + c + d

= a

b c d

= af (u).

Page 29

  1. Suppose s 1 = (1, 1 , 1), s 2 = (0, 1 , 1), and s 3 = (0, 0 , 1). Find the linear combination 2 s 1 + 3s 2 + 4s 3 = b. Then write b as a matrix-vector multiplication Sx, and compute dot products (row of S) · x.

2 s 1 + 3s 2 + 4s 3 = 2

 (^) = b.

 (^) = b.

  1. Suppose w 1 = (1, 2 , 3), w 2 = (4, 5 , 6), and w 3 = (7, 8 , 9). Find a linear combination xw 1 + yw 2 + zw 3 that gives the zero vector. The vectors are ?????. The three vectors lie in a ?????. The matrix W with these columns is not invertible.

We want to find a (nonzero) solution to

x

 (^) + y

 (^) + z

x + 4 y + 7 z 2 x + 5 y + 8 z 3 x + 6 y + 9 z

Using elimination gives  

− 2 R 1 + R 2

− 3 R 1 + R 3

− 2 R 2 + R 3

− 1 / 3 R 2

From this we see that (for example) x = 1, y = − 2 , z = 1 gives a linear combination equal to 0. So we see that the vectors are dependent. We can also see that (for example) the first two vectors are independent. So the vectors lie in a plane.

  1. The rows of the matrix W from the proceeding problem are also vectors r 1 = (1, 4 , 7), r 2 = (2, 5 , 8), and r 3 = (3, 6 , 9). Linear algebra says that these vectors must also lie in a plane. Consequently there must be many linear combinations ar 1 + br 2 + cr 3 = 0. Find two different combinations.

As in Problem 4, we solve a linear system using elimination: 

− 4 R 1 + R 2

− 7 R 1 + R 3

− 2 R 2 + R 3

− 1 / 3 R 2

So the linear combination from the preceding problem (a, b, c) = (1, − 2 , 1) will do the job. Another linear combination is (a, b, c) = (− 2 , 4 , −2).

  1. Which values of c give dependent columns?

 

1 1 c

1 0 c 1 1 0 0 1 1

c c c 2 1 5 3 3 6

So we see that if

S =

then w = Sb and S = A−^1.

  1. A forward difference matrix ∆ is upper triangular:

∆x =

x y z

y − x z − y 0 − z

b c d

 (^) = b.

Find x, y, z from b, c, d. What is the inverse matrix x = ∆−^1 b?

In this case, we can solve for x using back substitution:

−z = d → z = −d z − y = c → y = −c − d y − x = b → x = −b − c − d

Thus,

∆−^1 =