Compute approximations of the largest eigenvalue

Assignment Help Mathematics
Reference no: EM132188078

Question (1): Let A ∈ R(n+m)×(n+m) be symmetric positive definite, with

A =  710_figure.png

where A11 ∈ Rn×n, A12 ∈ Rn×m, A22 ∈ Rm×m, and let L be the cholesky factor of A, A = LLT. Partition L as

L =  653_figure1.jpg

where L11 ∈ Rn×n, L21 ∈ Rn×m, L22 ∈ Rm×m.

(a) Show that L22LT22 = S where S = A22 - AT12A-112 is the Schur complement of A11 in A.

(b) Using the foregoing relations to drive a block version of the Cholesky factorization algorithm. Note that the algorithm should not require any explicit matrix inversion.

Question (2): Linear systems that arise in many applications can become quite large. It is often necessary to exploit any structure and /or sparsity in the matrices to reduce the computation burden. We will consider the one-dimensional Poisson equation: -y''(t) = f(t) on [0,1], with y(0) = y(1) = 0.

Such problems are frequently very hard to handle because it is often not possible to express y(t) in terms of elementary functions (as is done in undergraduate courses on ODE). Numerical methods are employed in order to approximate y(t) at discrete points inside the interval [a,b]. This approach will leads to a linear system of equations (we will learn how in the numerical PDE class).

The approach we consider begins by subdividing the interval [a,b] into n + 1 equal subintervals, each of length b-a/n+1: t0 = a, t1 = a + h, t2 = a + 2h, ......, tn = a + nh, tn+1 = b; The points ti = a + ih are called grid points, and the value h = b-a/n+1 is called the step size. Smaller step sizes generally produce better approximations to the derivatives, so better accuracy requires smaller step size, and hence larger number of grid points. Let yi = y(ti) and fi = f (ti), and show that by using the finite difference method, we can compute approximations to yi by solving the linear system Ty = h2f , where

T =  1578_figure2.jpg

(a) Prove that the matrix T has an LU factorization with L(i, i) = 1 and L(i + 1, i) = -i/i+1 , U (i, i) = i+1/i and U (i, i + 1) = -1.

(b) Is partial pivoting needed?

(c) Write a Matlab function T = poissonmat(n) which created the n × n matrix T for given n.

(d) Write a Matlab function y = poissonsolve(f ) which, given a vector f of length n, computes the solution y of T y = h2f .

(e) Let f (t) = sinΠt, then the right hand side fi = sinΠ(ti). Experiment with various values of n, say n = 10, 100, 500, 1000. Fill the following table:

Question (3): We consider the approximations to the eigenvalues and eigenfunctions of the one-dimensional Laplace Operator L[u] = -d2u/dx2 on the unit interval [0,1] with boundary u(0) = u(1) = 0. A scalar λ is an eigenvalue of L if there exists a twice -differentiable function u s. t. -u''(x) = λu(x) on [0,1] with u(0) = u(1) = 0. In this case u is said to be an eigenfunction of L corresponding to the eigenvalue λ. This continuous problem can be approximated by the discrete eigenvalue problem

where we have set

T = 1842_figure3.jpg

with ui = u(xi). It can be shown that the N × N matrix TN has eigen-values νj = 2(1 - cosΠj/N+1) for j = 1 : N, corresponding to the eigenvectors uj(k) = √2/(N+1) sin(jkΠ)/(N+1) is the kth entry in uj. Notice that the eigenvec-tors are normalized w.r.t. the 2-norm. Also notice that eigenvalues of Tn lie in the interval (0,4). Hence, the eigenvalues of h-2TN lie in the interval (0, 4(N + 1)2).

(a) Express the spectral condition number κ = λN1 of TN (which is the same as the condition number of h-2TN ) as a simple function of N for N → ∞.

(b) Use Matlab to plot the eigenvalues of TN for N = 21 (from smallest to largest).

(c) Again using N = 21, use Matlab to plot the eigenvectors uj of TN for j = 1, 2, 3, 5, 11, 21. The plot should be of the form (k, uj(k)) where k = 1 : 21. Note that as j increases, the behavior of the eigenvectors (approximate eigenfunctions) becomes increasingly oscil- latory;these eigenfunctions are often called "high energy modes".

(d) Write a Matlab code implementing the power method to compute approximations of the largest eigenvalue λN of L and corresponding eigenfunctions. Use N = 500 and apply the algorithm to h-2TN . Start with a random initial guess, use normalization in the 2-norm, and stope when the difference of two subsequent approximate eigenvectors has 2-norm less than some prescribed tolerance τ . (e. g. τ = 10-6).
(i) Report the number of iterations performed
(ii) compared approximations with exact eigenvalue/eigenvector pair.
(iii) Use matalb to plot the computed eigenvector.

(e) Write a Matlab code implementing the inverse power method to compute approximations of the smallest eigenvalue λ1 = π2 of L and cor- responding eigenfunctions. Use N = 500 and apply the algorithm to h-2TN . Start with a random initial guess, use normalization in the 2-norm, and stope when the difference of two subsequent approximate eigenvectors has 2-norm less than some prescribed tolerance τ . (e. g. τ = 10-6).
(i) Report the number of iterations performed
(ii) compared approximations with exact eigenvalue/eigenvector pair.
(iii) Use matalb to plot the computed eigenvector.

