• Nakafa

    Nakafa

    Learn free and with quality.
Subject
    • Grade 10
    • Grade 11
    • Grade 12
Exercises
Holy
  • Quran
Articles
  • Politics
  • Community
  • About

Command Palette

Search for a command to run...

Matrix

Matrix Types

Row Matrix

A row matrix is a matrix that consists of only one row.

The order of a row matrix is 1×n1 \times n1×n, where nnn is the number of columns.

Its general form is:

A1×n=[a11a12…a1n]A_{1 \times n} = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \end{bmatrix}A1×n​=[a11​​a12​​…​a1n​​]

Example:

P=[3−107]P = \begin{bmatrix} 3 & -1 & 0 & 7 \end{bmatrix}P=[3​−1​0​7​]

Matrix PPP is a row matrix of order 1×41 \times 41×4.

Column Matrix

A column matrix is a matrix that consists of only one column.

The order of a column matrix is m×1m \times 1m×1, where mmm is the number of rows.

Its general form is:

Bm×1=[a11a21⋮am1]B_{m \times 1} = \begin{bmatrix} a_{11} \\ a_{21} \\ \vdots \\ a_{m1} \end{bmatrix}Bm×1​=​a11​a21​⋮am1​​​

Example:

Q=[25−4]Q = \begin{bmatrix} 2 \\ 5 \\ -4 \end{bmatrix}Q=​25−4​​

Matrix QQQ is a column matrix of order 3×13 \times 13×1.

Square Matrix

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

If the number of rows = number of columns = nnn, then the matrix is of order n×nn \times nn×n.

Its general form is:

An×n=[a11a12…a1na21a22…a2n⋮⋮⋱⋮an1an2…ann]A_{n \times n} = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & \dots & a_{nn} \end{bmatrix}An×n​=​a11​a21​⋮an1​​a12​a22​⋮an2​​……⋱…​a1n​a2n​⋮ann​​​

In a square matrix, there are:

  1. Main Diagonal (or Principal Diagonal):

    The elements a11,a22,…,anna_{11}, a_{22}, \dots, a_{nn}a11​,a22​,…,ann​ (i.e., aija_{ij}aij​ where i=ji=ji=j).

  2. Anti-diagonal (or Counter-diagonal):

    The elements a1n,a2,n−1,…,an1a_{1n}, a_{2,n-1}, \dots, a_{n1}a1n​,a2,n−1​,…,an1​ (i.e., aija_{ij}aij​ where i+j=n+1i+j=n+1i+j=n+1).

Example:

M=[123456789]M = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}M=​147​258​369​​

Matrix MMM is a square matrix of order 3×33 \times 33×3. Its main diagonal elements are 1,5,91, 5, 91,5,9. Its anti-diagonal elements are 3,5,73, 5, 73,5,7.

Rectangular Matrix

A rectangular matrix is a matrix where the number of rows and columns are not equal (m≠nm \neq nm=n).

General example:

C=[123456]C = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}C=[14​25​36​]

Matrix CCC above has 2 rows and 3 columns, so its order is 2×32 \times 32×3. Since the number of rows is not equal to the number of columns (2≠32 \neq 32=3), matrix CCC is a rectangular matrix.

Rectangular matrices can be further distinguished into horizontal matrices and vertical matrices.

Horizontal Matrix

A horizontal matrix is a rectangular matrix with more columns than rows (n>mn > mn>m).

Example:

D=[104−235]D = \begin{bmatrix} 1 & 0 & 4 \\ -2 & 3 & 5 \end{bmatrix}D=[1−2​03​45​]

Matrix DDD is a horizontal matrix of order 2×32 \times 32×3.

Vertical Matrix

A vertical matrix is a rectangular matrix with more rows than columns (m>nm > nm>n).

Example:

T=[710−342]T = \begin{bmatrix} 7 & 1 \\ 0 & -3 \\ 4 & 2 \end{bmatrix}T=​704​1−32​​

Matrix TTT is a vertical matrix of order 3×23 \times 23×2.

Triangular Matrix

A triangular matrix is a square matrix where the elements below or above the main diagonal are zero.

Upper Triangular Matrix

An upper triangular matrix is a square matrix where all elements below the main diagonal are zero.

This means aij=0a_{ij} = 0aij​=0 for every i>ji > ji>j.

Example:

U=[52−1037001]U = \begin{bmatrix} 5 & 2 & -1 \\ 0 & 3 & 7 \\ 0 & 0 & 1 \end{bmatrix}U=​500​230​−171​​

Lower Triangular Matrix

A lower triangular matrix is a square matrix where all elements above the main diagonal are zero.

This means aij=0a_{ij} = 0aij​=0 for every i<ji < ji<j.

Example:

L=[200460−319]L = \begin{bmatrix} 2 & 0 & 0 \\ 4 & 6 & 0 \\ -3 & 1 & 9 \end{bmatrix}L=​24−3​061​009​​

Diagonal Matrix

A diagonal matrix is a square matrix where all elements outside the main diagonal are zero.

This means aij=0a_{ij} = 0aij​=0 for every i≠ji \neq ji=j. Elements on the main diagonal can be zero or non-zero.

Example:

X=[7000−20000]X = \begin{bmatrix} 7 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 0 \end{bmatrix}X=​700​0−20​000​​

Matrix XXX is a diagonal matrix of order 3×33 \times 33×3.

Identity Matrix

An identity matrix (denoted by III or InI_nIn​) is a diagonal matrix where all elements on the main diagonal are 1.

Example:

I2=[1001]I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}I2​=[10​01​]
I3=[100010001]I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}I3​=​100​010​001​​

The identity matrix acts as the neutral element in matrix multiplication.

Zero Matrix

A zero matrix (denoted by OOO or Om×nO_{m \times n}Om×n​) is a matrix where all elements are zero.

Example:

O2×2=[0000]O_{2 \times 2} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}O2×2​=[00​00​]
O2×3=[000000]O_{2 \times 3} = \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}O2×3​=[00​00​00​]

Symmetric Matrix

A symmetric matrix is a square matrix that is equal to its transpose (AT=AA^T = AAT=A).

This means the element aij=ajia_{ij} = a_{ji}aij​=aji​ for all iii and jjj. Its elements are symmetric with respect to the main diagonal.

Example:

S=[17−3720−305]S = \begin{bmatrix} 1 & 7 & -3 \\ 7 & 2 & 0 \\ -3 & 0 & 5 \end{bmatrix}S=​17−3​720​−305​​

In matrix SSS:

  • s12=s21=7s_{12} = s_{21} = 7s12​=s21​=7
  • s13=s31=−3s_{13} = s_{31} = -3s13​=s31​=−3
  • s23=s32=0s_{23} = s_{32} = 0s23​=s32​=0
Previous

Matrix Concept

Next

Matrix Transpose

  • Matrix TypesDiscover all matrix types: row, column, square, triangular, diagonal, identity, zero, and symmetric matrices. Complete guide with definitions and examples.
On this page
  • Row Matrix
  • Column Matrix
  • Square Matrix
  • Rectangular Matrix
    • Horizontal Matrix
    • Vertical Matrix
  • Triangular Matrix
    • Upper Triangular Matrix
    • Lower Triangular Matrix
  • Diagonal Matrix
  • Identity Matrix
  • Zero Matrix
  • Symmetric Matrix
  • Comments
  • Report
  • Source code