代写F24 ECE 551 HW03代做留学生R程序

F24 ECE 551

HW03, Due 11PM Thu. Sep. 26

Pr. 1.


(a) Let Q denote an M × K matrix having orthonormal columns.

Show that Q′Q = IK. Thus ∥Qx∥2 = ∥x∥2 for all x ∈ C K.

(b) Show that the following converse is true:

if A is an M × K matrix for which ∥Ax∥2 = ∥x∥2 for all x ∈ C K, then A′A = IK.

Your proof should be general enough to cover the case where A has complex elements.

Hint. Examine products with standard unit vectors ej and combinations like ej + ek, or consider an eigendecompo-sition of A′A − I.

Pr. 2.

Let A be an N × N Hermitian matrix with unitary eigendecomposition A = QΛQ′ , where λ1 ≥ λ2 ≥ . . . ≥ λk ≥ 0 and 0 ≥ λk+1 ≥ . . . ≥ λN , for some 1 < k < N. Determine an SVD of A in terms of the given components.


Pr. 3.

The Ch. 3 notes show the following Venn diagram of matrices and eigendecompositions:



Each of the categories shown above is a strict superset of the categories nested with in it.

Provide example matrices A1, . . . , A5 that belong to the each of the categories above but not the next category nested within it. Try to provide the simplest possible example in each case.

For example, the matrix A1 = [0 1] is rectangular, but not square. Now you do A2, . . . , A5.

Hint. All the examples can be 1 × 1 or 2 × 2, often with simple “0” and “1” elements.



Pr. 4.

Let 

(a) Determine the null space of A, denoted by N (A), and the range space or column space of A denoted by R(A).

(b) Are they equal? Does your answer hold in general? If not, provide a counterexample.

Pr. 5.

Let A ∈ FM×N .

(a) Suppose W ∈ FM×M and Q ∈ F N×N are each unitary matrices.

Show that A and C ≜ W AQ have the same singular values.

Consequently, A and C have the same rank, the same Frobenius norm and the same operator norm. This is why the Frobenius norm and the operator norm are called unitarily invariant norms. Their value does not change when the matrix is multiplied from the left and/or the right by a unitary matrix. Any norm that depends only on the singular values of A will, by definition, be unitarily invariant.

(b) Suppose that W and Q are nonsingular but not necessarily unitary matrices. Do A and D ≜ W AQ have the same rank? Prove or give a counterexample.

(c) Continuing (b), do A and D = W AQ have the same singular values? Prove or give a counterexample.

Pr. 6.

Prove that the orthogonal complement of the range of a matrix A equals the null space of A′ : R⊥(A) = N (A′).



Pr. 7.

Let A = xy′ , where neither x nor y is 0.

(a) How many linearly independent columns does A have? I.e., of all the sets of columns from this matrix where the set is linearly independent, what is the maximum cardinality?

(b) What is the rank of A?

(c) Enter (cut and paste) this code into Julia:

using LinearAlgebra: svdvals

using Plots

using LaTeXStrings

n = 100

x = randn(n); y = randn(n); A = x*y'

s = svdvals(A)

scatter(s, yscale = :log10, label= "",

title = "singular values: log scale",

xlabel="i", ylabel=L"\sigma_i") # to make σi

(Ideally the ylabel should look like σi , but if it does not, it is OK. Comment out the ylabel part if needed.)

• How many numerically computed singular values of A are nonzero?

• What answer do you get when you type rank(A) ?

• Turn in your plot of the singular values and the answers.

You will have just seen that a theoretically rank-1 matrix will have multiple nonzero singular values when expressed in machine precision arithmetic; this property is due to roundoff errors (finite numerical precision). (Round-off errors should not be thought of as “wrong answers,” but just a fact of real-life computing to be understood and not feared.)

(d) To help locate the code for the rank function, type this into Julia:

@less rank(ones(3,2))

Examine the code for the rank function and write down the formula used to determine the threshold (aka tolerance) below which, due to roundoff errors, the code considers the singular value to be “zero.”

(e) Determine the numerical value of the threshold when A = [9 9].

(f) Optional. Check your answer to the previous part by using the Julia debugger to step into the rank function and examine the tolerance.

Pr. 8.

