Chapter 4 Exercises

MATLAB Exercises

  1. Use MATLAB to generate a matrix W and a vector x by setting

    W=triu(ones(5))andx=[1:5]

    The columns of W can be used to form an ordered basis:

    F={w1,w2,w3,w4,w5}

    Let L:55 be a linear operator such that

    L(w1)=w2,L(w2)=w3,L(w3)=w4

    and

    L(w4)=4w1+3w2+2w3+w4L(w5)=w1+w2+w3+3w4+w5
    1. Determine the matrix A representing L with respect to F, and enter it in MATLAB.

    2. Use MATLAB to compute the coordinate vector y=W1x of x with respect to F.

    3. Use A to compute the coordinate vector z of L (x) with respect to F.

    4. W is the transition matrix from F to the standard basis for 5. Use W to compute the coordinate vector of L (x) with respect to the standard basis.

  2. Set A=triu(ones(5))*tril(ones(5)). If L denotes the linear operator defined by L(x)=Ax for all x in n, then A is the matrix representing L with respect to the standard basis for R5. Construct a 5×5 matrix U by setting

    U=hankel(ones(5,1),1:5)

    Use the MATLAB function rank to verify that the column vectors of U are linearly independent. Thus, E={u1,u2,u3,u4,u5} is an ordered basis for 5. The matrix U is the transition matrix from E to the standard basis.

    1. Use MATLAB to compute the matrix B representing L with respect to E. (The matrix B should be computed in terms of A, U, and U1).

    2. Generate another matrix by setting

      V=toeplitz([1,0,1,1,1])

      Use MATLAB to check that V is nonsingular. It follows that the column vectors of V are linearly independent and hence form an ordered basis F for 5. Use MATLAB to compute the matrix C, which represents L with respect to F. (The matrix C should be computed in terms of A, V, and V1.)

    3. The matrices B and C from parts (a) and (b) should be similar. Why? Explain. Use MATLAB to compute the transition matrix S from F to E. Compute the matrix C in terms of B, S, and S1. Compare your result with the result from part (b).

  3. Let

    A=toeplitz(1:7),S=compan(ones(8,1))

Chapter Test A True or False

For each statement that follows, answer true if the statement is always true and false otherwise. In the case of a true statement, explain or prove your answer. In the case of a false statement, give an example to show that the statement is not always true.

  1. Let L:nn be a linear transformation. If L(x1)=L(x2), then the vectors x1 and x2 must be equal.

  2. If L1 and L2 are both linear operators on a vector space V, then L1+L2 is also a linear operator on V, where L1+L2 is the mapping defined by

    (L1+L2)(v)=L1(v)+L2(v) for all vV.

  3. If L:VV is a linear transformation and xker(L), then L(v+x)=L(v) for all vV.

  4. If L1 rotates each vector x in 2 by 60° and then reflects the resulting vector about the x-axis, and if L2 is a transformation that does the same two operations, but in the reverse order, then L1=L2.

  5. The set of all vectors x used in the homogeneous coordinate system (see the application on computer graphics and animation in Section 4.2) forms a subspace of 3.

    and set B=S1*A*S. The matrices A and B are similar. Use MATLAB to verify that the following properties hold for these two matrices:

    1. det(B)=det(A)

    2. BT=STAT(ST)1

    3. B1=S1A1S

    4. B9=S1A9S

    5. B3I=S1(A3I)S

    6. det(B3I)=det(A3I)

    7. tr(B)=tr(A)(Note that the trace of a matrix A can be computed with the MATLAB command trace.)

      These properties will hold in general for any pair of similar matrices (see Exercises 11-15 of Section 4.3).

  6. Let L:22 be a linear transformation, and let A be the standard matrix representation of L. If L2 is defined by

    L2(x)=L(L(x))for all x2

    then L2 is a linear transformation and its standard matrix representation is A2.

  7. Let E={x1,x2,,xn} be an ordered basis for n. If L1:nn and L2:nn have the same matrix representation with respect to E, then L1=L2.

  8. Let L:nn be a linear transformation. If A is the standard matrix representation of L, then an n×n matrix B will also be a matrix representation of L if and only if B is similar to A.

  9. Let A, B, and C be n×n matrices. If A is similar to B and B is similar to C, then A is similar to C.

  10. Any two matrices with the same trace are similar. [This statement is the converse of part (b) of Exercise 15 in Section 4.3.]

Chapter Test B

  1. Determine whether the following are linear operators on 2:

    1. L is the operator defined by L(x)=(x1+x2,x1)T.

    2. L is the operator defined by L(x)=(x1x2,x1)T.

  2. Let L be a linear operator on 2 and let

    v1=[11],v2=[12],v3=[17]

    If

    L(v1)=[25]    and     L(v2)=[31]

    find the value of L(v3).

  3. Let L be the linear operator on 3 defined by

    L(x)=[x2x1x3x2x3x1]

    and let S=Span((1,0,1)T).

    1. Find the kernel of L.

    2. Determine L (S).

  4. Let L be the linear operator on 3 defined by

    L(x)=[x2x1x1+x2]

    Determine the range of L.

  5. Let L:23 be defined by

    L(x)=[x1+x2x1x23x1+2x2]

    Find a matrix A such that L(x)=Ax for each x in 2.

  6. Let L be the linear operator on 2 that rotates a vector by 30°. in the counterclockwise direction and then reflects the resulting vector about the y-axis. Find the standard matrix representation of L.

  7. Let L be the translation operator on 2 defined by

    L(x)=x+a,where a=[25]

    Find the matrix representation of L with respect to the homogeneous coordinate system.

  8. Let

    u1=[31],u2=[52]

    and let L be the linear operator that rotates vectors in 2 by 45°. in the counterclockwise direction. Find the matrix representation of L with respect to the ordered basis [u1,u2].

  9. Let

    u1=[31],u2=[52]

    and

    v1=[12],v2=[11]

    and let L be a linear operator on 2 whose matrix representation with respect to the ordered basis is {u1,u2} is

    A=[2132]
    1. Determine the transition matrix from the basis {v1,v2} to the basis {u1,u2}.

    2. Find the matrix representation of L with respect to {v1,v2}.

  10. Let A and B be similar matrices.

    1. Show that det(A)=det(B).

    2. Show that if λ is any scalar, then det(AλI)=det(BλI).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.165.131