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

  Differences in populations served by these hospitals

What are the differences in populations served by these hospitals? Are they urban or rural? Do the services vary? Explain your answer.

  Review the case study of gumball machine

A gumball machine requests 25 cents and, in return, sends a colorful gumball down a chute into your waiting hands. The gumballs in this machine come in white.

  Show that the curve has c2 continuity at x(1)

Programmers often choose Bézier surfaces for applications (such as an airplane cockpit simulator) that require real-time rendering.

  Determine the type of data you would need to collect

Determine the type of data you would need to collect and where this might be found or how it might be collected and Examine the literature on how to solve

  Show truth table and solve

Determine if this argument is correct, using symbolic logic and a truth table. If it is not correct, explain what is wrong with the argument, and change the minor premise to make a correct argument.

  Find probability that michelle wins one of the given prizes

Suppose that 100 people enter a contest and that different winners are selected at random for first, second, and third prizes.

  Standard deviation of scores and the number

The ANOVA output below can be used to test for differences between the average scores from the different discussion sections.

  How much additional profit does each firm make

Now suppose that each firm is thinking of opening new outlets in a number of towns, and each town has a payoff matrix similar to this one. Would there be advantages in having the two chains communicate and cooperate in this case? If they decide to..

  What are the new coordinates

A triangle in the coordinate plane has vertices of (2,6), (-4, -4), and (0,-6). When the triangle is dilated with a scale factor of 1/2.

  Question 1 as light passes through transparent materials

question 1. as light passes through transparent materials water glass plastic some of the light is absorbed. the

  Describe a political poll or survey

Describe a political poll or survey. Analyze the number of people who participated in the sample compared to the number in the population. Discuss how the results of the survey can be used to tell a story or support an idea of the sponsoring compan..

  Find the bearing of the plane

A plane is heading due south with an airspeed of193 mph. A wind from a direction of57° is blowing at15 mph. Find the bearing of the plane.

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