When D is an M × N (rectangular) diagonal matrix, its pseudoinverse D+ is an N × M (rectangular) diagonal matrix whose nonzero entries are the reciprocals 1/dk of the nonzero diagonal entries of D. A matrix A having SVD A = UΣV ′ has A+ = V Σ+U′ . Working with just this equality, determine by hand (experimenting / checking with code is OK) the pseudoinverse of

(a) A = xy′ , where neither x ∈ FM nor y ∈ F N is 0, (your answer should depend only on x and y),

(b) A = xx′ , where x ≠ 0.



Pr. 9.

(a) Find an orthonormal basis for the range of the M × N matrix that is all ones.

(b) Find an orthonormal basis for the range of 

(c) Find an orthonormal basis for the range of any 2 × 2 rotation matrix.

(d) Use the fact that R(A) = R(Ur) to modify the compact SVD code in §4.5 to write a function that returns an orthonormal basis for the range of a given matrix, akin to how nullspace returns a null space basis.

In Julia, your file should be named matrixrange.jl and should contain the following function:

"""

matrixrange(A::AbstractMatrix)

Return orthonormal basis matrix for the range of matrix `A`.

"""

function matrixrange(A::AbstractMatrix)

Email your solution as an attachment to [email protected].

Check your code using your answers to the preceding parts.

(e) Optional. Find an orthonormal basis for the range of any 2 × 2 rotation matrix, such that the basis matrix has the smallest possible trace.

Non-graded problem(s) below

(Solutions will be provided for self check; do not submit to gradescope.)

Pr. 10.

Let A be a normal matrix of the (unnamed) type where each eigenvalue either has a different magnitude than all other eigenvalues, or has the same value as all other eigenvalues with its magnitude. In other words, having both |λj | = |λi | and λj = λi is not allowed. For example, A might have eigenvalues (3, 4ı, 4ı, −5) but cannot have eigenvalues (3, 4, 4ı, −5).

Prove that every right singular vector of A is also an eigenvector of A.

This problem finishes the story on relating SVD and eigendecomposition.

Pr. 11.

We write A ⪯ B iff B − A ⪰ 0, i.e., iff B − A is positive semidefinite.

For a > 0, determine 

Pr. 12.

Suppose that X = UxΣxVx ′ and Y = UyΣyVy ′ denote SVD s of the matrices X ∈ F m×n and Y ∈ F p×q .

(a) Show that

X ⊗ Y = (Ux ⊗ Uy)(Σx ⊗ Σy)(Vx ⊗ Vy) ′

is an SVD of X ⊗ Y (up to a permutation of the singular values). The block diagonal matrix Σx ⊗ Σy contains the pairwise products of the singular values of X and Y .

Hint. First show that the formula is correct, then argue that it is an SVD by showing that Ux ⊗ Uy and Vx ⊗ Vy are unitary matrices.

Hint: You may find the following properties of Kronecker product useful:

• (X ⊗ Y ) ′ = X′ ⊗ Y ′

• (X ⊗ Y )(W ⊗ Z) = (XW) ⊗ (Y Z)

(b) Now suppose that A = QaΛaQ′ a and B = QbΛbQ′ b are unitary eigendecompositions of the (normal) matrices A ∈ F N×N and B ∈ FM×M.

Show that

A ⊗ B = (Qa ⊗ Qb)(Λa ⊗ Λb)(Qa ⊗ Qb) ′



is a unitary eigendecomposition of A ⊗ B. The diagonal matrix Λa ⊗ Λb contains the pairwise products of the eigenvalues of A and B.

Hint. First show that the formula is correct, then argue that it is an eigendecomposition by showing that Qa ⊗ Qb is a unitary matrix.

(c) Continuing (b), show that

A ⊕ B = (Qa ⊗ Qb)(Λa ⊕ Λb)(Qa ⊗ Qb) ′

is an eigendecomposition of the Kronecker sum A ⊕ B ≜ (A ⊗ I) + (I ⊗ B), where you must determine the size(s) of the “I” in that expression. The diagonal matrix Λa ⊕ Λb contains the pairwise sums of the eigenvalues of A and B.

Hint. Start by writing IN = QaIN Q′ a and IM = QbIMQ′ b in the definition of A ⊕ B, and then apply (b).

Pr. 13.

Complete the “Introduction to Matrix Math” tutorial at https://pathbird.com/courses/register. (Use the registration code shown on the ECE 551 Canvas home page.) This tutorial should be helpful for anyone who wants deeper understanding of Julia for operations with matrices and vectors. Such operations are a major part of ECE 551.




热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图