11.04.2014 Views

Linear Algebra Exercises-n-Answers.pdf

Linear Algebra Exercises-n-Answers.pdf

Linear Algebra Exercises-n-Answers.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

176 <strong>Linear</strong> <strong>Algebra</strong>, by Hefferon<br />

0.2<br />

0.15<br />

0.1<br />

0.05<br />

0<br />

20 40 60 80 100<br />

2 The number of operations depends on exactly how the operations are carried out.<br />

(a) The determinant is −11. To row reduce takes a single pivot with two multiplications (−5/2<br />

times 2 plus 5, and −5/2 times 1 plus −3) and the product down the diagonal takes one more<br />

multiplication. The permutation expansion takes two multiplications (2 times −3 and 5 times 1).<br />

(b) The determinant is −39. Counting the operations is routine.<br />

(c) The determinant is 4.<br />

3 One way to get started is to compare these under Octave: det(rand(10));, versus det(hilb(10));,<br />

versus det(eye(10));, versus det(zeroes(10));. You can time them as in tic(); det(rand(10));<br />

toc().<br />

4 This is a simple one.<br />

DO 5 ROW=1, N<br />

PIVINV=1.0/A(ROW,ROW)<br />

DO 10 I=ROW+1, N<br />

DO 20 J=I, N<br />

A(I,J)=A(I,J)-PIVINV*A(ROW,J)<br />

20 CONTINUE<br />

10 CONTINUE<br />

5 CONTINUE<br />

5 Yes, because the J is in the innermost loop.<br />

Topic: Projective Geometry<br />

1 From the dot product<br />

⎛<br />

⎞<br />

0 = ⎝ 1 0⎠ L 1 L 2<br />

)<br />

L 3 = L1<br />

0<br />

we get that the equation is L 1 = 0.<br />

2 (a) This determinant<br />

1 4 x<br />

0 =<br />

2 5 y<br />

= −3x + 6y − 3z<br />

∣3 6 z∣ shows that the line is L = ( ⎛ ⎞<br />

−3 6 −3 ) .<br />

(b) ⎝ −3<br />

6 ⎠<br />

−3<br />

3 The line incident on<br />

⎛ ⎞ ⎛ ⎞<br />

u 1<br />

v 1<br />

u = ⎝u 2<br />

⎠ v = ⎝v 2<br />

⎠<br />

u 3 v 3<br />

can be found from this determinant equation.<br />

u 1 v 1 x<br />

0 =<br />

u 2 v 2 y<br />

∣u 3 v 3 z∣ 2v 3 − u 3 v 2 ) · x + (u 3 v 1 − u 1 v 3 ) · y + (u 1 v 2 − u 2 v 1 ) · z<br />

The equation for the point incident on two lines is the same.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!