← View in Interactive Graph

Matrix

You're on the right track, but let's refine your definition for better clarity and accuracy.

Corrected Definition:

A matrix is a rectangular array of numbers, arranged in rows and columns. Each row or column can be considered a vector in some cases. Matrices are widely used in mathematics, physics, computer science, and machine learning to represent and manipulate large amounts of data efficiently.

Matrix Representation:

An m \times n (read as "m by n") matrix has m rows and n columns: $$ A = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \ a_{21} & a_{22} & \dots & a_{2n} \ \vdots & \vdots & \ddots & \vdots \ a_{m1} & a_{m2} & \dots & a_{mn} \end{bmatrix} $$ Each column can be treated as a vector: $$ A = \begin{bmatrix} v_1 & v_2 & \dots & v_n \end{bmatrix} $$ where v_i represents a column vector.

Basic Matrix Operations:

  1. Addition & Subtraction: Possible when matrices have the same dimensions.
  2. Multiplication :
  3. Scalar multiplication (each element is multiplied by a number).
  4. Matrix multiplication (dot product of rows and columns).
  5. Transpose: Flipping rows and columns.

properties of Matrix

Here’s a detailed explanation of each property:

2. Distributivity of Matrix Multiplication

\forall A, B \in \mathbb{R}^{m \times n}, C, D \in \mathbb{R}^{n \times p}:
(A + B)C = AC + BC \quad (2.19a) $$ $$ A(C + D) = AC + AD \quad (2.19b)

Understanding the Equations

This property states that matrix multiplication distributes over matrix addition.

Example

Let: $$ A = \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix}, \quad B = \begin{bmatrix} 5 & 6 \ 7 & 8 \end{bmatrix}, \quad C = \begin{bmatrix} 9 & 10 \ 11 & 12 \end{bmatrix} $$

Compute (A + B)C: 1. Add A and B: $$ A + B = \begin{bmatrix} 1+5 & 2+6 \ 3+7 & 4+8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \ 10 & 12 \end{bmatrix} $$

  1. Multiply by C: $$ (A + B)C = \begin{bmatrix} 6(9) + 8(11) & 6(10) + 8(12) \ 10(9) + 12(11) & 10(10) + 12(12) \end{bmatrix} = \begin{bmatrix} 150 & 168 \ 222 & 248 \end{bmatrix} $$

Now, compute AC + BC separately: - Compute AC and BC (using the same multiplication rules). - Add the results.

The result will match (A + B)C, proving distributivity.


3. Multiplication with the Identity Matrix

\forall A \in \mathbb{R}^{m \times n} : I_m A = A I_n = A \quad (2.20)

Understanding the Equation

I_m A = A $$ $$ A I_n = A

However, I_m \neq I_n if m \neq n because their sizes differ.

Example

Let: $$ A = \begin{bmatrix} 2 & 3 \ 4 & 5 \end{bmatrix}, \quad I_2 = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix} $$

Compute I_2 A:

I_2 A = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix} = \begin{bmatrix} 2(1) + 3(0) & 2(0) + 3(1) \\ 4(1) + 5(0) & 4(0) + 5(1) \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix} = A

The identity matrix behaves like 1 in number multiplication.


Summary

✔ Associativity: Matrix multiplication is associative.
✔ Distributivity: Matrix multiplication distributes over addition.
✔ Identity Matrix: Multiplying a matrix by an identity matrix leaves it unchanged.


Tags: #math #statistics

Linear_Algebra_and_Matrices