Study guide
13.3 Matrices & Vectors
Pakistan Air Force GD Pilot Initial Test Exam
Track your progress as you read
Finished sections get a check mark.
1 Chapter 1: Introduction & Exam Overview
1.1 Current Exam Facts 1.2 Eligibility & Registration 1.3 Test Format & Selection Pipeline
2 Verbal Intelligence: Word Relationships
2.1 Analogies 2.2 Synonyms & Antonyms 2.3 Vocabulary in Context 2.4 Sentence Completion
3 Verbal Intelligence: Series & Coding
3.1 Number Series 3.2 Letter & Alpha-Numeric Series 3.3 Coding-Decoding
4 Verbal Intelligence: Quantitative Logic
4.1 Direction Sense 4.2 Percentages 4.3 Age & Relationship Problems 4.4 Time, Speed & Distance
5 Non-Verbal Intelligence: Patterns
5.1 Pattern & Figure Series 5.2 Odd-One-Out 5.3 Classification
6 Non-Verbal Intelligence: Spatial Reasoning
6.1 Rotation 6.2 Mirror Images 6.3 Matrix Reasoning 6.4 Spatial Reasoning
7 English: Grammar Foundations
7.1 Grammar Essentials 7.2 Tenses 7.3 Prepositions
8 English: Voice, Reported Speech, Correction & Vocabulary
8.1 Active & Passive Voice 8.2 Sentence Correction 8.3 Spelling 8.4 Vocabulary & Comprehension 8.5 Direct & Indirect Speech
9 Physics: Mechanics & Fluids
9.1 Mechanics 9.2 Fluid Dynamics & Bernoulli
10 Physics: Waves, Optics & Modern
10.1 Waves & Sound 10.2 Optics & Light 10.3 Modern Physics
11 Physics: Electromagnetism & Thermodynamics
11.1 Electromagnetism 11.2 Thermodynamics
12 Mathematics: Algebra, Calculus & Logs
12.1 Algebra 12.2 Calculus Basics 12.3 Logarithms
13 Mathematics: Geometry, Trig, Matrices & Vectors
13.1 Geometry 13.2 Trigonometry 13.3 Matrices & Vectors
14 Mathematics: Applied Reasoning
14.1 Percentages & Ratio 14.2 Word Problems
15 General Knowledge: PAF & Aviation
15.1 PAF Organisation 15.2 PAF History 15.3 Aviation Fundamentals
16 General Knowledge: Pakistan & General Science
16.1 Pakistan Geography 16.2 Armed Forces Selection & Basic Science
17 Test-Day Strategy & Selection Pipeline
17.1 Test-Day Strategy 17.2 Later Selection Stages
13.3 Matrices & Vectors
Key Takeaways Explain This Topic AI
A 2x2 matrix [[a,b],[c,d]] has determinant ad - bc, and is invertible only when this determinant is non-zero.
The inverse of [[a,b],[c,d]] is (1/(ad-bc)) * [[d,-b],[-c,a]], swapping the diagonal and negating the off-diagonal.
A vector v = (x, y) has magnitude |v| = sqrt(x^2 + y^2); the unit vector in its direction is v/|v|.
The dot product of vectors a = (a1,a2) and b = (b1,b2) is a1 b1 + a2 b2; it equals |a||b|cos(theta) and is zero when the vectors are perpendicular.
Matrix multiplication is not commutative: AB is generally not equal to BA, but it is associative: A(BC) = (AB)C.
Last updated: August 2026
13.3 Supplemental Matrices and Vectors
Quick Answer: This section tests 2x2 matrix operations (addition, multiplication, determinant, inverse) and vector basics (magnitude, direction, addition, dot product, unit vector). The two facts that show up repeatedly: the determinant of [[a,b],[c,d]] is ad - bc, and the dot product of perpendicular vectors is zero.
Matrix Operations
A matrix is a rectangular array of numbers. For 2x2 matrices the exam uses four operations:
Addition and subtraction (same dimensions only): element-wise.
[[a,b],[c,d]] + [[e,f],[g,h]] = [[a+e, b+f],[c+g, d+h]]
Scalar multiplication: multiply every entry by the scalar k.
- Matrix multiplication: for A (2x2) and B (2x2), the product AB is
- AB = [[a,b],[c,d]] * [[e,f],[g,h]] = [[a e + b g, a f + b h],[c e + d g, c f + d h]]
Note that AB is generally not equal to BA: matrix multiplication is not commutative . It is, however, associative: A(BC) = (AB)C.
Determinant of a 2x2 matrix A = [[a,b],[c,d]]:
det(A) = |A| = ad - bc
A matrix is invertible if and only if its determinant is non-zero.
Inverse of a 2x2 matrix:
A^(-1) = (1/det(A)) * [[d, -b],[-c, a]]
The recipe: swap the main diagonal entries (a and d), negate the off-diagonal entries (b and c), then divide by the determinant.
Worked example. Find the inverse of A = [[2, 1],[5, 3]].
det(A) = 2 3 - 1 5 = 6 - 5 = 1.
Swap diagonal and negate off-diagonal: [[3, -1],[-5, 2]].
Divide by det = 1: A^(-1) = [[3, -1],[-5, 2]].
Check: A * A^(-1) = [[2 3 + 1 (-5), 2*(-1) + 1 2],[5 3 + 3*(-5), 5*(-1) + 3*2]] = [[1, 0],[0, 1]] = I. Correct.
Vectors
A vector has both magnitude and direction. In 2D, write v = (x, y) or v = x i + y j where i, j are unit vectors along the axes.
Magnitude: |v| = sqrt(x^2 + y^2).
Direction: the angle with the positive x-axis is theta = tan^(-1)(y/x).
Addition: (x1, y1) + (x2, y2) = (x1 + x2, y1 + y2) (component-wise, parallelogram rule).
Scalar multiplication: k*(x, y) = (k x, k y).
Unit vector in the direction of v: u = v / |v| = (x/|v|, y/|v|). It has magnitude 1.
Dot product of a = (a1, a2) and b = (b1, b2):
a . b = a1 b1 + a2 b2 = |a||b|cos(theta)
where theta is the angle between them. Key special cases:
If a . b = 0, the vectors are perpendicular (theta = 90 degrees).
If a . b > 0, the angle is acute; if a . b < 0, the angle is obtuse.
a . a = |a|^2.
Worked example. Find the magnitude of v = (3, 4) and the unit vector in its direction.
|v| = sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt(25) = 5.
Unit vector u = (3/5, 4/5). Check: (3/5)^2 + (4/5)^2 = 9/25 + 16/25 = 1, so |u| = 1.
Matrix Rules Table
- Operation Formula for A = [[a,b],[c,d]]
- Determinant ad - bc
- Inverse (1/(ad-bc)) * [[d,-b],[-c,a]]
- Trace (sum of diagonal) a + d
- Identity matrix I [[1,0],[0,1]]
- A * I = A Multiplication by identity leaves A unchanged
- (A^T)^T = A Transpose twice returns the original
- det(A) = 0 A is singular (not invertible)
- AB != BA in general Multiplication is not commutative
- Vectors Quick Reference
- Quantity Formula
- Magnitude of (x, y) sqrt(x^2 + y^2)
- Unit vector along v v / |v|
- Dot product a . b a1 b1 + a2 b2
- Perpendicular test a . b = 0
- Angle between a and b cos^(-1)((a . b) / (|a||b|))
- Vector addition (a1+b1, a2+b2)
Vectors and matrices appear in navigation, force resolution, and coordinate-transform problems—all directly relevant to a pilot's working knowledge, which makes them useful supplemental reasoning practice.
Dot-Product Angle Worked Example
Find the angle between a = (1, 2) and b = (3, -1).
Dot product: a . b = 1 3 + 2 (-1) = 3 - 2 = 1.
Magnitudes: |a| = sqrt(1^2 + 2^2) = sqrt(5); |b| = sqrt(3^2 + (-1)^2) = sqrt(10).
cos(theta) = (a . b) / (|a|*|b|) = 1 / (sqrt(5) sqrt(10)) = 1 / sqrt(50) = 1 / (5 sqrt(2)) approx 0.1414.
theta = cos^(-1)(0.1414) approx 81.87 degrees.
Because the dot product is positive (1 > 0), the angle is acute — a quick sanity check before computing. Had a . b been zero, the vectors would be perpendicular; had it been negative, the angle would be obtuse.
Solving a 2x2 Linear System via the Inverse
To solve A x = b, multiply both sides by A^(-1): x = A^(-1) b. For example, solve [[2, 1],[5, 3]] * [x, y] = [4, 9]. Using the inverse [[3, -1],[-5, 2]] found earlier: [x, y] = [[3, -1],[-5, 2]] * [4, 9] = [3 4 + (-1) 9, (-5) 4 + 2 9] = [12 - 9, -20 + 18] = [3, -2]. Verify: 2 3 + 1 (-2) = 4 and 5 3 + 3 (-2) = 9. This method fails when det(A) = 0 (no unique solution), which is why the determinant is checked first.
Common Traps
Singular matrix: if det(A) = 0, the inverse does not exist and the system has either no solution or infinitely many. Do not write A^(-1) = (1/0)*... — stop and report the matrix as singular.
Non-commutativity: AB is not equal to BA in general. When a question asks for AB, multiply in the order given; reversing the order changes the result. Only A I = I A = A and A*A^(-1) = A^(-1)*A = I are guaranteed to commute.
Unit vector magnitude: v/|v| has magnitude 1 by construction, but forgetting to divide both components (only dividing one) leaves a non-unit vector. Always divide every component by |v|.