Matrix Calculation

Introduction to matrices

Introduction to Matrices

Before we start solving multiple equations, I have to introduce the matrix calculations.

Tables can be represented by what we call matrices.

A matrix is a type of rectangular array of numbers.

The dimensions of a matrix are the number of rows and columns. A matrix having 3 rows and 5 columns is called a matrix with dimensions of 3 \times 5 spelled “3 by 5”.

M=\begin{bmatrix} x_{11} & x_{12} & x_{13} & x_{14} & x_{15} \\ x_{21} & x_{22} & x_{23} & x_{24} & x_{25} \\ x_{31} & x_{32} & x_{33} & x_{34} & x_{35} \end{bmatrix}

M=\begin{bmatrix} 3 & -5 & 2 & 0 & 4 \\ 7 & 22 & \frac{3}{4} & 2 & 8 \\ 1 & 15 & 7 & 4 &12 \end{bmatrix}

Or

M=\begin{pmatrix} 3 & -5 & 2 & 0 & 4 \\ 7 & 22 & \frac{3}{4} & 2 & 8 \\ 1 & 15 & 7 & 4 &12 \end{pmatrix}

Or another valid notation:

M=\begin{Vmatrix} 3 & -5 & 2 & 0 & 4 \\ 7 & 22 & \frac{3}{4} & 2 & 8 \\ 1 & 15 & 7 & 4 &12 \end{Vmatrix}

Or even

M=\begin{Bmatrix} 3 & -5 & 2 & 0 & 4 \\ 7 & 22 & \frac{3}{4} & 2 & 8 \\ 1 & 15 & 7 & 4 &12 \end{Bmatrix}

All these forms are valid and can be used. We’ll use the first one for this text.

The numbers in a matrix are called elements. Each element is accessed using an address.

The element is named by the intersection of the row and the column as seen in normal spreadsheets.

If we read the element located at the third row and second column, we can that we have 15.

We can say m_{32}=15

Comparing matrices:

Two matrices are equal when they have same dimensions with equivalent corresponding elements. Operations on matrices: Addition and subtraction: When two matrices have the same dimensions, we can add them or subtract them by merely adding or subtracting the corresponding elements.

If we have the following matrices:

M=\begin{bmatrix} 3 & 0 &-2 \\ 6 &1 &5 \end{bmatrix}

N=\begin{bmatrix} 2 &3 &-1 \\ -2 &5 &2 \end{bmatrix}

We can add or subtract because they have the same dimensions 2\times 2

M+N=\begin{bmatrix} 3+2 & 0+3 &-2-1 & \\ 6 -2&1+5 &5+2 \end{bmatrix}

M+N=\begin{bmatrix} 5 & 3 &-3 & \\ 4&6 &7 \end{bmatrix}

For the subtraction:

M-N=\begin{bmatrix} 3-2 & 0-3 &-2-(-1) & \\ 6-( -2)&1-5 &5-2 \end{bmatrix}

M-N=\begin{bmatrix} 1 & -3 &-1 & \\ 8&-4 &3 \end{bmatrix}

Scalar multiplication:

To multiply a matrix by a number, multiply all elements by the number:

3M=\begin{bmatrix} 3 \times 3 & 0 \times 3 &-2 \times 3 \\ 6 \times 3 &1 \times 3 &5\times 3 \end{bmatrix}

3M=\begin{bmatrix} 9 & 0 &-6 \\ 18 &3 & 15 \end{bmatrix}

-If we multiply a matrix by a real number k, all elements have to be multiplied by that number.

If k=-, the scalar multiplication will give us the opposite of the original matrix.

M\times (-1)=-M

The matrix -M is the additive \; inverse of matrix -M.

Properties:

The following algebraic properties we learned apply to matrix addition:

-Commutativity: M+N=N+M

-Additive identity : The matrix m\times n with only 0 for all elements is the identity matrix for our addition.

-Associativity (M+N)+O=M+(N+O)

-Finally, the additive inverse has all elements opposite to the corresponding elements of M

Matrix multiplication

The golden rule in matrix multiplication is to have the following condition:

The number of columns of the first matrix must be equal to the number of rows of the second matrix.

