Explain why the rows of q must also form an orthonormal set

Assignment Help MATLAB Programming
Reference no: EM132750968

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

Verified Expert

This paper presents mathematical manipulation of various properties of linear algebra including diagonalization, eigen vectors, eigen values, rank, dot product and transposition. Linear dependence of the vector spaces has also been determined from the orthogonal and orthonormal properties. MATLAB codes have been scripted to aid in the solutions of the given problems.

Reference no: EM132750968

Questions Cloud

Determine the amount of interest to be capitalized : On December 31, 2019, Joross Company borrowed P3,000,000 and issued a 12%, Determine the amount of interest to be capitalized in 2020
How nurses play a significant role in treating patients : How nurses play a significant role in treating patients who are not able to spend money on their health treatment
What is the overall tax rate on UTAs income : What is the overall tax rate on UTA's income in the first year if UTA is organized as an S corporation or as a C corporation
Find the limit if it exists : Evaluate the limit, if it exists. (If an answer does not exist, enter DNE.) lim t?0 (3/t A????1 3/t(^2) +2 ) 12. .Evaluate the limit, if it exists.
Explain why the rows of q must also form an orthonormal set : What in general is the relationship between the entries of AAT and dot products of vectors associated to A and Explain carefully why your computation
Find the probability that jack passes calculus : Find the probability that Jack passes Calculus III and Find the probability that Jack passes Calculus II and Calculus III.
Briefly explain both the franck- hertz experiment : Briefly explain both the Franck- Hertz Experiment and the photoelectric effect and Analyse and interpret the Franck - Hertz experimental data supplied
What is the normal force that the ramp is exerting : Explain the process for determining, based on a free body diagram, whether or not there is a net force acting on an object and What is the normal force
TECO201 Elements Of Econometrics Assignment : TECO201 Elements Of Econometrics Assignment Help and Solution, Australian National Institute of Management and Commerce - Assessment Writing Service

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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