← Dennis Pezan
MA103 · Linear Algebra Reference

Linear Algebra Reference Card

Everything in the MA103 mini block on one page, and fifty-nine drills to make it automatic

Gate 3 has come back and it was 100% computation: seven questions, 25 points, not one asking for a sentence. The Gate 3 mirror rebuilds it question for question. That confirms what the course director said in advance: WPR 2 will be "much more computational than WPR 1," and that cadets will have to "demonstrate their computational ability with vector and matrix operations" on top of interpreting their results. That makes this page the highest-leverage thing you can work.

WPR 1 provided no formula sheet, so assume WPR 2 will not either. The cards below are the list to memorize. Print the page, cover the right-hand side, and see how much you can reproduce from the name alone.

The 59 drills below are deliberately mechanical. Speed there is what buys you time for the interpretation questions, and this time the arithmetic is worth points in its own right.

Card 1

Vectors

Lessons 23–26 · Reading M.1

Magnitude (length)

|v| = √v12 + v22 + … + vn2

Always ≥ 0. Squaring destroys sign, so negative components help exactly as much as positive ones.

Unit vector · on Gate 3

v̂ = v|v|

Divide every component by the magnitude. Keep it in fractions. Check: |v̂| = 1. Same direction, length thrown away.

Dot product

u · v = u1v1 + u2v2 + … + unvn

The result is a scalar. Both vectors must have the same number of components.

Cosine similarity

cos θ = u · v|u| |v|

Range −1 to 1. Measures direction only, immune to scaling either vector by a positive number.

Angle

θ = cos−1(u · v|u| |v|)

Positive dot product → acute. Negative → obtuse. Zero → exactly 90°. cos θ is not θ. Gate 3 scored stopping at the cosine as a major error.

Orthogonal test

u ⊥ v  ⇔  u · v = 0

Perpendicular, 90°, cos θ = 0. One computation settles it.

Parallel test

u ∥ v  ⇔  v = ku

One is a scalar multiple of the other. Equivalently cos θ = ±1. Negative k means antiparallel.

Linear combination

t = au + bv

A weighted blend, computed component by component. It lands between the two vectors, nearer the heavier weight.

Normalizing features

xnorm = xxmax

Put every feature on a common 0–1 scale before any distance or similarity work, or the largest-range variable dominates.

Card 2

Matrices

Lessons 27–32 · Reading M.2

Dimensions

m × n = rows × columns

Rows first, always. A column vector is n×1.

Transpose

(AT)ij = Aji  ·  m×n → n×m

Swaps rows and columns. On a data matrix it switches "per observation" to "per variable."

Add, subtract, scale

entry by entry

Requires identical dimensions. Scalar multiplication touches every entry.

Multiplication rule

(m×n)(n×k) = m×k

Inner dimensions must match; the result takes the outer ones. Entry (i,j) = row i of the left · column j of the right.

Not commutative

AB ≠ BA

In general. Often one order is not even defined. Never reorder a product.

Determinant (2×2)

det = ad − bc

For [ a b ; c d ]. Nonzero ⇔ invertible.

Inverse (2×2)

A−1 = 1det [ d  −b ; −c  a ]

Swap the diagonal, negate the off-diagonal, divide by the determinant. Check with AA−1 = I.

Solving a system

Ax = b  →  x = A−1b

Only when det ≠ 0. Coefficients become A, constants become b.

Elementary row operations

swap · scale · add a multiple

Ri ↔ Rj; Ri ← kRi with k ≠ 0; Ri ← Ri + kRj. These three, nothing else.

Solution types

pivot / contradiction / free

Pivot in every coefficient column → unique. Row [0 … 0 | nonzero] → none. Fully zero row → infinitely many.

Singular matrix

det = 0  →  no unique solution

Rows are scalar multiples. Geometrically: parallel lines, either never meeting, or the same line. Row reduce to find out which.

Scoring with a data matrix