The resulting matrix has the number of rows equal to the one of the first matrix and the number of columns equal to the one of the second matrix.

If A=m\times n and B=u\times v , for the multiplication to be possible we must have n=u

After the multiplication,: C=A\times B will be of dimensions m\times v

Process: To find an element of C located at row i and column j of C, we have to take the sum of the products of corresponding elements in row i of A and column j of B

Example:

A=\begin{bmatrix} 5 & 3 &2 \end{bmatrix}

B=\begin{bmatrix} 4\\1\\-2 \end{bmatrix}

In this case :

A is a 1\times 3 matrix.

B is a 3 \times 1 matrix

The matrix product C=A\times B is a 1 \times 1 matrix.

C=\begin{bmatrix} 5 & 3 &2 \end{bmatrix}\cdot \begin{bmatrix} 4\\1\\-2 \end{bmatrix}

C=\begin{bmatrix} (5 \times 4)+ (3 \times 1) +(2 \times (-2)) \end{bmatrix}

C=\begin{bmatrix} 19 \end{bmatrix}

Another example

R=\begin{bmatrix} 2&-3 \\0&5\\-2&0\end{bmatrix}

W=\begin{bmatrix} 5&0 \\4&7 \end{bmatrix}

R is a 3\times 2 matrix.

W is a 2 \times 2 matrix.

The matrix product M=R\times W is a 3 \times 2 matrix.

M=\begin{bmatrix} 2&-3 \\0&5\\-2&0\end{bmatrix} \cdot \begin{bmatrix} 5&0 \\4&7 \end{bmatrix}

M=\begin{bmatrix} (2\times 5)+(4\times (-3))& (2 \times 0)+(7 \times (-3))\\(0 \times 5)+(5 \times 4)& (0 \times 0)+(5 \times 7)\\((-2) \times 5)+(0 \times 4)&((-2)\times 0)+(0 \times 7) \end{bmatrix}

M=\begin{bmatrix} 10-12& 0-21\\0+20& 0+35\\-10+0&0+0 \end{bmatrix}

M=\begin{bmatrix} -2& -21\\20& 35\\-10&0 \end{bmatrix}

Now for bigger matrices

A=\begin{bmatrix} 1& -3&-2\\1&4&2\\5& 1&3 \end{bmatrix}

B=\begin{bmatrix} 2& -2&-4\\5&3&1\\-1& 2&3 \end{bmatrix}

A is a 3\times 3 matrix.

B is a 3 \times 3 matrix.

The matrix product M=A\times B is a 3 \times 3 matrix.

M=\begin{bmatrix} 1& -3&-2\\1&4&2\\5& 1&3 \end{bmatrix} \times \begin{bmatrix} 2& -2&-4\\5&3&1\\-1& 2&3 \end{bmatrix}

