MATH 417 Lecture 26

From Notes
Jump to navigation Jump to search

« previous | Thursday, April 24, 2014 | next »

End Exam 2 content


Pre-Exam Discussion

  • 6 problems total for possible score of over 100 (but 100 is perfect)
  • 1-2 problems from first exam's sections


Chapter 5

Initial Value Problem (IVP): , and for .

Is the IVP well-posed?

  1. domain should be convex: — you should be able to draw straight line that never leaves the set between any two points .
  2. is continuous in
  3. is Lipschitz with respect to , i.e. .
    Theorem. , then is Lipschitz with Lipschitz constant .


Numerical Methods

Over interval with sample points, we define

Let , where , with

Rule is of form:

Euler's Method

Approximate by left endpoint riemann rule: .

Modified Euler's Method

Approximate by trapezoidal rule: .

Midpoint Method

Approximate by midpoint rule: .

Heun's Method

Too complicated for exam.


Example

, and

This is well-posed:

  • domain of RHS is entire real plane

Let's use Modified Euler...


Chapter 6

(skip linear algebra review)

We wish to find and such that :

Standard Gaussian elimination sets the pivot elements equal to 1, and this requires a little extra modification to find . If we stick with just elementay operation #3 (adding a multiple of one row to another), then computation of is easy:

Elementary matrix 3 is given by : this will add times row to row . The -th entry of the identity matrix is . Computing the inverse is incredibly straightforward:


Positive Definite Matrices

Theorem. A matrix is positive definite if and only if the determinants of all the minors of are positive:

Hence

From these constraints, we get


Cholesky [sp?] Factorization

Given symmetric matrix , find such that .

To get this, perform LU decomposition, but replace diagonal pivot elements of with (and multiply the corresponding column by ).

Let

Then

This is often called the square root of a matrix, since the closest we can get to an abstract "square" of any matrix (of any size) is .


Matrix Norms

All norms discussed here are called "native"

Defined as , but this is a pain to compute. We settle for the following theorems:

  1. , where is the largest magnitude eigenvalue.

Theorem. is a norm if is positive definite.

Proof. By definition, is a norm if and only if it satisfies the following:

  1. , and if and only if .
  2. for all constants
  3. , which holds iif and only if the Cauchy-Schwartz inequality ().

Since Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A} is symmetric, we can find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle L} such that Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A = L \, L^T} . thus

We know this norm is always greater than Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle 0} and equal to zero only when Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \vec{x} = \vec{0}} .


Next, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\| \alpha \, \vec{x} \right\|_A = \sqrt{ \alpha^2 \, \vec{x}^T \, A \, \vec{x} } = \left| \alpha \right| \, \left\| \vec{x} \right\|_A}


Finally, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle x,y_A \right\rangle = x^T \, A \, y \le \sqrt{\vec{x}^T \, A \, \vec{x}} \, \sqrt{\vec{y}^T \, A \vec{y}} = \left\| L^T \, \vec{x} \right\| \, \left\| L^T \, \vec{y} \right\| \le \left\| \vec{x} \right\|_A \cdot \left\| \vec{y} \right\|_A}

quod erat demonstrandum


Example

Find Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \ell_2} norm of Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle A = \begin{bmatrix} 4 & 0 & 5 \\ 0 & 1 & 0 \\ 5 & 0 & 7 \end{bmatrix}}

Eigenvalues are found by

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{vmatrix} 4-\lambda & 0 & 5 \\ 0 & 1-\lambda & 0 \\ 5 & 0 & 7-\lambda \end{vmatrix} = (1-\lambda) \, (\lambda^2 - 11\lambda + 3) = 0}

So Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \lambda \in \left\{ 1, \frac{11 \pm \sqrt{109}}{2} \right\}} , and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \max_i \left| \lambda_i \right| = \frac{11 + \sqrt{109}}{2}}


Chapter 8

Given Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f(x)} , approximate Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle p(x) = a_1 \, \phi_1(x) + a_2 \, \phi_2(x) + \dots + a_n \, \phi_n(x)} .

To do this, we find the best least squares fit (i.e. minimize Euclidean distance) Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\| f - p \right\|_2^2 = \min_{q \in \Pi} \left\| f - q \right\|_2^2} , where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \Pi = \mathrm{Span} \left\{ \phi_1, \phi_2, \ldots, \phi_n \right\}} .

Normal equations given by

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{bmatrix} \left\langle \phi_1, \phi_1 \right\rangle & \left\langle \phi_1, \phi_2 \right\rangle & \dots & \left\langle \phi_1, \phi_n \right\rangle \\ \left\langle \phi_2, \phi_1 \right\rangle & \left\langle \phi_2, \phi_2 \right\rangle & \dots & \left\langle \phi_2, \phi_n \right\rangle \\ \vdots & \vdots & \ddots & \vdots \\ \left\langle \phi_n, \phi_1 \right\rangle & \left\langle \phi_n, \phi_2 \right\rangle & \dots & \left\langle \phi_n, \phi_n \right\rangle \end{bmatrix} \, \begin{bmatrix} a_1 \\ a_2 \\ \vdots \\ a_n \end{bmatrix} = \begin{bmatrix} \left\langle f, \phi_1 \right\rangle \\ \left\langle f, \phi_2 \right\rangle \\ \vdots \\ \left\langle f, \phi_n \right\rangle \end{bmatrix}}


  • Given continuous functions, the inner product is given by Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle f,g \right\rangle = \int_a^b f(x) \, g(x) \, w(x) \,\mathrm{d}x}
  • Given point samples, the inner product is given by Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left\langle f,g \right\rangle = \sum_i f_i \, g_i \, w_i}