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.

1.3. EIGENVALUES 5<br />

To correct this problem, multiply the numerator and denominator of x + by −b − √ b 2 − 4c to get<br />

x + =<br />

2c<br />

−b − √ b 2 − 4c<br />

Now if b ≫ c > 0, this expression gives root x + = −c/b, which is nearly correct. This leads to the<br />

pair:<br />

x − = −b − √ b 2 − 4c<br />

2c<br />

, x + =<br />

2<br />

−b − √ b 2 − 4c<br />

Note that the two roots are nearly reciprocals, and if x − is computed, x + can easily be computed<br />

with little additional work.<br />

⊣<br />

Example Problem 1.10. Rewrite e x − cos x to be stable when x is near 0.<br />

Solution: Look at the Taylor’s Series expansion for these functions:<br />

e x − cos x =<br />

]<br />

]<br />

[1 + x + x2<br />

2! + x3<br />

3! + x4<br />

4! + x5<br />

5! + . . . −<br />

[1 − x2<br />

2! + x4<br />

4! − x6<br />

6! + . . .<br />

= x + x 2 + x3<br />

3! + O ( x 5)<br />

This expression has no subtractions, and so is not subject to subtractive cancelling. Note that we<br />

propose calculating x + x 2 + x 3 /6 as an approximation of e x − cos x, which we cannot calculate<br />

exactly anyway. Since we assume x is nearly zero, the approximate should be good. If x is very<br />

close to zero, we may only have to take the first one or two terms. If x is not so close to zero, we<br />

may need to take all three terms, or even more terms of the expansion; if x is far from zero we<br />

should use some other technique.<br />

⊣<br />

1.3 Eigenvalues<br />

It is assumed the reader has some familiarity with linear algebra. We review the topic of eigenvalues.<br />

Definition 1.11. A nonzero vector x is an eigenvector of a given matrix A, with corresponding<br />

eigenvalue λ if<br />

Ax = λx<br />

Subtracting the right hand side from the left and gathering terms gives<br />

(A − λI) x = 0.<br />

Since x is assumed to be nonzero, the matrix A − λI must be singular. A matrix is singular if and<br />

only if its determinant is zero. These steps are reversible, thus we claim λ is an eigenvalue if and<br />

only if<br />

det (A − λI) = 0.<br />

The left hand side can be expanded to a polynomial in λ, of degree n where A is an n×n matrix. This<br />

gives the so-called characteristic equation. Sometimes eigenvectors,-values are called characteristic<br />

vectors,-values.

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

Saved successfully!

Ooh no, something went wrong!