02.06.2013 Views

Discrete Mathematics Demystified

Discrete Mathematics Demystified

Discrete Mathematics Demystified

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

CHAPTER 7 Matrices 139<br />

and<br />

Calculate both A · B and B · A.<br />

Solution: Now<br />

Also<br />

⎛<br />

3 2<br />

⎞<br />

1<br />

B = ⎝ 4 5 6⎠<br />

−8 0 −2<br />

⎛<br />

−13 12<br />

⎞<br />

7<br />

A · B = ⎝ 6 37 28⎠<br />

58 −4 14<br />

⎛<br />

13 16<br />

⎞<br />

9<br />

B · A = ⎝ 22 33 −16⎠<br />

−4 −16 −8<br />

One immediate lesson here is that A · B = B · A. Multiplication of matrices is not<br />

commutative. A second lesson is that the only time we can calculate both A · B and<br />

B · A is when both matrics are square and both are of the same size. <br />

7.3 Gaussian Elimination<br />

In high school algebra everyone learns how to solve a system of two linear equations<br />

in two unknowns:<br />

ax + by = α<br />

cx + dy = β<br />

You simply multiply the first equation by a constant so that its x-coefficient matches<br />

the x-coefficient of the second equation. Then subtraction eliminates the x-variable<br />

and one can solve directly for y. Reverse substitution then yields the value of the<br />

x-variable, and the system is solved.

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

Saved successfully!

Ooh no, something went wrong!