The universe upgrade
At a kirana shop, the owner writes your order as a list: 2 kg rice, 1 kg dal, 3 packets of biscuits. Your friend's order is another list.
Add the two lists and you get one order for both of you. Double a list and you get the order for a party. The owner never stops to ask whether adding or doubling "makes sense". It always does, and the answer is always another order list.
That quiet guarantee is what this unit is about.
In Unit 1 we solved equations. Now we step back and look at the world the answers live in.
Almost everything in machine learning is a long list of numbers. A cat photo is 150,528 numbers. A word inside a language model is 768 numbers. Your taste in films is a list. The weights of a neural network are a list. Training a model means moving through the world of such lists, one small step at a time.
Here is the kirana idea with small numbers. Two orders, as lists:
Adding gives a list of the same length. Scaling gives a list of the same length. Nothing breaks. A world where these two moves always work is called a vector space, and the lists in it are called vectors. The world of all 3-number lists is written (read it: "R three").
Decoder ring: how to read ℝ with a little number on top (worth 60 seconds)
| Notation | Shape | Mental picture |
|---|---|---|
| a single number | a dot on the number line | |
| a column of numbers | an arrow | |
| an grid | a spreadsheet | |
| a stack of 3 grids | a colour photo | |
| such stacks | a batch of photos |
Read as "all the real-number data with this shape". is nothing scarier than "a column with 768 numbers in it".
Six ideas, one after the other. Each one builds on the last:
- ①Groups — combining things with a trustworthy undo button.
- ②Vector spaces — add scaling, and you get the board machine learning plays on.
- ③Subspaces — smaller worlds inside, like a sheet of glass through the origin.
- ④Span — everywhere a few arrows can take you.
- ⑤Independence — which arrows are extra baggage.
- ⑥Basis and dimension — the smallest toolkit, and the true size of the world.
In one sentence: every object in machine learning is a list of numbers, and this unit maps the world those lists live in and the rules for moving around it.
Groups — the bare skeleton of "combining things"
You type a message on your phone, then press undo. The words disappear, and you are back where you started.
For undo to be trustworthy, four things must be true. Every move keeps you inside the app. It does not matter how you bracket a chain of moves. There is a "do nothing" move. And every move can be taken back.
A world with these four promises is called a group.
Take whole numbers with ordinary adding. Watch all four promises hold:
- 1 is a whole number. You stay inside. (closure)
- 2. Brackets don't matter. (associativity)
- 3. Zero is the do-nothing move. (identity)
- 4. The number undoes . (inverse)
In symbols: a group is a set with a way of combining, written , such that stays in ; ; some has ; and every has a partner with . If also for every pair, the group is called Abelian (order never matters).
Fine print: many lecture notes write the identity and inverse promises from one side only (, ). For groups, the one-sided version already forces the two-sided one, so both definitions describe the same objects.
Closure and brackets almost never break. The promise that fails most often is the undo: the partner you need is simply not in the set. Try it:
A group is a set with a trustworthy undo button. You can combine any two members and stay inside, brackets never matter, there is a do-nothing member , and every has a partner that brings you back to .
When a set fails, it is nearly always the last promise. The counting numbers have no . The whole numbers under multiplication have no .
The counting numbers with zero, under , are not a group. Which promise breaks?
On a 12-hour clock, moving the hand forward 5 hours can be undone by moving it forward some number of hours. Which number is the undo partner of 5?
In one sentence: a group is any world where combining keeps you inside and every move can be undone.
Vector spaces = group + scaling
An auto-rickshaw driver gives directions: "2 km along the main road, then 1 km up the side lane." You can chain directions one after the other. That is adding. You can say "go twice as far". That is scaling.
However you mix these two moves, you still end up somewhere in the city. You never fall off the map.
Small numbers first. Take and . Then , and doubling gives .
Now do it the other way round. Double each one first: and . Add them: . Same place. Two different routes, one destination.
A vector space is any world where adding and scaling behave like this. In symbols, must keep four promises:
- V1 is an Abelian group.Adding never leaves the set, does nothing, undoes , and order doesn't matter.
- V2 and .Scale-then-add equals add-then-scale. That is the "two routes" picture.
- V3.Stretch by 2, then by 3, is one stretch by 6.
- V4.Scaling by 1 changes nothing.
Race the two routes yourself, in 3D:
Adding and scaling can be done in either order, and you never leave the world. Anything you can add and scale by these rules counts as a vector. Every "linear" idea in this course, from gradients to averages, is this route-swapping trick.
In this course, "vector" does not mean "a column of numbers". It means anything that lives in a vector space. A matrix is a vector. A polynomial is a vector. If you can add two of them and scale one, and stay in the same kind of thing, it is a vector. Example: a weekly-sales spreadsheet plus a corrections spreadsheet is a spreadsheet of the same shape.
Is a weight matrix a "vector"?
In one sentence: a vector space is any world where you can add and scale freely and never fall off the board.
Subspaces — spaces inside spaces
Hold a big sheet of glass so that it passes through one corner of your room. Ants live on the glass.
Any walk the ants take along the glass stays on the glass. Chain two walks: still on the glass. Walk twice as far, or walk backwards: still on the glass. The ants have a complete little world of their own, inside your bigger room.
That little world is a subspace.
A tiny example on flat paper. Take the line . The points and are on it. Add them: . Is ? Yes, still on the line. Scale by : . Still on the line. And the origin is on it too. It passes.
Now take the line . Is on it? . No. It fails straight away.
A subset of a vector space is a subspace when it is a vector space by itself, using the same adding and scaling. The rules about brackets and order come free from the big space. Only three things can go wrong, and all three are about staying inside:
- S1The origin is in it: . If not, stop. It fails.
- S2Adding stays inside: .
- S3Scaling stays inside: for every number , including and negatives.
Now be the stress-tester. Each button applies a real move to a member and checks where the answer lands:
In , the subspaces are exactly the flat things through the origin: the origin alone, lines through , planes through , and so on up to the whole space. A set that is shifted, curved or fenced in always lets something escape.
This is a theorem, not just a pattern. Sections 10 and 11 show why: every subspace is the span of a few independent arrows, and such a span is always a flat through .
A model with a bias, , draws a flat that is shifted off the origin. That is not a subspace (it is called affine). The usual trick is to add a constant 1 to every input . One dimension up, the shifted flat becomes a genuine flat through the origin again.
Which of these is a subspace of ?
In one sentence: a subspace is a flat world through the origin where adding and scaling never take you outside.
The promised passport: the null space is a subspace
A shop sells soap at ₹10, tea at ₹10 and biscuits at ₹20. The billing machine multiplies each count by its price and adds.
You change your basket: one soap fewer, one tea more. The bill does not move: . The machine cannot see this change at all.
Every change the machine cannot see is part of its blind spot. The surprise of this section: for every machine, the blind spot is a subspace.
Write a basket change as . Counting the bill in tens of rupees, the machine is , and the change in the bill is .
Two invisible changes: gives . And , two soaps more and one biscuit packet fewer, gives .
Do both changes: , and . Still invisible. Do the first change three times: , and . Still invisible.
Unit 1 promised the blind spot its papers. Here they are. The null space of a matrix is
and it always passes the three-point subspace test. Stamp the passports yourself:
Zero in, zero out. Invisible plus invisible is invisible, and a stretched invisible change is still invisible. So the null space is always a subspace. The same two rules make the column space , all the outputs the machine can produce, a subspace too.
But the solutions of with are never a subspace: two of them add up to , not .
If you want the algebra · null space and column space are subspaces
Claim. For any matrix : is a subspace of and is a subspace of . The only tool is linearity: and .
This explains the pictures from Unit 1. The solutions of form a flat that does not pass through the origin. It is the null space, picked up and carried by one particular solution : every solution is with in . Here it is for the smallest possible machine, and :
drag the picture to orbit
Subspace + shift = solution set. The null space (blue) passes through . The solution set (orange) is the same line carried by . Every orange point is plus a null vector, so the orange line has the shape of a subspace, but it misses , so it is not one.
Let be a data matrix and the weights. For any in , : the two weight settings make exactly the same predictions on the training data. The data cannot tell them apart. Only an extra rule, such as "prefer small weights", picks one.
Why does adding two members of always give another member?
In one sentence: whatever a matrix cannot see forms a subspace, because zero plus zero is zero and a stretched zero is still zero.
Span — everywhere you can reach
Your home station has two Metro lines. One runs north-east, the other north-west. You can ride any distance on each, forwards or backwards, and change lines as often as you like.
Every place you can reach by mixing the two rides is your reachable city.
Now you buy a pass for a third line, but it runs exactly along the first one. Your reachable city does not grow by a single street.
Small numbers. With and , the mix . In fact any point is . These two arrows reach the whole plane.
Now try and . Every mix, like , is a multiple of . Two arrows, but they only reach one line.
A mix is called a linear combination. The set of every mix you can make is the span:
Watch a span get painted, one mix at a time:
The span is every mix . It is always a flat through the origin, so it is always a subspace: a point, a line, a plane, or more.
Its size depends on how many different directions the arrows point in. A new arrow that lies inside the current span adds nothing. An arrow that points out of it adds a whole new direction.
If you want the algebra · why a span is always a subspace
Claim. passes S1, S2 and S3.
Linear regression's predictions always lie in the span of the columns of . PCA squeezes data onto the span of a few top directions. "What can this model possibly produce?" is usually a question about a span.
Two vectors in point along the same line (one is times the other). Their span is…
In one sentence: the span is everywhere your arrows can take you, and it only grows when a new arrow points somewhere new.
Linear independence — the art of non-redundancy
Three friends give you directions to a chai stall. Ravi says "1 block east". Meena says "1 block north". Arjun says "1 block east and 2 blocks north".
Arjun told you nothing new. His route is Ravi's plus two of Meena's. So you could walk Ravi's route, then Meena's twice, then Arjun's backwards, and you would be home again.
When a set of directions has a round trip like this, it is called dependent.
The chai-stall trip in numbers: , , , and
So the test for redundancy is one question: can the vectors bring you back to with weights that are not all zero?
Yes → dependent. Rearrange the equation and one vector is a mix of the others. No → independent. The only way home is to never leave (all weights 0), and every vector brings something the others cannot copy.
Two quick shortcuts. ① If is one of your vectors, the set is dependent: put weight 1 on and 0 on everything else. ② For non-zero vectors, "dependent" means exactly "at least one is a mix of the others".
Dependent: and . The second is the first, doubled, so . A round trip with weights . Caught.
Independent: and . Try . The bottom row says . Then the top row says . Only the "never leave" trip works.
Dependence is a round trip. Left: out along one arrow and back along the other, with weights , lands you home. Right: no such trip exists, because the two arrows point in truly different directions.
Now take the round trip into 3D. Set the weights and see whether the walk ends at home:
Vectors are independent when the only way to make is with every . You can only get home by never leaving.
If some other weights bring you home, the set is dependent, and at least one vector is a mix of the rest: extra baggage.
A set of five vectors happens to include . What can you say straight away?
In one sentence: vectors are independent when the only walk that brings you home is the one where you never leave.
The detector: elimination hunts redundancy
You are packing for a trip. You pick up each item and ask one question: "Does this add something I don't already have?" A second charger for the same phone adds nothing, so it stays home.
Gaussian elimination asks the same question of each vector, left to right: does it bring a new direction, or is it a mix of the ones before it?
Small example from the slides. Put three vectors side by side as columns and eliminate:
Column 1 has a pivot. Column 2 lost its chance: below the first pivot it is all zeros. So column 2 brings nothing new. Indeed . Column 3 gets a pivot in row 2, so it brings a new direction.
The rule: stack the vectors as columns, eliminate, read the pivots. A pivot column is a genuine new direction. A column with no pivot is a mix of the pivot columns to its left, and in the fully reduced form its numbers are the exact recipe. Step through it:
Stack the vectors as columns and eliminate. A pivot column brings a new direction. A column without a pivot is a mix of earlier columns, and in the reduced form its numbers are the exact recipe.
The number of pivots, the rank, is the number of truly different directions. If every column has a pivot, the vectors are independent.
But row operations scramble every column. Why can we trust a recipe read off the scrambled matrix? Because they scramble every column in exactly the same way, so any mixing rule between columns survives. The drawer has the details.
If you want the algebra · why the reduced column is the recipe for the original column
Claim. If and column of has no pivot, then the numbers in that column (rows 1 to rank) are the weights that build the original column from the original pivot columns.
After row-reducing , the third column has no pivot and reads . Which statement is right?
In one sentence: eliminate the columns, and every column without a pivot is exposed as a mix of the pivot columns before it.
The recipes theorem — independence survives translation
A cook has two basic masalas that are truly different: neither can be made from the other. Every dish she makes comes with a recipe card: "1 spoon of the first, half a spoon of the second".
Question: are two of her dishes secretly the same mix under different names? She does not need to taste the food. Comparing the recipe cards is enough.
Small example. Let be independent. Dish has card . Dish has card . The cards are dependent: card 2 is twice card 1. And sure enough, the dishes are too: .
In symbols: put the ingredients side by side as and each recipe card as a column . Cooking is a matrix product, . The theorem:
independent independent.
Reading the recipe cards is enough. Whatever is true of the dishes is true of the cards, and the other way round. That mirror is the whole reason coordinates are useful.
The pigeonhole law. Cards over ingredients are vectors in , and more than of them can never be independent (a matrix has at most pivots). By the mirror, dishes are dependent too, without tasting a single one.
If the ingredients are independent, then the dishes are independent exactly when their recipe cards are. So you can always do the check on the small, simple cards instead of the big dishes.
And more cards than ingredients () always means dependent.
The slides run this at full size: four dishes from four ingredients, with recipe cards , , and . Elimination gives pivots in columns 1–3, and column 4 reads . So
by the mirror. The four dishes are dependent, and we know the exact relation. (Load preset 3 in the detector above and read it off yourself.)
If you want the algebra · the recipes theorem, both directions
Setting. has independent columns, and for . Pick any weights and write .
Someone hands you 50 word-embedding vectors that live in a 32-dimensional space. Independent or not?
In one sentence: with independent ingredients, dishes are independent exactly when their recipe cards are, so you can always check the cards instead.
Basis — the just-right toolkit
You ask two people the way to the same house. The first says "3 blocks east, 2 blocks north". The second thinks in terms of the diagonal main road and says "1 block east, then 2 blocks along the main road".
Same house, two addresses. They are using different sets of directions. Each set of directions is a basis, and the numbers in an address are the coordinates.
Check the numbers. East is , north is , and one block along the main road is . The first address: . The second: . Same point.
A good set of directions must do two jobs. It must reach every place (it spans the space), and it must carry no extra baggage (it is independent). "North, east and north-east" reaches everything but wastes a direction. "North" alone wastes nothing but misses most places. "North and east" is just right.
Four ways to say the same thing. A basis of is:
- ①an independent set that spans .Reaches everything, no extra baggage.
- ②a smallest spanning set.Remove any one vector and some places become unreachable.
- ③a largest independent set.Add any vector of and redundancy appears.
- ④a perfect address book.Every has exactly one recipe . The numbers are its coordinates.
Walk the same house through different address books:
A basis reaches everything with nothing extra. Because of that, every vector has exactly one address:
The are the coordinates. Change the basis and the address changes, but the point itself stays put. A dependent pair cannot be a basis: the graph paper collapses to a line.
If you want the algebra · why the address is unique
Claim. If is a basis of , every has one and only one list of coordinates.
PCA is "find a new basis for the data, ordered by importance". The Fourier transform is "write the signal in a basis of waves". Autoencoders learn a basis. The data never changes; only the address book does. In the right book, the pattern you are hunting becomes easy to see.
Three independent vectors in . Do they form a basis of ?
In one sentence: a basis is a set of directions that reaches everything with nothing to spare, so every vector gets exactly one address.
Dimension — how big is the board, really?
To say where a train is, you need one number: the kilometre mark on the line. To say where a shop is on a city map, you need two. To say where a drone is, you need three: east, north and height.
Choose your directions however you like. The number of numbers you need never changes. That number is the dimension.
Small example. Take the -axis in the flat plane. Its points look like or : two numbers each. But one number, "how far up", already tells you everything. So the -axis has 2 components but dimension 1.
The key fact: pick any basis of a space and count its vectors. Pick a completely different basis and count again. You always get the same number. That count is the dimension, .
So , and (one basis matrix for each cell: a 1 in that cell, 0 everywhere else). A subspace is never bigger than its home: , with equality only when .
Count the knobs yourself. Pick vectors from inside a space, one at a time, and watch the counter:
Every basis of a space has the same number of vectors. That number is the dimension: the count of independent directions, the number of knobs you really have.
Components count the room you are written in. Dimension counts the room you actually use. And more vectors than the dimension always means redundancy.
If you want the algebra · why all bases have the same size
Claim. If and are both bases of , then .
A photo is written with 150,528 numbers, but real photos do not fill that whole space. Faces, speech and text seem to sit on a thin, curled surface of much smaller dimension inside it. This bet is called the manifold hypothesis, and much of representation learning is the hunt for that small true dimension.
Components ≠ dimension. Left: points on the -axis are written with two numbers, but one number locates them. Right: an image is written with 150,528 numbers, yet natural images cluster on a thin surface of far smaller dimension.
So what for ML: an embedding table with one row per word and columns has rank at most . "How many independent directions does this representation really use?" is a dimension question, and the answer is the rank.
, a set inside . What is ?
In one sentence: dimension is the number of independent directions a space really has, and every basis agrees on it.
Finding a basis — the algorithm
You have a drawer full of old phone chargers, and many are duplicates. You want the smallest set that still charges every device you own.
So you pick them up one at a time. You keep a charger only if it does something the ones you kept cannot. That is exactly how to find a basis.
You are handed a pile of vectors and you want a basis of everything they span, . Three steps:
- ①Stack the vectors as the columns of a matrix .
- ②Row-reduce and find the pivot columns.
- ③Keep the original vectors that sit over the pivot columns. Throw the rest away.
The kept vectors are independent (each one has a pivot), and they still span everything (each discarded vector is a mix of kept ones). Count them, and you have measured too. Watch the charger test happen in 3D:
The basis is the original columns of at the pivot positions, not the tidy columns of the reduced matrix. Row operations change how each column looks, while keeping every mixing rule between columns (Section 8 showed why). Read the pivot positions from the reduced matrix; take the vectors from .
X-ray vs skeleton. The pivot positions (1, 2, 4) and the recipe come from . The basis vectors come from .
The slide example, worked to the end. Four vectors in :
Stack them and reduce (or load preset 4 in the detector of Section 8 and watch):
Pivots sit in columns 1, 2 and 4. Column 3 is the only redundant one, and its numbers give the recipe . (Check it on all five entries. It works.)
To find a basis of a span: stack, reduce, and keep the original vectors in the pivot columns. The number you keep is the dimension.
For the slide example: a basis of is , and . Four vectors walked in, one was a mix, and three genuine directions remain.
Note for companion-PDF readers — a slip in this example
The companion's version of this example reports the basis and , using . Check the fourth entry: , but the fourth entry of is . That mix fails, earns its own pivot, and the numbers above (three pivots, , pivots in columns 1, 2, 4) are machine-checked. The detector's preset 4 reproduces them.
One more from the slides, the other way round: , and in reduce with a pivot in every column, so they are independent. Yet they are not a basis of : three arrows cannot cover a four-dimensional world. Independent is not enough until the count matches the dimension.
In one sentence: to shrink a pile of vectors to a basis, keep each vector only if it points outside the span of the ones you already kept.
The whole story, in six lines
- ①A group is combining with an undo button. Add scaling and you get a vector space: the board every ML object lives on.
- ②A subspace is a flat world through the origin inside a bigger one. The null space and the column space are the star examples.
- ③The span is everywhere your vectors can reach. It never grows when you add a vector that points nowhere new.
- ④Independence means no round trip home except "never leave". Elimination's pivots detect it.
- ⑤A basis spans and is independent: the smallest toolkit, giving every vector exactly one address.
- ⑥Dimension, the size of any basis, is the board's true size. More vectors than the dimension always means redundancy.
Four questions to ask of any vector or matrix you meet in ML: What space does it live in? Is this set independent, or is some of it redundant? What is its span, column space or null space? Is there a smarter basis? That loop is most of the geometry behind classical ML, and a surprising amount of deep learning.
Take these home — the companion's five practice problems (with answer keys)
P1. Which are subspaces of ? (a) (b) (c) (d) . Key: (a) and (d), flat and through the origin. (b) misses 0; (c) fails under λ = −1.
P2. Express in terms of . Key: row-reduce . The unique answer is .
P3. independent; . Independent? Key: check the cards : three pivots, independent. The mirror does the rest.
P4. Is a basis of ? Key: row-reduce, get 3 pivots, so independent; 3 independent vectors in a 3-D space automatically span it. Yes.
P5. Basis and dimension of . Key: pivots in columns 1 and 3, with and . Basis , dimension 2. (Preset 5 in the detector.)
In one sentence: know your space, spot the redundancy, find the span, and pick the smartest basis.
Practice arena — the unit's problem set, solved in full
This is Prof. Saurabh's practice set for this unit (Vector Spaces): Problems 1–6 drill the subspace test, Problems 7–12 cover linear combinations and independence, and Problems 13–18 build bases and count dimensions. Attempt each problem on paper first — the fold-out solution shows every step, nothing skipped.
Show that is a subspace of .
Show the worked solution — every step
In simple words: is just the -axis. A line through the origin in is always a subspace.
Determine whether is a subspace of .
Show the worked solution — every step
Linear + homogeneous (right-hand side ) is the signature of a subspace: the defining rule survives adding and scaling automatically.
Show that is a subspace of .
Show the worked solution — every step
Every linear homogeneous equation in carves out a flat sheet through the origin. Keep this plane in mind — Problem 16 comes back to it and measures it: basis of two vectors, dimension 2.
Show that is NOT a subspace of .
Show the worked solution — every step
Sets defined with strict inequalities (like ), nonzero constants (like ), or products of variables (like ) typically fail the test. Subspaces correspond to linear, homogeneous conditions like .
In simple words: is the right half-plane. Negating a vector flips it to the other side, violating closure. One concrete counterexample is a complete disproof.
Let be the set of all real matrices. Show that the set of all symmetric matrices (matrices with ) is a subspace of .
Show the worked solution — every step
The "vectors" in this problem are matrices. The subspace test never asked what the objects were — anything you can add and scale (tuples, matrices, polynomials, even functions) plays the vector game by the same rules.
In simple words: symmetric matrices mirror across the diagonal. Adding or scaling preserves that mirror symmetry.
Show that the set of all polynomials of degree (with the zero polynomial included) is a vector space under the usual polynomial addition and scalar multiplication.
Show the worked solution — every step
In simple words: polynomials behave like vectors — coefficients act like coordinates. (That is why : one coordinate per coefficient .)
Express as a linear combination of and .
Show the worked solution — every step
A "find the recipe" question is always a linear system in disguise: one equation per coordinate, one unknown per ingredient vector.
Are the vectors and linearly independent in ?
Show the worked solution — every step
Picture: both arrows point along the same line — they encode the same direction. For exactly two vectors, dependent one is a scalar multiple of the other.
Express as a linear combination of , , .
Show the worked solution — every step
The REF recipe for linear-combination questions: augment with the target vector, reduce, back-substitute. It is the same computation as elimination by equations, just written compactly.
Are the vectors , , linearly independent in ?
Show the worked solution — every step
Rank number of vectors independent. And for vectors in , the fastest test is independent.
Are the polynomials , , linearly independent in ?
Show the worked solution — every step
Write down the coefficient vectors: , , . Those are exactly the three vectors of Problem 10 — the polynomial question is secretly the same computation you already did.
In simple words: none of these polynomials can be built from the other two by adding or scaling alone. Matching coefficients turns any question into an question.
Determine whether is linearly independent in .
Show the worked solution — every step
Two vectors are dependent one is a scalar multiple of the other. But for three or more vectors, dependence does NOT mean two of them are parallel — here no vector is a multiple of another, yet the set is dependent. Always set up the equation and solve.
Rearrange the relation: . The middle vector is exactly the average of the outer two — consecutive-integer patterns hide a built-in redundancy.
Find the dimension of and give a basis.
Show the worked solution — every step
Dimension degrees of freedom — how many independent knobs you can tune. has three: , , and .
Show that is a basis of .
Show the worked solution — every step
Basis independent AND spans. Once both hold, every vector has exactly one expression in terms of the basis — its coordinates.
Show that is a basis of .
Show the worked solution — every step
Counting trick: in an -dimensional space, any linearly independent vectors form a basis automatically — no need to re-prove spanning. Likewise, any spanning set of size is automatically independent.
Find a basis and the dimension of .
Show the worked solution — every step
Number of free variables dimension. A subspace of cut out by independent linear equations has dimension — here .
Find a basis and the dimension of .
Show the worked solution — every step
Predict before you compute: minus the number of independent constraints gives the dimension ( here). If the algebra disagrees with the prediction, recheck both.
Find the dimension and a basis of the vector space of all symmetric matrices.
Show the worked solution — every step
All matrices form a 4-dimensional space, yet symmetric ones form only a 3-dimensional one: the single mirror constraint kills exactly one degree of freedom. Problem 5 proved is a subspace; this problem measures how big it is.
To find the dimension of a matrix space, count the entries you can choose freely — each free entry contributes one basis matrix.