0% found this document useful (0 votes)
4 views2 pages

Matrix Operations and Transformations in Linear Algebra

Uploaded by

minhbq.2510690
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Matrix Operations and Transformations in Linear Algebra

Uploaded by

minhbq.2510690
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Linear Algebra

Dr. Ha Minh Lam

A SSIGNMENT 2: M ATRIX OPERATIONS


C HAPTER 2. Matrix operations.

1. Suppose that A, B, C, D, E are matrices with the following sizes: A : 4 × 5; B : (4 × 5); C : 5 × 2; D : 4 × 2;


E : 5 × 5. Determine (if exists) the size of each of the following matrices:

(a) BA; (d) AB + B; (g) E T A;


(b) AC + D; (e) 2E( A + B);
(c) AE + B; (f) E( AC ); (h) ( A T + E) D.

2. Let      
3 0     1 5 2 6 1 3
4 −1 1 4 2
A =  −1 2 , B = ,C = , D =  −1 0 1 , E =  −1 1 2 .
0 2 3 1 5
1 1 3 2 4 4 1 3
Compute the following (where possible)

(a) 2B − C; (e) AC and CA;


(b) 3D − 2E T ; (f) (C T B) A T and Tr ((C T B) A T );
(c) 3D T − 2E and Tr (3D − 2E T ); (g) Tr ( DD T ).
(d) AB and BA; (h) D T E T − ( ED ) T .

3. The columns of matrix T show the coordinates of the vertices of a triangle. Matrix A is a transformation
matrix.    
0 −1 1 2 3
A := , T := .
1 0 1 4 2
(a) Compute AT and AAT.
(b) Sketch the original triangle and the two transformed triangles. What transformation does A repre-
sent?
4. Write down the 2 by 2 matrices A and B that have entries aij = i + j and bij = (−1)i+ j . Multiply them to
find AB and BA. Is the product of A and B commutative?
5. True or false? Give a specific counterexample when false.
(a) If columns 1 and 3 of B are the same, so are columns 1 and 3 of AB.
(b) If rows 1 and 3 of B are the same, so are rows 1 and 3 of AB.
(c) If rows 1 and 3 of A are the same, so are rows 1 and 3 of AB.
(d) ( AB)2 = A2 B2 .
6. Which of the following matrices are guaranteed to equal ( A + B)2

(a) A2 + 2AB + B2 (c) ( A + B)( B + A)


(b) A( A + B) + B( A + B) (d) A2 + AB + BA + B2

7. Find examples of 2 × 2 matrices such that


(a) A2 = − I, A having only real entries.
(b) B2 = 0, although B ̸= 0;
(c) CD = − DC, not allowing the case CD = 0.
(d) EF = 0, although no entries of E or F are zero.
8. Find the powers A2 , A3 , B2 , B3 , C2 , C3 . What are Ak , Bk and C k for a given k?
1 1 1
− 12
  
2 2 1 0 2
A = 1 1 ,B = , and C = AB = 1 1 .
2 2
0 −1 2 −2

1
Linear Algebra
Dr. Ha Minh Lam

9. Adjacency matrix of a graph


