Matrix &
Vectors
A complete, structured reference covering matrix theory, vector algebra, differential operations, and integral theorems — with clear concepts and worked examples.
What is a Matrix?
A = [aᵢⱼ]ₘₓₙ
where i = 1,2,...,m (rows) and j = 1,2,...,n (columns). A square matrix has m = n. The main diagonal consists of elements a₁₁, a₂₂, ..., aₙₙ.
- Two matrices are equal if and only if they have the same order and every corresponding element is equal.
- A matrix is a tool — it encodes transformations, not just data.
- Row matrix: 1×n | Column matrix: m×1 | Square: m=n
- The size (order) of a matrix is always stated as rows × columns.
Given matrix A, find its order and element a₂₃.
Identify the types of these matrices.
Find x, y if [2x, 3] = [6, y+1]
Construct 2×3 matrix where aᵢⱼ = i + 2j
Types of Matrices
Classify A = [[4,0,0],[0,7,0],[0,0,2]]
A = [[1,2,3],[2,5,4],[3,4,6]] — Is A symmetric?
A = [[0,3,−2],[−3,0,5],[2,−5,0]]
A = [[1,0],[0,0]]. Verify A² = A.
Matrix Operations
- A + B = B + A (commutative for addition)
- A(BC) = (AB)C (associative for multiplication)
- A(B+C) = AB + AC (distributive)
- AB ≠ BA in general (not commutative)
- AI = IA = A (identity is multiplicative identity)
A = [[1,2],[3,4]], B = [[5,6],[7,8]]
3A where A = [[2,−1],[0,4]]
A = [[1,2],[3,4]], B = [[5,6],[7,8]]
A=[[1,0],[2,1]], B=[[1,2],[0,1]]. Show AB ≠ BA.
Determinant of a Matrix
Find det(A) for A = [[3,8],[4,6]]
A = [[1,2,3],[4,5,6],[7,8,9]]
A = [[2,1,0],[1,3,2],[0,1,4]]
A=[[1,2],[3,4]], B=[[5,6],[7,8]]
Matrix Inverse
Find A⁻¹ for A = [[4,7],[2,6]]
A=[[4,7],[2,6]], A⁻¹=(1/10)[[6,−7],[−2,4]]
A = [[2,1,0],[1,3,2],[0,1,4]]. We know det(A)=16.
Augment [A|I] and row-reduce to get [I|A⁻¹]
Rank of a Matrix
Find rank of A = [[1,2,3],[4,5,6],[7,8,9]]
A = [[1,0,0],[0,2,0],[0,0,3]]
A = [[1,2],[2,4]]. Find rank.
A is 3×5 with rank 2. Find nullity.
Transpose & Symmetric Matrices
A = [[1,2,3],[4,5,6]]
A=[[1,2],[3,4]], B=[[5,6],[7,8]]
A = [[3,1],[5,2]]. Decompose into S+K.
A = [[1,2],[3,4]]. Verify AAᵀ is symmetric.
System of Linear Equations
Solve: 2x+y=5, x+3y=10 → AX=B
Solve: x+2y=8, 3x+y=9
x+2y+z=6, 2x+y+z=5, x+y+2z=7
x+y=2, 2x+2y=5 — consistent?
Cayley-Hamilton Theorem
- Applies to all square matrices (n × n), over any field.
- Can be used to find the inverse: express I from the polynomial and solve for A⁻¹.
- Reduces computation of matrix powers to polynomial arithmetic.
Let A = [[2, 1],[1, 3]]. Find characteristic polynomial and verify A satisfies it.
For A = [[1,2],[2,3]], characteristic eqn: λ²−4λ−1 = 0.
For A with char. poly λ²−5λ+6=0, so A²=5A−6I. Then:
For A = diag(1,2,3), char poly is (λ−1)(λ−2)(λ−3) = λ³−6λ²+11λ−6 = 0.
Characteristic Equation & Eigenvalues
Find eigenvalues of A = [[4,1],[2,3]].
For A = [[4,1],[2,3]], find eigenvectors for λ₁=5.
Find char. eqn of A = [[2,0,0],[1,3,0],[0,1,4]].
For A = [[3,1],[0,2]], eigenvalues are λ=3,2.
Vectors — Overview
- Vectors follow the parallelogram law of addition.
- Scalar multiplication scales the magnitude but preserves direction.
- Position vectors originate from the origin of the coordinate system.
- Free vectors have no fixed point of application.
Vector Multiplication
Cross (Vector) Product: A×B = |A||B|sinθ n̂ — gives a vector perpendicular to both A and B. Measures how perpendicular they are.
A = (1,2,3), B = (4,−1,2)
A = (1,2,3), B = (4,5,6)
A = (1,0,0), B = (0,1,0) — are they perpendicular?
A = (2,3,0), B = (1,4,0)
Angle Between Vectors
A = (1,2,2), B = (3,0,4)
î = (1,0,0), ĵ = (0,1,0)
A = (1,1,0), B = (−1,0,0)
A = (2,4,6), B = (1,2,3)
Projection of a Vector
Vector projection of A onto B: projₐB = (A·B/|B|²)B
The projection gives the "shadow" of one vector along the direction of another.
Project A=(3,4) onto B=(1,0)
Proj A=(1,2,3) onto B=(2,0,0)
A=(1,1), B=(1,2). Find proj of A on B.
Force F=(3,2,1)N, Displacement d=(4,0,0)m
Vector Differentiation
r(t) = t²î + t³ĵ + (2t)k̂
r(t) = sinî + cosĵ + tk̂
r(t) = (t, t², 0); find T at t=1
d/dt[A·B] = A'·B + A·B' (dot product rule applies)
Gradient of a Function
f(x,y) = x² + y²
f = x²y + yz + z²
f=xy+z, direction u=(1,1,0)/√2
Surface: x²+y²+z²=9, point (1,2,2)
Divergence of a Vector
F = x²î + y²ĵ + z²k̂
F = (y,−x,0)
F=(xy, yz, zx) at (1,2,3)
F = (e^x sin y, e^x cos y, 0)
Curl of a Vector
F = (y, −x, 0)
F = (2xy, x², 0). Check if irrotational.
F = (yz, xz, xy)
F = (z, x, y)
Solenoidal Vector Field ★★★★★
- A solenoidal field can always be written as the curl of another vector field (∃A: F = ∇×A).
- Incompressible fluid flow is solenoidal (volume is conserved).
- The flux of a solenoidal field through any closed surface is zero.
F = (x²−y², 2xy, z)
F = curl(G) = ∇×G is always solenoidal
F = (ax+3y, y−2z, 5z−x). Find a so F is solenoidal.
B = (−y, x, 0) in a solenoid
Rotational Vector Field ★★★★★
F = ω×r = (0,0,ω)×(x,y,0) = (−ωy, ωx, 0)
F = (−y³, x³, 0)
F = (z, x, y). Curl direction?
Velocity v = (−y/(x²+y²), x/(x²+y²), 0)
Irrotational Vector Field ★★★★★
- F is irrotational ⟺ F = ∇φ for some scalar φ (the potential function).
- ∮ F·dr = 0 around any closed path (conservative property).
- Gravitational and electrostatic fields are irrotational.
F = (2xy+z², x²+2yz, 2xz+y²)
F = (2xy, x², 0) is irrotational. Find φ.
g = −∇(GM/r) = −GM(x,y,z)/r³
F=(2xy+z², x²+az, bxz+y²). Find a,b so F is irrotational.
Vector Integration
r(t) = (2t)î + (3t²)ĵ + (1)k̂. Find ∫r dt.
∫₀¹ (t, t², t³) dt
a(t) = (6t, 2, 0), v(0) = (0,1,0)
v(t) = (cost, sint, 1), r(0) = (0,0,0)
Integration Problem Solving
F=(1,0,0) through unit square in x=1 plane
F = r = (x,y,z) through sphere of radius R
∬_S F·dS = ∭_V (∇·F) dV
∮_C F·dr = ∬_S (∇×F)·dS
Line Integral
F=(y,x), curve C: (0,0) to (1,1), y=x
F=(−y,x), C: unit circle, counterclockwise
F=∇(x²+y²)=(2x,2y). Work from (0,0) to (1,1).
F=(x,y,z), C: r(t)=(t,t,t), t:0→1
Volume Integral
∭_V dV over sphere of radius R
∭ (x+y+z) dV over unit cube [0,1]³
ρ(x,y,z)=xy, V=[0,1]×[0,1]×[0,2]
∭_V (x,y,z) dV over unit cube
Green's Theorem
∮_C (y dx − x dy), C = unit circle
Area of D = ½∮_C (x dy − y dx)
∮_C (xy dx + x² dy), D=[0,1]×[0,1]
∮(P dy − Q dx) = ∬(∂P/∂x + ∂Q/∂y)dA
Verification of Green's Theorem ★★★★★
Step 1: Evaluate the line integral ∮_C (P dx + Q dy) directly by parameterizing each segment of C.
Step 2: Evaluate the double integral ∬_D (∂Q/∂x − ∂P/∂y) dA over region D.
Step 3: Confirm both results match.
F=(x²−y², 2xy), C=triangle with vertices (0,0),(1,0),(1,1)
∮(y²dx + x dy), D=[0,1]×[0,1]
∮(−y dx + x dy), C = circle r=a
Verify Green's: ∮(3x²−8y²)dx+(4y−6xy)dy, C: triangle (0,0),(1,0),(0,1)