Docsity

MATH 417: Numerical Analysis - Homework Assignment 5, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
MATH 417: Numerical Analysis
Instructors: Prof. Wolfgang Bangerth, Prof. Guido Kanschat
Teaching Assistants: Seungil Kim, Yan Li
Homework assignment 5 – due 10/5/06 and 10/9/06
Problem 1 (Positive definite matrices). Positive definite matrices are
those matrices for which xTAx > 0 for all vectors x. These matrices play an
important role in many applications of engineering and physics. Let us consider
one of their properties.
Any matrix Acan be written as A=As+Aa, where the symmetric part As
and the skew-symmetric part Aaof a matrix are defined as
As=A+AT
2, Aa=A−AT
2.
Show that Abeing positive definite is equivalent to Asbeing positive definite.
(3 points)
Problem 2 (LU decomposition). Solve the linear system Ax =bwith the
Hilbert matrix system we already saw last week:
A=
11
2
1
3
1
4
1
2
1
3
1
4
1
5
1
3
1
4
1
5
1
6
1
4
1
5
1
6
1
7
, b =
1
2
3
4
.
by applying the following steps with paper and pencil:
(a) Compute the LU decomposition of Aand write down the elimination steps.
(b) Use forward and backward substitution to obtain the solution x.
(4 points)
(please turn over)
1
pf2

Partial preview of the text

Download MATH 417: Numerical Analysis - Homework Assignment 5 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

MATH 417: Numerical Analysis

Instructors: Prof. Wolfgang Bangerth, Prof. Guido Kanschat [email protected], [email protected] Teaching Assistants: Seungil Kim, Yan Li [email protected], [email protected]

Homework assignment 5 – due 10/5/06 and 10/9/

Problem 1 (Positive definite matrices). Positive definite matrices are those matrices for which xT^ Ax > 0 for all vectors x. These matrices play an important role in many applications of engineering and physics. Let us consider one of their properties. Any matrix A can be written as A = As^ + Aa, where the symmetric part As and the skew-symmetric part Aa^ of a matrix are defined as

As^ =

A + AT

, Aa^ =

A − AT

Show that A being positive definite is equivalent to As^ being positive definite. (3 points)

Problem 2 (LU decomposition). Solve the linear system Ax = b with the Hilbert matrix system we already saw last week:

A =

1 2

1 3

1 4

1 5 1 3

1 4

1 5

1 6 1 4

1 5

1 6

1 7

, b =

by applying the following steps with paper and pencil:

(a) Compute the LU decomposition of A and write down the elimination steps.

(b) Use forward and backward substitution to obtain the solution x.

(4 points)

(please turn over)

Problem 3 (LU decomposition). Write a program that implements the LU decomposition algorithm for general n × n matrices and outputs the L and U factors. Apply it to the matrix of Problem 2. In a second step, implement the backward and forward substitution solves with the upper and lower triangular factors L and U for any given vector. Apply it to the given right hand side of Problem 2. (6 points)

Problem 4 (Norms on Rn). In the analysis of iterative solution methods for linear systems, we will come across different vector norms. A functional ‖ · ‖ : Rn^ → R is called a norm if it satisfies the following three conditions:

(a) ‖x‖ ≥ 0 for all vectors x ∈ Rn^ and ‖x‖ = 0 if and only if x = 0 (positive definiteness);

(b) ‖λx‖ = |λ|‖x‖ for all λ ∈ R and all vectors x ∈ Rn^ (scalability);

(c) ‖x + y‖ ≤ ‖x‖ + ‖y‖ for all vectors x, y ∈ Rn^ (triangle inequality).

Determine which of the following are norms on Rn^ by proving or disproving that they satisfy the three conditions above:

a) max 1 ≤ 1 ≤n |xi|

b) max 2 ≤ 1 ≤n |xi|

c)

∑n i=1 |xi|

3

d)

(∑n i=1 |xi|

1 / 2 )^2

e) max{|x 1 − x 2 |, |x 1 + x 2 |, |x 3 |, |x 4 |,... , |xn|}

f)

∑n i=1 2

−i|xi| (6 points)