Compute the dot product of the first column of A

Assignment Help Other Subject
Reference no: EM132472603

MATH 240 MATLAB Project Assignment -

For this project, do all problems in format short. Review all directions and rules. Then enter the command clock.

1. Let A = 921_figure.png.

(a) Execute the command [P, D] = eig(A) to diagonalize A.

(b) Use MATLAB to verify that A = PDP-1.

(c) Use the previous results to give the eigenvalues of A, and give an eigenvector for each eigenvalue.

2. Let A = 1896_figure1.png.

(a) Use MATLAB to compute An for n = 2, 3, 4, 5, 6, 7, 8. Do you notice a pattern?

(b) Have MATLAB produce an invertible P and a diagonal D such that A = PDP-1. Notice that complex numbers get involved.

(c) To understand An, it suffices to understand Dn because An = PDnP-1. Describe the pattern that emerges when we consider powers of D: D, D2, D3, D4, etc.

(d) Without doing a computation in MATLAB, determine A20000001.

3. Let A =2303_figure3.png.

(a) Execute the command [P, D] = eig(A). Something strange should occur in the output.

(b) Use MATLAB to try see if A = PDP-1.

(c) Find a basis for the eigenspace of A corresponding to the eigenvalue λ = 3.

(d) Is there a basis for R2 consisting of eigenvectors for A? Does this explain why something went wrong in part (b)?

4. Let A = 1541_figure4.png.

(a) Enter A into MATLAB and use MATLAB to compute the dot product of the first column of A with its second column. Also compute the dot product of the third column with itself.

(b) Compute the matrix product ATA.

(c) What is the relationship between the entries of ATA and the dot products of the columns of A? Make sure your answer is consistent with your computations.

(d) What in general is the relationship between the entries of AAT and dot products of vectors associated to A?

(e) Compute AAT and do at least two dot product computations to support your previous answer.

(f) Let Q = 73_figure5.png. Do a single matrix computation which shows that the columns of form an orthonormal set.

(g) Explain carefully why your computation above shows that the columns form an orthonormal set.

(h) Explain why the rows of Q must also form an orthonormal set.

5. Let W be the subspace of R5 given by

2196_figure6.png

(a) Enter the four vectors into MATLAB as v1, v2, v3 and v4 respectively.

(b) Let A = [v1 v2 v3 v4]. Compute the rank of this matrix. Explain briefly in a comment why this shows that this set of four vectors is a basis for W.

(c) We shall apply the Gram-Schmidt Process to produce an orthogonal basis {w1, w2, w3, w4} for W. To begin, let w1 = v1 and w2 = v2 - (dot(w1,v2)/dot(w1,w1))*w1.

(d) Continue the Gram-Schmidt Process and compute w3 and w4.

(e) Rescale each vector of the orthogonal basis {w1, w2, w3, w4} to produce an orthonormal basis {u1, u2, u3, u4} for W. (Recall there is a command in MATLAB to compute the norm of a vector.)

(f) Enter the vectors u1, u2, u3, u4 into the columns of a matrix Q. Verify that the columns of Q are orthonormal with a single matrix multiplication.

(g) Compute R = QTA. Verify that R is upper triangular with positive diagonal entries and that A = QR.

(h) MATLAB can compute a QR factorization in a single command. Enter [Q1, R1] = qr(A, 0). Notice that there is a small discrepancy between your Q, R and the Q1, R1 produced by MATLAB. This is because QR factorizations are not unique. They are only unique if we insist that the diagonal entries of R are all postive. Nonetheless, the columns of Q1 still form an orthonormal basis for W.

6. Let W be the subspace of R6 given by

1323_figure7.png

(a) Enter those five vectors as the columns of a matrix A and compute its rank.

(b) The previous computation shows that the five vectors are linearly dependent, hence they do not form a basis for W. Find a basis for W. (Hint: Treat W as Col A).

(c) Enter your basis for W as the columns of a matrix B. Compute the factorization B = QR with a single command. Give an orthonormal basis for W.