M=\begin{bmatrix} (1\times 2)+((-3)\times 5+((-2)\times(-1))& (1\times (-2))+((-3)\times 3+((-2)\times 2)& (1\times (-4))+((-3)\times 1+((-2)\times 3)\\ (1\times 2)+((4)\times 5+(2\times(-1))& (1\times (-2))+(4 \times 3+(2 \times 2)& (1\times (-4))+(4\times 1+(2 \times 3)\\ (5\times 2)+(1\times 5+(3 \times(-1))& (5 \times (-2))+(1 \times 3+(3 \times 2)& (5 \times (-4))+(1 \times 1+(3\times 3) \end{bmatrix}

M=\begin{bmatrix} (2-15+2)& (-2-9-4)& (-4-3-6)\\ (2+20-2)& (-2+12+4)& (-4+4+6)\\ (10+ 5-3)& (-10 3+6)& (-20+1+9) \end{bmatrix}

Finally:

M=\begin{bmatrix} -11& -15&-13\\20&14&6\\12&-1& -10 \end{bmatrix}

In an m\times n matrix, each element can be represented by a_{ij} where i is the row of the element and j is the column of the element.

What we have learned so far:

If A=(a_{ij}), B=(b_{ij}) and M=(m_{ij}):

Matrix A=B iff for every i and j, a_{ij}=b_{ij}

Matrix M=A+B iff for every i and j, m_{ij}=a_{ij}+b_{ij}

The additive \; inverse noted -M of matrix M=(m_{ij}) is the matrix (-m_{ij})

The product of a real number k and a matrix M=(m_{ij}) is equal to kM=(km_{ij})

When a multiplication is possible, the matrix M product of matrices A and B has elements m_{ij}=a_{i1}b{1j}+ a_{i2}b{2j}+\cdots + a_{in}b{nj}

Important matrices

Matlab relies heavily on matrices manipulation.

It is important that we know some particular matrices.

Square matrix:

A square matrix is a matrix that has the same number of rows and columns.

If M is a n \times n matrix, we can say that M is a Square \; Matrix.

In this case, M is a matrix of order n.

The main diagonal elements of a square matrix of order n are a_{11},a_{22},a_{33},\cdots a_{nn}

The Identity matrix

This is a square matrix noted I_n is a matrix of order n with each main diagonal element equal to 1 and all the other elements 0.

Examples

I_2=\begin{bmatrix} 1&0\\0&1 \end{bmatrix}

I_3=\begin{bmatrix} 1& 0&0\\0&1&0\\0&0&1\end{bmatrix}

We have the following interesting fact:

MI_n=M=I_nM

Inverse of a matrix

The inverse of matrix A of order n noted A^{-1}, called A\; Inverse is such: AA^{-1}=I_n=A^{-1}A

It is important to note that some matrices have no inverse or are not invertible.

We’ll see it later. Finding inverse without using determinants may be tedious.

We’ll see it on the videos that go with this refresher.

When we solve the equation AB=I, we can find the elements of B

The following example shows what I mean:

A=\begin{bmatrix} 2&5\\3&7 \end{bmatrix}

And

I_2=\begin{bmatrix} 1&0\\0&1 \end{bmatrix}

We can say

A^{-1}=\begin{bmatrix} k&l\\m&n \end{bmatrix}

But AA^{-1}=I_2 since A is of order 2.

We have

\begin{bmatrix} 2&5\\3&7 \end{bmatrix} \times \begin{bmatrix} k&l\\m&n \end{bmatrix}=\begin{bmatrix} 1&0\\0&1 \end{bmatrix}

2k+5m=1

2l+5n=0

3k+7m=0

3l+7n=1

We find:

k=-7, l=5, m=3, n=-2

Finally:

A^{-1}=\begin{bmatrix} -7&5\\3&-2 \end{bmatrix}

Matrix Transpose:

The transpose of a Matrix M noted M^T is a new matrix whose columns are the rows of the original and making its rows, the columns of the original.

If we have:

M=\begin{bmatrix} 3 & -5 & 2 & 0 & 4 \\ 7 & 22 & \frac{3}{4} & 2 & 8 \\ 1 & 15 & 7 & 4 &12 \end{bmatrix}

M^T=\begin{Vmatrix} 3 & -5 & 2 & 0 & 4 \\ 7 & 22 & \frac{3}{4} & 2 & 8 \\ 1 & 15 & 7 & 4 &12 \end{Vmatrix}^T

M^T=\begin{bmatrix} 3 & 7 &1 \\ -5 & 22 &15\\ 2 &\frac{3}{4} & 7\\0 &2&4\\4&8&12\end{bmatrix}

We can notice that:
M is a 3 \times 5 matrix and
M^T is a 5 \times 3 matrix.

We can say:
If A=(a_{ij}) \Rightarrow A^T=(a_{ji})
A small rule:
A^{(T)^T}=A

Upper and lower triangular matrices:

The diagonal of a square matrix may show two type of matrices:

-When all elements above the diagonal are zeros, we get the lower-triangular matrix.

-On the other hand, if the lower part consists of zeros, the matrix is upper-triangular

Symmetric matrix:

A symmetric matrix is a square matrix equal to its transpose.
If A is symmetric, we have A=A^T.

Diagonal matrix:

A diagonal matrix is a symmetric matrix with all elements zeros but the ones on the diagonal.

Determinants: Rule of Sarrus

For 3 x 3 matrices, there is a rule called Rule of Sarrus or Sarrus’ Rule used to simplify the complicated calculations of the determinants. With this method, there is no need to calculate cofactors. There are other methods used for the 4 x 4 and above matrices. However, in this text, we will just limit our calculations to the 3 x 3 dimensions matrices.

How does it work?

We add the first column as the fourth column and we add the second column as the fifth column.

If we have a matrix:

M=\begin{bmatrix} m_{11} & m_{12} & m_{13} \\ m_{21} & m_{22}& m_{23}\\ m_{31} & m_{32}& m_{33} \end{bmatrix}

The Determinant

\begin{vmatrix}M \end{vmatrix}=\begin{vmatrix} m_{11} & m_{12} & m_{13} \\ m_{21} & m_{22}& m_{23}\\ m_{31} & m_{32}& m_{33} \end{vmatrix}

Now let’s add the two first columns:
\begin{vmatrix}M \end{vmatrix}=\begin{vmatrix} m_{11} & m_{12} & m_{13}& m_{11} & m_{12} \\ m_{21} & m_{22}& m_{23}& m_{21} & m_{22}\\ m_{31} & m_{32}& m_{33}& m_{31} & m_{32} \end{vmatrix}

Now we take the sum of the downward diagonals of 3 elements each and we subtract the sum of the upward diagonals:

\begin{vmatrix}M \end{vmatrix}=\left( (m_{11}\cdot m_{22}\cdot m_{33})+(m_{12}\cdot m_{23}\cdot m_{31})+(m_{13}\cdot m_{21}\cdot m_{32})\right)- \left( (m_{31}\cdot m_{22}\cdot m_{13})+(m_{32}\cdot m_{23}\cdot m_{11})+(m_{33}\cdot m_{21}\cdot m_{12})\right)

Solve using Sarrus’ Rule:

\begin{cases}5x+2y-z=-7\\ x-2y+2z=0\\3y+z=17\end{cases}

D=\begin{vmatrix} 5&2&-1 \\1&-2&2\\ 0&3&1 \end{vmatrix}

D=\begin{vmatrix} 5&2&-1&5&2 \\1&-2&2&1&-2\\ 0&3&1&0&3 \end{vmatrix}=(5\cdot(-2)\cdot 1)+(2\cdot 2 \cdot 0)+(-1 \cdot 1 \cdot 3)-\left((0 \cdot (-2) \cdot(-1))+(3\cdot 2 \cdot 5)+(1 \cdot 1 \cdot 2) \right)

D=-10+0-3-(0+30+2)=-13-32=-45

Now for x

D_x=\begin{vmatrix} -7&2&-1 \\0&-2&2\\ 17&3&1 \end{vmatrix}

D_x=\begin{vmatrix} -7&2&-1&-7&2 \\0&-2&2&0&-2\\ 17&3&1&17&3 \end{vmatrix}=((-7\cdot(-2)\cdot 1)+(2\cdot 2 \cdot 17)+(-1 \cdot 0 \cdot 3)-\left((17 \cdot (-2) \cdot(-1))+(3\cdot 2 \cdot (-7))+(1 \cdot 0 \cdot 2) \right)

D_x=14+68+0-(34-42+0)=82+8=90

x=\frac{D_x}{D}=\frac{90}{-45}=-2

Now for y

D_y=\begin{vmatrix} 5&-7&-1 \\1&0&2\\ 0&17&1 \end{vmatrix}

D_y=\begin{vmatrix} 5&-7&-1&5&-7 \\1&0&2&1&0\\ 0&17&1&0&17 \end{vmatrix}=(5\cdot 0\cdot 1)+((-7)\cdot 2 \cdot 0)+(-1 \cdot 1 \cdot 17)-\left((0 \cdot 0 \cdot(-1))+(17\cdot 2 \cdot 5)+(1 \cdot 1 \cdot -7) \right)

D_y=0+0-17-(0+170-7)=-17-163=-180

y=\frac{D_y}{D}=\frac{-180}{-45}=4

Now for z

D_{z}=\begin{vmatrix} 5&2&-1 \\1&-2&2\\ 0&3&1 \end{vmatrix}

D_{z}=\begin{vmatrix} 5&2&-7&5&2 \\1&-2&0&1&-2\\ 0&3&17&0&3 \end{vmatrix}=(5\cdot(-2)\cdot 17)+(2\cdot 0 \cdot 0)+(-7 \cdot 1 \cdot 3)-\left((0 \cdot (-2) \cdot(-7))+(3\cdot 0 \cdot 5)+(17 \cdot 1 \cdot 2) \right)

 D_z=-170+0-21-(0+0+34)=-170-21-34=-225

z=\frac{D_z}{D}=\frac{-225}{-45}=5

Thus, the solution is x=-2,\quad y=4, \;and \; z=5

Project Bonus: Find a number xyzuw

A number of 5 digits can be written xyzuw.

The sum of the digits is 22.

If the number is rewritten xywuz, the value increases by 297.

The digit x added to digit u and to 2 times the digits y and w, then subtracted 3 times the digit z equal 21.

Two times the digit x added to digit z then subtracted 3 times digit y and 4 times digit w equal -34.

Two times the digit u subtracted digit w and 3 times digit z equal -1.

Find the number xyzuw.

Solving by substitution:

\begin{cases}{} x+y+z+u+w=22 \qquad (1)\\ -z+w=3 \qquad (2)\\ x+2y-3z+u+2w=21 \qquad (3)\\ 2x-3y+z-4w=-34 \qquad (4)\\ -3z+2u-w=-1 \qquad (5)\end{cases}

From (2) we can write:

-z+w=3 \Rightarrow w=3+z

w=3+z

From (5):

-3z+2u-w=-1

Replacing w by its value of 3+z

-3z+2u-(3+z)=-1

-3z+2u-3-z=-1

2u-4z=2

u=2z+1

Now let’s subtract (1) from (3):

y-4z+w=-1

y-4z+3+z=-1

y-3z=-4

y=3z-4

In (4):

2x-3y+z-4w=-34

2x-3(3z-4)+z-4(3+z)=-34

2x-9z+12+z-12-4z=-34

2x-12z=-34

x-6z=-17

x=6z-17

Now we plug in everything in (1):

x+y+z+u+w=22

6z-17+3z-4+z+2z+1+3+z=22

13z=39

z=3

x=6z-17 \Rightarrow x=6\times3-17

x=1

y=3z-4 \Rightarrow y=3\times3-4

y=5

u=2z+1 \Rightarrow u=2\times3+1

u=7

w=3+z \Rightarrow w=3+3

w=6

Finally: Our number xyzuw is:

15376

Using the Matrix inverse:

We get the augmented matrix

M=\left[ \begin{array}{ccccc|c} 1 & 1 & 1 & 1&1&22 \\ 0 & 0 & -1 & 0&1&3 \\1 & 2 & -3 & 1&2&21\\2 & -3 & 1 & 0&-4&-34\\0 & 0 & -3 & 2&-1&-1 \end{array} \right]

Making row3=-row1+row3

M=\left[ \begin{array}{ccccc|c} 1 & 1 & 1 & 1&1&22 \\ 0 & 0 & -1 & 0&1&3 \\0 & 1 & -4 & 0&1&-1\\2 & -3 & 1 & 0&-4&-34\\0 & 0 & -3 & 2&-1&-1 \end{array} \right]

Making row5=-3\times row2+row5

M=\left[ \begin{array}{ccccc|c} 1 & 1 & 1 & 1&1&22 \\ 0 & 0 & -1 & 0&1&3 \\0 & 1 & -4 & 0&1&-1\\2 & -3 & 1 & 0&-4&-34\\0 & 0 & 0 & 2&-4&-10 \end{array} \right]

Finding:det(M)

\begin{vmatrix}M \end{vmatrix}=\begin{vmatrix}1 & 1 & 1 & 1&1\\0 & 0 & -1 & 0&1\\0 & 1 & -4 & 0&1\\2 & -3 & 1 & 0&-4\\0 & 0 & 0 & 2&-4 \end{vmatrix}

We use row 2 since we have only two values in that row:-1 is in row 2 and column 3, (-1)^{2+3}=-1 same for the 1 (row 2 column 5).

\begin{vmatrix}M \end{vmatrix}=+1\begin{vmatrix}1 & 1 & 1 & 1\\0 & 1 & 0 & 1\\2 & -3 & 0 & -4\\0 & 0 & 2 & -4\end{vmatrix}-1\begin{vmatrix}1 & 1 & 1 & 1\\0 & 1 & -4 & 0\\2 & -3 & 1 & 0\\0 & 0 & 0 & 2\end{vmatrix}

\begin{vmatrix}M \end{vmatrix}=+1\left(1\begin{vmatrix}1 & 1 & 1\\2 & 0 & -4\\0 & 2 & -4\end{vmatrix}+1\begin{vmatrix}1 & 1 & 1\\2 & -3 & 0\\0 & 0 & 2\end{vmatrix}\right)-1\left(2\begin{vmatrix}1 & 1 & 1\\0 & 1 & -4\\2 & -3 & 1\end{vmatrix}\right)

\begin{vmatrix}M \end{vmatrix}=+1(1(0+8)-1(-8+0)+1(4-0))+1(2(-3-2))-2(1(1-2)+4(-3-2))

\begin{vmatrix}M \end{vmatrix}=+1(8+8+4)-10 -2(-1-20)=20-10+42=52

The determinant is \neq 0, so we can calculate the inverse:

The tanspose of matrix M is

M^T=\begin{bmatrix}1 & 0 & 0 & 2&0\\1 & 0 & 1 & -3&0\\1 & -1 & -4 & 1&0\\1 & 0 & 0 & 0&2\\1 &1 & 1 & -4&-4 \end{bmatrix}

The comatrix has 25 elements, we calculate 2 elements and let the students find the rest.

For m_{11} of the comatrix:

m_{11}=+\begin{vmatrix}0 & 1 & -3&0\\-1 & -4 & 1&0\\0 & 0&0 & 2\\1 & 1&-4 &-4\end{vmatrix}

m_{11}=-2(-1(4-1)-3(-1+4))=-2(-3-9)=24

For m_{12} of the comatrix:

m_{12}=-\begin{vmatrix}1 & 1 & -3&0\\1 & -4 & 1&0\\1 & 0&0 & 2\\1 & 1&-4 &-4\end{vmatrix}

m_{12}=-\left(\begin{vmatrix} 1 & -3&0\\-4 & 1&0\\1 & -4&-4\end{vmatrix}-2\begin{vmatrix}1 & 1 & -3\\1 & -4 & 1\\1 & 1&-4\end{vmatrix}\right)

m_{12}=-(1(-4+0)+3(16+0)-2(1(16-1)-1(-4-1)-3(1+4)))

m_{12}=-(-4+48-2(15+5-15))=-(44-10)=-34

After all calculations we have:

comatrix=\begin{bmatrix}24 & -34 & 18 & 14&-12\\12 & -82 & 22 & -6&-6\\4 & -10 & -10 & -2&-2\\8 & 84 & -20 & -4&22\\4 &42 & -10 & -2&-2 \end{bmatrix}

The B matrix is:

B=\begin{bmatrix}22\\3\\-1\\-34\\-10\end{bmatrix}

Now the solution is :

X=\frac{1}{52}\begin{bmatrix}24 & -34 & 18 & 14&-12\\12 & -82 & 22 & -6&-6\\4 & -10 & -10 & -2&-2\\8 & 84 & -20 & -4&22\\4 &42 & -10 & -2&-2 \end{bmatrix}\times \begin{bmatrix}22\\3\\-1\\-34\\-10\end{bmatrix}

X=\begin{bmatrix}1\\5\\3\\7\\6\end{bmatrix}

Cramer’s rule

We previously setup the solution and simplified

The student can calculate the following matrices:

x=\frac{\begin{vmatrix}22 & 1 & 1 & 1&1\\3 & 0 & -1 & 0&1\\-1 & 1 & -4 & 0&1\\-34 & -3 & 1 & 0&-4\\-10 & 0 & 0 & 2&-4 \end{vmatrix}}{\begin{vmatrix}1 & 1 & 1 & 1&1\\0 & 0 & -1 & 0&1\\0 & 1 & -4 & 0&1\\2 & -3 & 1 & 0&-4\\0 & 0 & 0 & 2&-4 \end{vmatrix}}=\frac{\begin{vmatrix}22 & 1 & 1 & 1&1\\3 & 0 & -1 & 0&1\\-1 & 1 & -4 & 0&1\\-34 & -3 & 1 & 0&-4\\-10 & 0 & 0 & 2&-4 \end{vmatrix}}{52}=\frac{52}{52}=1

y=\frac{\begin{vmatrix}1 & 22 & 1 & 1&1\\0 & 3 & -1 & 0&1\\0 & -1 & -4 & 0&1\\2 & -34 & 1 & 0&-4\\0 & -10 & 0 & 2&-4 \end{vmatrix}}{\begin{vmatrix}1 & 1 & 1 & 1&1\\0 & 0 & -1 & 0&1\\0 & 1 & -4 & 0&1\\2 & -3 & 1 & 0&-4\\0 & 0 & 0 & 2&-4 \end{vmatrix}}=\frac{\begin{vmatrix}1 & 22 & 1 & 1&1\\0 & 3 & -1 & 0&1\\0 & -1 & -4 & 0&1\\2 & -34 & 1 & 0&-4\\0 & -10 & 0 & 2&-4 \end{vmatrix}}{52}=\frac{260}{52}=5

z=\frac{\begin{vmatrix}1 & 1 & 22 & 1&1\\0 & 0 & 3 & 0&1\\0 & 1 & -1 & 0&1\\2 & -3 & -34 & 0&-4\\0 & 0 & -10 & 2&-4 \end{vmatrix}}{\begin{vmatrix}1 & 1 & 1 & 1&1\\0 & 0 & -1 & 0&1\\0 & 1 & -4 & 0&1\\2 & -3 & 1 & 0&-4\\0 & 0 & 0 & 2&-4 \end{vmatrix}}=\frac{\begin{vmatrix}1 & 1 & 22 & 1&1\\0 & 0 & 3 & 0&1\\0 & 1 & -1 & 0&1\\2 & -3 & -34 & 0&-4\\0 & 0 & -10 & 2&-4 \end{vmatrix}}{52}=\frac{156}{52}=3

u=\frac{\begin{vmatrix}1 & 1 & 1 & 22&1\\0 & 0 & -1 & 3&1\\0 & 1 & -4 &-1&1\\2 & -3 & 1 &-34&-4\\0 & 0 & 0 & -10&-4 \end{vmatrix}}{\begin{vmatrix}1 & 1 & 1 & 1&1\\0 & 0 & -1 & 0&1\\0 & 1 & -4 & 0&1\\2 & -3 & 1 & 0&-4\\0 & 0 & 0 & 2&-4 \end{vmatrix}}=\frac{\begin{vmatrix}1 & 1 & 1 & 22&1\\0 & 0 & -1 & 3&1\\0 & 1 & -4 &-1&1\\2 & -3 & 1 &-34&-4\\0 & 0 & 0 & -10&-4 \end{vmatrix}}{52}=\frac{364}{52}=7

w=\frac{\begin{vmatrix}1 & 1 & 1 & 1&22\\0 & 0 & -1 & 0&3\\0 & 1 & -4 & 0&-1\\2 & -3 & 1 & 0&-34\\0 & 0 & 0 & 2&-10 \end{vmatrix}}{\begin{vmatrix}1 & 1 & 1 & 1&1\\0 & 0 & -1 & 0&1\\0 & 1 & -4 & 0&1\\2 & -3 & 1 & 0&-4\\0 & 0 & 0 & 2&-4 \end{vmatrix}}=\frac{\begin{vmatrix}1 & 1 & 1 & 1&22\\0 & 0 & -1 & 0&3\\0 & 1 & -4 & 0&-1\\2 & -3 & 1 & 0&-34\\0 & 0 & 0 & 2&-10 \end{vmatrix}}{52}=\frac{312}{52}=6

The student can practice the matrix calculation for: D_x,D_y,D_z,D_u, D_w

Print Friendly, PDF & Email

Be the first to comment

Leave a Reply

Your email address will not be published.


*