Fw  ·  (n×k)(k×1) = n×1

Simultaneous dot products: one weighted score per observation, all at once. Scaling w scales every score and never changes the ranking.

Drills · 59 items

Rapid Drills

Groups A–F are arithmetic; G–J are recognition. Do the arithmetic ones with pencil and paper, not a calculator. Use the Drill answers switch in the bar above to check.

A · Magnitude

Every one of these comes out a whole number. If you get a decimal, check your squaring.

1|⟨3, 4⟩|
2|⟨1, 2, 2⟩|
3|⟨2, −3, 6⟩|
4|⟨0, 5, 12⟩|
5|⟨1, 1, 1, 1⟩|

A2 · Unit vectors · 3 points on Gate 3

Exact fractions, not decimals. Each answer should have magnitude 1.

6unit vector of ⟨3, 4⟩
7unit vector of ⟨−5, 12⟩
8unit vector of ⟨1, 2, 2⟩
9unit vector of ⟨2, −3, 6⟩
10unit vector of ⟨0, −1⟩

B · Dot product

11⟨1, 2, 3⟩ · ⟨4, 5, 6⟩
12⟨2, −1, 3⟩ · ⟨1, 4, −2⟩
13⟨5, 0, 0⟩ · ⟨0, 5, 0⟩
14⟨−2, 3, 1⟩ · ⟨4, 1, −5⟩
15⟨0.5, 0.2, 0.3⟩ · ⟨0.4, 0.6, 0.8⟩

C · Cosine similarity

16⟨1, 0⟩ and ⟨1, 1⟩
17⟨3, 4⟩ and ⟨6, 8⟩
18⟨1, 2, 2⟩ and ⟨2, −1, 2⟩

D · Determinant and inverse

19det [ 4  3 ; 2  1 ]
20det [ 7  2 ; 3  1 ]
21inverse of [ 2  0 ; 0  4 ]
22inverse of [ 1  2 ; 3  7 ]

E · Matrix products

23[ 1  2 ; 3  4 ][ 5  6 ; 7  8 ]
24[ 2  0 ; 1  3 ][ 1 ; 4 ]
25[ 1  2  3 ][ 4 ; 5 ; 6 ]
26[ 1  0 ; 0  1 ][ a  b ; c  d ]

F · Scalar multiples and blends

272⟨1, −2, 3⟩ + 3⟨0, 1, −1⟩
280.6⟨1, 0, 1⟩ + 0.4⟨0, 1, 0⟩
29−1⟨3, −1, 2⟩

G · Is the product defined?

Given A 2×2, B 2×3, C 3×2, D 3×3, u 2×1, v 3×1. State defined or undefined, and the dimensions.

30AB
31BA
32BC
33CB
34Au
35Av
36Bv
37uTA
38CTA
39DC

H · Determinant and invertibility

40[ 1  2 ; 3  4 ]
41[ 2  6 ; 1  3 ]
42[ 5  0 ; 0  5 ]
43[ 3  −1 ; −6  2 ]
44[ 0  1 ; 1  0 ]

I · Orthogonal, parallel, or neither?

45⟨1, 0, 0⟩ and ⟨0, 1, 0⟩
46⟨2, 4, 6⟩ and ⟨1, 2, 3⟩
47⟨1, 1, 0⟩ and ⟨1, −1, 0⟩
48⟨3, 0, 4⟩ and ⟨−6, 0, −8⟩
49⟨1, 2, 3⟩ and ⟨4, 5, 6⟩

J · True or false?

50The dot product of two vectors is a vector.
51If u·v = 0, the vectors are perpendicular.
52A magnitude can be negative.
53AB = BA for all square matrices.
54det = 0 means no inverse exists.
55Cosine similarity can exceed 1.
56Doubling one vector changes the cosine similarity.
57An m×n matrix transposed is n×m.
58det = 0 means the system has no solution.
59Matrix addition requires identical dimensions.