03.03.2014 Views

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3<br />

Solving Linear Systems<br />

A number of problems in numerical analysis can be reduced to, or approximated by, a system of<br />

linear equations.<br />

3.1 Gaussian Elimination with Naïve Pivoting<br />

Our goal is the automatic solution of systems of linear equations:<br />

a 11 x 1 + a 12 x 2 + a 13 x 3 + · · · + a 1n x n = b 1<br />

a 21 x 1 + a 22 x 2 + a 23 x 3 + · · · + a 2n x n = b 2<br />

a 31 x 1 + a 32 x 2 + a 33 x 3 + · · · + a 3n x n = b 3<br />

. . .<br />

. .. . .<br />

a n1 x 1 + a n2 x 2 + a n3 x 3 + · · · + a nn x n = b n<br />

In these equations, the a ij and b i are given real numbers. We also write this as<br />

Ax = b,<br />

where A is a matrix, whose element in the i th row and j th column is a ij , and b is a column vector,<br />

whose i th entry is b i .<br />

This gives the easier way of writing this equation:<br />

⎡<br />

⎢<br />

⎣<br />

⎤<br />

a 11 a 12 a 13 · · · a 1n<br />

a 21 a 22 a 23 · · · a 2n<br />

a 31 a 32 a 33 · · · a 3n<br />

.<br />

. . . ..<br />

⎥<br />

. ⎦<br />

a n1 a n2 a n3 · · · a nn<br />

⎡<br />

⎢<br />

⎣<br />

⎤<br />

x 1<br />

x 2<br />

x 3<br />

⎥<br />

. ⎦<br />

x n<br />

⎡<br />

=<br />

⎢<br />

⎣<br />

⎤<br />

b 1<br />

b 2<br />

b 3<br />

⎥<br />

. ⎦<br />

b n<br />

(3.1)<br />

3.1.1 Elementary Row Operations<br />

You may remember that one way to solve linear equations is by applying elementary row operations<br />

to a given equation of the system. For example, if we are trying to solve the given system of<br />

equations, they should have the same solution as the following system:<br />

23

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

Saved successfully!

Ooh no, something went wrong!