The vocabulary of linear algebra, built up from scratch. The first chapter starts from what a vector is and the two moves you can make with vectors; then come span, subspaces, independence, basis and dimension, each a short name for an idea the first chapter makes concrete. The vocabulary: linear combinations, span, subspaces, independence, basis and dimension. These words appear in almost every linear-algebra question on the paper, often as “select all that are subspaces” or “which statements about orthonormal vectors are true”.
You need: vectors, dot products and matrices (Refreshers Part 4).
Vectors and combinations: the two moves of linear algebra
Linear algebra studies just two moves on vectors, scaling and adding, and asks one question about them: starting from a few vectors, which other vectors can you build?
Data points, model weights, word embeddings and images are all stored as vectors, and almost every question in this module is about combining them. Get the two moves into your fingers here and the vocabulary of the next chapters (span, subspace, basis) becomes a set of short names for things you already understand.
It’s like a recipe kitchen with only two instructions, “use this much of an ingredient” and “mix two bowls together”. Everything you can cook is a combination of the ingredients.
Not asked on its own, but every linear-algebra question uses it, and so do PCA, regression and neural-network questions in the ML module.
Quick check. Can you work out $2\cdot(1, 3) + (4, -1)$? (It’s $(6, 5)$.) If adding and scaling lists of numbers feels new, read Refreshers 4.1, Vectors and the dot product first; it takes about 45 minutes.
Why vectors? A concrete problem
The Bengaluru Backprops’ groundsman drives a pitch roller that can only travel along two fixed directions: $\u$ = one metre east and one metre north, and $\v$ = one metre east and one metre south, forwards or backwards, any distance. The roller starts at the corner of the square and has to reach a spot 4 metres east and 3 metres north. How far should it travel along each direction?
Write each direction as a vector, a list of numbers in a fixed order (east, north): $\u = (1, 1)$ and $\v = (1, -1)$. Travelling $\alpha$ times along $\u$ and then $\beta$ times along $\v$ ends at $$\alpha\u + \beta\v = \alpha(1, 1) + \beta(1, -1) = (\alpha + \beta,\ \alpha - \beta).$$ We need this to equal $(4, 3)$. That’s the whole of linear algebra in miniature: which amounts of some given vectors produce the vector we want? (The answer is below, and you can find it with the widget first.)
The two moves
- Scaling multiplies every entry by the same number: $3(1, 1) = (3, 3)$. As an arrow, it stretches (or shrinks, or with a negative number flips) the arrow along its own line.
- Adding works entry by entry: $(3, 3) + (1, -1) = (4, 2)$. As arrows, place the second at the tip of the first.
A vector with $n$ entries lives in $\R^n$ (“R n”). In $\R^2$ and $\R^3$ you can draw it; in $\R^{30}$ you can’t, but the two moves work exactly the same way. The zero vector $\0 = (0, 0, \ldots, 0)$ is what you get by scaling anything by 0.
A linear combination of vectors $\v_1, \ldots, \v_k$ is any vector $$c_1\v_1 + c_2\v_2 + \cdots + c_k\v_k$$ built by scaling each one by a real number $c_i$ (its coefficient or weight) and adding the results. Coefficients may be negative, zero or fractions.
Change how much of $\u$ and how much of $\v$ you use. The blue arrow is the $\u$ part, the purple arrow adds the $\v$ part on its tip. Hit each target. Then ask yourself: is there any point in the plane you couldn’t reach with these two vectors?
Solve the roller problem: find $\alpha$ and $\beta$ with $\alpha(1, 1) + \beta(1, -1) = (4, 3)$.
Match entries: $\alpha + \beta = 4$ (east) and $\alpha - \beta = 3$ (north).
Two vectors are equal exactly when every entry matches, so one vector equation is two ordinary equations.
Add the two equations: $2\alpha = 7$, so $\alpha = 3.5$. Then $\beta = 4 - 3.5 = 0.5$.
Adding cancels $\beta$. Part 2 turns this trick into a general method, Gaussian elimination.
Check: $3.5(1, 1) + 0.5(1, -1) = (3.5 + 0.5,\ 3.5 - 0.5) = (4, 3)$ ✓. So the roller goes 3.5 units along $\u$, then half a unit along $\v$.
Always substitute back; it takes seconds.
Where this leads
With $\u = (1, 1)$ and $\v = (1, -1)$ you can reach every point of the plane, because the two equations always have a solution. Now try $\u = (1, 2)$ and $\v = (2, 4)$: $\v$ is just $2\u$, so every combination $\alpha\u + \beta\v = (\alpha + 2\beta)\u$ lies on the single line through $\u$. You could never reach $(1, 0)$. The next two chapters name exactly this difference:
- the set of everything you can reach is the span (Chapter 1.2);
- vectors with no redundancy, where none is a combination of the others, are independent (Chapter 1.3).
Warm-up. Compute $2(1, 3) - (0, 2)$.
Scale first: $2(1, 3) = (2, 6)$. Then subtract entry by entry.
$(2, 6) - (0, 2) = (2, 4)$.
Find $\alpha$ and $\beta$ with $\alpha(1, 1) + \beta(1, -1) = (5, 1)$.
Match entries: $\alpha + \beta = 5$ and $\alpha - \beta = 1$. Add the equations.
$2\alpha = 6$, so $\alpha = 3$ and $\beta = 2$. Check: $(3 + 2, 3 - 2) = (5, 1)$ ✓.
Can $(1, 0)$ be written as a combination $\alpha(1, 2) + \beta(2, 4)$?
$(2, 4)$ is a multiple of $(1, 2)$. What do all the combinations look like?
Every combination is $(\alpha + 2\beta)(1, 2)$, a multiple of $(1, 2)$, so its second entry is always twice its first. $(1, 0)$ breaks that pattern: No.
A player’s season is recorded as (matches, runs, wickets, catches, sixes). In which $\R^n$ does this vector live? Enter $n$.
Count the entries.
Five numbers in a fixed order: a vector in $\R^5$.
- Turn a vector equation into one ordinary equation per entry.
- Draw 2-D examples as arrows, tip to tail, to see what’s going on.
- Check an answer by substituting it back.
- Adding vectors of different lengths, like $(1, 2) + (1, 2, 3)$. It isn’t defined.
- Forgetting that coefficients can be negative or fractional.
- Assuming two vectors always reach the whole plane. If one is a multiple of the other, they reach only a line.
- A vector is an ordered list of numbers, also drawn as an arrow; ℝⁿ is the set of all lists of length n.
- Linear algebra uses two moves, scaling and adding, and a linear combination c₁v₁ + … + cₖvₖ uses both.
- “Which vectors can I build from these?” is the central question; the answer is called the span, and redundancy among the vectors is called dependence.
$3(2, -1) + (1, 4)$ equals
Which of these is a linear combination of $(1, 0)$ and $(0, 1)$?
All combinations of $(2, 1)$ and $(4, 2)$ fill
Span and subspaces: flat things through the origin
The span of some vectors is everything you can build from them by scaling and adding; a subspace is a set that’s closed under exactly those operations, which in pictures means a line, plane or higher-dimensional flat sheet through the origin.
“Which of these are subspaces?” is a standard GATE MSQ. Null spaces and column spaces (the next part) are subspaces, and so is everything PCA projects onto.
It’s like a recipe book that only allows “double this, add that”. Starting from a few ingredients, the span is every dish you can make, and you can never cook your way out of it.
Subspace tests directly, and the language of every later topic (null space, column space, projections).
Recall from Chapter 1.1 that a linear combination of vectors $\v_1, \ldots, \v_k$ is any $c_1\v_1 + \cdots + c_k\v_k$ with real numbers $c_i$. The span is the set of all such combinations: everything you can reach from those vectors with the two moves.
- One non-zero vector in $\R^2$ spans a line through the origin.
- Two vectors in $\R^2$ that don’t lie on the same line span the whole plane.
- Two such vectors in $\R^3$ span a plane through the origin, not all of space.
Think of the Hyderabad Hyperplanes’ season as runs and wickets per match. “Two batting performances plus half a bowling performance” is a linear combination of the two performance vectors.
Why name such sets?
Spans are not the only sets that behave this way. The solutions of an equation like $x_1 + x_2 + x_3 = 0$ form a plane through the origin, and adding two solutions or scaling one gives another solution. Sets like this turn up everywhere (solution sets, the directions PCA keeps, the null spaces of Part 2), so it pays to have one name and one quick test for them.
The test uses the phrase closed under an operation: doing the operation to members of the set never takes you outside it. The horizontal axis $\{(x, 0)\}$ is closed under addition: $(3, 0) + (-1, 0) = (2, 0)$ is still on the axis. The right half-plane $\{(x, y) : x \ge 0\}$ is not closed under scaling: $(1, 0)$ is in it, but $-1 \cdot (1, 0) = (-1, 0)$ is not.
A set $W \subseteq \R^n$ is a subspace if
- it contains the zero vector $\0$;
- it’s closed under addition: $\u, \v \in W \Rightarrow \u + \v \in W$;
- it’s closed under scaling: $\v \in W,\ c\in\R \Rightarrow c\v \in W$.
Every span is a subspace, and every subspace is the span of some vectors.
- Contains 0? If not, stop: not a subspace. ($5x_1 + 2x_3 + 4 = 0$ fails: plugging in $\0$ gives $4 = 0$.)
- Defined by homogeneous linear equations ("$= 0$", no constants, no squares)? Then yes: it’s a null space.
- Defined as all combinations $\alpha\u + \beta\v$ with $\alpha, \beta$ free? Yes: it’s a span.
- Squares, absolute values, products, or sign restrictions (like $x \ge 0$ or $\alpha^2$)? Almost always no: scaling by −1 breaks it.
Drag $\u$ and $\v$, and use the sliders for the coefficients $\alpha$ and $\beta$. The orange point is $\alpha\u + \beta\v$. The shaded region is the span. Line the two vectors up and watch the span collapse from the whole plane to a single line.
Select all choices that are subspaces of $\R^3$. (Note: $\R$ denotes the set of real numbers.)
- $$\left\{\x = \begin{bmatrix}x_1\\x_2\\x_3\end{bmatrix}\in\R^3 : \x = \alpha\begin{bmatrix}1\\1\\0\end{bmatrix} + \beta\begin{bmatrix}1\\0\\0\end{bmatrix},\ \alpha,\beta\in\R\right\}$$
- $$\left\{\x\in\R^3 : \x = \alpha^2\begin{bmatrix}1\\2\\0\end{bmatrix} + \beta^2\begin{bmatrix}1\\0\\1\end{bmatrix},\ \alpha,\beta\in\R\right\}$$
- $$\left\{\x\in\R^3 : 5x_1 + 2x_3 = 0,\ 4x_1 - 2x_2 + 3x_3 = 0\right\}$$
- $$\left\{\x\in\R^3 : 5x_1 + 2x_3 + 4 = 0\right\}$$
(A) is the span of two vectors with free coefficients: a subspace (a plane through the origin). ✓
"All combinations with $\alpha, \beta$ free" is the definition of a span.
(B) uses $\alpha^2, \beta^2$, which are never negative. So you only get non-negative combinations, a wedge. Take $\begin{bmatrix}1\\2\\0\end{bmatrix}$ (with $\alpha = 1, \beta = 0$) and scale by $-1$: $\begin{bmatrix}-1\\-2\\0\end{bmatrix}$ would need $\alpha^2 + \beta^2 = -1$ in the first coordinate. Impossible. ✗
Closure under scaling by a negative number fails. Squares on the coefficients are the giveaway.
(C) is the solution set of two homogeneous linear equations: a null space, so a subspace (here a line through the origin). ✓
Sums and multiples of solutions of $A\x = \0$ are again solutions.
(D) doesn’t contain $\0$ ($0 + 0 + 4 \ne 0$). It’s a plane, but shifted off the origin. ✗ Answer: A, C.
Official key: A; C.
Warm-up. Is the line $\{(x, y) : y = 2x\}$ a subspace of $\R^2$?
Does it contain $(0, 0)$? Is it the span of one vector?
Yes. It’s the span of $(1, 2)$: every point is $t(1, 2)$. It contains $\0$, and sums and multiples of points on it stay on it.
Warm-up. Is the line $\{(x, y) : y = 2x + 1\}$ a subspace of $\R^2$?
Check the zero vector first.
No. Putting $x = 0$ gives $y = 1$, so $(0, 0)$ is not on the line. A subspace must contain $\0$.
Which are subspaces of $\R^2$? (Select all that apply.)
(A) $\{(x, y): y = 2x\}$ (B) $\{(x, y): x + y = 1\}$ (C) $\{(0, 0)\}$ (D) $\{(x, y): x \ge 0, y \ge 0\}$
Check: contains $(0,0)$? Closed under scaling by $-1$?
(A) a line through the origin ✓. (B) misses the origin ✗. (C) the zero subspace ✓: $\0 + \0 = \0$ and $c\0 = \0$. (D) scaling $(1,1)$ by $-1$ leaves the quadrant ✗.
Write $(3, 5)$ as $\alpha(1, 1) + \beta(1, 2)$. Find $\alpha$ and $\beta$.
Two equations: $\alpha + \beta = 3$ and $\alpha + 2\beta = 5$.
Subtract the first from the second: $\beta = 2$, so $\alpha = 1$. Check: $(1,1) + 2(1,2) = (3, 5)$ ✓.
Consider a set $S_1 = \{x = (x_1, x_2, x_3)^T\in\R^3 \mid x^Tx \le 16\}$. Let $S_2$ be another set which is a subspace of $\R^3$ with dimension two. Which of the following gives the area of $S_1 \cap S_2$?
- $16\pi$
- $4\pi$
- $4\pi^2$
- $16\pi^2$
$S_1$ is a solid ball of radius 4 centred at the origin. A 2-dimensional subspace is a plane through the origin. What shape is their intersection?
A plane through the centre of a ball cuts it in a disc with the full radius 4. Area $= \pi\cdot4^2 = 16\pi$. The key fact is that subspaces pass through the origin; a shifted plane would give a smaller disc. Official key: (A).
Which of the following are subspaces of the stated vector space?
- $\{A\in\R^{2\times2} : A\T = A,\ \operatorname{tr}A = 0\}$, a subspace of $\R^{2\times2}$ of dimension 2.
- $\{A\in\R^{2\times2} : \det A = 0\}$, a subspace of $\R^{2\times2}$.
- $\{\x\in\R^3 : \x\T M\x = 0\}$ with $M = \begin{bmatrix}1&0&0\\0&1&0\\0&0&0\end{bmatrix}$, a subspace of $\R^3$.
- $\{\x\in\R^3 : A\x = \b\}$ for a $3\times3$ matrix $A$ of rank 2 and some $\b\ne\0$ with $\b$ in the column space of $A$, a subspace of $\R^3$ of dimension 1.
Run the zero test first. For the sets that pass it, try adding two members, or write the set as a null space or a span.
(A) A symmetric trace-zero matrix looks like $\begin{bmatrix}a&b\\b&-a\end{bmatrix}$. Both conditions are linear, so the set is a subspace, and it has two free numbers $a, b$: dimension 2 ✓.
(B) The set contains $0$ and is closed under scaling, but not under addition: $\begin{bmatrix}1&0\\0&0\end{bmatrix}$ and $\begin{bmatrix}0&0\\0&1\end{bmatrix}$ both have determinant 0, while their sum $I$ has determinant 1 ✗.
(C) $\x\T M\x = x_1^2 + x_2^2$, which is 0 only when $x_1 = x_2 = 0$. The set is the $z$-axis, a line through the origin ✓. (A quadratic condition can still give a subspace; you have to look at what the set actually is.)
(D) $A\0 = \0 \ne \b$, so $\0$ is not in the set. It is a line (nullity $3 - 2 = 1$), but one shifted off the origin ✗.
Answer: A, C.
In $\R^4$, let $U = \operatorname{span}\{(1, 0, 1, 0),\ (0, 1, 0, 1)\}$ and $W = \{\x : x_1 + x_2 + x_3 + x_4 = 0,\ x_1 - x_3 = 0\}$. Find $\dim(U\cap W)$ and $\dim(U + W)$.
Write a general vector of $U$ with two parameters and push it through the two equations of $W$. Then use $\dim(U+W) = \dim U + \dim W - \dim(U\cap W)$.
A general vector of $U$ is $a(1,0,1,0) + b(0,1,0,1) = (a, b, a, b)$, and the two spanning vectors are independent, so $\dim U = 2$.
$W$ is the null space of a $2\times4$ matrix whose two rows are independent, so $\dim W = 4 - 2 = 2$.
$(a, b, a, b)\in W$ needs $2a + 2b = 0$ and $a - a = 0$. The second always holds, the first forces $b = -a$. So $U\cap W = \operatorname{span}\{(1, -1, 1, -1)\}$ and $\dim(U\cap W) = 1$.
$\dim(U + W) = 2 + 2 - 1 = 3$.
Answer: 1 and 3.
For a real number $k$, let $W_k = \operatorname{span}\{(1, 2, 3),\ (2, 1, 0),\ (1, k, 5)\}\subseteq\R^3$. For exactly one value of $k$, $W_k$ is a plane through the origin, and that plane is $x + py + qz = 0$. Find $k$, $p$ and $q$.
The first two vectors already span a plane. Find its normal (a cross product works), then ask when the third vector lies in that plane.
$(1, 2, 3)$ and $(2, 1, 0)$ are independent, so they span a plane. Its normal is their cross product: $(2\cdot0 - 3\cdot1,\ 3\cdot2 - 1\cdot0,\ 1\cdot1 - 2\cdot2) = (-3, 6, -3)$, a multiple of $(1, -2, 1)$. So the plane is $x - 2y + z = 0$, giving $p = -2$, $q = 1$.
$W_k$ is that plane exactly when $(1, k, 5)$ lies in it: $1 - 2k + 5 = 0$, so $k = 3$. For any other $k$ the three vectors are independent and $W_k = \R^3$. (Equivalently, $\det\begin{bmatrix}1&2&3\\2&1&0\\1&k&5\end{bmatrix} = 0$ only at $k = 3$.)
Answer: $k = 3$, $p = -2$, $q = 1$.
- Check “contains 0” first; it eliminates most non-subspaces instantly.
- Recognise null spaces ($A\x = \0$) and spans as automatic subspaces.
- Test closure with a negative scalar when coefficients are squared or restricted.
- Calling any plane a subspace. It must pass through the origin.
- Thinking a union of two subspaces is a subspace. Two lines together aren’t closed under addition.
- Forgetting that $\{\0\}$ and $\R^n$ itself are subspaces.
- The span of some vectors is all their linear combinations; it’s always a subspace.
- A subspace contains 0 and is closed under addition and scaling: a flat sheet through the origin.
- Homogeneous linear equations and free-coefficient spans give subspaces; constants, squares and sign restrictions usually don’t.
Two non-zero vectors in $\R^3$ that are not multiples of each other span
The set of solutions of $A\x = \b$ with $\b \ne \0$ is
$\{(x, y, z): x^2 + y^2 = z^2\}$ (a double cone) is
Independence, basis and dimension: no redundant directions
Vectors are linearly independent when none of them can be built from the others; a basis is an independent set that spans the whole space, and the number of vectors in it is the dimension.
Independence underlies rank, invertibility and solution counts. GATE asks about it directly (“orthonormal vectors are independent?”) and through rank and determinant questions.
It’s like a squad with no duplicate skills: each player adds something the others can’t cover. A basis is the smallest squad that can still play every role.
True/false statements about independence and orthonormal bases, and as the hidden reason behind rank and invertibility answers.
Why care about redundancy?
A DPL scorer records, for every innings, runs off the bat, extras, and total runs. The third column is always the sum of the first two, so it carries no new information: it’s a combination of the others. Storing it wastes space, and in a regression model it makes the answer impossible to pin down. Linear algebra calls such a set of vectors dependent.
A small example: $(1, 0)$, $(0, 1)$ and $(1, 1)$. The third is the sum of the first two, so $1\cdot(1, 0) + 1\cdot(0, 1) - 1\cdot(1, 1) = (0, 0)$: a combination that gives $\0$ without all the coefficients being zero. That is exactly what the definition below looks for.
Vectors $\v_1, \ldots, \v_k$ are linearly independent if the only way to get $c_1\v_1 + \cdots + c_k\v_k = \0$ is with every $c_i = 0$. Otherwise they’re dependent: one of them is a combination of the others.
- Two vectors are dependent exactly when one is a multiple of the other (they lie on one line).
- Any set containing $\0$ is dependent ($1\cdot\0 = \0$).
- More than $n$ vectors in $\R^n$ are always dependent: there just aren’t enough directions.
- For $n$ vectors in $\R^n$: put them as columns of a matrix $A$. They’re independent ⇔ $\det A \ne 0$ ⇔ $A$ is invertible. (The determinant of a 2 × 2 matrix is $ad - bc$, from Refreshers 4.2; Part 2 covers it fully.)
A basis of a subspace $W$ is a set of independent vectors that spans $W$. Every basis of $W$ has the same number of vectors: the dimension of $W$. Each vector in $W$ is a unique combination of basis vectors; those coefficients are its coordinates in that basis. $\R^n$ has dimension $n$; its standard basis is $\e_1 = (1, 0, \ldots, 0), \ldots, \e_n$.
Example. In Chapter 1.1, $\u = (1, 1)$ and $\v = (1, -1)$ reached every point of the plane, and neither is a multiple of the other. So they are a basis of $\R^2$, and $\R^2$ has dimension 2. The point $(4, 3)$ was $3.5\u + 0.5\v$, so its coordinates in this basis are $(3.5, 0.5)$, while in the standard basis they are $(4, 3)$. Same point, different “address”.
Vectors are orthonormal (ortho = at right angles, normal = length 1) if each has length 1 and every pair is perpendicular: $\v_i\cdot\v_j = 0$ for $i \ne j$, $\v_i\cdot\v_i = 1$. Orthonormal vectors are automatically independent: dot $c_1\v_1 + \cdots + c_k\v_k = \0$ with $\v_j$ and everything vanishes except $c_j = 0$.
Drag $\u$ and $\v$ (the basis) and the target $\w$. When $\u, \v$ are independent, the readout gives the unique coordinates of $\w$ in this basis, and the shaded parallelogram’s area is $|\det[\u\ \v]|$. Drag $\v$ onto the line of $\u$: the area drops to zero and coordinates stop existing (or stop being unique).
Which of the following statements is/are correct?
- $\R^n$ has a unique set of orthonormal basis vectors
- $\R^n$ does not have a unique set of orthonormal basis vectors
- Linearly independent vectors in $\R^n$ are orthonormal
- Orthonormal vectors $\R^n$ are linearly independent
(A) vs (B): rotate the standard basis of $\R^2$ by any angle and you get another orthonormal basis, e.g. $\tfrac{1}{\sqrt2}(1,1), \tfrac{1}{\sqrt2}(-1,1)$. There are infinitely many. (A) ✗, (B) ✓.
One counterexample is enough to kill “unique”.
(C): $(1, 0)$ and $(1, 1)$ are independent but neither perpendicular nor both of length 1. ✗
Independence is much weaker than orthonormality.
(D): orthonormal ⇒ independent, as shown above by dotting with each $\v_j$. ✓ Answer: B, D.
Official key: B; D.
Go deeper: the Gram matrix (2025 Q38)
Put $\x_1, \ldots, \x_n$ as the columns of $X$. The matrix $A = X\T X$ has entries $A_{ij} = \x_i\cdot\x_j$ (the “Gram matrix”). For any $\z$, $\z\T A\z = \norm{X\z}^2 \ge 0$, and if the $\x_i$ are independent then $X\z \ne \0$ for $\z \ne \0$, so $\z\T A\z \gt 0$. Hence $A$ is invertible (positive definite, Part 3). Official answer to 2025 Q38: (A) $A$ is invertible.
Warm-up. Are $(2, 4)$ and $(3, 6)$ linearly independent?
Is one a multiple of the other?
No: $(3, 6) = 1.5\cdot(2, 4)$, so $1.5(2, 4) - (3, 6) = \0$. They lie on one line.
Warm-up. What is the dimension of the plane $\{\x \in \R^3 : x_3 = 0\}$?
Find a basis: which simple vectors span all points of the form $(x_1, x_2, 0)$?
$(x_1, x_2, 0) = x_1(1, 0, 0) + x_2(0, 1, 0)$, and those two are independent. A basis of 2 vectors: dimension 2.
Are $(1, 0, 1)$, $(0, 1, 1)$ and $(1, 1, 2)$ linearly independent?
Is the third a combination of the first two?
$(1,1,2) = (1,0,1) + (0,1,1)$, so they’re dependent. (Equivalently, the 3 × 3 determinant is 0.)
What is the dimension of the plane $\{(x, y, z): x + y + z = 0\}$ in $\R^3$?
One equation removes one degree of freedom from three. Or find a basis.
Choose $y, z$ freely; then $x = -y - z$. Basis: $(-1, 1, 0)$ and $(-1, 0, 1)$. Dimension 2.
Find the coordinates of $(5, 1)$ in the basis $\{(1, 1), (1, -1)\}$, i.e. $a, b$ with $(5,1) = a(1,1) + b(1,-1)$.
$a + b = 5$ and $a - b = 1$.
Adding: $2a = 6$, so $a = 3$ and $b = 2$. (This basis is orthogonal, so you could also use dot products: $a = \frac{(5,1)\cdot(1,1)}{2} = 3$.)
What is the largest number of linearly independent vectors you can have in $\R^4$?
Independent vectors can’t outnumber the dimension.
4. Any 5 vectors in $\R^4$ are dependent.
$\u, \v, \w$ are linearly independent vectors in $\R^5$. For exactly one real number $a$, the vectors $\u + a\v,\ \v + a\w,\ \w + a\u$ are linearly dependent. Find $a$.
Write each new vector in terms of $\u, \v, \w$. Since those three are independent, the new set is dependent exactly when the $3\times3$ matrix of coefficients is singular.
Put the coefficients of $\u, \v, \w$ in columns: $C = \begin{bmatrix}1&0&a\\a&1&0\\0&a&1\end{bmatrix}$. Because $\u, \v, \w$ are independent, $c_1(\u + a\v) + c_2(\v + a\w) + c_3(\w + a\u) = \0$ has a non-zero solution exactly when $C\,\mathbf c = \0$ does, i.e. when $\det C = 0$.
Expanding along the first row: $\det C = 1\cdot(1 - 0) - 0 + a\cdot(a^2 - 0) = 1 + a^3$.
$1 + a^3 = (a + 1)(a^2 - a + 1)$, and the quadratic factor has no real roots. So $a = -1$. (Check: $(\u - \v) + (\v - \w) + (\w - \u) = \0$.)
Answer: −1.
Let $D = \begin{bmatrix}1&0&0\\0&1&0\\0&0&2\end{bmatrix}$. The set of all $3\times3$ real matrices $X$ with $XD = DX$ is a subspace of $\R^{3\times3}$. What is its dimension?
Compare entry $(i, j)$ of $XD$ and $DX$: one scales column $j$ of $X$, the other scales row $i$.
$(XD)_{ij} = x_{ij}d_j$ and $(DX)_{ij} = d_i x_{ij}$. So $XD = DX$ means $x_{ij}(d_j - d_i) = 0$ for every $i, j$.
With $d = (1, 1, 2)$: whenever $d_i \ne d_j$, $x_{ij}$ must be 0. That kills $x_{13}, x_{23}, x_{31}, x_{32}$ and leaves $x_{11}, x_{12}, x_{21}, x_{22}$ (the top-left $2\times2$ block, where $d_i = d_j = 1$) and $x_{33}$ free.
A basis is the five matrices with a single 1 in one of those positions, so the dimension is $4 + 1 = 5$.
Answer: 5.
$\mathbf q_1, \mathbf q_2, \mathbf q_3$ are orthonormal vectors in $\R^5$ and $\x = 2\mathbf q_1 - \mathbf q_2 + 2\mathbf q_3$. Which of the following are TRUE?
- $\norm\x = 3$.
- $\{\mathbf q_1, \mathbf q_2, \mathbf q_3, \x\}$ is linearly independent.
- $\x\cdot\mathbf q_2 = -1$.
- $\{\mathbf q_1 + \mathbf q_2,\ \mathbf q_2 + \mathbf q_3,\ \mathbf q_1 - \mathbf q_3\}$ is a basis of $\operatorname{span}\{\mathbf q_1, \mathbf q_2, \mathbf q_3\}$.
With orthonormal vectors, lengths and dot products come straight from the coefficients. For (D), look for a combination of the first two that gives the third.
(A) Orthonormality kills the cross terms: $\norm\x^2 = 2^2 + (-1)^2 + 2^2 = 9$, so $\norm\x = 3$ ✓.
(B) $\x$ is by definition a combination of the other three, so the set of four is dependent ✗.
(C) $\x\cdot\mathbf q_2 = 2(\mathbf q_1\cdot\mathbf q_2) - (\mathbf q_2\cdot\mathbf q_2) + 2(\mathbf q_3\cdot\mathbf q_2) = 0 - 1 + 0 = -1$ ✓.
(D) $(\mathbf q_1 + \mathbf q_2) - (\mathbf q_2 + \mathbf q_3) = \mathbf q_1 - \mathbf q_3$, so the three are dependent and span only a plane. They are not a basis of the 3-dimensional span ✗.
Answer: A, C.
- For $n$ vectors in $\R^n$, test independence with a determinant.
- Look for an obvious combination (like “third = first + second”) before computing.
- Remember the chain: orthonormal ⇒ orthogonal and non-zero ⇒ independent.
- Thinking independent vectors must be perpendicular.
- Believing a space has only one basis.
- Counting vectors instead of independent directions when asked for a dimension.
- Independent means no vector is a combination of the others; n vectors in ℝⁿ are independent iff their matrix has det ≠ 0.
- A basis spans with no redundancy; every basis has the same size, the dimension, and coordinates in a basis are unique.
- Orthonormal vectors are always independent, and ℝⁿ has infinitely many orthonormal bases.
Which set is linearly dependent?
Three vectors in $\R^2$ are
If the columns of a square matrix $A$ are independent, then
$\{\x\in\R^3: \x\cdot(1, 2, 3) = 0\}$ is
Vectors $\u, \v$ in $\R^2$ have $\det[\u\ \v] = 0$. Then
$\u = (3, 4)/5$ and $\v = (-4, 3)/5$. They