AE 15: Linear algebra

Suggested answers

Application exercise
Answers

In this exercise, we will:

Linear algebra

For each exercise, show all steps clearly.

Transposition

Exercise 1

Given a vectory:

y=[y1y2y3]

Write down its transpose y

Solution:

  • The transpose of the vector y is:

y=[y1y2y3]

Exercise 2

Given the following matrix N:

N=[n11n12n21n22n31n32]

Write down its transpose, N

Solution:

  • The transpose of the matrix N is:

N=[n11n21n31n12n22n32]

Matrix operations

Exercise 3

Consider the following matrices C and D:

C=[c11c12c13c21c22c23],D=[d11d12d21d22d31d32]

  • What are the dimensions of C?

  • What are the dimensions of D?

  • For the matrix product CD:

    1. Determine if the product is valid, and explain why.

    2. If the product is valid, write down the dimensions of the resulting matrix without computing the product.

Solution:

  • The dimensions of C are 2×3

  • The dimensions of D are 3×2.

  • For the matrix product CD:

    1. The product is valid because the number of columns in C (which is 3) matches the number of rows in D (which is 3).

    2. The dimensions of the resulting matrix will be 2×2.

Exercise 4

Consider the following matrices E and F:

E=[e11e12e13e14e21e22e23e24],F=[f11f12f21f22f31f32f41f42]

  • What are the dimensions of E?

  • What are the dimensions of F?

  • For the matrix product EF:

    1. Determine if the product is valid, and explain why.

    2. If the product is valid, write down the dimensions of the resulting matrix without computing the product.

Solution:

  • The dimensions of F are 2×4

  • The dimensions of F are 4×2.

  • For the matrix product EF:

    1. The product is valid because the number of columns in E (which is 4) matches the number of rows in F (which is 4).

    2. The resulting matrix is:

EF=[e11e12e13e14e21e22e23e24][f11f12f21f22f31f32f41f42]=[e11f11+e12f21+e13f31+e14f41e11f12+e12f22+e13f32+e14f42e21f11+e22f21+e23f31+e24f41e21f12+e22f22+e23f32+e24f42]