๐น Matrix:
A matrix is a rectangular array of numbers arranged in rows and columns.
Example:
A = [ [1, 2],
[3, 4] ]
(This is a 2×2 matrix)
๐น Types of Matrices:
-
Row Matrix – Only 1 row
-
Column Matrix – Only 1 column
-
Square Matrix – Rows = Columns
-
Diagonal Matrix – Only diagonal elements are non-zero
-
Identity Matrix (I) – Diagonal elements are 1, others are 0
๐น Matrix Operations:
-
Addition/Subtraction – Same size only
-
Multiplication – Rows of 1st × Columns of 2nd
-
Transpose (Aแต) – Rows become columns
-
Inverse (Aโป¹) – Aโป¹ = adj(A) / |A| (Only for square matrices with |A| ≠ 0)
๐น Determinant (|A|):
For 2×2 matrix:
If A = [ [a, b],
[ c, d] ]
Then |A| = (a × d) − (b × c)
If |A| = 0 → No inverse (Singular matrix)
๐น Applications:
โ
Solving linear equations
โ
Engineering systems (Electrical, Civil, Mechanical)
โ
Graphics and simulations
โ
Machine learning and data science