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

  Real-world application in calculus

The real-world application and its solution must be original (your own work) and/or cited (APA) if other work was adapted/used. You may not simply copy or modify an existing application and/or solution.

  What is the opportunity cost of a textbook

The money price of a textbook is $90 and the money price of the Wii game Super Mario Galaxy is $45.

  What is probability that the nurse forgot to give the pill

If he does not get the pill, the probability that he will die is ?. Mr. Brown died. What is the probability that the nurse forgot to give Mr. Brown the pill?

  Investment to double in size

Suppose $2,400 is invested in an account at an annual interest rate of 6.5% compounded continuously. How long (to the nearest tenth of a year) will it take the investment to double in size?

  What is the total value from all four companies

Shantell recognized the stationery, and looked forward to another of her Aunt Mildred's letters. Inside, though, were a number of documents along with a short.

  Measure of central tendency would change the most

If I added the number 19 to the data, which measure of central tendency would change the most?

  Find the augmented matrix for the following system of

question find the augmented matrix for the following system of linear equations2x 9y 22z 536x 26y 63z 1517x 28y

  Calculate the commission rate

Mulberry Company pays all its sales representatives a base salary of $27,000 per annum and a commission on all jackets that they sell over $2,000. If a sales representative's salary last month was $3,000 and his sales were $18,750, calculate the c..

  What are the dimensions of the window that transmits

If the colored glass transmits only half as much light per square foot as the clear glass does, what are the dimensions of the window that transmits the most light? (The perimeter is still 100 feet.)

  Find the probability that there are exactly two misprints

Find the probability that there are exactly 2 misprints on a given page in the book. How about the probability that there are 2 or more misprints?

  The gestation period of gray squirrels in captivity is

the gestation period of gray squirrels in captivity is listed as 44 days. it is recognized that the potential life span

  How would you create a trinomial that will factor

Choose three integers a, b, and c. (Negative numbers are welcome.) Now use a, b, and c to create a trinomial ax2+bx+c. Can you factor this trinomial? How would you create a trinomial that will factor?

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