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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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