MATH661 Homework 2 - Linear algebra tools

Posted: 08/30/21

Due: 09/08/21, 11:55PM

1Track 1

  1. Implement the classical and modified Gram-Schmidt algorithms to compute 𝑸𝑹=qr(𝑨). Test orthogonality of 𝑸 for 𝑨=randn(m,m), m=20k, k=1,2,,5.

    Solution.

  2. Generate point clouds that conform to two columns of your choice from Fig. 1. Compute the associated correlation matrix 𝑪 and superimpose on the plots the columns of 𝑸 from the orthogonal decomposition 𝑪=𝑸𝑹 obtained through the modified Gram-Schmidt algorithm

    Figure 1. Point clouds with associated Pearson correlation coefficients. See Wikipedia: Correlation

    Solution.

  3. Construct families of curves equidistant from the x1=0 and x2=0 axes in the plane using the 𝑨-norm

    ||𝒙||=(𝒙T𝑨T𝑨𝒙)1/2

    with 𝑨2×2 of full rank of your choice that is not diagonal.

    Solution.

    Track 1 extra credit (T1EC1, 3 points). Derive an analytical parametric form for the equidistant curves, and plot them. Recall that for some point 𝒙(t) on curve Γ the 𝑨-norm distance to the x1-axis is defined by

    minud(u,t),

    and is attained at

    s=argminud(u,t)=argminud2(u,t).

2Track 2

  1. Prove the Hölder inequality: for p,q>1, 1/p+1/q=1,

    i=1m|xiyi|(i=1m|xi|p)1/p(i=1m|yi|q)1/q.

    Solution. Proofs of the Hölder inequality can use approaches from elementary algebra, analysis, or measure theory. However, the interest here is interpreting the Hölder inequality in the context of linear algebra. Study the following solution carefully to see how an operator was identified, represented by a matrix, and then the tools introduced to measure the magnitude of vectors and matrices (i.e., norms) were used to establish the Hölder inequality. Compare with your submitted solution, and establish links between the fields of mathematics used in your proof to the linear algebra proof presented here.

    Introduce vectors 𝒙,𝒚m, and matrices 𝑿,𝒀m×m defined as

    𝑿=diag(𝒙)=[ x1 0 0 0 x2 0 0 0 xn ],𝒀=diag(𝒚)=[ y1 0 0 0 y2 0 0 0 yn ].

    Notice that 𝒛=𝑿𝒚=𝒀𝒙m, is a vector with components zi=xiyi. The Hölder inequality can now be stated in matrix-vector form as

    ||𝑿𝒚||1||𝒙||p||𝒚||q.

    The inequality is true for either 𝒙=𝟎, or 𝒚=𝟎. For the remaining case of ||𝒙||p0, ||𝒚||q0, rescale vectors such that ||𝒙||p=||𝒚||q=1, and restate Hölder inequality,

    ||𝑿𝒚||11.

    Use the matrix norm property ||𝑿𝒚||1||𝑿||1||𝒚||1. The one-norm of a matrix is the largest of the one-norms of its columns (e.g., Trefethen & Bau, p.21), and since the columns of 𝑿 contain a single non-zero entry

    ||𝑿||1=maxi|xi|1,

    since, otherwise, if |xi|>1 then ||𝒙||p>1, contradiction. This leads to

    ||𝑿𝒚||1||𝒚||1.

    Recall the graphical representation of unit-circles in various vector norms, ||𝒖||p=1,𝒖2. This is readily constructed by drawing an arc in the first quadrant, that is subsequently rotated by π2,π,3π2 .

    function arc(p,m)
      u1 = LinRange(0,1,m);
      u2 = (1 .- u1.^p).^(1.0/p)
      return [u1 u2]'
    end;
    function R(θ)
      [cos(θ) -sin(θ); sin(θ) cos(θ)]
    end;
    clf(); m=90; c=["k" "b" "g" "r"]; axis("equal"); title("Unit circle in various p-norms");
    for p=1:4
      X=[R(0); R(π/2); R(π); R(3*π/2)]*arc(p,m);
      for i=1:2:7
        plot(X[i,:],X[i+1,:],c[p])
      end
    end
    prefix = homedir()*"/courses/MATH661/images/";
    savefig(prefix*"H02T2P1.eps");

    Figure 3. Visual data suggesting that for 𝒖2, ||𝒖||1||𝒖||2||𝒖||3||𝒖||

  2. Prove the Minkowski inequality: for p1,

    (i=1m|xi+yi|p)1/p(i=1m|xi|p)1/p+(i=1m|yi|p)1/p.

    Solution.

  3. Prove the parallelogram identity

    ||𝒙+𝒚||2+||𝒙-𝒚||2=2(||𝒙||2+||𝒚||2),

    for 𝒙,𝒚m, with |||| denoting the 2-norm.

    Solution.

  4. Consider 𝑨m×m, C(𝑨)=m. Prove that

    (𝒙𝑨𝑨𝒙)1/2

    is a norm.

    Solution.

  5. Compute the components of the saw-tooth function f(t)=f(t+2π), f(t)=t for -π<t<π, on the Fourier basis set

    {12π,costπ,sintπ,,cosktπ,sinktπ,,cosntπ,sinntπ},

    for n=4p, p=2,3,4,5. Superimpose a plot of the approximants with the saw-tooth function. Solve any linear system or least squares problems that arise by 𝑸𝑹 decomposition. Comment on the plot.

    Solution.

  6. Construct visual representations of the Hadamard matrices 𝑯m, m=4k+4, k{0,1,2,,7}. Construct visual representations of C(𝑯m), N(𝑯mT), C(𝑯mT), N(𝑯m) through the 𝑸𝑹-decomposition of 𝑯m.

    Solution.