(d) Let E = QQT. As a linear transformation on R6, E is the orthogonal projection onto the subspace W. Use E to compute the orthogonal projection of the vector v = (1, 1, 1, 1, 1, 1)T onto W.

(e) Find a basis for W as follows. Note that W = Col A = Col B. From a theorem in class, we have

W = (Col B) = Nul(BT),

so it suffices to find a basis for Nul(BT).

(f) As you did for W, find an orthonormal basis for W.

(g) Compute the matrix F for the orthogonal projection onto W. What is the sum E + F?

Attachment:- Matlab Project Assignment File.rar

Reference no: EM132472603

Questions Cloud

Present a strategy to make labor relations effective : Evaluate the steps the organization took to reshape the labor relations structure into a successful and productive one.
Compare and contrast the AICPA standards : Compare and contrast the AICPA (GAAS) standards with the revised PCAOB standards including at least 5 similarities and 5 differences
Discuss a communication inhibitor : Discuss one specific strategy that facilitates or supports effective communication in a multicultural work environment, and identify why it is effective
Determine what would be the new breakeven point in units : Determine What would be the new breakeven point in units? What would be the before-tax income or loss if 34,000 hats are sold with the new salary plan?
Compute the dot product of the first column of A : MATH 240 MATLAB Project Assignment - use MATLAB to compute the dot product of the first column of A with its second column
Implement social media applications : Critically evaluate, design, prototype and implement social media applications and visualization for business story telling
What percentage do sales represent of the base : What percentage do sales? Sunland Corporation reported net sales of $620000, $730000, and $806000 in the years 2016, 2017, and 2018, respectively.
Describe brain-imaging techniques : Discuss three behavioural methods and explain how these methods inform our understanding of cognitive processes and Describe three brain-imaging techniques
Find the depreciation expense for each year : Find and calculate annual depreciation expense fo first and second years using straight-line depreciation, assuming Sheridan has a calendar year end.

Reviews

Write a Review

Other Subject Questions & Answers

  Modernization manifest itself in us society

How does modernization manifest itself in U.S. society? Use one of the modern theorists introduced in Society as a basis for your response.

  How often do try to resist biases toward your own point view

Identify the informal fallacies, assumptions, and biases involved in manipulative appeals and abuses of language. Create written work utilizing the concepts of critical thinking. Use technology and information resources to research issues in criti..

  Summarize the house of scorpion written by nancy farmer

Summarize "The house of Scorpion" written by Nancy Farmer Explain how it relates to informatics and computer science in 5 to 7 pages.

  Why illegal street drugs should be made legal

Using approximately 300-500 words, make an argument for why illegal street drugs (excluding marijuana) should be made legal. Be sure to use at least 3 APA.

  What are the implications of sharing confidential material

HC2121 Comparative Business Ethics and Social Responsibility Case Study Assignment. What are the implications of sharing confidential material information

  How the internet may affect public opinion in a positive way

Write a paper that summarizes how the Internet may affect public opinion in a positive or negative way with regards to brand reputation. Discuss the current state of public opinion using the Internet as your research tool.

  The effect of enveloping the viewer

Baroque buildings are notable for the effect of enveloping the viewer. Explain how this impression is created in at least one Italian Baroque building.

  Discuss the ethical issues raised by the experiment

Discuss the ethical issues raised by the experiment.- Would the experiment violate the guidelines articulated in APA Ethical Standard 8 dealing with research with human participants?

  Trends and best practices in recruiting and staffing

In the past, the organization was also known for outstanding customer service and for building long-term relationships with its many business partners.

  What does the relationship between jake and brett tell us

How do these characters reflect F. Scott Fitzgerald's statement following WWI- "We are a generation grown to find all wars fought, all gods dead.

  What is a real-world example to support the theory

There are several theories or perspectives of personality described in this week's readings. Choose one that appeals to you, research one idea.

  How experience has affected your decision-making process

Examine how Munger's concept of mental models has changed your ideas of decision making in investment management and business.

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