Question (4): Use the poisson3d.m code to build linear systems Au = b. In the Matlab scripts you will have three linear systems which are the dis- cretizations of the Poisson's equation in 1, 2, and 3 dimension.
- We will consider the conjugate gradient methods with preconditioners.
- Increase the size of m in the code, which is the grid size for the dis- cretization. Run pcg again, and find the iteration numbers.
- set the stopping tolerance 10-12.
- You can use help or doc to find the syntax of pcg.
- Preconditioner P1: we can consider to use the incomplete Cholesky fac- torizations. (in Matlab ichol). L = ichol(K3D, struct(′type′,′ ict′,′ droptol′, 1e-02,′ michol′,′ of f ′)), we set P1 = LT∗L as our preconditioner.
- Another preconditioner P2: we can consider is the diagonal matrix of A. P2 = diag(diag(A))
- Or we can use the preconditioner P3, here P3 = triu(A);
- Compare the three preconditioners for each dimensional case, and re- port the best preconditioner you choose. Here are some key points you need to include in your report:

(a) For n = 1, this is the Poisson in 1D case. Report the iteration numbers for the following:

(b) Repeat your tests for the poisson in 2D and 3D. Report the iteration numbers;

(c) For each dimension, plot the computed solutions by direct method(backslash in Matlab) and computed solutions by iterative method (pcg).

Choose the best preconditioner you find.

(d) Organize your numerical data, report them by tables or figures.

(e) Don't forget to report what you have observed and your conclusions.

Verified Expert

The solution file has resolved Q3 of the task file which comprise of totally five sub questions using Matlab algorithm.The power method, power inverse method, function for finding smallest to largest algorithm were performed in the solution file using the given matrix function.

Reference no: EM132188078

Questions Cloud

Identify and propose a management philosophy : Identify and propose a management philosophy for your approach to management within your specialization.
Describe the difference between a group and a team : Based on your knowledge from a past or present job, explain the difference between a group and a team.
Suppose the population standard deviation : A sample of 66 students has an average time of 112 minutes. Suppose the population standard deviation is 3.5 minutes.
How does the depiction of slavery in Colin Whitehead novel : Your essay should answer this question: How does the depiction of slavery in Colin Whitehead's novel The Underground Railroad compare to other depictions
Compute approximations of the largest eigenvalue : Write a Matlab code implementing the inverse power method to compute approximations of the smallest eigenvalue - compared approximations with exact eigenvalue
Individual Audit and digital presence on a company : Individual Audit and digital presence on a company of your choice. You must include an overview of the tools used to complete the audit
Find the p-value for the test of hypothesis : Find the p-value for the test of hypothesis with the alternative hypothesis that the current mean weekly earning of American workers who have a bachelor
Mean consumption of water per household : Find the p-value for the hypothesis test that the mean consumption of water per household has decreased due to the campaign by the city council.
Explain difference between abnormal versus normal qualities : Students will choose a mental health disorder (for example depression), from what we discussed in class. They will write a 3-5 page paper.

Reviews

len2188078

12/7/2018 9:44:40 PM

Hi I wank to thank you for the last assignment because it was really well done and helpful for me to study from. From that same assignment I would like #3 done. Report the number of iterations performed compared approximations with exact eigenvalue/eigenvector pair.

Write a Review

Mathematics Questions & Answers

  Find a compound proposition involving propositional variable

Include a conjunction for each combination of values for which the compound proposition is true. Each conjunction should include each of the three propositional variables or its negations.]

  How many medical test kits were sold last year

This year, 230 million test kits are expected to be sold. this represents a 122% increase from the number of kits that were sold last year. How many medical test kits were sold last year?

  What is its radius of convergence

If f (x) = e x , then f (n) (x) = e x for all n Find the Maclaurin series for e x . What is its radius of convergence?

  Polpulation of a certain country is growing exponentially

The polpulation of a certain country is growing exponentially at a rate of 1.6% per year. how ... the time in years for a population with growth rate k to double.

  Determine the mean birth weight of a certain breed of kitten

A study was conducted to determine the mean birth weight of a certain breed of kittens. Consider the birth weights of kittens to be normally distributed

  Find the arc radius r and the arc length s g

Find the arc radius R and the arc length S given the chord length

  State what year will the attendance be less

The number attending is 2/3 of the previous year's attendance, in what year will the attendance be less than 1/3 the original attendance

  How fast is the level of the water rising

Water is poured into a conical container, vertex down, at rate of 2 cubic feet per minute. The container is 6 feet deep and the open end is 8 feet across. How fast is the level of the water rising when the container is half full

  Which of the two strategies would you recommend

Simulate 1000 interactions of the two strategies over the six-year period. Create a histogram of the final fund values. Based on your simulation results, which of the two strategies would you recommend? Why?

  Name five x-values

Please show all work for this. Please type in all answers, and don't use images, it's easier for me to understand: 1. Name FIVE x-values for which the tangent function equals 0. 2. Name FIVE x-values for which the cosine function equals 0.

  What is the expected final fortune

You have 80 dollars and play the following game. An urn contains two white balls and two black balls. You draw the balls out one at a time without replacement.

  What is the slack time remaining schedule

What is the shortest operating time (SOT) schedule? What is the slack time remaining (STR) schedule?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd