Math ClubMath Club
v1 · padrão canônico

Lesson 31 — Introduction to Matrices

Matrix as a rectangular table of numbers. Notation, dimensions, equality, special types.

Used in: 1.º ano EM (15 anos) · Equiv. Math II japonês · Equiv. Klasse 10 alemã · Pré-cálculo norte-americano §11.5

A=(aij)m×n=(a11a12a1na21a22a2nam1am2amn)A = (a_{ij})_{m \times n} = \begin{pmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{pmatrix}
Choose your door

Rigorous notation, full derivation, hypotheses

Definition and types

Special types

TypeDefinition
Squarem=nm = n
Row1×n1 \times n
Columnm×1m \times 1
Diagonalsquare with aij=0a_{ij} = 0 for iji \neq j
Identity InI_ndiagonal with aii=1a_{ii} = 1
Zero OOall entries zero
Upper triangularaij=0a_{ij} = 0 for i>ji > j
Lower triangularaij=0a_{ij} = 0 for i<ji < j
SymmetricAT=AA^T = A, that is aij=ajia_{ij} = a_{ji}
Skew-symmetricAT=AA^T = -A, that is aij=ajia_{ij} = -a_{ji}
Scalardiagonal with aii=ka_{ii} = k constant

Diagonal of a square matrix

The main diagonal is {aii}\{a_{ii}\}. Trace: tr(A)=i=1naii\text{tr}(A) = \sum_{i=1}^n a_{ii}.

Construction rule

Often AA is defined via a formula aij=f(i,j)a_{ij} = f(i, j). Examples:

  • aij=i+ja_{ij} = i + j
  • aij=(1)i+ja_{ij} = (-1)^{i+j}
  • aij=δija_{ij} = \delta_{ij} (Kronecker delta — produces the identity)

Exercise list

46 exercises · 11 with worked solution (25%)

Application 26Understanding 6Modeling 10Challenge 3Proof 1
  1. Ex. 31.1Application
    Identify the dimension of A=(123456)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{pmatrix}. (Ans: 3×23 \times 2.)
  2. Ex. 31.2Application
    Write a 3×33 \times 3 identity matrix.
  3. Ex. 31.3Application
    Write a 2×42 \times 4 zero matrix.
  4. Ex. 31.4Application
    For A=(5234)A = \begin{pmatrix} 5 & -2 \\ 3 & 4 \end{pmatrix}, identify a11,a12,a21,a22a_{11}, a_{12}, a_{21}, a_{22}. (Ans: 5,2,3,45, -2, 3, 4.)
  5. Ex. 31.5ApplicationAnswer key
    Construct A2×3A_{2 \times 3} such that aij=i+ja_{ij} = i + j.
  6. Ex. 31.6ApplicationAnswer key
    Construct A3×3A_{3 \times 3} such that aij=ija_{ij} = i \cdot j.
  7. Ex. 31.7ApplicationAnswer key
    Check whether A=(1223)A = \begin{pmatrix} 1 & 2 \\ 2 & 3 \end{pmatrix} is symmetric. (Ans: yes.)
  8. Ex. 31.8Application
    Check whether A=(0110)A = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix} is skew-symmetric.
  9. Ex. 31.9ApplicationAnswer key
    Trace of (123456789)\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}. (Ans: 1515.)
  10. Ex. 31.10Application
    For which xx is (x23x)=(5235)\begin{pmatrix} x & 2 \\ 3 & x \end{pmatrix} = \begin{pmatrix} 5 & 2 \\ 3 & 5 \end{pmatrix}?
  11. Ex. 31.11ApplicationAnswer key
    Construct any 3×33 \times 3 upper-triangular matrix.
  12. Ex. 31.12Application
    Construct a 3×33 \times 3 diagonal matrix with diagonal entries 2,1,52, -1, 5. Compute the trace. (Ans: 66.)
  13. Ex. 31.13Application
    Identify entry a32a_{32} of (123456789)\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}. (Ans: 88.)
  14. Ex. 31.14Application
    For Am×nA_{m \times n} with m=nm = n, what class is the matrix?
  15. Ex. 31.15ApplicationAnswer key
    How many entries does a 4×54 \times 5 matrix have? (Ans: 2020.)
  16. Ex. 31.16Application
    Construct A2×2A_{2 \times 2} with aij=(1)i+ja_{ij} = (-1)^{i+j}.
  17. Ex. 31.17Application
    Verify whether (100010001)\begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} is the identity.
  18. Ex. 31.18ApplicationAnswer key
    Construct A3×3A_{3 \times 3} with aij=max(i,j)a_{ij} = \max(i, j).
  19. Ex. 31.19Application
    Decide: is the matrix (0110)\begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} symmetric?
  20. Ex. 31.20ApplicationAnswer key
    Construct a 5×55 \times 5 identity matrix. How many zeros does it have? (Ans: 2020.)
  21. Ex. 31.21Application
    Construct A3×3A_{3 \times 3} with aij=ija_{ij} = |i - j|. Is it symmetric?
  22. Ex. 31.22Application
    Construct A4×4A_{4 \times 4} with aij=δija_{ij} = \delta_{ij} (Kronecker delta). What matrix is this?
  23. Ex. 31.23Application
    How many non-zero entries does InI_n have? (Ans: nn.)
  24. Ex. 31.24Application
    Construct a 4×44 \times 4 lower-triangular matrix with aij=i+ja_{ij} = i + j if iji \geq j.
  25. Ex. 31.25Application
    Identify whether (213150307)\begin{pmatrix} 2 & -1 & 3 \\ -1 & 5 & 0 \\ 3 & 0 & 7 \end{pmatrix} is symmetric.
  26. Ex. 31.26Application
    Find x,yx, y so that (2x35y+1)=(8357)\begin{pmatrix} 2x & 3 \\ 5 & y+1 \end{pmatrix} = \begin{pmatrix} 8 & 3 \\ 5 & 7 \end{pmatrix}. (Ans: x=4,y=6x = 4, y = 6.)
  27. Ex. 31.27Understanding
    Show that a symmetric matrix must be square.
  28. Ex. 31.28UnderstandingAnswer key
    Show that a skew-symmetric matrix has zero diagonal.
  29. Ex. 31.29Understanding
    Show that if AA is symmetric, then aij=ajia_{ij} = a_{ji} for all i,ji, j.
  30. Ex. 31.30Understanding
    How many 3×33 \times 3 symmetric matrices exist with entries in {0,1}\{0, 1\}? (Ans: 26=642^6 = 64 — 6 independent entries are chosen.)
  31. Ex. 31.31Understanding
    Show that any square matrix can be written as the sum of a symmetric + skew-symmetric matrix: A=A+AT2+AAT2A = \frac{A + A^T}{2} + \frac{A - A^T}{2}.
  32. Ex. 31.32Understanding
    Verify the decomposition above for A=(1425)A = \begin{pmatrix} 1 & 4 \\ 2 & 5 \end{pmatrix}.
  33. Ex. 31.33ModelingAnswer key
    Grades of 3 students in 4 subjects: build a 3×43 \times 4 matrix with made-up data.
  34. Ex. 31.34ModelingAnswer key
    Distances between 4 cities: 4×44 \times 4 symmetric matrix with zero diagonal.
  35. Ex. 31.35Modeling
    2×32 \times 3 grayscale image. Each entry from 0 (black) to 255 (white). Construct an example.
  36. Ex. 31.36Modeling
    Price table by store × product: build a 3×43 \times 4 matrix (3 stores, 4 products).
  37. Ex. 31.37Modeling
    In ML, dataset with nn samples × dd features: what is the matrix dimension?
  38. Ex. 31.38Modeling
    Linear system {2x+3y=5xy=1\begin{cases} 2x + 3y = 5 \\ x - y = 1 \end{cases} — write the coefficient matrix and the augmented matrix.
  39. Ex. 31.39Modeling
    Adjacency matrix of a 4-vertex graph with edges {1-2,2-3,3-4,1-4}\{1\text{-}2, 2\text{-}3, 3\text{-}4, 1\text{-}4\}.
  40. Ex. 31.40Modeling
    In finance, 5×55 \times 5 correlation matrix among stocks: symmetric, diagonal =1= 1. How many unique values? (Ans: 1010.)
  41. Ex. 31.41Modeling
    In production, cost×\timesquantity matrix: each entry is the total cost of that combination.
  42. Ex. 31.42Modeling
    In control, state xR3\mathbf x \in \mathbb R^3 with dynamics matrix AM3×3A \in M_{3\times 3}. How many entries?
  43. Ex. 31.43Challenge
    Show that the dimension of the space of n×nn \times n symmetric matrices is n(n+1)/2n(n+1)/2.
  44. Ex. 31.44Challenge
    Show that the dimension of the space of n×nn \times n skew-symmetric matrices is n(n1)/2n(n-1)/2.
  45. Ex. 31.45Challenge
    Construct A3×3A_{3 \times 3} such that aij=(i+j2j1)a_{ij} = \binom{i+j-2}{j-1}. Recognize the pattern? (Pascal rows — shifted Hilbert matrix.)
  46. Ex. 31.46Proof
    Prove that if AA is simultaneously symmetric and skew-symmetric, then A=OA = O.

Sources

Updated on 2026-04-30 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.