A (no loops) directed graph G = (V, E) consists of a nonempty set of vertices V and a set of edges E that are
ordered pairs of distinct elements of V. When (u, v) is an edge of the graph G, u is said to be adjacent to
v and v is said to be adjacent from u.
Suppose that V = {v1 , ..., vn }. The adjacency matrix A = ( aij ) of G, with respect to this listing of vertices,
is the n × n matrix defined by
(
1 if (vi , v j ) ∈ E
aij = , 1 ≤ i, j ≤ n.
0 otherwise

(i) What is the sum of the entries in a row of A.


(ii) What does the (i, j) entry of Ak mean?
(iii) Construct the adjacency matrix A of the following graph, and compute A2 , A3 .

10. A medical researcher is studying the spread of a virus in a population of 1000 laboratory mice. During
any week there is an 80% probability that an infected mouse will overcome the virus, and during the
same week there is a 10% probability that a noninfected mouse will become infected. One hundred mice
are currently infected with the virus. Draw a figure showing the changes in the spread of the virus each
week. How many will be infected next week? In 2 weeks?
11. A population of 10,000 is grouped as follows: 5000 nonsmokers, 2500 smokers of one pack or less per
day, and 2500 smokers of more than one pack per day. During any month there is a 5% probability that
a nonsmoker will begin smoking a pack or less per day, and a 2% probability that a nonsmoker will
begin smoking more than a pack per day. For smokers who smoke a pack or less per day, there is a 10%
probability of quitting and a 10% probability of increasing to more than a pack per day. For smokers who
smoke more than a pack per day, there is a 5% probability of quitting and a 10% probability of dropping
to a pack or less per day. Draw a figure showing the changes in smoking situations each month. How
many people will be in each of the 3 groups in 1 month? In 2 months?

Common questions

Powered by AI

The (i, j) entry of Ak in the adjacency matrix A represents the number of distinct paths of length k from vertex i to vertex j in the directed graph. This is deduced by understanding that each power of the adjacency matrix analytically extends path length computations, multiplying paths by connections established through matrix powers.

A zero-entry product matrix EF, despite neither E nor F having zero entries, demonstrates that matrices can be non-trivial yet yield zero when multiplied. This implies that the rows of E and columns of F are orthogonal in terms of their corresponding dot products, showcasing that matrix multiplication's outcome depends strongly on the interplay of individual entries rather than their presence alone.

Matrix A = [0, -1; 1, 0] represents a 90-degree counterclockwise rotation about the origin. When this transformation matrix is applied to the vertices of a triangle given by matrix T = [1, 2, 3; 1, 4, 2], each coordinate of the triangle is rotated 90 degrees counterclockwise. The transformed matrices AT and AAT can be computed to verify this transformation effect.

The result of 2B − C involves first scaling matrix B and then subtracting matrix C element-wise. Matrix B is 2x2, while C must also conform to this structure for the operation to be compatible. If these conditions on matrix dimensions hold and result in a valid 2x2 matrix, it demonstrates that arithmetic operations between conformable matrices respect dimensions and should validate through calculation.

The trace of a matrix is the sum of its diagonal elements. For the matrix (3D - 2ET), taking the trace involves first performing the subtraction after scaling D and E by 3 and 2, respectively, and then summing up the diagonal entries of the resulting matrix. This reveals the sum of elements that remain along the main diagonal after these operations, providing insights into the matrix's invariant properties.

The change in population for different smoking categories is calculated using the transition probabilities to map current group sizes to future sizes. For example, a 5% probability transition from nonsmokers to smoking categories implies a reduction in nonsmokers and proportional increases in smokers, calcuated using matrix multiplication of the transition matrix and the current population vector.

For a 2x2 matrix A with real entries to satisfy A^2 = -I, A must have complex eigenvalues, e.g., i or -i, because squaring a real-valued matrix to result in negation of its identity requires rotational or scaling factors only complex values provide. This necessitates that A represents a rotation by 90° counterclockwise in the complex plane when interpreted algebraically over its entries.

To determine the size of the matrix product BA, where B is 4x5 and A is 4x5, you need to check if B and A can be multiplied. Matrix multiplication is possible if the number of columns in the first matrix matches the number of rows in the second matrix. Since the number of columns in B does not equal the number of rows in A (5 ≠ 4), the matrix BA does not exist.

The product of matrices A and B is not generally commutative. For the given matrices A and B, where a_ij = i + j and b_ij = (-1)^(i+j), the calculated products AB and BA will not yield the same results due to the differing structures of the matrices and their elements. Matrix multiplication is inherently not commutative, which is confirmed by explicit calculation.

Matrix (AB)^2 and A^2B^2 are not equal generally because multiplication is not commutative. (AB)^2 results in ABA*B while A^2B^2 results in AA*BB, making sequencing non-transferable. The equality holds specifically if A and B commute (i.e., AB = BA), a rare and highly specific property among arbitrary matrices, allowing interchangeable multiply operations preserving sequence.

You might also like