For $n \ge 1$ and $c \in \R$, what is $\sum_{j=1}^{n} c$?
$c$
$c^n$
$\frac{n(n+1)}{2}\,c$
$n\,c$
Explanation. The term does not depend on the index: $c$ is summed up $n$ times, so $\sum_{j=1}^{n} c = n\,c$. Instead, $c^n$ is the product $\prod_{j=1}^{n} c$.
Explanation. $\sum_{j=1}^{n} j = \frac{n^2+n}{2}$; with $n = 20$: $\frac{400+20}{2} = 210$. $420$ forgets the division by $2$, $190$ is obtained with $n = 19$.
Explanation. It is the sum of the first $n$ odd numbers: $2\sum_{j=1}^{n} j - \sum_{j=1}^{n} 1 = (n^2+n) - n = n^2$. $n^2+n$ is the sum of the first $n$ even numbers.
The sum index is a dummy index. Which expression equals $\sum_{j=1}^{n} j^2$ for every $n \ge 1$?
$\sum_{k=1}^{n} k^2$
$\sum_{j=0}^{n} (j+1)^2$
$\sum_{j=2}^{n+1} j^2$
$\sum_{j=1}^{n} (j-1)^2$
Explanation. Renaming the index in all its occurrences does not change the sum. The others shift the limits or the term without compensating: for instance $\sum_{j=0}^{n} (j+1)^2 = \sum_{i=1}^{n+1} i^2$.
Index reflection: which equality holds for every sum $\sum_{j=1}^{n} a_j$?
$\sum_{j=1}^{n} a_j = \sum_{j=0}^{n} a_{n-j}$
$\sum_{j=1}^{n} a_j = \sum_{j=1}^{n} a_{n+j}$
$\sum_{j=1}^{n} a_j = \sum_{j=1}^{n} a_{n-j+1}$
$\sum_{j=1}^{n} a_j = \sum_{j=1}^{n} a_{n-j}$
Explanation. For $j = 1, \dots, n$ the index $n-j+1$ takes the values $n, \dots, 1$: the same terms in reverse order. With $a_{n-j}$ the term $a_0$ would appear and $a_n$ would be missing.
Explanation. It is the product by a constant (distributive property). The sum of products is not the product of sums; a constant added to every term gives $n\,c$; in the decomposition the second sum starts at $n+1$.
To prove $\sum_{j=1}^{n} j = \frac{n^2+n}{2}$, the sum is written twice, the second time with the terms in reverse order, and the two expressions are added term by term. Which properties of sums does the argument use?
index reflection, decomposition and the sum of the first $n$ even numbers
decomposition, product by a constant and the sum of the first $n$ odd numbers
index reflection, union of sums and the sum with constant term
index translation, union of sums and the product by a constant
Explanation. The reverse order is the reflection $\sum_{j=1}^{n} j = \sum_{j=1}^{n} (n-j+1)$; joining the two sums every term equals $n+1$, and the sum with constant term gives $n(n+1)$, to be divided by $2$. The sums of the even and odd numbers are derived from this result, not the other way round.
We want to prove that the sum of the first $n$ odd numbers is $\sum_{j=1}^{n} (2j-1) = n^2$, reducing it to the sum of the first $n$ positive natural numbers. Which results are needed?
index translation, product of products and $\sum_{j=1}^{n} 1 = n$
$\sum_{j=1}^{n} j = \frac{n^2+n}{2}$, union of sums, product by a constant, $\sum_{j=1}^{n} 1 = n$
$\sum_{j=1}^{n} j = \frac{n^2+n}{2}$, index reflection and index translation
$\sum_{j=1}^{n} 2j = n^2+n$, decomposition of the sum and index translation
Explanation. $\sum_{j=1}^{n} (2j-1) = 2\sum_{j=1}^{n} j - \sum_{j=1}^{n} 1 = 2\cdot\frac{n^2+n}{2} - n = n^2$: the sums are split (union), the constant $2$ is taken out and the sum with constant term $1$ is used.
For $n \ge 1$, what is the sum of the first $n$ positive even numbers $\sum_{j=1}^{n} 2j$?
$\frac{n^2+n}{2}$
$2n^2$
$n^2+n$
$n^2$
Explanation. $\sum_{j=1}^{n} 2j = 2\sum_{j=1}^{n} j = 2\cdot\frac{n^2+n}{2} = n^2+n$ (product by a constant). $n^2$ is the sum of the first $n$ odd numbers.
Explanation. It is the union of sums: just reorder the terms $a_1 + b_1 + \dots + a_n + b_n$. The product of two sums also contains the products $a_j b_k$ with $j \neq k$, and the square of a sum has the cross terms.
Explanation. $1 + \frac12 + \frac13 = \frac{6 + 3 + 2}{6} = \frac{11}{6}$. $\frac16 = \frac{1}{1+2+3}$ adds the denominators; $\frac16$ is also the product of the terms.
Explanation. A sum is linear. A constant $d$ added $n$ times gives $n\,d$, not $d$; the sum of products is not the product of the sums; the factor $c$ is taken out once, it does not become $c^n$.
For the reals $a_1, \dots, a_8$ we know that $\sum_{j=1}^{8} a_j = 12$. What is $\sum_{j=1}^{8} (5\, a_j)$?
$17$
$480$
$12$
$60$
Explanation. The constant factors out: $\sum_{j=1}^{8} 5\,a_j = 5 \sum_{j=1}^{8} a_j = 60$. $17$ adds $5$ only once, $480$ also multiplies by the number of terms.
For the reals $a_j, b_j$ ($j = 1, \dots, n$) we know that $\sum_{j=1}^{n} a_j = 7$ and $\sum_{j=1}^{n} b_j = -2$. What is $\sum_{j=1}^{n} (3a_j - b_j)$?
$-14$
$23$
$19$
$5$
Explanation. By linearity: $3 \cdot 7 - (-2) = 21 + 2 = 23$. $19$ gets the sign of $-b_j$ wrong; $-14$ multiplies the two sums instead of subtracting them.
With the substitution $k = j + 1$, what does $\sum_{j=0}^{n-1} (j+1)^2$ equal?
$\sum_{k=1}^{n} (k+1)^2$
$\sum_{k=1}^{n} k^2$
$\sum_{k=0}^{n-1} k^2$
$\sum_{k=1}^{n-1} k^2$
Explanation. For $j = 0$ we get $k = 1$, for $j = n - 1$ we get $k = n$, and the term $(j+1)^2$ becomes $k^2$. The others change only the limits or only the term.
What is the sum of the odd numbers from $1$ to $19$, $1 + 3 + 5 + \dots + 19$?
$100$
$81$
$190$
$110$
Explanation. They are the first $10$ odd numbers ($19 = 2 \cdot 10 - 1$) and their sum is $10^2 = 100$. $81$ counts only $9$ terms, $110$ is the sum of the first $10$ even numbers.
Explanation. $\sum_j j + \sum_j 1 = \frac{n(n+1)}{2} + n = \frac{n(n+3)}{2}$. The constant term $1$ is added $n$ times, not once; $\frac{(n+1)(n+2)}{2}$ also includes the term $1$ of $j = 0$.
Let $E_n = \sum_{j=1}^{n} 2j$ be the sum of the first $n$ positive even numbers and $O_n = \sum_{j=1}^{n} (2j - 1)$ that of the first $n$ odd numbers. Which relation holds for every $n \ge 1$?
Explanation. A sum splits over sums and differences of terms (linearity), but it does not commute with absolute value, maximum or square: with $a = (1, 0)$, $b = (0, 1)$ the other three fail.
Explanation. The terms are $n - 1, n - 2, \dots, 1, 0$: it is $\sum_{k=0}^{n-1} k = \frac{(n-1)n}{2}$. With $\frac{n(n+1)}{2}$ the term $n$ would also be counted.
Using the sums of the first $n$ odd numbers ($n^2$) and of the first $n$ naturals ($\frac{n(n+1)}{2}$), what is $\sum_{j=1}^{10} (2j - 1) - \sum_{j=1}^{10} j$?
$35$
$45$
$55$
$100$
Explanation. $10^2 - \frac{10 \cdot 11}{2} = 100 - 55 = 45$; indeed it is also $\sum_{j=1}^{10} (j - 1) = 45$.
The formula $\sum_{j=1}^{n} j = \frac{n(n+1)}{2}$ always gives an integer, although it divides by $2$. Which fact guarantees it?
The number $n + 1$ is always prime
Nothing: for odd $n$ it is not an integer
Of $n$ and $n + 1$ one is even
The number $n$ is always even
Explanation. $n$ and $n + 1$ are consecutive integers, so one of them is even and the product $n(n+1)$ is divisible by $2$. For instance $n = 5$: $\frac{5 \cdot 6}{2} = 15$.
$\prod_{j=1}^{n} (c\, a_j) = c + \prod_{j=1}^{n} a_j$
Explanation. The constant appears in each of the $n$ factors and, by the commutative and associative properties, it is collected as $c^n$. For sums, instead, the constant comes out only once.
The factorial of a natural number $n$ is $n! = \prod_{j=1}^{n} j$. What is $\frac{100!}{98!}$?
$2$
$9702$
$9900$
$100$
Explanation. $\frac{n!}{(n-k)!} = \prod_{j=1}^{k}(n-j+1)$: with $n = 100$ and $k = 2$ the two factors $100 \cdot 99 = 9900$ remain. $9702 = 99\cdot 98$ starts from the wrong factor.
What is the product with no factors $\prod_{j=1}^{0} a_j$ (upper index smaller than the lower one)?
$a_1$
it is not defined
$1$
$0$
Explanation. By convention a product with no factors equals $1$ (the neutral element of the product); this makes the formula for $\frac{n!}{(n-k)!}$ valid also for $k = 0$.
Explanation. It is the product of products (commutative and associative properties). In the decomposition the two parts are multiplied, not added; the constant comes out as $c^n$.
For $n \ge 0$ and $k \in \{0, 1, \dots, n\}$, which equality is true?
$\frac{n!}{(n-k)!} = \prod_{j=0}^{k} (n-j)$
$\frac{n!}{(n-k)!} = \prod_{j=1}^{n-k} j$
$\frac{n!}{(n-k)!} = \prod_{j=1}^{k} (n-j+1)$
$\frac{n!}{(n-k)!} = \prod_{j=1}^{k} (n-j)$
Explanation. It is the product of $k$ factors, from $n$ decreasing by one: $n(n-1)\cdots(n-k+1) = \prod_{j=n-k+1}^{n} j$. The others have one factor more, one less, or are $(n-k)!$.
We want to prove that $\frac{n!}{(n-k)!} = \prod_{j=n-k+1}^{n} j$ for $n \ge 0$ and $0 \le k \le n$, where $n! = \prod_{j=1}^{n} j$ and $0! = 1$. Which results are needed?
index reflection $\prod_{j=1}^{n} a_j = \prod_{j=1}^{n} a_{n-j+1}$ and the product with constant term
Stirling's approximation of the factorial and the product of products
the definition of factorial and the decomposition $\prod_{j=1}^{n} j = \prod_{j=1}^{n-k} j \, \prod_{j=n-k+1}^{n} j$
the definition of factorial and the product by a constant $\prod_{j=1}^{n}(c\,a_j) = c^n\prod_{j=1}^{n} a_j$
Explanation. $n!$ is written as the product of the first $n - k$ factors times the remaining ones; the first ones form $(n-k)!$, which cancels out. Stirling gives only an asymptotic approximation.
For the nonzero real numbers $a_1, \dots, a_5$ we know that $\prod_{j=1}^{5} a_j = 24$ and $\prod_{j=1}^{3} a_j = 6$. What is $\prod_{j=4}^{5} a_j$?
$4$
$18$
$30$
$144$
Explanation. By decomposition $\prod_{j=1}^{5} a_j = \prod_{j=1}^{3} a_j \, \prod_{j=4}^{5} a_j$, hence $\prod_{j=4}^{5} a_j = 24/6 = 4$. The two parts are multiplied, not subtracted.
Index reflection: which equality holds for every product $\prod_{j=1}^{n} a_j$?
$\prod_{j=1}^{n} a_j = \prod_{j=1}^{n} a_{n-j}$
$\prod_{j=1}^{n} a_j = \prod_{j=0}^{n-1} a_{n+j}$
$\prod_{j=1}^{n} a_j = \prod_{j=0}^{n-1} a_{n-j}$
$\prod_{j=1}^{n} a_j = \prod_{j=0}^{n} a_{n-j}$
Explanation. For $j = 0, \dots, n-1$ the index $n - j$ takes the values $n, \dots, 1$: the same factors in reverse order. With $j = 0, \dots, n$ also $a_0$ would appear.
Explanation. If the limits increase by $m$, the index in the factor decreases by $m$: for $j = 1+m, \dots, n+m$ we get $a_1, \dots, a_n$. Shifting only the limits changes the factors.
What is the product $\prod_{j=3}^{5} j^2$, where the index $j$ goes from $3$ to $5$?
$225$
$144$
$3600$
$50$
Explanation. The factors are $3^2, 4^2, 5^2$: $9\cdot 16\cdot 25 = 3600$. $50$ is the sum $\sum_{j=3}^{5} j^2$; $225 = (3\cdot 5)^2$ forgets the factor $4^2$, $144 = (3\cdot 4)^2$ the factor $5^2$.
Which product represents $2 \cdot 4 \cdot 6 \cdot 8$?
$\prod_{j=1}^{8} 2j$
$\prod_{j=1}^{4} 2j$
$\prod_{j=2}^{8} j$
$2 \prod_{j=1}^{4} j$
Explanation. For $j = 1, \dots, 4$ the factor $2j$ equals $2, 4, 6, 8$. $2 \prod_{j=1}^{4} j = 48$ puts the $2$ only once (the product is $384 = 2^4 \cdot 4!$); $\prod_{j=2}^{8} j$ also includes the odd numbers.
The factorial is $n! = \prod_{j=1}^{n} j$ for $n \ge 1$, with $0! = 1$. For $n \ge 0$, what is $\frac{(n+1)! - n!}{n!}$?
$n$
$1$
$n + 1$
$(n+1)!$
Explanation. $(n+1)! = (n+1)\,n!$, so the numerator is $n!\,(n + 1 - 1) = n \cdot n!$ and the ratio is $n$. $1$ cancels $(n+1)!$ with $n!$ as if they were equal.
To prove that $n!$ is divisible by $k!$ when $0 \le k \le n$, what is used?
That $0! = 0$, as an empty product
That $n! = k! \prod_{j=k+1}^{n} j$
That $n!$ is even for every $n \ge 2$
That $k! \le n!$ for every $k \le n$
Explanation. $n! = k! \prod_{j=k+1}^{n} j$ and the second factor is a product of integers, hence an integer. $k! \le n!$ is true but does not give divisibility; $0! = 1$.
What is the product $\prod_{j=1}^{4} \frac{j}{j+1}$?
$\frac57$
$\frac15$
$\frac45$
$\frac14$
Explanation. $\frac12 \cdot \frac23 \cdot \frac34 \cdot \frac45 = \frac15$: the factors telescope. $\frac57 = \frac{10}{14}$ divides the sum of the numerators by that of the denominators.
What is the product with constant factor $\prod_{j=3}^{7} 2$?
$10$
$16$
$32$
$128$
Explanation. The indices from $3$ to $7$ are $5$, so the product is $2^5 = 32$. $128 = 2^7$ uses the upper limit, $10 = 5 \cdot 2$ adds instead of multiplying.
For the reals $a_1, \dots, a_4$ we know that $\prod_{j=1}^{4} a_j = 5$. What is $\prod_{j=1}^{4} (3\,a_j)$?
$45$
$405$
$15$
$60$
Explanation. The constant appears in each of the $4$ factors: $3^4 \cdot 5 = 81 \cdot 5 = 405$. $15$ counts it only once, $60 = 4 \cdot 3 \cdot 5$ treats it as in a sum.
For the reals $a_j, b_j$ ($j = 1, \dots, n$) we know that $\prod_{j=1}^{n} a_j = 6$ and $\prod_{j=1}^{n} b_j = -2$. What is $\prod_{j=1}^{n} (a_j\, b_j)$?
$4$
$-3$
$12$
$-12$
Explanation. The product of products is the product of the products: $6 \cdot (-2) = -12$. $4$ adds the two products, $-3$ divides them.
The factorial is $n! = \prod_{j=1}^{n} j$ and $6! = 720$. Splitting $\prod_{j=1}^{6} j = \prod_{j=1}^{3} j \cdot \prod_{j=4}^{6} j$, what is $\prod_{j=4}^{6} j$?
$240$
$15$
$360$
$120$
Explanation. $\prod_{j=4}^{6} j = 4 \cdot 5 \cdot 6 = 120 = \frac{720}{3!}$. $15$ adds the factors, $240 = \frac{720}{3}$ divides by $3$ instead of $3! = 6$.
For naturals $0 \le k \le n$ we have $\frac{n!}{(n-k)!} = n\,(n-1) \cdots (n-k+1)$. How many factors does this product have?
$k$
$n - k$
$n$
$k + 1$
Explanation. It is $\prod_{j=1}^{k} (n - j + 1)$: one factor for each $j = 1, \dots, k$, from $n$ down to $n - k + 1$. The $n - k$ smallest factors cancel with $(n-k)!$.
Explanation. The factors $a_1, \dots, a_{n+m}$ are split into two consecutive blocks that are multiplied. Starting from $j = n$ counts $a_n$ twice; $\prod_{j=1}^{m} a_j$ repeats the first factors.
By convention a product with no factors (e.g. $\prod_{j=1}^{0} a_j$) equals $1$. Thanks to it, the formula $\frac{n!}{(n-k)!} = \prod_{j=n-k+1}^{n} j$ also holds for which value of $k$?
$k = 0$
$k = n$
$k = 1$
$k = n - 1$
Explanation. With $k = 0$ the left side is $\frac{n!}{n!} = 1$ and the right side is $\prod_{j=n+1}^{n} j$, with no factors: it equals $1$ only by the convention. With $k = n$ one needs $0! = 1$ instead.
Does the rule $\prod_{j=1}^{n} (c\,a_j) = c^n \prod_{j=1}^{n} a_j$ require any assumption on the constant $c \in \R$?
Yes: $c \neq 0$, to divide
Yes: $c$ integer, for $c^n$
No: it holds for every $c \in \R$
Yes: $c > 0$, for the power
Explanation. The proof only reorders the factors ($c$ appears $n$ times), so it holds for every real $c$: for instance with $c = -1$ we get $(-1)^n \prod_j a_j$, with $c = 0$ both sides are $0$.
What is $\prod_{j=1}^{3} j \cdot \prod_{j=1}^{3} \frac{1}{j}$?
$0$
$1$
$6$
$\frac16$
Explanation. The product of products is the product of the products: $\prod_{j=1}^{3} \big(j \cdot \frac1j\big) = \prod_{j=1}^{3} 1 = 1$; indeed $6 \cdot \frac16 = 1$.
What is the product $\prod_{j=2}^{4} \frac{j}{2}$?
$12$
$24$
$3$
$\frac92$
Explanation. $\frac22 \cdot \frac32 \cdot \frac42 = \frac{24}{8} = 3$: the $2$ in the denominator appears in all $3$ factors. $12 = \frac{24}{2}$ counts it once, $\frac92$ adds the factors.
Let $a_1, a_2, \dots$ be reals and $P_n = \prod_{j=1}^{n} a_j$. Which relation holds for every $n \ge 2$?
$P_n = P_{n-1} + a_n$
$P_n = (a_n)^n$
$P_{2n} = (P_n)^2$
$P_n = P_{n-1} \cdot a_n$
Explanation. By splitting, the last factor is isolated: $\prod_{j=1}^{n} a_j = \prod_{j=1}^{n-1} a_j \cdot a_n$. $P_{2n} = P_n^2$ would hold only if $a_{n+1}, \dots, a_{2n}$ repeated $a_1, \dots, a_n$.
The splitting $\prod_{j=1}^{n+m} a_j = \prod_{j=1}^{n} a_j \cdot \prod_{j=n+1}^{n+m} a_j$ groups the factors into two consecutive blocks. Which property of multiplication suffices?
Distributivity over addition
The existence of the inverses $\frac{1}{a_j}$
That all the $a_j$ are positive
Associativity
Explanation. The factors stay in the same order and only the brackets change: associativity suffices. No division is needed, hence no assumption on the $a_j$.
What is the scalar product $\boldsymbol p'\,\boldsymbol w$ of the column vectors $\boldsymbol p = (1,\, 4)'$ and $\boldsymbol w = (4,\, 1)'$ (the prime $'$ denotes the transpose)?
$10$
$8$
$(4,\, 4)'$
$17$
Explanation. $\boldsymbol p'\,\boldsymbol w = \sum_j p_j w_j = 1\cdot 4 + 4\cdot 1 = 8$: the result is a number, not a vector.
Which statement on the scalar product holds for every $\boldsymbol p, \boldsymbol w \in \R^n$?
$\boldsymbol p'\,\boldsymbol w = \boldsymbol w'\,\boldsymbol p$
$\boldsymbol p'\,\boldsymbol w \ge 0$
$\boldsymbol p'\,\boldsymbol p = 0$ also for some $\boldsymbol p \neq \boldsymbol 0$
$\boldsymbol p'(\lambda\boldsymbol w) = |\lambda|\, \boldsymbol p'\,\boldsymbol w$ for every $\lambda \in \R$
Explanation. The scalar product is symmetric. Only $\boldsymbol p'\,\boldsymbol p$ is always $\ge 0$, and it is $0$ only for $\boldsymbol p = \boldsymbol 0$; the scalar comes out with its sign.
The vectors $\boldsymbol v_1, \dots, \boldsymbol v_k \in \R^n$ are linearly independent if:
none of them is a multiple of another one
the trivial combination gives the zero vector
only the trivial combination gives the zero vector
none of them is the zero vector
Explanation. $\lambda_1\boldsymbol v_1 + \dots + \lambda_k\boldsymbol v_k = \boldsymbol 0 \Rightarrow \lambda_1 = \dots = \lambda_k = 0$. The trivial combination always gives $\boldsymbol 0$; with three or more vectors it is not enough that they are pairwise non-proportional.
are linearly independent if they are pairwise non-proportional
form a basis of $\R^3$ if they span $\R^3$
are always linearly dependent
are linearly independent if none of them is zero
Explanation. More than $n$ vectors of $\R^n$ are always linearly dependent. Hence they cannot form a basis: every basis of $\R^3$ has exactly $3$ vectors.
The vectors $\boldsymbol v_1, \dots, \boldsymbol v_k \in \R^n$ form a basis of $\R^n$ if:
they span $\R^n$, that is $\mathrm{span}(\boldsymbol v_1, \dots, \boldsymbol v_k) = \R^n$
they are linearly independent and none of them is the zero vector
they are $n$ vectors, pairwise distinct and with all entries nonzero
they are linearly independent and $\mathrm{span}(\boldsymbol v_1, \dots, \boldsymbol v_k) = \R^n$
Explanation. Both conditions are needed: linear independence and spanning the whole $\R^n$. For instance $\boldsymbol e_1$ alone is independent but does not span $\R^2$; $\boldsymbol e_1, \boldsymbol e_2, \boldsymbol e_1 + \boldsymbol e_2$ span $\R^2$ but are dependent; $(1,1)'$ and $(2,2)'$ are distinct, without zeros, but proportional.
How is $\boldsymbol x = (2,\, -5,\, 3)'$ written with respect to the canonical basis $\boldsymbol e_1, \boldsymbol e_2, \boldsymbol e_3$ of $\R^3$ ($\boldsymbol e_i$ has $1$ in position $i$ and $0$ elsewhere)?
Explanation. With respect to the canonical basis the coordinates are the entries: $\boldsymbol x = x_1\boldsymbol e_1 + x_2\boldsymbol e_2 + x_3\boldsymbol e_3$.
Let $k \ge 2$. Which characterization of the linear dependence of $\boldsymbol v_1, \dots, \boldsymbol v_k$ is correct?
they are linearly dependent if and only if two of them are proportional
they are linearly dependent if and only if one of them is the zero vector
they are linearly dependent if and only if at least one of them is a linear combination of the others
they are linearly dependent if and only if each of them is a linear combination of the others
Explanation. One vector $\boldsymbol v_j$ with $\lambda_j \neq 0$ in a zero combination is enough: $\boldsymbol v_j$ is obtained from the others. For instance $(1,0)', (0,1)', (1,1)'$ are dependent with no zero or proportional vectors.
Let $\boldsymbol v_1, \dots, \boldsymbol v_n$ be a basis of $\R^n$. Every $\boldsymbol x \in \R^n$ is written as $\boldsymbol x = \sum_{i=1}^{n} \lambda_i \boldsymbol v_i$ with unique coordinates $\lambda_i$. Which property of the basis is needed to prove uniqueness?
the fact that more than $n$ vectors of $\R^n$ are dependent
the fact that no $\boldsymbol v_i$ is the zero vector
the linear independence of $\boldsymbol v_1, \dots, \boldsymbol v_n$
the fact that $\boldsymbol v_1, \dots, \boldsymbol v_n$ span $\R^n$
Explanation. From $\sum_i \lambda_i\boldsymbol v_i = \sum_i \mu_i\boldsymbol v_i$ we get $\sum_i(\lambda_i - \mu_i)\boldsymbol v_i = \boldsymbol 0$, hence $\lambda_i = \mu_i$ by independence. Spanning is needed for existence, not for uniqueness.
How is it proved that the vectors $\boldsymbol v_1, \dots, \boldsymbol v_k \in \R^n$, among which there is the zero vector $\boldsymbol v_1 = \boldsymbol 0$, are linearly dependent?
use $\boldsymbol p'\,\boldsymbol p = 0 \Leftrightarrow \boldsymbol p = \boldsymbol 0$ with $\boldsymbol p = \boldsymbol v_1$
observe that more than $n$ vectors of $\R^n$ are always linearly dependent
observe that $\boldsymbol v_2, \dots, \boldsymbol v_k$ alone do not span $\R^n$
Explanation. The combination above is nontrivial ($\lambda_1 \neq 0$) and equals $\boldsymbol 0$, for any $k$ and $n$: this is the definition of linear dependence. The fact on more than $n$ vectors holds only for $k > n$.
What are the coordinates of $\boldsymbol x = (3,\, 1)'$ with respect to the basis $\boldsymbol v_1 = (1,\, 1)'$, $\boldsymbol v_2 = (1,\, -1)'$, that is the numbers $\lambda_1, \lambda_2$ with $\boldsymbol x = \lambda_1\boldsymbol v_1 + \lambda_2\boldsymbol v_2$?
Let $\boldsymbol a = (1,\, -2,\, 3)' \in \R^3$ be a column vector (the prime $'$ denotes the transpose). What is $(\boldsymbol a')'$?
the column vector $-\boldsymbol a$
the number $\boldsymbol a'\boldsymbol a = 14$
the column vector $\boldsymbol a$
the row vector $\boldsymbol a' = (1\;\; -2\;\; 3)$
Explanation. Transposing twice gives back the original vector: $\boldsymbol a'$ is a row vector ($1\times 3$) and its transpose is again the column $\boldsymbol a$ ($3\times 1$).
Given the column vectors $\boldsymbol p = (1,\, -2,\, 3)'$ and $\boldsymbol w = (2,\, 0,\, -1)'$ (the prime $'$ denotes the transpose), what is $\boldsymbol p - 2\boldsymbol w$?
$(5,\, -2,\, 1)'$
$(-3,\, -2,\, 1)'$
$(-1,\, -2,\, 4)'$
$(-3,\, -2,\, 5)'$
Explanation. Entry by entry: $(1 - 4,\, -2 - 0,\, 3 + 2)' = (-3,\, -2,\, 5)'$. $(5,\, -2,\, 1)'$ is $\boldsymbol p + 2\boldsymbol w$; $(-1,\, -2,\, 4)'$ is $\boldsymbol p - \boldsymbol w$.
Which property of the sum of vectors and of the scalar multiplication holds for every $\boldsymbol p, \boldsymbol w \in \R^n$ and $\lambda, \mu \in \R$?
$\lambda(\boldsymbol p + \boldsymbol w) = \lambda\boldsymbol p + \lambda\boldsymbol w$
$\lambda(\boldsymbol p + \boldsymbol w) = \lambda\boldsymbol p + \boldsymbol w$
$(\lambda\mu)\,\boldsymbol p = \lambda\boldsymbol p + \mu\boldsymbol p$
$\boldsymbol p + \boldsymbol w = \boldsymbol w - \boldsymbol p$
Explanation. The scalar distributes over both terms. It holds $(\lambda + \mu)\boldsymbol p = \lambda\boldsymbol p + \mu\boldsymbol p$ (with the sum, not the product, of the scalars) and the sum is commutative: $\boldsymbol p + \boldsymbol w = \boldsymbol w + \boldsymbol p$.
Which set of vectors of $\R^3$ is linearly independent?
$(1,0,0)'$, $(0,1,0)'$, $(1,1,0)'$
$(1,0,0)'$, $(1,1,0)'$
$(1,2,3)'$, $(0,0,0)'$
$(1,1,0)'$, $(2,2,0)'$
Explanation. $\lambda_1(1,0,0)' + \lambda_2(1,1,0)' = \boldsymbol 0$ gives $\lambda_2 = 0$ and then $\lambda_1 = 0$. The others contain the zero vector, two proportional vectors, or a vector that is the sum of the other two.
Let $\boldsymbol e_2 = (0, 1, 0)'$ be the second vector of the canonical basis of $\R^3$. What is the scalar product $\boldsymbol e_2'\boldsymbol p$ for $\boldsymbol p = (4, -1, 7)'$?
$10$
$-1$
$4$
$7$
Explanation. $\boldsymbol e_2'\boldsymbol p = 0 \cdot 4 + 1 \cdot (-1) + 0 \cdot 7 = -1$: the scalar product with $\boldsymbol e_j$ extracts component $j$, which is the coordinate with respect to the canonical basis.
What is the opposite of the vector $\boldsymbol p = (2, -1, 0)'$, i.e. the vector $\boldsymbol w$ with $\boldsymbol p + \boldsymbol w = \boldsymbol 0$?
$(-2,\, -1,\, 0)'$
$(0,\, 0,\, 0)'$
$(-2,\, 1,\, 0)'$
$(2,\, -1,\, 0)'$
Explanation. $\boldsymbol w = -\boldsymbol p = (-1)\,\boldsymbol p$ changes the sign of every component: $(2 - 2,\, -1 + 1,\, 0 + 0)' = \boldsymbol 0$. $(-2, -1, 0)'$ changes only the first one.
For scalars $\lambda, \mu \in \R$ and a vector $\boldsymbol p \in \R^n$, what does $\lambda\,(\mu\,\boldsymbol p)$ equal?
$\lambda\,\boldsymbol p + \mu\,\boldsymbol p$
$\lambda^{\mu}\,\boldsymbol p$
$(\lambda\mu)\,\boldsymbol p$
$(\lambda + \mu)\,\boldsymbol p$
Explanation. Multiplying by $\mu$ and then by $\lambda$ is the same as multiplying by the product $\lambda\mu$ (component by component). $(\lambda + \mu)\boldsymbol p = \lambda\boldsymbol p + \mu\boldsymbol p$ is another property.
The scalar product of $\boldsymbol p, \boldsymbol w \in \R^n$ is $\boldsymbol p'\boldsymbol w = \sum_j p_j w_j$. For $\boldsymbol p, \boldsymbol w, \boldsymbol u \in \R^n$, what does $\boldsymbol p'(\boldsymbol w + \boldsymbol u)$ equal?
$(\boldsymbol p + \boldsymbol w)'\,\boldsymbol u$
$\boldsymbol p'\boldsymbol w + \boldsymbol u$
$\boldsymbol p'\boldsymbol w + \boldsymbol p'\boldsymbol u$
Explanation. It is the distributivity of the scalar product: $\sum_j p_j (w_j + u_j) = \sum_j p_j w_j + \sum_j p_j u_j$. $\boldsymbol p'\boldsymbol w + \boldsymbol u$ adds a scalar and a vector.
The scalar product of $\boldsymbol p, \boldsymbol w \in \R^n$ is $\boldsymbol p'\boldsymbol w = \sum_j p_j w_j$. Knowing that $\boldsymbol p'\boldsymbol w = 3$, what is $(2\boldsymbol p)'(-\boldsymbol w)$?
$-3$
$5$
$-6$
$6$
Explanation. Scalars come out of the scalar product: $(2\boldsymbol p)'(-\boldsymbol w) = 2 \cdot (-1) \cdot \boldsymbol p'\boldsymbol w = -6$. $6$ forgets the sign, $5 = 2 + 3$ adds the constant.
Let $\boldsymbol A \in \R^{m\times n}$ and $\boldsymbol B \in \R^{n\times p}$. The product $\boldsymbol A\boldsymbol B$:
belongs to $\R^{m\times p}$
belongs to $\R^{n\times n}$
belongs to $\R^{p\times m}$
is defined only if $m = p$
Explanation. The number of columns of $\boldsymbol A$ must equal the number of rows of $\boldsymbol B$; the result has the rows of $\boldsymbol A$ and the columns of $\boldsymbol B$.
Which property of the matrix product always holds (with compatible dimensions)?
$\boldsymbol A\boldsymbol B = \boldsymbol 0$ implies $\boldsymbol A = \boldsymbol 0$ or $\boldsymbol B = \boldsymbol 0$
$(\boldsymbol A\boldsymbol B)\boldsymbol C = \boldsymbol A(\boldsymbol B\boldsymbol C)$
$\boldsymbol A\boldsymbol B = \boldsymbol B\boldsymbol A$
$(\boldsymbol A + \boldsymbol B)(\boldsymbol A + \boldsymbol B) = \boldsymbol A\boldsymbol A + 2\boldsymbol A\boldsymbol B + \boldsymbol B\boldsymbol B$
Explanation. The product is associative but not commutative; hence $(\boldsymbol A + \boldsymbol B)^2 = \boldsymbol A^2 + \boldsymbol A\boldsymbol B + \boldsymbol B\boldsymbol A + \boldsymbol B^2$. There are nonzero matrices with zero product, for instance $\begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}^2 = \boldsymbol 0$.
Let $\boldsymbol A, \boldsymbol B \in \R^{n\times n}$ and $\lambda \in \R$. Which equality is always true?
$\det(\boldsymbol A\boldsymbol B) = \det(\boldsymbol A)\det(\boldsymbol B)$
$\det(\boldsymbol A + \boldsymbol B) = \det(\boldsymbol A) + \det(\boldsymbol B)$
$\det(\lambda\boldsymbol A) = \lambda\det(\boldsymbol A)$
$\det(\boldsymbol A') = -\det(\boldsymbol A)$
Explanation. The determinant is multiplicative; moreover $\det(\lambda\boldsymbol A) = \lambda^n\det(\boldsymbol A)$ and $\det(\boldsymbol A') = \det(\boldsymbol A)$. It is not additive.
Let $\boldsymbol A \in \R^{n\times n}$ and let $\boldsymbol A_{ij}$ be the submatrix obtained by deleting row $i$ and column $j$. In the Laplace expansion, the cofactor $C_{ij}$ of the entry $a_{ij}$ is:
$C_{ij} = a_{ij}\det(\boldsymbol A_{ij})$
$C_{ij} = (-1)^{i+j}\det(\boldsymbol A_{ij})$
$C_{ij} = \det(\boldsymbol A_{ij})$
$C_{ij} = (-1)^{i\,j}\det(\boldsymbol A_{ij})$
Explanation. $\boldsymbol A_{ij}$ is the minor matrix obtained by deleting row $i$ and column $j$; the sign is $(-1)^{i+j}$ (checkerboard). Then $\det(\boldsymbol A) = \sum_j a_{ij}C_{ij}$.
$\mathrm{rank}(\boldsymbol A) \le \max\{m,n\}$ and it may exceed $\min\{m,n\}$
Explanation. The rank is the maximum number of linearly independent columns (or rows), hence it exceeds neither $n$ nor $m$; it can be smaller (e.g. the zero matrix has rank $0$).
Explanation. Symmetric means $q_{ij} = q_{ji}$ for all $i, j$, i.e. $\boldsymbol Q' = \boldsymbol Q$. Diagonal matrices are symmetric, but not conversely.
Let $\boldsymbol P_\pi$ be the permutation matrix obtained from $\boldsymbol I_3$ by putting its rows in the order $\pi = (3, 1, 2)$: first row $\pi(1)$, then $\pi(2)$, then $\pi(3)$. Let $\boldsymbol A \in \R^{3\times 2}$. Which is the first row of $\boldsymbol P_\pi\boldsymbol A$?
row $1$ of $\boldsymbol A$
row $2$ of $\boldsymbol A$
column $3$ of $\boldsymbol A$
row $3$ of $\boldsymbol A$
Explanation. Left multiplication by $\boldsymbol P_\pi$ reorders the rows of $\boldsymbol A$ according to $\pi$: row $\pi(1) = 3$ becomes the first one. Columns are reordered by right multiplication by $\boldsymbol P_\pi'$.
A symmetric matrix $\boldsymbol Q \in \R^{n\times n}$ is positive semidefinite if:
$\det(\boldsymbol Q) \ge 0$ and $q_{11} \ge 0$
$\boldsymbol x'\boldsymbol Q\,\boldsymbol x \ge 0$ for every $\boldsymbol x \in \R^n$
$\boldsymbol x'\boldsymbol Q\,\boldsymbol x > 0$ for every $\boldsymbol x \neq \boldsymbol 0$
all its entries are $\ge 0$
Explanation. It is the definition through the quadratic form; with $> 0$ for $\boldsymbol x \neq \boldsymbol 0$ we get positive definiteness. The sign of the entries or of the determinant alone is not enough.
Let $\boldsymbol A \in \R^{n\times n}$, $n \ge 2$. The Laplace expansion computes $\det(\boldsymbol A)$ as the sum of the entries of a line (row or column) times their cofactors. Which statement is correct?
it holds only for $3\times 3$ matrices: for $n \ge 4$ Gaussian elimination is needed
any row or any column can be used: the result is always $\det(\boldsymbol A)$
only the first row can be used: the other rows give different results
along a row it gives $\det(\boldsymbol A)$, along a column $-\det(\boldsymbol A)$
Explanation. The expansion holds for every square matrix and along any row or column: it is convenient to pick the one with most zeros.
Let $\boldsymbol A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \\ 5 & 6 \end{pmatrix}$ and let $\boldsymbol A'$ be its transpose. What is the entry in row $1$ and column $3$ of $\boldsymbol A'$?
$2$
$6$
$3$
$5$
Explanation. The transpose interchanges rows and columns: $[\boldsymbol A']_{13} = a_{31} = 5$. $\boldsymbol A'$ is $2\times 3$, with first row $(1\;\; 3\;\; 5)$.
Let $\boldsymbol A = \begin{pmatrix} 1 & -1 \\ 0 & 2 \end{pmatrix}$ and $\boldsymbol B = \begin{pmatrix} 3 & 1 \\ -2 & 1 \end{pmatrix}$. What is $2\boldsymbol A - \boldsymbol B$?
$\begin{pmatrix} 5 & -1 \\ -2 & 5 \end{pmatrix}$
$\begin{pmatrix} -4 & -4 \\ 4 & 2 \end{pmatrix}$
$\begin{pmatrix} -1 & -1 \\ 2 & 3 \end{pmatrix}$
$\begin{pmatrix} -1 & -3 \\ 2 & 3 \end{pmatrix}$
Explanation. Entry by entry: $2a_{ij} - b_{ij}$, for instance $2\cdot(-1) - 1 = -3$ and $2\cdot 0 - (-2) = 2$. $\begin{pmatrix} 5 & -1 \\ -2 & 5 \end{pmatrix}$ is $2\boldsymbol A + \boldsymbol B$, $\begin{pmatrix} -4 & -4 \\ 4 & 2 \end{pmatrix}$ is $2(\boldsymbol A - \boldsymbol B)$.
Which property of the sum of matrices and of the scalar multiplication is correct?
$\boldsymbol A + \boldsymbol B = \boldsymbol B + \boldsymbol A$ only if $\boldsymbol A, \boldsymbol B$ are square $n\times n$ matrices
$\boldsymbol A + \boldsymbol B$ is defined for every $\boldsymbol A \in \R^{m\times n}$ and $\boldsymbol B \in \R^{n\times m}$
$(\lambda + \mu)\boldsymbol A = \lambda\boldsymbol A + \mu$ for every $\lambda, \mu \in \R$ and $\boldsymbol A \in \R^{m\times n}$
$\lambda(\boldsymbol A + \boldsymbol B) = \lambda\boldsymbol A + \lambda\boldsymbol B$ for every $\lambda \in \R$ and $\boldsymbol A, \boldsymbol B \in \R^{m\times n}$
Explanation. The sum is done entry by entry, hence it requires the same dimensions and it is always commutative; the scalar distributes over the sum. The correct rule is $(\lambda + \mu)\boldsymbol A = \lambda\boldsymbol A + \mu\boldsymbol A$.
The entry $a_{ij}$ of a matrix lies in row $i$ and column $j$. For $\boldsymbol A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}$, what is $a_{23}$?
For $\boldsymbol A \in \R^{2 \times 3}$, $\boldsymbol B \in \R^{3 \times 4}$, $\boldsymbol C \in \R^{4 \times 2}$, which product is defined and what is its size?
$\boldsymbol A\boldsymbol B\boldsymbol C$, of size $2 \times 2$
$\boldsymbol C\boldsymbol B\boldsymbol A$, of size $4 \times 3$
$\boldsymbol B\boldsymbol A$, of size $3 \times 3$
$\boldsymbol A\boldsymbol C$, of size $2 \times 2$
Explanation. Columns of the first = rows of the second, along the chain.
An upper triangular $4 \times 4$ matrix has diagonal entries $1, -2, 3, 0$ and all entries above the diagonal nonzero. What is its determinant?
$0$
$-6$
$6$
$2$
Explanation. The determinant of a triangular matrix is the product of the diagonal entries: $1 \cdot (-2) \cdot 3 \cdot 0 = 0$, whatever the other entries are. $2$ adds the diagonal (it is the trace).
Row $i$ of a matrix $\boldsymbol A$ is denoted by $R_i(\boldsymbol A)$. For $\boldsymbol A = \begin{pmatrix} 2 & 0 & -1 \\ 5 & 3 & 4 \end{pmatrix}$, what is $R_2(\boldsymbol A)$?
$(0,\, 3)'$
$(2 \;\; 0 \;\; -1)$
$(-1,\, 4)'$
$(5 \;\; 3 \;\; 4)$
Explanation. The second row is $(5 \;\, 3 \;\, 4)$. $(0, 3)'$ is the second column $C_2(\boldsymbol A)$; $(2 \;\, 0 \;\, -1)$ is the first row.
$\boldsymbol A_{ij}$ is the complementary submatrix: $\boldsymbol A$ without row $i$ and column $j$. For $\boldsymbol A = \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix}$, for which pair $(i, j)$ do we have $\boldsymbol A_{ij} = (1 \;\; 3)$?
$(2, 3)$
$(2, 2)$
$(1, 2)$
$(2, 1)$
Explanation. To keep the entries $1$ and $3$ of the first row one must remove row $2$ and column $2$. $(1, 2)$ would leave $(4 \;\, 6)$.
What is the neutral element of matrix addition in $\R^{2\times 3}$, i.e. the matrix $\boldsymbol Z$ with $\boldsymbol A + \boldsymbol Z = \boldsymbol A$ for every $\boldsymbol A \in \R^{2\times 3}$?
The $3 \times 2$ zero matrix
The $2 \times 3$ zero matrix
The identity matrix $\boldsymbol I$
The $2 \times 3$ matrix of all ones
Explanation. Addition is entrywise, so a $2 \times 3$ matrix of zeros is needed. $\boldsymbol I$ is square and is the neutral element of the product, not of the sum.
For matrices $\boldsymbol A, \boldsymbol B, \boldsymbol C \in \R^{m\times n}$, which equality always holds?
$\boldsymbol A - (\boldsymbol B - \boldsymbol C) = (\boldsymbol A - \boldsymbol B) - \boldsymbol C$
$(\boldsymbol A + \boldsymbol B + \boldsymbol C)' = \boldsymbol A' + \boldsymbol B' - \boldsymbol C'$
$2(\boldsymbol A + \boldsymbol B + \boldsymbol C) = 2\boldsymbol A + \boldsymbol B + \boldsymbol C$
$(\boldsymbol A + \boldsymbol B) + \boldsymbol C = \boldsymbol A + (\boldsymbol B + \boldsymbol C)$
Explanation. Matrix addition is associative (as addition of numbers is, entry by entry). The difference is not associative (on the left $+\boldsymbol C$ appears), the transpose of the sum is the sum of the transposes, and the scalar multiplies all terms.
Let $\boldsymbol A = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}$ and $\boldsymbol B = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}$. Which statement about the products is true?
$\boldsymbol A\boldsymbol B = \boldsymbol 0$ but $\boldsymbol B\boldsymbol A \neq \boldsymbol 0$
$\boldsymbol A\boldsymbol B = \boldsymbol B\boldsymbol A$
$\boldsymbol A\boldsymbol B \neq \boldsymbol 0$ but $\boldsymbol B\boldsymbol A = \boldsymbol 0$
$\boldsymbol A\boldsymbol B = \boldsymbol B\boldsymbol A = \boldsymbol 0$
Explanation. $\boldsymbol A\boldsymbol B = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}$ and $\boldsymbol B\boldsymbol A = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}$: the matrix product is not commutative, and it can be zero with nonzero factors.
Let $\boldsymbol A \in \R^{m\times n}$ and let $\boldsymbol I_k$ be the $k \times k$ identity matrix. Which equality holds?
$\boldsymbol I_m\boldsymbol A = \boldsymbol A\,\boldsymbol I_n = \boldsymbol A'$
$\boldsymbol I_m\boldsymbol A = \boldsymbol A\,\boldsymbol I_n = \boldsymbol I$
$\boldsymbol I_m\boldsymbol A = \boldsymbol A\,\boldsymbol I_n = \boldsymbol A$
$\boldsymbol I_n\boldsymbol A = \boldsymbol A\,\boldsymbol I_m = \boldsymbol A$
Explanation. Multiplying on the left needs an identity with as many columns as $\boldsymbol A$ has rows ($m$), on the right one with as many rows as $\boldsymbol A$ has columns ($n$); the result is $\boldsymbol A$.
A permutation matrix is obtained by reordering the rows of $\boldsymbol I_n$. What is the determinant of the one obtained from $\boldsymbol I_n$ with a single swap of two rows?
$0$
$n$
$-1$
$1$
Explanation. $\det(\boldsymbol I_n) = 1$ and a row swap changes the sign of the determinant: $-1$. It is not $0$, since a permutation matrix is invertible ($\boldsymbol P^{-1} = \boldsymbol P'$).
Explanation. The first has the rows $\boldsymbol e_3', \boldsymbol e_1', \boldsymbol e_2'$ of the identity: a single $1$ in each row and column. The second repeats a row, the third has a $-1$, the fourth has a zero row.
With the Laplace expansion (the second column, which has two zeros, is convenient), what is $\det\begin{pmatrix} 3 & 0 & 1 \\ 2 & 0 & 5 \\ 4 & 7 & 6 \end{pmatrix}$?
$-91$
$91$
$13$
$0$
Explanation. Only the term $7 \cdot (-1)^{3+2} \det\begin{pmatrix} 3 & 1 \\ 2 & 5 \end{pmatrix} = -7 \cdot 13 = -91$ remains. $91$ forgets the sign $(-1)^{i+j}$; $0$ mistakes a column with two zeros for a zero column.
In the Laplace expansion the cofactor of entry $(i, j)$ is $C_{ij} = (-1)^{i+j} \det(\boldsymbol A_{ij})$. What is the sign factor $(-1)^{i+j}$ for the entry in position $(2, 3)$?
$1$
$6$
$5$
$-1$
Explanation. $(-1)^{2+3} = (-1)^5 = -1$: the signs alternate like a chessboard, with $+$ in position $(1, 1)$. $5$ is the exponent, not the sign.
The determinant of a triangular matrix is the product of the diagonal entries. For which $t$ does the matrix $\begin{pmatrix} 2 & 5 & 1 \\ 0 & t - 1 & 3 \\ 0 & 0 & 4 \end{pmatrix}$ have zero determinant?
$t = 3$
$t = 1$
$t = 0$
$t = -1$
Explanation. $\det = 2\,(t - 1) \cdot 4 = 8\,(t - 1)$, zero for $t = 1$. The entries above the diagonal ($5$, $1$, $3$) do not count.
Let $\boldsymbol A \in \R^{3\times 3}$ with $\det(\boldsymbol A) = -2$ and let $\boldsymbol A'$ be its transpose. What is $\det(\boldsymbol A')$?
$2$
$-\frac12$
$-8$
$-2$
Explanation. Transposition does not change the determinant: $\det(\boldsymbol A') = \det(\boldsymbol A) = -2$. $-\frac12$ is the determinant of the inverse, $-8 = (-2)^3$.
Let $\boldsymbol A, \boldsymbol B \in \R^{2\times 2}$ with $\det(\boldsymbol A) = 3$ and $\det(\boldsymbol B) = -2$. What is $\det(\boldsymbol A\boldsymbol B)$?
$1$
$6$
$-24$
$-6$
Explanation. The determinant is multiplicative: $\det(\boldsymbol A\boldsymbol B) = \det(\boldsymbol A)\det(\boldsymbol B) = -6$. $1 = 3 + (-2)$ treats it as additive.
Let $\boldsymbol A \in \R^{n\times n}$ and let $R_i$ be its row $i$. How does $\det(\boldsymbol A)$ change with the row swap $R_1 \leftrightarrow R_2$?
it does not change
it doubles
it becomes $0$
it changes sign
Explanation. Swapping two rows changes the sign of the determinant: $\det(\text{new}) = -\det(\boldsymbol A)$.
Let $\boldsymbol A \in \R^{n\times n}$ and let $R_i$ be its row $i$. How does $\det(\boldsymbol A)$ change with the operation $R_2 \leftarrow R_2 - 4R_1$ (from row $2$, $4$ times row $1$ is subtracted)?
it changes sign
it does not change
it is multiplied by $-4$
it is multiplied by $4$
Explanation. Adding to a row a multiple of another row does not change the determinant: it is the operation used in Gaussian elimination.
Let $\boldsymbol A \in \R^{n\times n}$. How does $\det(\boldsymbol A)$ change with the operation $R_i \leftarrow \lambda R_i$, which multiplies row $i$ by $\lambda \neq 0$?
it is multiplied by $1/\lambda$
it is multiplied by $\lambda$
it is multiplied by $\lambda^n$
it does not change
Explanation. Only one row is multiplied, so the determinant is multiplied by $\lambda$; $\lambda^n$ applies when the whole matrix is multiplied ($\lambda\boldsymbol A$).
The pivot of a nonzero row is its first nonzero entry. A matrix $\boldsymbol U \in \R^{m\times n}$ is in row echelon form if:
each row has only one nonzero entry, its pivot, and the zero rows are at the bottom
the zero rows are at the bottom and the pivot of each row is strictly to the right of the one of the row above
the zero rows are at the bottom and each row has at least one more zero entry than the row above
it is upper triangular and all its diagonal entries are nonzero
Explanation. These are the two conditions of the definition; it follows that below each pivot there are only zeros. A matrix in echelon form need not be square, and it may have zero rows.
In Gaussian elimination the pivot is $a_{kj}$ (row $k$, column $j$) and $R_i$ denotes row $i$. Which operation cancels the entry $a_{ij}$ of a row $i$ below the pivot?
Explanation. After the operation the entry in position $(i,j)$ is $a_{ij} - \frac{a_{ij}}{a_{kj}}a_{kj} = 0$. The last one multiplies row $i$ and would change the determinant.
Let $\boldsymbol U$ be the echelon form, with diagonal entries $u_{11}, \dots, u_{nn}$, obtained by Gaussian elimination on $\boldsymbol A \in \R^{n\times n}$ with $s$ row swaps and additions of multiples of rows (no row multiplied by a scalar). Which formula is correct?
$\det(\boldsymbol A) = (-1)^{s}\prod_{i=1}^{n} u_{ii}$
$\det(\boldsymbol A) = \prod_{i=1}^{n} u_{ii}$
$\det(\boldsymbol A) = (-1)^{n}\prod_{i=1}^{n} u_{ii}$
$\det(\boldsymbol A) = (-1)^{s}\sum_{i=1}^{n} u_{ii}$
Explanation. Row additions do not change the determinant, each swap changes the sign, and $\boldsymbol U$ is triangular. In particular $\det(\boldsymbol A) = 0$ if and only if $\boldsymbol U$ has a zero on its diagonal.
Gaussian elimination on $\boldsymbol A \in \R^{3\times 3}$ uses $2$ row swaps and additions of multiples of rows (no row multiplied by a scalar) and gives an echelon form with diagonal $1, -2, 3$. What is $\det(\boldsymbol A)$?
$0$
$-6$
$6$
$2$
Explanation. $\det(\boldsymbol A) = (-1)^{2}\cdot 1\cdot(-2)\cdot 3 = -6$: two swaps leave the sign unchanged.
Gaussian elimination on $\boldsymbol A \in \R^{n\times n}$ with partial pivoting: at step $k$, by a row swap, which entry of column $k$ is brought to position $(k,k)$?
the first nonzero entry among $a_{kk}, \dots, a_{nk}$
the nonzero entry of smallest absolute value among $a_{kk}, \dots, a_{nk}$
the entry of largest absolute value among $a_{kk}, a_{k+1,k}, \dots, a_{nk}$
the largest entry (with its sign) among $a_{kk}, \dots, a_{nk}$
Explanation. The pivot with largest absolute value is chosen: the multipliers have modulus $\le 1$ and round-off errors are reduced. The first nonzero one is plain pivoting.
Let $\boldsymbol A \in \R^{n\times n}$. Elementary column operations (swap, multiplication by $\lambda \neq 0$, addition of a multiple of another column) have the same effect on the determinant as the row operations. Which result guarantees it?
the Sarrus rule: its six products treat rows and columns in the same way
$\det(\boldsymbol A') = \det(\boldsymbol A)$: a column operation on $\boldsymbol A$ is a row operation on $\boldsymbol A'$
$\det(\lambda\boldsymbol A) = \lambda^n\det(\boldsymbol A)$: the $n$ columns contribute as the $n$ rows
$\det(\boldsymbol A^{-1}) = 1/\det(\boldsymbol A)$: a column operation on $\boldsymbol A$ is a row operation on $\boldsymbol A^{-1}$
Explanation. The transpose interchanges rows and columns without changing the determinant: operating on the columns of $\boldsymbol A$ is operating on the rows of $\boldsymbol A'$. Sarrus holds only for $n = 3$.
Gaussian elimination on $\boldsymbol A \in \R^{n\times n}$, with $s$ row swaps and additions of multiples of rows, gives the echelon form $\boldsymbol U$ (diagonal entries $u_{ii}$). Which results are needed to prove $\det(\boldsymbol A) = (-1)^{s}\prod_{i} u_{ii}$?
effect of swaps and of adding row multiples; $\det$ of a triangular matrix
effect of multiplying a row by $\lambda$; $\det(\lambda\boldsymbol A) = \lambda^n\det(\boldsymbol A)$; Laplace expansion
effect on the determinant of the row swap; $\det(\boldsymbol A') = \det(\boldsymbol A)$; Sarrus rule
Explanation. Each swap changes the sign ($s$ times), adding a multiple of another row does not change the determinant, and $\boldsymbol U$ is upper triangular, hence $\det(\boldsymbol U) = \prod_i u_{ii}$.
$R_i \leftarrow \lambda R_i$ with $\lambda \neq 0$
$R_i \leftarrow \lambda R_i$ with any $\lambda \in \R$
$R_i \leftarrow R_i + \lambda R_i$ with $\lambda = -1$
Explanation. The scalar must be nonzero: with $\lambda = 0$ (or $R_i \leftarrow R_i - R_i$) the row vanishes and the operation is not invertible. Row addition uses another row $R_k$, with $k \neq i$.
Let $R_i$ be row $i$. Applying the operation $R_2 \leftarrow R_2 + 2R_1$ to the matrix $\boldsymbol A = \begin{pmatrix} 1 & 3 \\ -2 & 1 \end{pmatrix}$ gives:
Gaussian elimination on $\boldsymbol A \in \R^{n\times n}$ (row swaps and additions of multiples of rows) produces an echelon form $\boldsymbol U$ with a zero diagonal entry. What can be concluded?
$\det(\boldsymbol A) < 0$
$\det(\boldsymbol A) = 1$
Nothing about $\det(\boldsymbol A)$
$\det(\boldsymbol A) = 0$
Explanation. $\det(\boldsymbol A) = \pm \prod_i u_{ii}$ (sign $(-1)^s$, with $s$ swaps), and the product contains a zero factor: $\boldsymbol A$ is singular.
The elementary row operations are swapping two rows, multiplying a row by a scalar and adding to a row a multiple of another one. Which operation is not allowed?
Swapping two rows
Adding to a row $3$ times another one
Multiplying a row by $-2$
Multiplying a row by $0$
Explanation. The scalar must be nonzero, otherwise the operation is not invertible (the information of the row is lost and the determinant becomes $0$). The others are elementary operations.
With partial pivoting the pivot row is the one with the entry of largest absolute value in the column, from the row of the step downwards. At the second step on $\begin{pmatrix} 4 & 1 & 2 \\ 0 & 1 & 3 \\ 0 & -5 & 1 \end{pmatrix}$, which row becomes the pivot row?
The third
The second
The first
None
Explanation. In column $2$, from rows $2$ and $3$, the candidates are $1$ and $-5$: $|-5| > |1|$, so rows $2$ and $3$ are swapped. The first row no longer takes part.
In row elimination on $\boldsymbol A \in \R^{n\times n}$, at step $k$ the pivot $a_{kk}$ is zero. Which row can row $k$ be swapped with?
With a row $i < k$ with $a_{ik} \neq 0$
With a row $i > k$ with $a_{ki} \neq 0$
With any row $i > k$
With a row $i > k$ with $a_{ik} \neq 0$
Explanation. A nonzero entry is needed in column $k$, below the pivot: the rows above already have their pivots, and a row with $a_{ik} = 0$ does not solve the problem.
After the first step of Gaussian elimination on a $3 \times 3$ matrix one has $\begin{pmatrix} 1 & 2 & 3 \\ 0 & 0 & 4 \\ 0 & 5 & 6 \end{pmatrix}$ ($R_i$: row $i$). What is done at the second step?
One concludes that the matrix is singular
Rows $R_1$ and $R_2$ are swapped
$R_3$ is replaced by $R_3 - R_2$
Rows $R_2$ and $R_3$ are swapped
Explanation. The pivot $a_{22}$ is zero but $a_{32} = 5 \neq 0$: the swap $R_2 \leftrightarrow R_3$ already gives a triangular matrix. The matrix is not singular (its determinant is $-20$).
If $\boldsymbol A, \boldsymbol B \in \R^{n\times n}$ are invertible, what is $(\boldsymbol A\boldsymbol B)^{-1}$?
$(\boldsymbol B\boldsymbol A)'$
$\boldsymbol B^{-1}\boldsymbol A^{-1}$
$\boldsymbol A^{-1}\boldsymbol B^{-1}$
$\boldsymbol A^{-1} + \boldsymbol B^{-1}$
Explanation. The order is reversed: $(\boldsymbol A\boldsymbol B)(\boldsymbol B^{-1}\boldsymbol A^{-1}) = \boldsymbol A\boldsymbol I\boldsymbol A^{-1} = \boldsymbol I$. Since the product is not commutative, in general $(\boldsymbol A\boldsymbol B)^{-1} \neq \boldsymbol A^{-1}\boldsymbol B^{-1}$.
If $\boldsymbol A$ is invertible, what is $(\boldsymbol A')^{-1}$?
$-(\boldsymbol A^{-1})'$
$\boldsymbol A$
$(\boldsymbol A^{-1})'$
$\boldsymbol A^{-1}$
Explanation. Inverse and transpose commute: $\boldsymbol A'(\boldsymbol A^{-1})' = (\boldsymbol A^{-1}\boldsymbol A)' = \boldsymbol I' = \boldsymbol I$. $\boldsymbol A^{-1}$ is right only if $\boldsymbol A$ is symmetric.
What is the inverse of $\boldsymbol A = \begin{pmatrix} 2 & 1 \\ 1 & 1 \end{pmatrix}$?
$\begin{pmatrix} 1 & -1 \\ -1 & 2 \end{pmatrix}$
$\begin{pmatrix} 2 & -1 \\ -1 & 1 \end{pmatrix}$
$\begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix}$
$\begin{pmatrix} -1 & 1 \\ 1 & -2 \end{pmatrix}$
Explanation. $\det(\boldsymbol A) = 1$: swap the diagonal entries, change the sign of the off-diagonal ones and divide by $1$. Check: $\boldsymbol A\boldsymbol A^{-1} = \boldsymbol I$.
Let $\boldsymbol A \in \R^{n\times n}$ and let $\boldsymbol C$ be the cofactor matrix, with $C_{ij} = (-1)^{i+j}\det(\boldsymbol A_{ij})$, where $\boldsymbol A_{ij}$ is obtained by deleting row $i$ and column $j$. The adjugate matrix $\mathrm{adj}(\boldsymbol A)$ is:
$\frac{1}{\det(\boldsymbol A)}\boldsymbol C$
$\boldsymbol A'$
$\boldsymbol C'$
$\boldsymbol C$
Explanation. The adjugate is the transpose of the cofactor matrix: $(\mathrm{adj}(\boldsymbol A))_{ij} = C_{ji}$. Dividing it by $\det(\boldsymbol A)$ gives $\boldsymbol A^{-1}$.
Let $\boldsymbol A \in \R^{n\times n}$, $n \ge 2$, and let $\mathrm{adj}(\boldsymbol A)$ be its adjugate matrix (the transpose of the cofactor matrix). Which equality always holds?
$\boldsymbol A\,\mathrm{adj}(\boldsymbol A) = \det(\boldsymbol A)\,\boldsymbol I$
$\boldsymbol A\,\mathrm{adj}(\boldsymbol A) = \boldsymbol I$
$\mathrm{adj}(\boldsymbol A)\,\boldsymbol A = \det(\boldsymbol A)\,\boldsymbol A$
$\boldsymbol A\,\mathrm{adj}(\boldsymbol A) = \det(\boldsymbol A)\,\boldsymbol A'$
Explanation. It is the adjugate formula, valid also when $\det(\boldsymbol A) = 0$; if $\det(\boldsymbol A) \neq 0$ it gives $\boldsymbol A^{-1} = \frac{1}{\det(\boldsymbol A)}\mathrm{adj}(\boldsymbol A)$.
In the Gauss–Jordan method one starts from $(\boldsymbol A \mid \boldsymbol I)$ and, with elementary row operations, reaches $(\boldsymbol I \mid \boldsymbol B)$. Then:
$\boldsymbol B = \det(\boldsymbol A)\,\boldsymbol A^{-1}$
$\boldsymbol B = \boldsymbol A$
$\boldsymbol B = \boldsymbol A^{-1}$
$\boldsymbol B = \boldsymbol A'$
Explanation. The operations transforming $\boldsymbol A$ into $\boldsymbol I$, applied to $\boldsymbol I$, produce $\boldsymbol A^{-1}$.
Let $\boldsymbol A \in \R^{n\times n}$. While applying the Gauss–Jordan method to $(\boldsymbol A \mid \boldsymbol I)$ a zero row appears in the left block. What can be concluded?
$\boldsymbol A$ is invertible, but a column swap is needed
$\boldsymbol A$ is invertible only if the right block has the same zero row
$\boldsymbol A$ is singular: $\det(\boldsymbol A) = 0$ and $\boldsymbol A^{-1}$ does not exist
$\boldsymbol A^{-1}$ exists and has a zero row in the same position
Explanation. Elementary operations do not change whether the determinant vanishes: a zero row in the left block means zero determinant, and the method stops.
Which characterization of invertible matrices $\boldsymbol A \in \R^{n\times n}$ is correct?
$\boldsymbol A$ is invertible if and only if it is symmetric
$\boldsymbol A$ is invertible if and only if all its entries are nonzero
$\boldsymbol A$ is invertible if and only if $\det(\boldsymbol A) \neq 0$
$\boldsymbol A$ is invertible if and only if $\det(\boldsymbol A) = 1$
Explanation. If $\det(\boldsymbol A) \neq 0$ the inverse is $\frac{1}{\det(\boldsymbol A)}\mathrm{adj}(\boldsymbol A)$; if $\boldsymbol A$ is invertible, $\det(\boldsymbol A)\det(\boldsymbol A^{-1}) = 1$ forces $\det(\boldsymbol A) \neq 0$.
Let $\boldsymbol A, \boldsymbol B, \boldsymbol C \in \R^{n\times n}$ with $\boldsymbol B\boldsymbol A = \boldsymbol I$ and $\boldsymbol A\boldsymbol C = \boldsymbol I$. Which property is needed to prove that $\boldsymbol B = \boldsymbol C$ (uniqueness of the inverse)?
the associativity of the matrix product
the commutativity of the matrix product
the rule $\det(\boldsymbol A\boldsymbol B) = \det(\boldsymbol A)\det(\boldsymbol B)$
the distributivity of the product over the sum
Explanation. $\boldsymbol B = \boldsymbol B\boldsymbol I = \boldsymbol B(\boldsymbol A\boldsymbol C) = (\boldsymbol B\boldsymbol A)\boldsymbol C = \boldsymbol I\boldsymbol C = \boldsymbol C$. The matrix product is not commutative, and determinants only give $\det(\boldsymbol B) = \det(\boldsymbol C)$.
Let $\boldsymbol A, \boldsymbol B \in \R^{n\times n}$ be invertible. Which results are needed to prove that $(\boldsymbol A\boldsymbol B)^{-1} = \boldsymbol B^{-1}\boldsymbol A^{-1}$?
the associativity of the product and the uniqueness of the inverse
the commutativity of the product and the uniqueness of the inverse
the rule $\det(\boldsymbol A\boldsymbol B) = \det(\boldsymbol A)\det(\boldsymbol B)$ and Cramer's rule
the rule $(\boldsymbol C\boldsymbol D)' = \boldsymbol D'\boldsymbol C'$ and the associativity of the product
Explanation. $(\boldsymbol A\boldsymbol B)(\boldsymbol B^{-1}\boldsymbol A^{-1}) = \boldsymbol A(\boldsymbol B\boldsymbol B^{-1})\boldsymbol A^{-1} = \boldsymbol I$ and similarly in the other order; by uniqueness $\boldsymbol B^{-1}\boldsymbol A^{-1}$ is the inverse of $\boldsymbol A\boldsymbol B$. Without commutativity the order of the factors is reversed.
Let $\boldsymbol A \in \R^{n\times n}$ be invertible and let $'$ denote the transpose. Which results are needed to prove that $(\boldsymbol A')^{-1} = (\boldsymbol A^{-1})'$?
$(\boldsymbol C\boldsymbol D)' = \boldsymbol D'\boldsymbol C'$, $\boldsymbol I' = \boldsymbol I$ and the uniqueness of the inverse
$(\boldsymbol C\boldsymbol D)' = \boldsymbol C'\boldsymbol D'$, $\boldsymbol I' = \boldsymbol I$ and the uniqueness of the inverse
the symmetry of $\boldsymbol A$, $\boldsymbol I' = \boldsymbol I$ and the uniqueness of the inverse
Explanation. $\boldsymbol A'(\boldsymbol A^{-1})' = (\boldsymbol A^{-1}\boldsymbol A)' = \boldsymbol I' = \boldsymbol I$, and similarly in the other order: by uniqueness $(\boldsymbol A^{-1})'$ is the inverse of $\boldsymbol A'$. The transpose of a product reverses the order of the factors; $\boldsymbol A$ need not be symmetric.
Let $\boldsymbol C$ be the cofactor matrix of $\boldsymbol A \in \R^{n\times n}$, so $\mathrm{adj}(\boldsymbol A) = \boldsymbol C'$ and entry $(i,j)$ of $\boldsymbol A\,\mathrm{adj}(\boldsymbol A)$ is $\sum_k a_{ik}C_{jk}$. Why is this entry zero for $i \neq j$?
it is the scalar product of two distinct rows of $\boldsymbol A$, zero if $\boldsymbol A$ is symmetric
it follows from $\det(\boldsymbol A\boldsymbol B) = \det(\boldsymbol A)\det(\boldsymbol B)$ with $\boldsymbol B = \mathrm{adj}(\boldsymbol A)$
it is the Laplace expansion of a matrix with two equal rows
the cofactors $C_{jk}$ with $j \neq i$ are zero for every $k$
Explanation. $\sum_k a_{ik}C_{jk}$ is the expansion along row $j$ of the matrix obtained from $\boldsymbol A$ by putting row $i$ in place of row $j$: it has two equal rows, hence determinant $0$. For $i = j$ it is the expansion of $\det(\boldsymbol A)$.
Which statement about the inverse of a square matrix is correct?
It equals the transpose
If it exists, it is unique
Two different inverses can exist
It always exists
Explanation. If $\boldsymbol B$ and $\boldsymbol C$ are inverses, $\boldsymbol B = \boldsymbol B(\boldsymbol A\boldsymbol C) = (\boldsymbol B\boldsymbol A)\boldsymbol C = \boldsymbol C$.
In the proof of uniqueness of the inverse, from $\boldsymbol A\boldsymbol B = \boldsymbol I$ and $\boldsymbol C\boldsymbol A = \boldsymbol I$ one concludes $\boldsymbol B = \boldsymbol C$. Which property of the product is used?
Distributivity over addition
That $\boldsymbol A$ is a symmetric matrix
Associativity: $\boldsymbol C(\boldsymbol A\boldsymbol B) = (\boldsymbol C\boldsymbol A)\boldsymbol B$
Commutativity: $\boldsymbol A\boldsymbol B = \boldsymbol B\boldsymbol A$
Explanation. $\boldsymbol C = \boldsymbol C\boldsymbol I = \boldsymbol C(\boldsymbol A\boldsymbol B) = (\boldsymbol C\boldsymbol A)\boldsymbol B = \boldsymbol B$.
With the Gauss–Jordan method $(\boldsymbol A \mid \boldsymbol I)$ is transformed into $(\boldsymbol I \mid \boldsymbol A^{-1})$. For $\boldsymbol A = \begin{pmatrix} 2 & 0 \\ 0 & 4 \end{pmatrix}$, what appears at the end in the right block?
$\mathrm{diag}(-2,\, -4)$
$\mathrm{diag}(\frac14,\, \frac12)$
$\mathrm{diag}(\frac12,\, \frac14)$
$\mathrm{diag}(2,\, 4)$
Explanation. It suffices to divide the first row by $2$ and the second by $4$: the right block becomes $\mathrm{diag}(\frac12, \frac14) = \boldsymbol A^{-1}$. The inverses do not swap places.
In the Gauss–Jordan method for the inverse one works on the matrix $(\boldsymbol A \mid \boldsymbol I)$. Which operations are allowed?
Elementary row operations, on both blocks
Elementary row operations, on the block $\boldsymbol A$ only
Column operations, on the block $\boldsymbol I$ only
Any operation that leaves the determinant unchanged
Explanation. Each row operation must be applied to the whole row of $(\boldsymbol A \mid \boldsymbol I)$: it is like multiplying both blocks on the left by the same elementary matrix, and at the end the right block is $\boldsymbol A^{-1}$.
Let $\boldsymbol A \in \R^{n\times n}$. In the factorization $\boldsymbol P\boldsymbol A = \boldsymbol L\boldsymbol U$ computed by Gaussian elimination, which matrices are $\boldsymbol P$, $\boldsymbol L$ and $\boldsymbol U$?
$\boldsymbol P = \boldsymbol I$ always, $\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular
$\boldsymbol P$ a permutation matrix, $\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular
$\boldsymbol P$ a permutation matrix, $\boldsymbol L$ lower triangular, $\boldsymbol U$ upper triangular with ones on the diagonal
$\boldsymbol P$ diagonal, $\boldsymbol L$ upper triangular with ones on the diagonal, $\boldsymbol U$ lower triangular
Explanation. $\boldsymbol P$ records the row swaps (it is $\boldsymbol I$ only if no swap is needed), $\boldsymbol L$ stores the multipliers below a diagonal of ones, $\boldsymbol U$ is the echelon form, upper triangular.
$\boldsymbol A = \boldsymbol L\boldsymbol U$ is computed by Gaussian elimination; $R_i$ denotes row $i$. Where does the multiplier $\ell_{ij}$ of the step $R_i \leftarrow R_i - \ell_{ij}R_j$ ($i > j$), which cancels position $(i,j)$, go?
in position $(i,j)$ of $\boldsymbol L$, with the opposite sign
on the diagonal of $\boldsymbol L$
in position $(i,j)$ of $\boldsymbol L$
in position $(j,i)$ of $\boldsymbol U$
Explanation. $\boldsymbol L$ stores the multipliers as they appear in the operation $R_i \leftarrow R_i - \ell_{ij}R_j$; the diagonal of $\boldsymbol L$ is made of ones.
Let $\boldsymbol A \in \R^{n\times n}$ be nonsingular and let $\boldsymbol A_{[k]}$ be the submatrix formed by its first $k$ rows and columns. When does $\boldsymbol A$ admit $\boldsymbol A = \boldsymbol L\boldsymbol U$ ($\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular)?
if and only if $\det(\boldsymbol A_{[k]}) \neq 0$ for every $k \in \{1, \dots, n\}$
always, because $\det(\boldsymbol A) \neq 0$
if and only if $\boldsymbol A$ is symmetric
if and only if all diagonal entries of $\boldsymbol A$ are nonzero
Explanation. All leading principal minors must be nonzero: then the pivots $u_{kk} = \det(\boldsymbol A_{[k]})/\det(\boldsymbol A_{[k-1]})$ are nonzero. For instance $\begin{pmatrix} 0 & 1 \\ 1 & 1 \end{pmatrix}$ is nonsingular but needs a swap.
Does the matrix $\boldsymbol A = \begin{pmatrix} 0 & 1 \\ 1 & 1 \end{pmatrix}$ admit a factorization $\boldsymbol A = \boldsymbol L\boldsymbol U$ without row swaps ($\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular)?
no: the pivot $a_{11}$ is zero
yes, because $\det(\boldsymbol A) = -1 \neq 0$
yes, with $\boldsymbol L = \boldsymbol I$ and $\boldsymbol U = \boldsymbol A$
no, because $\boldsymbol A$ is singular
Explanation. The first leading minor is $\det(\boldsymbol A_{[1]}) = 0$; swapping the rows gives $\boldsymbol P\boldsymbol A = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$, already upper triangular. $\boldsymbol A$ is not upper triangular, so $\boldsymbol U = \boldsymbol A$ does not work.
For $\boldsymbol A \in \R^{3\times 3}$ the leading principal minors ($\boldsymbol A_{[k]}$: first $k$ rows and columns) are $\det(\boldsymbol A_{[1]}) = 2$, $\det(\boldsymbol A_{[2]}) = -16$, $\det(\boldsymbol A) = -16$. What are the pivots $u_{11}, u_{22}, u_{33}$ of the factorization $\boldsymbol A = \boldsymbol L\boldsymbol U$ without swaps?
Let $\boldsymbol P\boldsymbol A = \boldsymbol L\boldsymbol U$ be a PLU factorization of $\boldsymbol A \in \R^{n\times n}$, with $\boldsymbol P$ obtained from $\boldsymbol I_n$ with $s$ row swaps and $u_{ii}$, $\ell_{ii}$ the diagonal entries of $\boldsymbol U$ and $\boldsymbol L$. Which formula is correct?
$\det(\boldsymbol A) = (-1)^{s}\prod_{i=1}^{n} \ell_{ii}$
$\det(\boldsymbol A) = (-1)^{n}\prod_{i=1}^{n} u_{ii}$
$\det(\boldsymbol A) = (-1)^{s}\prod_{i=1}^{n} u_{ii}$
$\det(\boldsymbol A) = \prod_{i=1}^{n} u_{ii}$, whatever $s$ is
Explanation. $\det(\boldsymbol P) = (-1)^s$, $\det(\boldsymbol L) = 1$, $\det(\boldsymbol U) = \prod_i u_{ii}$; hence $(-1)^s\det(\boldsymbol A) = \prod_i u_{ii}$. The product of the $\ell_{ii}$ is always $1$.
$\boldsymbol P\boldsymbol A = \boldsymbol L\boldsymbol U$ is computed by Gaussian elimination and at step $j$ rows $i$ and $k$ are swapped. What happens to the multipliers already stored in $\boldsymbol L$?
those of rows $i$ and $k$ change sign, because the swap changes the sign of the determinant
those of rows $i$ and $k$ (columns $1, \dots, j-1$) are swapped, and so are rows $i$ and $k$ of $\boldsymbol P$
columns $i$ and $k$ of $\boldsymbol L$ are swapped, and so are columns $i$ and $k$ of $\boldsymbol P$
they stay where they are: the swap is applied only to the rows of $\boldsymbol U$ and $\boldsymbol P$
Explanation. Without swapping the multipliers one gets a matrix $\widetilde{\boldsymbol L}$ with $\widetilde{\boldsymbol L}\boldsymbol U \neq \boldsymbol P\boldsymbol A$: it is the mistake pointed out in the notes.
Let $\boldsymbol P\boldsymbol A = \boldsymbol L\boldsymbol U$, with $\boldsymbol P$ obtained from $\boldsymbol I_n$ with $s$ row swaps and $u_{ii}$ the diagonal entries of $\boldsymbol U$. Which results are needed to prove that $\det(\boldsymbol A) = (-1)^s\prod_i u_{ii}$?
Sylvester's criterion on the leading principal minors of $\boldsymbol A$ and $\det(\boldsymbol L) = 1$
$\det(\boldsymbol P + \boldsymbol A) = \det(\boldsymbol P) + \det(\boldsymbol A)$ and the determinant of triangular matrices
the product rule $\det(\boldsymbol P\boldsymbol A) = \det(\boldsymbol P)\det(\boldsymbol A)$, $\det(\boldsymbol P) = (-1)^s$ and the determinant of triangular matrices
$\det(\boldsymbol A') = \det(\boldsymbol A)$, $\det(\boldsymbol P) = (-1)^s$ and the Laplace expansion along the first column of $\boldsymbol A$
Explanation. $\det(\boldsymbol P)\det(\boldsymbol A) = \det(\boldsymbol L)\det(\boldsymbol U)$ with $\det(\boldsymbol P) = (-1)^s$, $\det(\boldsymbol L) = 1$ and $\det(\boldsymbol U) = \prod_i u_{ii}$ (triangular matrices); then multiply by $(-1)^s$. The determinant is not additive.
Let $\boldsymbol A \in \R^{n\times n}$ have all leading principal minors $\det(\boldsymbol A_{[k]})$ nonzero ($\boldsymbol A_{[k]}$: first $k$ rows and columns). Which fact is essential to prove that Gaussian elimination needs no row swap?
$\boldsymbol A$ is symmetric, hence the pivots of the elimination coincide with the eigenvalues
the formula $\det(\lambda\boldsymbol A) = \lambda^n\det(\boldsymbol A)$ applied to each submatrix $\boldsymbol A_{[k]}$
the operations $R_i \leftarrow R_i - \ell_{ij}R_j$ with $j < i$ do not change the minors $\det(\boldsymbol A_{[k]})$
row swaps do not change the minors $\det(\boldsymbol A_{[k]})$, hence they can always be avoided
Explanation. Those operations do not change the leading minors; after $k-1$ steps the leading submatrix of order $k$ is triangular, hence $\det(\boldsymbol A_{[k]}) = u_{11}\cdots u_{kk}$ and the pivot $u_{kk} = \det(\boldsymbol A_{[k]})/\det(\boldsymbol A_{[k-1]})$ is nonzero. A swap, instead, may change the leading minors.
Given the factorization $\boldsymbol A = \boldsymbol L\boldsymbol U$ ($\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular nonsingular), how is $\boldsymbol A\boldsymbol x = \boldsymbol b$ solved?
compute $\boldsymbol L^{-1}$ and $\boldsymbol U^{-1}$ by Gauss–Jordan, then $\boldsymbol x = \boldsymbol L^{-1}\boldsymbol U^{-1}\boldsymbol b$
$\boldsymbol L\boldsymbol y = \boldsymbol b$ by forward substitution, then $\boldsymbol U\boldsymbol x = \boldsymbol y$ by backward substitution
$\boldsymbol U\boldsymbol y = \boldsymbol b$ by forward substitution, then $\boldsymbol L\boldsymbol x = \boldsymbol y$ by backward substitution
$\boldsymbol L\boldsymbol y = \boldsymbol b$ by backward substitution, then $\boldsymbol U\boldsymbol x = \boldsymbol y$ by forward substitution
Explanation. $\boldsymbol A\boldsymbol x = \boldsymbol L(\boldsymbol U\boldsymbol x) = \boldsymbol b$: setting $\boldsymbol y = \boldsymbol U\boldsymbol x$, first solve the lower triangular system $\boldsymbol L\boldsymbol y = \boldsymbol b$ (forward), then the upper triangular system $\boldsymbol U\boldsymbol x = \boldsymbol y$ (backward). The inverse of $\boldsymbol L\boldsymbol U$ would be $\boldsymbol U^{-1}\boldsymbol L^{-1}$.
Let $\boldsymbol A = \boldsymbol L\boldsymbol U$ with $\boldsymbol L = \begin{pmatrix} 1 & 0 \\ 2 & 1 \end{pmatrix}$ and $\boldsymbol U = \begin{pmatrix} 3 & 1 \\ 0 & 4 \end{pmatrix}$. What is $\det(\boldsymbol A)$?
$7$
$24$
$-12$
$12$
Explanation. $\det(\boldsymbol A) = \det(\boldsymbol L)\det(\boldsymbol U) = 1\cdot(3\cdot 4) = 12$: $\boldsymbol L$ has ones on the diagonal and no swap changes the sign. $7$ is the trace of $\boldsymbol U$.
The factorization $\boldsymbol A = \boldsymbol L\boldsymbol U$ of $\boldsymbol A = \begin{pmatrix} 2 & 1 \\ 6 & 5 \end{pmatrix}$ is computed by Gaussian elimination without swaps ($\boldsymbol L$ lower triangular with ones on the diagonal). What are $\boldsymbol L$ and $\boldsymbol U$?
Explanation. The step $R_2 \leftarrow R_2 - 3R_1$ has multiplier $\ell_{21} = 6/2 = 3$, which goes in position $(2,1)$ of $\boldsymbol L$ with its sign, and gives $u_{22} = 5 - 3\cdot 1 = 2$. Check: $\boldsymbol L\boldsymbol U = \boldsymbol A$.
From $\boldsymbol P\boldsymbol A = \boldsymbol L\boldsymbol U$ with unit-diagonal $\boldsymbol L$, $\boldsymbol U$ with diagonal $(2, -1, 3)$ and $\boldsymbol P$ obtained with one row swap, what is $\det(\boldsymbol A)$?
A scalar $\lambda$ is an eigenvalue of $\boldsymbol Q \in \R^{n\times n}$ if:
there exists $\boldsymbol v \in \R^n$ with $\boldsymbol Q\boldsymbol v = \lambda\boldsymbol v$
$\boldsymbol Q\boldsymbol v = \lambda\boldsymbol v$ for every $\boldsymbol v \in \R^n$
$\lambda$ equals $\det(\boldsymbol Q)$
there exists $\boldsymbol v \neq \boldsymbol 0$ with $\boldsymbol Q\boldsymbol v = \lambda\boldsymbol v$
Explanation. A nonzero vector is required: $\boldsymbol Q\boldsymbol 0 = \lambda\boldsymbol 0$ holds for every $\lambda$. The condition is equivalent to $\det(\boldsymbol Q - \lambda\boldsymbol I) = 0$.
What is the characteristic equation of $\boldsymbol Q \in \R^{n\times n}$?
$\det(\boldsymbol Q - \lambda\boldsymbol I) = 0$
$\det(\boldsymbol Q) - \lambda = 0$
$\boldsymbol Q - \lambda\boldsymbol I = \boldsymbol 0$
$\operatorname{tr}(\boldsymbol Q) - \lambda = 0$
Explanation. $\lambda$ is an eigenvalue if and only if $(\boldsymbol Q - \lambda\boldsymbol I)\boldsymbol v = \boldsymbol 0$ has nonzero solutions, i.e. if and only if $\det(\boldsymbol Q - \lambda\boldsymbol I) = 0$: a polynomial of degree $n$ in $\lambda$.
What are the eigenvalues of $\boldsymbol U = \begin{pmatrix} 2 & 1 & 3 \\ 0 & -1 & 4 \\ 0 & 0 & 5 \end{pmatrix}$?
$2,\ 4,\ 5$
$-2,\ 1,\ -5$
$6$ (the trace)
$2,\ -1,\ 5$
Explanation. For a triangular matrix $\det(\boldsymbol U - \lambda\boldsymbol I) = (2-\lambda)(-1-\lambda)(5-\lambda)$: the eigenvalues are the diagonal entries.
A matrix $\boldsymbol Q \in \R^{2\times 2}$ has eigenvalues $1$ and $3$. What are the trace $\operatorname{tr}(\boldsymbol Q)$ (sum of the diagonal entries) and $\det(\boldsymbol Q)$?
they cannot be determined without knowing $\boldsymbol Q$
Let $\lambda_1, \dots, \lambda_n \in \C$ be the roots of the characteristic polynomial of $\boldsymbol Q \in \R^{n\times n}$, repeated according to multiplicity, and let $\operatorname{tr}(\boldsymbol Q)$ be the trace (sum of the diagonal entries). Which statement is true?
$\operatorname{tr}(\boldsymbol Q) = \sum_{i=1}^{n}\lambda_i$, but only if all the roots are real and distinct
$\det(\boldsymbol Q) = \prod_{i=1}^{n}\lambda_i$ and $\operatorname{tr}(\boldsymbol Q) = \sum_{i=1}^{n}\lambda_i$
$\det(\boldsymbol Q) = \sum_{i=1}^{n}\lambda_i$ and $\operatorname{tr}(\boldsymbol Q) = \prod_{i=1}^{n}\lambda_i$
$\det(\boldsymbol Q) = \prod_{i=1}^{n}\lambda_i$, but only if $\boldsymbol Q$ is triangular
Explanation. It holds for every square matrix, counting multiplicities and complex roots: for instance $\begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$ has roots $\pm i$, trace $0$ and determinant $1$.
Let $\boldsymbol Q$ be symmetric. Which statement is true?
$\boldsymbol Q$ is positive definite if and only if $\det(\boldsymbol Q) > 0$
$\boldsymbol Q$ is positive semidefinite if and only if $\operatorname{tr}(\boldsymbol Q) \ge 0$
$\boldsymbol Q$ is positive semidefinite if and only if all its eigenvalues are $\ge 0$
$\boldsymbol Q$ is positive semidefinite if and only if all its entries are $\ge 0$
Explanation. The sign of the quadratic form is determined by the signs of the eigenvalues. $\det(\boldsymbol Q) > 0$ also holds for $-\boldsymbol I_2$, which is negative definite.
How is the symmetric matrix $\boldsymbol Q = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}$ classified according to the sign of the quadratic form $\boldsymbol x'\boldsymbol Q\,\boldsymbol x$?
positive definite
positive semidefinite
negative definite
indefinite
Explanation. $\Delta_1 = 1 > 0$ and $\Delta_2 = 1 - 4 = -3 < 0$; the eigenvalues are $3$ and $-1$, one positive and one negative.
Let $\boldsymbol Q \in \R^{n\times n}$ be symmetric and let $\Delta_k$ be its leading principal minor of order $k$ (determinant of the first $k$ rows and columns). Which statement of Sylvester's criterion is correct?
$\boldsymbol Q$ is positive definite if and only if $\Delta_n = \det(\boldsymbol Q) > 0$
$\boldsymbol Q$ is positive definite if and only if $\Delta_k > 0$ for every $k$
$\boldsymbol Q$ is negative definite if and only if $\Delta_k < 0$ for every $k$
$\boldsymbol Q$ is positive semidefinite if and only if $\Delta_k \ge 0$ for every $k$
Explanation. For negative definiteness the minors alternate in sign starting with $\Delta_1 < 0$; for semidefiniteness all principal minors must be checked, not only the leading ones.
The leading principal minors (determinants of the first $k$ rows and columns) of $\boldsymbol Q = \begin{pmatrix} 0 & 0 \\ 0 & -1 \end{pmatrix}$ are $\Delta_1 = 0$ and $\Delta_2 = 0$. Is $\boldsymbol Q$ positive semidefinite?
yes, because $\det(\boldsymbol Q) = 0 \ge 0$
yes, and it is even positive definite
no: the minor $q_{22} = -1$ is negative
yes, because $\Delta_1 \ge 0$ and $\Delta_2 \ge 0$
Explanation. Leading minors are not enough for semidefiniteness: with $\boldsymbol x = (0, 1)'$ we get $\boldsymbol x'\boldsymbol Q\,\boldsymbol x = -1 < 0$. The eigenvalues are $0$ and $-1$: it is negative semidefinite.
Let $\boldsymbol v_1, \dots, \boldsymbol v_k$ be eigenvectors of $\boldsymbol Q$ associated with distinct eigenvalues $\lambda_1, \dots, \lambda_k$. Then:
$\boldsymbol v_1, \dots, \boldsymbol v_k$ are linearly dependent if $k \ge 2$
$\boldsymbol v_i'\boldsymbol v_j = 1$ for every $i \neq j$
$\boldsymbol v_1, \dots, \boldsymbol v_k$ are linearly independent
$\boldsymbol v_1, \dots, \boldsymbol v_k$ all have the same norm
Explanation. Eigenvectors of distinct eigenvalues are always linearly independent; with $n$ distinct real eigenvalues we get $n$ independent vectors of $\R^n$.
Let $\boldsymbol Q \in \R^{n\times n}$ be triangular. How is it proved that its eigenvalues (roots of $\det(\boldsymbol Q - \lambda\boldsymbol I) = 0$) are the diagonal entries $q_{11}, \dots, q_{nn}$?
by Sylvester's criterion: the leading minors are $q_{11}$, $q_{11}q_{22}$, $\dots$
$\operatorname{tr}(\boldsymbol Q) = \sum_i \lambda_i$, hence each $q_{ii}$ is one of the eigenvalues $\lambda_i$
$\det(\boldsymbol Q) = \prod_i \lambda_i$, hence each $q_{ii}$ is one of the eigenvalues $\lambda_i$
Explanation. The determinant of a triangular matrix is the product of its diagonal: the characteristic equation is $\prod_i (q_{ii} - \lambda) = 0$, with roots $q_{11}, \dots, q_{nn}$. Trace and determinant alone do not determine the eigenvalues.
Let $\boldsymbol Q$ be symmetric positive semidefinite, i.e. $\boldsymbol x'\boldsymbol Q\,\boldsymbol x \ge 0$ for every $\boldsymbol x$. Which argument proves that each of its eigenvalues $\lambda$ satisfies $\lambda \ge 0$?
from $\operatorname{tr}(\boldsymbol Q) = \sum_i \lambda_i \ge 0$ it follows that every term $\lambda_i$ is $\ge 0$
from $q_{ii} = \boldsymbol e_i'\boldsymbol Q\,\boldsymbol e_i \ge 0$ it follows that the eigenvalues, i.e. the $q_{ii}$, are $\ge 0$
from $\boldsymbol Q\boldsymbol v = \lambda\boldsymbol v$, $\boldsymbol v \neq \boldsymbol 0$: $0 \le \boldsymbol v'\boldsymbol Q\,\boldsymbol v = \lambda\,\boldsymbol v'\boldsymbol v$ with $\boldsymbol v'\boldsymbol v > 0$
from $\det(\boldsymbol Q) = \prod_i \lambda_i \ge 0$ it follows that every factor $\lambda_i$ is $\ge 0$
Explanation. Choose $\boldsymbol x = \boldsymbol v$, an eigenvector of $\lambda$: $\lambda\,\boldsymbol v'\boldsymbol v \ge 0$ with $\boldsymbol v'\boldsymbol v > 0$, hence $\lambda \ge 0$. A non-negative product or sum does not make all factors or terms non-negative; the eigenvalues are the diagonal entries only for triangular matrices.
If $\boldsymbol v$ is an eigenvector of $\boldsymbol Q$ associated with $\lambda$, what can be said of $3\boldsymbol v$?
it is also an eigenvector associated with $\lambda$
it is an eigenvector associated with $3\lambda$
it is not an eigenvector, because eigenvectors are unique
it is an eigenvector associated with $\lambda/3$
Explanation. $\boldsymbol Q(\alpha\boldsymbol v) = \alpha\lambda\boldsymbol v = \lambda(\alpha\boldsymbol v)$ for every $\alpha \neq 0$: eigenvectors are never unique.
A principal minor of $\boldsymbol Q \in \R^{n\times n}$ is the determinant of the submatrix keeping the rows and columns with the same indices $i_1 < \dots < i_k$ ($k \ge 1$). How many principal minors does a matrix $\boldsymbol Q \in \R^{3\times 3}$ have?
$3$
$9$
$6$
$7$
Explanation. One for every nonempty set of indices in $\{1, 2, 3\}$: $3$ of order $1$ ($q_{11}, q_{22}, q_{33}$), $3$ of order $2$ and $1$ of order $3$, $2^3 - 1 = 7$ in total. The leading principal minors are only $3$.
What can be said about the real eigenvalues of $\boldsymbol R = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}$, i.e. the real roots of $\det(\boldsymbol R - \lambda\boldsymbol I) = 0$?
they are $0$ and $0$: the diagonal entries
they are $1$ and $-1$: the roots of $\lambda^2 - 1$
there is only $1$, double: $\det(\boldsymbol R) = 1$
there are none: $\lambda^2 + 1 = 0$ has roots $\pm i$
Explanation. $\det(\boldsymbol R - \lambda\boldsymbol I) = \lambda^2 + 1$ has no real roots; the complex roots $\pm i$ match trace $0$ and determinant $1$. $\boldsymbol R$ is not triangular.
To conclude that a symmetric matrix $\boldsymbol Q$ is positive semidefinite, it is enough to check that (principal minor: determinant of the submatrix with rows and columns of the same indices; leading: first $k$ rows and columns):
$\det(\boldsymbol Q) \ge 0$ and the trace is $\ge 0$
the diagonal entries are all $\ge 0$
all principal minors are $\ge 0$
the leading principal minors are $\ge 0$
Explanation. Semidefiniteness requires all principal minors: $\begin{pmatrix} 0 & 0 \\ 0 & -1 \end{pmatrix}$ has zero leading minors but is not positive semidefinite.
What are the eigenvalues, repeated according to multiplicity, of $\boldsymbol Q = \begin{pmatrix} 2 & 1 & 0 \\ 1 & 2 & 0 \\ 0 & 0 & 3 \end{pmatrix}$, i.e. the roots of $\det(\boldsymbol Q - \lambda\boldsymbol I) = 0$?
$-1,\ 3,\ 3$
$1,\ 3,\ 3$
$2,\ 2,\ 3$
$1,\ 2,\ 3$
Explanation. Expanding along the third row: $\det(\boldsymbol Q - \lambda\boldsymbol I) = (3 - \lambda)\big((2-\lambda)^2 - 1\big) = (3-\lambda)(\lambda - 1)(\lambda - 3)$. The matrix is not triangular: the diagonal entries $2, 2, 3$ are not the eigenvalues.
$\lambda$ is an eigenvalue of $\boldsymbol A$, with eigenvector $\boldsymbol v \neq \boldsymbol 0$, if $\boldsymbol A\boldsymbol v = \lambda\boldsymbol v$. For $\boldsymbol A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}$, which pair is correct?
$\boldsymbol v = (1, 0)'$, $\lambda = 2$
$\boldsymbol v = (1, 1)'$, $\lambda = 2$
$\boldsymbol v = (0, 0)'$, $\lambda = 0$
$\boldsymbol v = (1, 1)'$, $\lambda = 3$
Explanation. $\boldsymbol A(1, 1)' = (3, 3)' = 3\,(1, 1)'$. $\boldsymbol A(1, 0)' = (2, 1)'$ is not a multiple of $(1, 0)'$; the zero vector is never an eigenvector.
For $\boldsymbol A = \begin{pmatrix} 1 & 2 \\ 0 & 3 \end{pmatrix}$, $\boldsymbol v_1 = (1, 0)'$ is an eigenvector of $\lambda = 1$ and $\boldsymbol v_2 = (1, 1)'$ of $\lambda = 3$. What can be said about $\boldsymbol v_1, \boldsymbol v_2$?
They have the same norm
They form a basis of $\R^2$
They are linearly dependent
They are orthogonal
Explanation. Distinct eigenvalues give independent eigenvectors, and two independent vectors of $\R^2$ form a basis. They are not orthogonal: $\boldsymbol v_1'\boldsymbol v_2 = 1$.
An eigenvalue $\lambda$ of a matrix $\boldsymbol A \in \R^{3\times 3}$ is known (a root of $\det(\boldsymbol A - \lambda\boldsymbol I) = 0$). How are the eigenvectors associated with $\lambda$ found?
By solving $(\boldsymbol A - \lambda\boldsymbol I)\boldsymbol v = \boldsymbol 0$
By computing $\det(\boldsymbol A)$
By inverting $\boldsymbol A - \lambda\boldsymbol I$
By taking the columns of $\boldsymbol A$
Explanation. $\boldsymbol A - \lambda\boldsymbol I$ is singular: the system has nonzero solutions.
What does Sylvester's criterion state for a symmetric matrix $\boldsymbol Q$?
$\boldsymbol Q$ is positive definite iff its trace and determinant are positive
$\boldsymbol Q$ is positive definite iff its leading principal minors are all positive
$\boldsymbol Q$ is positive definite iff all entries of $\boldsymbol Q$ are positive
$\boldsymbol Q$ is positive definite iff the determinant $\det(\boldsymbol Q)$ is positive
Explanation. All leading principal minors $\Delta_1, \dots, \Delta_n$ are needed, not only the determinant; positive trace and determinant suffice only for $n = 2$, and positive entries never suffice.
A matrix $\boldsymbol A \in \R^{3\times 3}$ has three distinct eigenvalues $1$, $2$, $5$, with eigenvectors $\boldsymbol v_1, \boldsymbol v_2, \boldsymbol v_3$. Which statement is true?
$\boldsymbol v_1, \boldsymbol v_2, \boldsymbol v_3$ may be dependent
$\boldsymbol v_1, \boldsymbol v_2, \boldsymbol v_3$ form a basis of $\R^3$
$\boldsymbol v_1, \boldsymbol v_2, \boldsymbol v_3$ are always orthogonal
$\boldsymbol v_1, \boldsymbol v_2, \boldsymbol v_3$ all have norm $1$
Explanation. Eigenvectors of distinct eigenvalues are linearly independent, and three independent vectors of $\R^3$ form a basis. Orthogonality is not guaranteed (only for symmetric matrices).
Let $\boldsymbol v_1, \boldsymbol v_2$ be eigenvectors of $\boldsymbol A$ with distinct eigenvalues $\lambda_1 \neq \lambda_2$. Is the vector $\boldsymbol v_1 + \boldsymbol v_2$ an eigenvector of $\boldsymbol A$?
Yes, with eigenvalue $\frac{\lambda_1 + \lambda_2}{2}$
Yes, with eigenvalue $\lambda_1\lambda_2$
No, never
Yes, with eigenvalue $\lambda_1 + \lambda_2$
Explanation. $\boldsymbol A(\boldsymbol v_1 + \boldsymbol v_2) = \lambda_1\boldsymbol v_1 + \lambda_2\boldsymbol v_2$; if it were $\mu(\boldsymbol v_1 + \boldsymbol v_2)$, the independence of $\boldsymbol v_1, \boldsymbol v_2$ would give $\lambda_1 = \mu = \lambda_2$, a contradiction.
Explanation. It is absolute homogeneity: the scalar comes out in absolute value (a norm is never negative). For the sum only the triangle inequality holds, and the norm vanishes only at $\boldsymbol 0$.
Let $\boldsymbol p'\boldsymbol w = \sum_j p_j w_j$, $\|\boldsymbol p\|_2 = \sqrt{\boldsymbol p'\boldsymbol p}$ and $\|\boldsymbol p\|_\infty = \max_j |p_j|$. Which inequality holds for every $\boldsymbol p, \boldsymbol w \in \R^n$ (Cauchy–Schwarz)?
Explanation. It is the Cauchy–Schwarz inequality. With $\boldsymbol p = \boldsymbol w = (1,1)'$ the third one gives $2 \le 1$, false; the last one reverses the triangle inequality.
Let $\|\boldsymbol p\|_1 = \sum_j |p_j|$, $\|\boldsymbol p\|_2 = \sqrt{\sum_j p_j^2}$ and $\|\boldsymbol p\|_\infty = \max_j |p_j|$. For every $\boldsymbol p \in \R^n$:
In $\R^2$, what shape is the set of points with $\|\boldsymbol x\|_1 = |x_1| + |x_2| \le 1$?
a diamond centred at the origin
the unit circle centred at the origin
a square with sides parallel to the axes
a rotated ellipse centred at the origin
Explanation. $|x_1| + |x_2| \le 1$ is a diamond with vertices $(\pm 1, 0)$ and $(0, \pm 1)$; the circle corresponds to $\ell_2$, the axis-aligned square to $\ell_\infty$.
To define the generalized $\ell_2$ norm $\|\boldsymbol p\|_{\boldsymbol Q} = \sqrt{\boldsymbol p'\boldsymbol Q\,\boldsymbol p}$, the matrix $\boldsymbol Q$ must be:
invertible (nonzero determinant)
symmetric positive definite
symmetric, of any sign
positive semidefinite
Explanation. We need $\boldsymbol p'\boldsymbol Q\,\boldsymbol p \ge 0$ for the square root, and $= 0$ only for $\boldsymbol p = \boldsymbol 0$ for definiteness: hence positive definite. With $\boldsymbol Q = \boldsymbol I$ we get back $\|\cdot\|_2$.
Let $\|\boldsymbol p\|_{\boldsymbol Q} = \sqrt{\boldsymbol p'\boldsymbol Q\,\boldsymbol p}$ be the generalized $\ell_2$ norm, with $\boldsymbol Q = \begin{pmatrix} 4 & 0 \\ 0 & 1 \end{pmatrix}$. What is $\|\boldsymbol p\|_{\boldsymbol Q}$ for $\boldsymbol p = (1,\, 2)'$?
We want to prove the Cauchy–Schwarz inequality $|\boldsymbol p'\,\boldsymbol w| \le \|\boldsymbol p\|_2\,\|\boldsymbol w\|_2$ for every $\boldsymbol p, \boldsymbol w \in \R^n$. Which fact is the proof based on?
the inequality $\|\boldsymbol p\|_\infty \le \|\boldsymbol p\|_2$, applied both to $\boldsymbol p$ and to $\boldsymbol w$
$\boldsymbol u = \alpha\boldsymbol p + \beta\boldsymbol w$ has $\boldsymbol u'\boldsymbol u \ge 0$ for every $\alpha, \beta \in \R$, with well-chosen $\alpha, \beta$
the triangle inequality $\|\boldsymbol p + \boldsymbol w\|_2 \le \|\boldsymbol p\|_2 + \|\boldsymbol w\|_2$, squared
the inequality $\|\boldsymbol p\|_2 \le \|\boldsymbol p\|_1$, applied both to $\boldsymbol p$ and to $\boldsymbol w$
Explanation. $\boldsymbol u'\boldsymbol u = \alpha^2\,\boldsymbol p'\boldsymbol p + 2\alpha\beta\,\boldsymbol p'\boldsymbol w + \beta^2\,\boldsymbol w'\boldsymbol w \ge 0$; with $\alpha = \boldsymbol w'\boldsymbol w$ and $\beta = -\boldsymbol p'\boldsymbol w$ the claim follows. The triangle inequality of the $\ell_2$ norm is in turn proved with Cauchy–Schwarz.
Let $\boldsymbol p \in \R^n$. Which step proves the inequality $\|\boldsymbol p\|_1 \le \sqrt n\,\|\boldsymbol p\|_2$?
the inequality $\|\boldsymbol p\|_\infty \le \|\boldsymbol p\|_2$, multiplied by $\sqrt n$
the triangle inequality of the $\ell_1$ norm applied to $\boldsymbol p = \sum_j p_j\boldsymbol e_j$
Cauchy–Schwarz applied to $\boldsymbol 1 = (1, \dots, 1)'$ and to the vector $(|p_1|, \dots, |p_n|)'$
Cauchy–Schwarz applied to $\boldsymbol 1 = (1, \dots, 1)'$ and to $\boldsymbol p$, without absolute values
Explanation. $\|\boldsymbol p\|_1 = \sum_j 1\cdot|p_j| \le \|\boldsymbol 1\|_2\,\sqrt{\sum_j p_j^2} = \sqrt n\,\|\boldsymbol p\|_2$. Without absolute values only $|\sum_j p_j|$ is bounded; with $\|\boldsymbol p\|_1 \le n\|\boldsymbol p\|_\infty$ one would get the factor $n$.
The generalized Cauchy–Schwarz inequality is $|\boldsymbol p'\boldsymbol Q\,\boldsymbol w| \le \|\boldsymbol p\|_{\boldsymbol Q}\|\boldsymbol w\|_{\boldsymbol Q}$, with $\|\boldsymbol x\|_{\boldsymbol Q} = \sqrt{\boldsymbol x'\boldsymbol Q\,\boldsymbol x}$. Which assumptions on $\boldsymbol Q \in \R^{n\times n}$ does the proof use?
$\boldsymbol Q$ symmetric and positive definite
$\boldsymbol Q$ diagonal with nonzero diagonal entries
$\boldsymbol Q$ invertible, with eigenvalues of any sign
$\boldsymbol Q$ positive semidefinite, possibly not symmetric
Explanation. Symmetry gives $\boldsymbol w'\boldsymbol Q\,\boldsymbol p = \boldsymbol p'\boldsymbol Q\,\boldsymbol w$; positive definiteness gives $\boldsymbol u'\boldsymbol Q\,\boldsymbol u \ge 0$ for every $\boldsymbol u$ and $\boldsymbol w'\boldsymbol Q\,\boldsymbol w > 0$ for $\boldsymbol w \neq \boldsymbol 0$, and makes $\|\cdot\|_{\boldsymbol Q}$ a norm.
What is the Euclidean distance $\|\boldsymbol p - \boldsymbol w\|_2$ between $\boldsymbol p = (1,\, 4)'$ and $\boldsymbol w = (4,\, 1)'$?
$3\sqrt 2$
$6$
$3$
$18$
Explanation. $\boldsymbol p - \boldsymbol w = (-3, 3)'$ and $\sqrt{9 + 9} = \sqrt{18} = 3\sqrt 2$. $6$ is the $\ell_1$ distance, $3$ the $\ell_\infty$ distance.
How is the reverse triangle inequality $\big|\|\boldsymbol p\|_2 - \|\boldsymbol w\|_2\big| \le \|\boldsymbol p - \boldsymbol w\|_2$ obtained, for every $\boldsymbol p, \boldsymbol w \in \R^n$?
from the triangle inequality applied only to $\boldsymbol p = (\boldsymbol p - \boldsymbol w) + \boldsymbol w$
from Cauchy–Schwarz applied to the two vectors $\boldsymbol p - \boldsymbol w$ and $\boldsymbol p + \boldsymbol w$
from homogeneity $\|\lambda\boldsymbol p\|_2 = |\lambda|\,\|\boldsymbol p\|_2$ with $\lambda = -1$
from the triangle inequality applied to $\boldsymbol p = (\boldsymbol p - \boldsymbol w) + \boldsymbol w$ and to $\boldsymbol w = (\boldsymbol w - \boldsymbol p) + \boldsymbol p$
Explanation. The first expression gives $\|\boldsymbol p\|_2 - \|\boldsymbol w\|_2 \le \|\boldsymbol p - \boldsymbol w\|_2$, the second $\|\boldsymbol w\|_2 - \|\boldsymbol p\|_2 \le \|\boldsymbol w - \boldsymbol p\|_2 = \|\boldsymbol p - \boldsymbol w\|_2$: together they give the absolute value. Only one of the two is not enough.
Let $\|\boldsymbol x\|_{\boldsymbol Q} = \sqrt{\boldsymbol x'\boldsymbol Q\,\boldsymbol x}$ with $\boldsymbol Q = \begin{pmatrix} 4 & 0 \\ 0 & 1 \end{pmatrix}$. The set $\{\boldsymbol x \in \R^2 : \|\boldsymbol x\|_{\boldsymbol Q} \le 1\}$ is an ellipse with axes along the coordinate axes. What are the lengths of the semi-axes?
$\frac{1}{4}$ and $1$
$\frac{1}{2}$ and $1$
$4$ and $1$
$2$ and $1$
Explanation. The semi-axes have length $1/\sqrt{\lambda_i}$, with $\lambda_i$ the eigenvalues of $\boldsymbol Q$: $1/\sqrt 4 = \frac{1}{2}$ and $1/\sqrt 1 = 1$. Indeed $4x_1^2 + x_2^2 \le 1$.
A function $\|\cdot\|: \R^n \rightarrow \R$ is a norm if, for every $\boldsymbol p, \boldsymbol w \in \R^n$ and $\lambda \in \R$, $\|\boldsymbol p\| \ge 0$ with $\|\boldsymbol p\| = 0 \Leftrightarrow \boldsymbol p = \boldsymbol 0$, $\|\lambda\boldsymbol p\| = |\lambda|\,\|\boldsymbol p\|$ and moreover:
Explanation. The third axiom is the triangle inequality. Equality holds only in special cases (for instance $\boldsymbol w = \boldsymbol p$); Cauchy–Schwarz is a property of the $\ell_2$ norm, not an axiom.
The $\ell_\infty$ norm is $\|\boldsymbol p\|_\infty = \max_j |p_j|$. For $\boldsymbol p = (1,\, -2)'$ and $\boldsymbol w = (3,\, 2)'$, what are $\|\boldsymbol p + \boldsymbol w\|_\infty$ and $\|\boldsymbol p\|_\infty + \|\boldsymbol w\|_\infty$?
$4$ and $5$
$4$ and $4$
$5$ and $5$
$3$ and $5$
Explanation. $\boldsymbol p + \boldsymbol w = (4,\, 0)'$, hence $\|\boldsymbol p + \boldsymbol w\|_\infty = 4$, while $\|\boldsymbol p\|_\infty + \|\boldsymbol w\|_\infty = 2 + 3 = 5$: here the triangle inequality is strict.
The $\ell_1$ norm of $\boldsymbol p \in \R^2$ is $\|\boldsymbol p\|_1 = |p_1| + |p_2|$. How many vectors $\boldsymbol p \in \R^2$ with integer components have $\|\boldsymbol p\|_1 = 1$?
$2$
$1$
$8$
$4$
Explanation. One component must be $\pm 1$ and the other $0$: $(1, 0)'$, $(-1, 0)'$, $(0, 1)'$, $(0, -1)'$, the vertices of the diamond $\|\boldsymbol p\|_1 = 1$. $2$ forgets the vectors with negative components.
Explanation. $\boldsymbol p + \boldsymbol w = (4, 0)'$, so $\|\boldsymbol p + \boldsymbol w\|_1 = 4$, while $\|\boldsymbol p\|_1 = 3$ and $\|\boldsymbol w\|_1 = 5$: $4 \le 8$, with strict inequality.
The Euclidean norm of $\boldsymbol p \in \R^2$ is $\|\boldsymbol p\|_2 = \sqrt{p_1^2 + p_2^2}$. How many vectors $\boldsymbol p \in \R^2$ with integer components have $\|\boldsymbol p\|_2 = 5$?
$4$
$8$
$6$
$12$
Explanation. $p_1^2 + p_2^2 = 25$ with integers: $(\pm 5, 0)$, $(0, \pm 5)$ (there are $4$) and $(\pm 3, \pm 4)$, $(\pm 4, \pm 3)$ (there are $8$): $12$ in all. $4$ considers only the points on the axes.
For $\boldsymbol p = (1, 2)'$ and $\boldsymbol w = (3, 1)'$, which check of Cauchy–Schwarz $|\boldsymbol p'\boldsymbol w| \le \|\boldsymbol p\|_2\|\boldsymbol w\|_2$ is correct?
$5 \le \sqrt{5}\sqrt{10} = \sqrt{50}$
$5 \le \sqrt{5}\sqrt{10} = 5$
$7 \le \sqrt{5}\sqrt{10} = \sqrt{50}$
$5 \le \sqrt{3}\sqrt{4} = \sqrt{12}$
Explanation. $\boldsymbol p'\boldsymbol w = 3 + 2 = 5$, $\|\boldsymbol p\|_2 = \sqrt 5$, $\|\boldsymbol w\|_2 = \sqrt{10}$ and $\sqrt{50} \approx 7.07 \ge 5$. $\sqrt5\sqrt{10}$ is not $5$; $7$ is not the scalar product; $\sqrt 3$ and $\sqrt 4$ are not the norms.
With the generalized $\ell_2$ norm $\|\boldsymbol p\|_{\boldsymbol Q} = \sqrt{\boldsymbol p'\boldsymbol Q\boldsymbol p}$ and $\boldsymbol Q = \mathrm{diag}(4, 9)$, what is $\|(1, 1)'\|_{\boldsymbol Q}$?
The $\ell_\infty$ norm is $\|\boldsymbol p\|_\infty = \max_j |p_j|$. Which vector has the largest $\ell_\infty$ norm?
$(0,\, 0,\, -5)'$
$(3,\, -3,\, 3)'$
$(4,\, 4,\, 4)'$
$(1,\, -2,\, 4)'$
Explanation. The $\ell_\infty$ norms are $5$, $3$, $4$ and $4$. $(4, 4, 4)'$ has the largest sum (and $\ell_1$ norm), but only the component of largest absolute value counts.
A norm on $\R^2$ must be $\ge 0$, zero only at the zero vector, homogeneous and subadditive. Which function of $\boldsymbol p = (p_1, p_2)'$ is not a norm?
$f(\boldsymbol p) = |p_1|$
$f(\boldsymbol p) = |p_1| + |p_2|$
$f(\boldsymbol p) = \max\{|p_1|, |p_2|\}$
$f(\boldsymbol p) = \sqrt{p_1^2 + p_2^2}$
Explanation. $|p_1|$ is $0$ also for $\boldsymbol p = (0, 1)' \neq \boldsymbol 0$: it violates definiteness. The others are the $\ell_1$, $\ell_\infty$ and $\ell_2$ norms.
Let $\|\cdot\|$ be a norm on $\R^n$ (in particular $\|\lambda\,\boldsymbol p\| = |\lambda|\,\|\boldsymbol p\|$ for every $\lambda \in \R$). What is $\|-\boldsymbol p\|$?
$-\|\boldsymbol p\|$
$0$
$2\,\|\boldsymbol p\|$
$\|\boldsymbol p\|$
Explanation. With $\lambda = -1$: $\|-\boldsymbol p\| = |-1|\,\|\boldsymbol p\| = \|\boldsymbol p\|$. Reversing the direction does not change the length; $-\|\boldsymbol p\|$ would be negative.
The $\ell_1$ norm is $\|\boldsymbol p\|_1 = \sum_j |p_j|$. What is $\|\boldsymbol p - \boldsymbol w\|_1$ for $\boldsymbol p = (2, -1, 4)'$ and $\boldsymbol w = (5, 1, 4)'$?
$3$
$5$
$-5$
$17$
Explanation. $\boldsymbol p - \boldsymbol w = (-3, -2, 0)'$ and $|-3| + |-2| + 0 = 5$. $-5$ forgets the absolute values; $17 = 7 + 10$ adds the norms of the two vectors; $3 = |7 - 10|$ subtracts the norms.
With the Euclidean norm $\|\boldsymbol p\|_2 = \sqrt{\boldsymbol p'\boldsymbol p}$, what does $\|\boldsymbol p + \boldsymbol w\|_2^2$ equal for $\boldsymbol p, \boldsymbol w \in \R^n$?
$\|\boldsymbol p\|_2^2 + 2\,\boldsymbol p'\boldsymbol w + \|\boldsymbol w\|_2^2$
$\|\boldsymbol p\|_2^2 + \|\boldsymbol w\|_2^2$
$(\|\boldsymbol p\|_2 + \|\boldsymbol w\|_2)^2$
$\|\boldsymbol p\|_2^2 + \boldsymbol p'\boldsymbol w + \|\boldsymbol w\|_2^2$
Explanation. $(\boldsymbol p + \boldsymbol w)'(\boldsymbol p + \boldsymbol w) = \boldsymbol p'\boldsymbol p + 2\,\boldsymbol p'\boldsymbol w + \boldsymbol w'\boldsymbol w$, since $\boldsymbol w'\boldsymbol p = \boldsymbol p'\boldsymbol w$. Without the cross term it holds only for orthogonal vectors.
By the Cauchy–Schwarz inequality, $|\boldsymbol p'\boldsymbol w| \le \|\boldsymbol p\|_2\,\|\boldsymbol w\|_2$. If $\|\boldsymbol p\|_2 = 3$ and $\|\boldsymbol w\|_2 = 2$, which value can the scalar product $\boldsymbol p'\boldsymbol w$ not take?
$7$
$-6$
$0$
$6$
Explanation. It must be $-6 \le \boldsymbol p'\boldsymbol w \le 6$: $7$ is excluded. $\pm 6$ are obtained with parallel vectors, $0$ with orthogonal vectors.
By the reverse triangle inequality, $\big|\|\boldsymbol p\|_2 - \|\boldsymbol w\|_2\big| \le \|\boldsymbol p - \boldsymbol w\|_2$. If $\|\boldsymbol p\|_2 = 5$ and $\|\boldsymbol w\|_2 = 2$, what is the smallest possible value of $\|\boldsymbol p - \boldsymbol w\|_2$?
$3$
$7$
$0$
$\sqrt{21}$
Explanation. $\|\boldsymbol p - \boldsymbol w\|_2 \ge 5 - 2 = 3$, and the value $3$ is reached with $\boldsymbol w$ parallel to $\boldsymbol p$ with the same direction. $7$ is the maximum, not the minimum.
Let $\boldsymbol Q \in \R^{2\times 2}$ be symmetric positive definite and $\|\boldsymbol x\|_{\boldsymbol Q} = \sqrt{\boldsymbol x'\boldsymbol Q\boldsymbol x}$. What is the shape of the set $\{\boldsymbol x \in \R^2 : \|\boldsymbol x\|_{\boldsymbol Q} \le 1\}$?
A half-plane bounded by a line
A filled ellipse centred at the origin
A filled diamond centred at the origin
A square with sides parallel to the axes
Explanation. The axes of the ellipse are given by the eigenvectors of $\boldsymbol Q$, the lengths of the semi-axes by the eigenvalues. The diamond is the $\ell_1$ ball, the square the $\ell_\infty$ one.
The $\ell_\infty$ norm is $\|\boldsymbol p\|_\infty = \max_j |p_j|$. For which $t \in \R$ does the vector $(t, 3, -1)'$ have $\|(t, 3, -1)'\|_\infty = 3$?
$t \le 3$
$-3 \le t \le 3$
Only $t = 3$
Only $t = \pm 3$
Explanation. The maximum of $|t|$, $3$ and $1$ equals $3$ exactly when $|t| \le 3$. It suffices that the component $3$ is the largest in absolute value; $t \le 3$ would allow $t = -5$.
For every $\boldsymbol p \in \R^n$ we have $\|\boldsymbol p\|_\infty \le \|\boldsymbol p\|_1 \le n\,\|\boldsymbol p\|_\infty$ (with $\|\boldsymbol p\|_1 = \sum_j |p_j|$, $\|\boldsymbol p\|_\infty = \max_j |p_j|$). If $\|\boldsymbol p\|_\infty = 2$, what is known about $\|\boldsymbol p\|_1$?
$\|\boldsymbol p\|_1 = 2n$
$0 \le \|\boldsymbol p\|_1 \le 2$
$2 \le \|\boldsymbol p\|_1 \le 2n$
$\|\boldsymbol p\|_1 \le 2$
Explanation. From the chain: $2 \le \|\boldsymbol p\|_1 \le 2n$. The bounds are reached with $\boldsymbol p = (2, 0, \dots, 0)'$ and with $\boldsymbol p = (2, \dots, 2)'$.
With the norm $\|\boldsymbol p\|_1 = \sum_j |p_j|$, for which pair does the equality $\|\boldsymbol p + \boldsymbol w\|_1 = \|\boldsymbol p\|_1 + \|\boldsymbol w\|_1$ hold?
$\boldsymbol p = (1, 2)'$, $\boldsymbol w = (3, 0)'$
$\boldsymbol p = (1, 2)'$, $\boldsymbol w = (-1, 0)'$
$\boldsymbol p = (1, -2)'$, $\boldsymbol w = (0, 3)'$
$\boldsymbol p = (2, 1)'$, $\boldsymbol w = (-2, -1)'$
Explanation. $(1, 2)' + (3, 0)' = (4, 2)'$: $6 = 3 + 3$. Equality holds when no component has opposite signs; the other pairs give $2 < 4$, $2 < 6$, $0 < 6$.
Let $\boldsymbol Q$ be symmetric positive definite, $\|\boldsymbol p\|_{\boldsymbol Q} = \sqrt{\boldsymbol p'\boldsymbol Q\boldsymbol p}$, with $\|\boldsymbol p\|_{\boldsymbol Q} = 2$ and $\|\boldsymbol w\|_{\boldsymbol Q} = 3$. What does the generalized Cauchy–Schwarz inequality guarantee?
Explanation. $|\boldsymbol p'\boldsymbol Q\boldsymbol w| \le \|\boldsymbol p\|_{\boldsymbol Q}\,\|\boldsymbol w\|_{\boldsymbol Q} = 2 \cdot 3 = 6$: it is an upper bound (product, not sum), reached only for parallel vectors.
A norm must satisfy $\|\lambda\,\boldsymbol p\| = |\lambda|\,\|\boldsymbol p\|$. Which statement about the function $f(\boldsymbol p) = \|\boldsymbol p\|_2^2 = \sum_j p_j^2$ on $\R^n$ is correct?
It is not a norm: $f(2\boldsymbol p) = 4 f(\boldsymbol p)$
It is a norm, since $f(\boldsymbol p) \ge 0$
It is a norm, since $f(\boldsymbol 0) = 0$
It is the $\ell_1$ norm of $\boldsymbol p$
Explanation. $f(\lambda\boldsymbol p) = \lambda^2 f(\boldsymbol p)$, not $|\lambda| f(\boldsymbol p)$: homogeneity fails (and so does the triangle inequality, e.g. with $\boldsymbol w = \boldsymbol p \neq \boldsymbol 0$). Positivity and $f(\boldsymbol 0) = 0$ are not enough.
Let $\|\boldsymbol p\|_1 = \sum_j |p_j|$ and $\|\boldsymbol p\|_\infty = \max_j |p_j|$. For which $\boldsymbol p \in \R^n$ does $\|\boldsymbol p\|_\infty = \|\boldsymbol p\|_1$ hold?
For those with all components equal
For all of them, since both are norms
For those with at most one nonzero component
Only for the zero vector $\boldsymbol p = \boldsymbol 0$
Explanation. $\|\boldsymbol p\|_1 - \|\boldsymbol p\|_\infty$ is the sum of the $|p_j|$ other than the maximum: it is zero exactly when at most one component is nonzero. With equal nonzero components one has $\|\boldsymbol p\|_1 = n\,\|\boldsymbol p\|_\infty$.
Let $\boldsymbol A \in \R^{m\times n}$, $\boldsymbol b \in \R^m$ and $(\boldsymbol A | \boldsymbol b)$ the augmented matrix. By the Rouché–Capelli theorem, the system $\boldsymbol A\boldsymbol x = \boldsymbol b$ has no solution if and only if:
$\text{rank}(\boldsymbol A) < n$ and $m \ge n$
$\det(\boldsymbol A) = 0$, with $m = n$
$\text{rank}(\boldsymbol A) < \text{rank}(\boldsymbol A | \boldsymbol b)$
$\text{rank}(\boldsymbol A) = \text{rank}(\boldsymbol A | \boldsymbol b) < n$
Explanation. The system has solutions if and only if the two ranks coincide. $\text{rank}(\boldsymbol A) < n$ or $\det(\boldsymbol A) = 0$ exclude uniqueness, but the system may have infinitely many solutions.
A system $\boldsymbol A\boldsymbol x = \boldsymbol b$ with $n = 4$ variables has $\text{rank}(\boldsymbol A) = \text{rank}(\boldsymbol A | \boldsymbol b) = 2$, where $(\boldsymbol A | \boldsymbol b)$ is the augmented matrix. How many solutions does it have?
infinitely many, with $2$ free parameters
infinitely many, with $4$ free parameters
exactly one, since the ranks coincide
none, since the rank is less than $4$
Explanation. The ranks coincide, so it is consistent; they are smaller than $n$, so there are infinitely many solutions with $n - r = 4 - 2 = 2$ free parameters.
Let $\boldsymbol A \in \R^{m\times n}$, $\boldsymbol b \in \R^m$ and $(\boldsymbol A|\boldsymbol b)$ the augmented matrix. Which statement is correct?
$\boldsymbol A\boldsymbol x = \boldsymbol b$ has a unique solution iff $\text{rank}(\boldsymbol A) = \text{rank}(\boldsymbol A|\boldsymbol b) = n$
$\boldsymbol A\boldsymbol x = \boldsymbol b$ has a unique solution iff $\text{rank}(\boldsymbol A) = n$
if $\text{rank}(\boldsymbol A|\boldsymbol b) = n$ the system has a unique solution
if $\text{rank}(\boldsymbol A) < n$ the system has no solution
Explanation. With $m > n$ it can happen that $\text{rank}(\boldsymbol A) = n$ and $\text{rank}(\boldsymbol A|\boldsymbol b) = n+1$: no solution. With $\text{rank}(\boldsymbol A) < n$ the system may have infinitely many solutions.
A homogeneous system $\boldsymbol A\boldsymbol x = \boldsymbol 0$:
has solutions only if $\boldsymbol A$ is square
always has the trivial solution $\boldsymbol x = \boldsymbol 0$
may have no solution at all
always has infinitely many distinct solutions
Explanation. $\boldsymbol A\boldsymbol 0 = \boldsymbol 0$ for every $\boldsymbol A$; nontrivial solutions exist if and only if $\text{rank}(\boldsymbol A) < n$.
Let $\boldsymbol A \in \R^{n\times n}$. When does the homogeneous system $\boldsymbol A\boldsymbol x = \boldsymbol 0$ have nontrivial solutions?
if and only if $\det(\boldsymbol A) \neq 0$
if and only if $\boldsymbol A$ is symmetric
never
if and only if $\det(\boldsymbol A) = 0$
Explanation. Nontrivial solutions exist if and only if $\text{rank}(\boldsymbol A) < n$, i.e., for a square matrix, if and only if $\det(\boldsymbol A) = 0$.
A homogeneous system with $m = 2$ equations and $n = 3$ variables:
may have no solution
has nontrivial solutions only if $\det(\boldsymbol A) = 0$
always has nontrivial solutions
has only the trivial solution
Explanation. $\text{rank}(\boldsymbol A) \le m = 2 < 3 = n$, hence there are infinitely many solutions with at least one free parameter. The determinant is not defined for a $2\times 3$ matrix.
Let $\boldsymbol A \in \R^{m\times m}$ with $\det(\boldsymbol A) \neq 0$ and $\boldsymbol b \in \R^m$. In Cramer's rule, the entry $\tilde x_j$ of the solution of $\boldsymbol A\boldsymbol x = \boldsymbol b$ is:
$\det(\boldsymbol A_j)$, where $\boldsymbol A_j$ is $\boldsymbol A$ with column $j$ replaced by $\boldsymbol b$
$\frac{\det(\boldsymbol A_j)}{\det(\boldsymbol A)}$, where $\boldsymbol A_j$ is $\boldsymbol A$ with column $j$ replaced by $\boldsymbol b$
$\frac{\det(\boldsymbol A_j)}{\det(\boldsymbol A)}$, where $\boldsymbol A_j$ is $\boldsymbol A$ with row $j$ replaced by $\boldsymbol b'$
$\frac{\det(\boldsymbol A)}{\det(\boldsymbol A_j)}$, where $\boldsymbol A_j$ is $\boldsymbol A$ with column $j$ replaced by $\boldsymbol b$
Explanation. Column $j$ (the coefficients of $x_j$) is replaced by $\boldsymbol b$ and the result is divided by $\det(\boldsymbol A)$; without the division the result is right only if $\det(\boldsymbol A) = 1$.
Why is Cramer's rule not used to solve systems $\boldsymbol A\boldsymbol x = \boldsymbol b$ with $\boldsymbol A \in \R^{m\times m}$ and large $m$?
it holds only if $\boldsymbol A$ is symmetric, while Gauss works for every nonsingular $\boldsymbol A$
it holds only for $m \le 3$, because the determinants are computed with the Sarrus rule
it needs $m+1$ determinants of order $m$: about $m!$ operations with Laplace, against $\frac{2}{3}m^3$ for Gauss
it gives only an approximate solution, because it divides by $\det(\boldsymbol A)$, which may be small
Explanation. The formula is exact and holds for every $m$ with $\det(\boldsymbol A) \neq 0$, but it is expensive: with $m = 10$ we compare $10! = 3\,628\,800$ with about $667$ operations.
The upper triangular system $\tilde{\boldsymbol A}\boldsymbol x = \tilde{\boldsymbol b}$, with $\tilde{\boldsymbol A} \in \R^{n\times n}$ and $\tilde a_{ii} \neq 0$, is solved by backward substitution, computing $x_n, x_{n-1}, \dots, x_1$. Which formula gives $x_i$?
Explanation. We proceed bottom-up: when $x_i$ is computed, $x_{i+1}, \dots, x_n$ are already known. The sum over $j < i$ is that of forward substitution.
The solutions of a system $\boldsymbol A\boldsymbol x = \boldsymbol b$ with one free parameter are written $\boldsymbol x = \boldsymbol x_0 + t\,\boldsymbol v$, $t \in \R$. What are $\boldsymbol x_0$ and $\boldsymbol v$?
$\boldsymbol A\boldsymbol x_0 = \boldsymbol b$ and $\boldsymbol v \neq \boldsymbol 0$ with $\boldsymbol A\boldsymbol v = \boldsymbol 0$
$\boldsymbol A\boldsymbol x_0 = \boldsymbol 0$ and $\boldsymbol v \neq \boldsymbol 0$ with $\boldsymbol A\boldsymbol v = \boldsymbol b$
$\boldsymbol A\boldsymbol x_0 = \boldsymbol b$ and $\boldsymbol v \neq \boldsymbol 0$ with $\boldsymbol A\boldsymbol v = \boldsymbol b$
$\boldsymbol x_0 = \boldsymbol 0$ and $\boldsymbol v \neq \boldsymbol 0$ with $\boldsymbol A\boldsymbol v = \boldsymbol b$
Explanation. $\boldsymbol x_0$ is a particular solution (for $t = 0$) and $\boldsymbol v$ solves the homogeneous system: $\boldsymbol A(\boldsymbol x_0 + t\boldsymbol v) = \boldsymbol b + t\,\boldsymbol 0 = \boldsymbol b$.
Let $\boldsymbol A\boldsymbol x_0 = \boldsymbol b$ and $\boldsymbol A\boldsymbol v = \boldsymbol 0$. Which property is needed to conclude that $\boldsymbol x_0 + \boldsymbol v$ is also a solution of $\boldsymbol A\boldsymbol x = \boldsymbol b$?
the commutativity of the matrix product, $\boldsymbol A\boldsymbol B = \boldsymbol B\boldsymbol A$
the distributivity of the product over the sum: $\boldsymbol A(\boldsymbol x_0 + \boldsymbol v) = \boldsymbol A\boldsymbol x_0 + \boldsymbol A\boldsymbol v$
Cramer's rule, applied to the system $\boldsymbol A\boldsymbol x = \boldsymbol b$ entry by entry
the invertibility of $\boldsymbol A$, i.e. $\det(\boldsymbol A) \neq 0$, which makes the solution unique
Explanation. $\boldsymbol A(\boldsymbol x_0 + \boldsymbol v) = \boldsymbol A\boldsymbol x_0 + \boldsymbol A\boldsymbol v = \boldsymbol b + \boldsymbol 0 = \boldsymbol b$. $\boldsymbol A$ need not be invertible: indeed, with $\boldsymbol v \neq \boldsymbol 0$ it is not.
Let $\boldsymbol A \in \R^{m\times n}$. Which result is needed to prove that $\boldsymbol A\boldsymbol x = \boldsymbol 0$ has nontrivial solutions if and only if $\text{rank}(\boldsymbol A) < n$?
Rouché–Capelli, with $\text{rank}(\boldsymbol A | \boldsymbol 0) = \text{rank}(\boldsymbol A)$
Cramer's rule applied to $\boldsymbol A$
the Cauchy–Schwarz inequality on the rows
the LU factorization without row swaps
Explanation. The system is always consistent (the zero column does not increase the rank); the solution is unique, hence only the trivial one, if and only if the rank is $n$.
Forward elimination is applied to the augmented matrix $(\boldsymbol A | \boldsymbol b)$ of a system in $3$ variables; the last row becomes $(0\;\; 0\;\; 0 \mid 1)$. What can be concluded?
the system has no solution
the system has infinitely many solutions
the system has a unique solution with $x_3 = 1$
two columns must be swapped
Explanation. The row corresponds to the equation $0x_1 + 0x_2 + 0x_3 = 1$, which is impossible: $\text{rank}(\boldsymbol A) < \text{rank}(\boldsymbol A|\boldsymbol b)$.
Many systems $\boldsymbol A\boldsymbol x = \boldsymbol b$ with the same $\boldsymbol A \in \R^{n\times n}$ and different right-hand sides $\boldsymbol b$ must be solved. What is the advantage of the factorization $\boldsymbol A = \boldsymbol L\boldsymbol U$?
the factorization ($O(n^2)$) is done once; each new $\boldsymbol b$ costs two substitutions ($O(n)$)
the factorization ($O(n^2)$) is redone for each $\boldsymbol b$; the two substitutions cost $O(n^3)$
the factorization ($O(n^3)$) is done once; each new $\boldsymbol b$ costs an inversion ($O(n^3)$)
the factorization ($O(n^3)$) is done once; each new $\boldsymbol b$ costs two substitutions ($O(n^2)$)
Explanation. The factorization takes about $\frac{2}{3}n^3$ operations and does not depend on $\boldsymbol b$; for each $\boldsymbol b$ forward and backward substitution are enough, each $O(n^2)$.
Let $\boldsymbol A = \boldsymbol L\boldsymbol U$. If $\boldsymbol y$ solves $\boldsymbol L\boldsymbol y = \boldsymbol b$ and $\boldsymbol x$ solves $\boldsymbol U\boldsymbol x = \boldsymbol y$, which property guarantees that $\boldsymbol A\boldsymbol x = \boldsymbol b$?
commutativity: $(\boldsymbol L\boldsymbol U)\boldsymbol x = (\boldsymbol U\boldsymbol L)\boldsymbol x = \boldsymbol U\boldsymbol y = \boldsymbol b$
the symmetry of $\boldsymbol A$, which makes $\boldsymbol U = \boldsymbol L'$ and $\boldsymbol x = \boldsymbol y$
the fact that $\det(\boldsymbol L) = 1$, which makes $\boldsymbol L\boldsymbol y = \boldsymbol y$
associativity: $(\boldsymbol L\boldsymbol U)\boldsymbol x = \boldsymbol L(\boldsymbol U\boldsymbol x) = \boldsymbol L\boldsymbol y = \boldsymbol b$
Explanation. It is enough to group the factors differently: $\boldsymbol A\boldsymbol x = (\boldsymbol L\boldsymbol U)\boldsymbol x = \boldsymbol L(\boldsymbol U\boldsymbol x) = \boldsymbol L\boldsymbol y = \boldsymbol b$. The matrix product is not commutative and $\det(\boldsymbol L) = 1$ does not mean $\boldsymbol L = \boldsymbol I$.
A system $\boldsymbol A\boldsymbol x = \boldsymbol b$ with $\boldsymbol A \in \R^{m\times n}$ and $m < n$ (fewer equations than variables):
always has a unique solution
never has solutions
has a unique solution if $\det(\boldsymbol A) \neq 0$
cannot have a unique solution
Explanation. $\text{rank}(\boldsymbol A) \le m < n$: if it is consistent it has infinitely many solutions, otherwise none. Uniqueness is possible only with $m \ge n$.
$\boldsymbol A\boldsymbol x = \boldsymbol b$ is solved by Gaussian elimination (forward elimination, then backward substitution). What are the row operations of forward elimination applied to?
the whole augmented matrix $(\boldsymbol A | \boldsymbol b)$, right-hand side column included
only the matrix $\boldsymbol A$: the vector $\boldsymbol b$ is unchanged until the end
only the vector $\boldsymbol b$: the matrix $\boldsymbol A$ is used to choose the multipliers
the columns of $\boldsymbol A$, swapping variables and leaving $\boldsymbol b$ unchanged
Explanation. Each row operation turns an equation into an equivalent one, so it must be applied to both sides: one works on the augmented matrix and gets a triangular system $\tilde{\boldsymbol A}\boldsymbol x = \tilde{\boldsymbol b}$ with the same solutions.
After forward elimination the augmented matrix of a system in $3$ unknowns is $\begin{pmatrix} 1 & 2 & 1 & | & 3 \\ 0 & 1 & -1 & | & 2 \\ 0 & 0 & 0 & | & 0 \end{pmatrix}$. How many solutions does the system have?
Infinitely many, with $1$ free parameter
None: there is a zero row
Exactly one, since $\boldsymbol A$ is $3 \times 3$
Infinitely many, with $2$ free parameters
Explanation. There are no rows $(0 \; 0 \; 0 \,|\, c)$ with $c \neq 0$ and both ranks are $2 < 3$: infinitely many solutions with $3 - 2 = 1$ free parameter ($x_3$). The zero row does not make the system inconsistent.
An echelon form of $(\boldsymbol A|\boldsymbol b)$, with unknowns $x_1, \dots, x_4$, has pivots in columns $1$ and $3$ and no row $(0 \cdots 0 \,|\, c)$ with $c \neq 0$. Which unknowns are free parameters?
Only $x_4$, the last one
None of them
$x_2$ and $x_4$
$x_1$ and $x_3$
Explanation. The unknowns of the pivot columns ($x_1$, $x_3$) are found by back substitution; the other $4 - 2 = 2$, i.e. $x_2$ and $x_4$, are free.
To conclude that $\boldsymbol A\boldsymbol x = \boldsymbol b$ with $\boldsymbol A \in \R^{n \times n}$ has a unique solution for every $\boldsymbol b$, which assumption suffices?
$\det(\boldsymbol A) \neq 0$
$\boldsymbol b \neq \boldsymbol 0$
$\boldsymbol A$ symmetric
$\boldsymbol A$ with positive entries
Explanation. Rank $n$ for $\boldsymbol A$ and $(\boldsymbol A|\boldsymbol b)$: unique solution $\boldsymbol A^{-1}\boldsymbol b$.
The homogeneous system $\boldsymbol A\boldsymbol x = \boldsymbol 0$ has $\boldsymbol A \in \R^{4\times 6}$ and $\mathrm{rank}(\boldsymbol A) = 3$. How many free parameters do its solutions have?
$2$
$0$
$3$
$1$
Explanation. The solutions have $n - \mathrm{rank}(\boldsymbol A) = 6 - 3 = 3$ free parameters ($n$: number of unknowns). $1 = 4 - 3$ uses the number of equations.
With $\boldsymbol A = \boldsymbol L\boldsymbol U$, $\boldsymbol L = \begin{pmatrix} 1 & 0 \\ 2 & 1 \end{pmatrix}$ and $\boldsymbol b = (3, 8)'$, what is $\boldsymbol y$ in $\boldsymbol L\boldsymbol y = \boldsymbol b$?
$\boldsymbol v = (1, 2, -1)'$ and $\boldsymbol w = (0, 1, 1)'$ solve the homogeneous system $\boldsymbol A\boldsymbol x = \boldsymbol 0$, with $\boldsymbol A \in \R^{2\times 3}$. Which vector surely solves it?
$(2,\, 1,\, -5)'$
$(2,\, 2,\, -1)'$
$(1,\, 1,\, 1)'$
$(0,\, 0,\, 1)'$
Explanation. $(2, 1, -5)' = 2\boldsymbol v - 3\boldsymbol w$ and $\boldsymbol A(2\boldsymbol v - 3\boldsymbol w) = 2\cdot\boldsymbol 0 - 3\cdot\boldsymbol 0 = \boldsymbol 0$. The others are not linear combinations of $\boldsymbol v$ and $\boldsymbol w$.
To conclude that the homogeneous system $\boldsymbol A\boldsymbol x = \boldsymbol 0$ with $\boldsymbol A \in \R^{3 \times 3}$ and $\det(\boldsymbol A) = 0$ has infinitely many solutions, what is used?
That $\boldsymbol A$ is upper triangular
That the right-hand side is $\boldsymbol b \neq \boldsymbol 0$
Cramer's rule on $\boldsymbol A$
Rouché–Capelli with rank $< 3$
Explanation. Consistent because of the zero solution, with $3 - \mathrm{rank}(\boldsymbol A) \ge 1$ parameters.
Cramer's rule $\tilde x_j = \det(\boldsymbol A_j)/\det(\boldsymbol A)$ holds if $\det(\boldsymbol A) \neq 0$. What happens if it is applied to the system $x_1 + 2x_2 = 3$, $2x_1 + 4x_2 = 5$?
It gives $x_1 = 1$ and $x_2 = 1$
It does not apply: $\det(\boldsymbol A) = 0$
It gives $x_1 = 3$ and $x_2 = 0$
It gives $x_1 = x_2 = 0$
Explanation. $\det(\boldsymbol A) = 1 \cdot 4 - 2 \cdot 2 = 0$: the formula divides by zero. (The system is in fact inconsistent: the second equation would give $2 \cdot 3 = 5$.)
In Cramer's rule $\boldsymbol A_j$ is $\boldsymbol A$ with column $j$ replaced by $\boldsymbol b$. For the system $x_1 + x_2 = 1$, $x_2 + x_3 = 2$, $x_1 + x_3 = 3$, which matrix is $\boldsymbol A_3$?
Explanation. $\boldsymbol A = \begin{pmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end{pmatrix}$ and $\boldsymbol b = (1, 2, 3)'$ takes the place of the third column. Replacing the third row is a mistake; the third option is $\boldsymbol A_1$.
For a system of three equations in three unknowns one finds $\det(\boldsymbol A) = 0$ and $\det(\boldsymbol A_1) = 5$ ($\boldsymbol A_1$: first column replaced by $\boldsymbol b$). What can be said with Cramer's rule?
It does not apply: $\det(\boldsymbol A) = 0$
It gives $x_1 = 0$, like $\det(\boldsymbol A)$
It gives $x_1 = 5$, like $\det(\boldsymbol A_1)$
It gives $x_1 = \frac15$, the inverse of $5$
Explanation. The formula $\tilde x_1 = \det(\boldsymbol A_1)/\det(\boldsymbol A)$ requires $\det(\boldsymbol A) \neq 0$; here it gives no value. $\frac15$ inverts the ratio.
For a system of $m$ equations in $m$ unknowns, how does the number of operations of Gaussian elimination grow, roughly, as $m$ grows?
Like $2^m$
Like $m$
Like $m^3$
Like $m!$
Explanation. Gaussian elimination needs about $\frac23 m^3$ operations. $m!$ is the growth of the determinant with the Laplace expansion, used by Cramer's rule.
Even computing every determinant with Gaussian elimination, why does Cramer's rule for an $m \times m$ system remain more expensive than solving the system with Gauss?
It needs $m!$ eliminations, one per permutation
It needs $m + 1$ eliminations instead of one
It needs to invert $\boldsymbol A$ twice
It works only in exact arithmetic
Explanation. It needs $\det(\boldsymbol A), \det(\boldsymbol A_1), \dots, \det(\boldsymbol A_m)$: $m + 1$ determinants, each costing as much as one elimination, while Gauss on the system uses only one.
A system $\boldsymbol A\boldsymbol x = \boldsymbol b$ with $\boldsymbol A \in \R^{4\times 3}$ has $\mathrm{rank}(\boldsymbol A) = 3$ and $\mathrm{rank}(\boldsymbol A|\boldsymbol b) = 4$ ($(\boldsymbol A|\boldsymbol b)$: augmented matrix). How many solutions does it have?
Exactly one
Infinitely many
Exactly four
None
Explanation. By the Rouché–Capelli theorem, $\mathrm{rank}(\boldsymbol A) < \mathrm{rank}(\boldsymbol A|\boldsymbol b)$ means an inconsistent system. Full rank of $\boldsymbol A$ is not enough.
Let $(\boldsymbol A|\boldsymbol b)$ be the augmented matrix of a system, obtained by appending the column $\boldsymbol b$ to $\boldsymbol A$. If $\mathrm{rank}(\boldsymbol A) = r$, which values can $\mathrm{rank}(\boldsymbol A|\boldsymbol b)$ take?
Only $r$
$r$ or $r - 1$
Any value between $r$ and $m$
$r$ or $r + 1$
Explanation. Appending a column does not decrease the rank and increases it by at most $1$: $r \le \mathrm{rank}(\boldsymbol A|\boldsymbol b) \le r + 1$. This is why the three Rouché–Capelli cases cover everything.
At the end of forward elimination, $(\boldsymbol A|\boldsymbol b)$ is in row echelon form. How are $\mathrm{rank}(\boldsymbol A)$ and $\mathrm{rank}(\boldsymbol A|\boldsymbol b)$ read off?
By counting the pivots equal to $1$
By counting the positive diagonal entries
By adding up the pivot values
By counting the nonzero rows
Explanation. The rank of an echelon matrix is the number of its nonzero rows (of $\boldsymbol A$ and of $(\boldsymbol A|\boldsymbol b)$). The pivots need not equal $1$ nor be positive.
LU method: once $\boldsymbol y$ is known from $\boldsymbol L\boldsymbol y = \boldsymbol b$, one solves $\boldsymbol U\boldsymbol x = \boldsymbol y$. With $\boldsymbol U = \begin{pmatrix} 2 & 1 \\ 0 & 3 \end{pmatrix}$ and $\boldsymbol y = (5, 6)'$, what is $\boldsymbol x$?
$(3,\, 2)'$
$(\frac32,\, 2)'$
$(\frac52,\, 2)'$
$(2,\, \frac32)'$
Explanation. Backward: $x_2 = \frac63 = 2$, then $2x_1 + 2 = 5$, i.e. $x_1 = \frac32$. $(\frac52, 2)'$ forgets the term $u_{12}\,x_2$.
Forward elimination on the augmented matrix $\begin{pmatrix} 1 & 2 & | & 4 \\ 3 & 5 & | & 9 \end{pmatrix}$ ($R_i$: row $i$). Which row is obtained with $R_2 \leftarrow R_2 - 3R_1$?
$(0 \;\; {-1} \;|\; 9)$
$(0 \;\; 11 \;|\; 21)$
$(0 \;\; {-1} \;|\; {-3})$
$(0 \;\; 1 \;|\; 3)$
Explanation. $(3, 5 \,|\, 9) - 3\,(1, 2 \,|\, 4) = (0, -1 \,|\, -3)$. The operation must be applied to the right-hand side too; $(0, 11 \,|\, 21)$ adds instead of subtracting.
For $\varepsilon > 0$, what is $|a| < \varepsilon$ equivalent to?
$0 < a < \varepsilon$
$-\varepsilon < a < \varepsilon$
$a < \varepsilon$
$a > -\varepsilon$ or $a < \varepsilon$
Explanation. It follows from the definition: $|a| < \varepsilon$ holds both for $a \ge 0$ with $a < \varepsilon$ and for $a < 0$ with $-a < \varepsilon$. Both inequalities are needed, together.
Explanation. It is the triangle inequality; equality holds only if $b$ and $c$ have the same sign (or one of them is zero). With $b = 1$, $c = -1$: $0 \le 2$.
Which inequality (reverse triangle inequality) holds for every $g, h \in \R$?
$|g - h| \le \big|\,|g| - |h|\,\big|$
$|g| - |h| \ge |g - h|$
$\big|\,|g| - |h|\,\big| \ge |g + h|$
$\big|\,|g| - |h|\,\big| \le |g - h|$
Explanation. The difference of the absolute values does not exceed the absolute value of the difference. With $g = 1$, $h = -1$: $0 \le 2$, while the second one would give $2 \le 0$.
How is the triangle inequality $|b + c| \le |b| + |c|$ proved for every $b, c \in \R$?
start from the reverse triangle inequality $\big|\,|b| - |c|\,\big| \le |b - c|$ and replace $c$ with $-c$
multiply $-|b| \le b \le |b|$ and $-|c| \le c \le |c|$, then use $|b\,c| = |b|\,|c|$
square both sides and use $(b + c)^2 = b^2 + c^2$, then take the square root
add $-|b| \le b \le |b|$ and $-|c| \le c \le |c|$, then use $|a| \le \varepsilon \Leftrightarrow -\varepsilon \le a \le \varepsilon$
Explanation. Adding member to member: $-(|b| + |c|) \le b + c \le |b| + |c|$; with $\varepsilon = |b| + |c| \ge 0$ and $a = b + c$ the claim follows. The reverse triangle inequality is derived from the triangle inequality, not conversely, and it gives a lower bound anyway.
Which steps prove the reverse triangle inequality $\big|\,|g| - |h|\,\big| \le |g - h|$, for every $g, h \in \R$?
$|g| - |h| \le |g - h|$ (triangle inequality with $b = g - h$, $c = h$), the same with $g$ and $h$ swapped, then $|a| \le \varepsilon \Leftrightarrow -\varepsilon \le a \le \varepsilon$
$|g| - |h| \le |g - h|$ (triangle inequality with $b = g - h$, $c = h$), which is enough alone because $|g| - |h| \ge 0$ always
$|g\,h| = |g|\,|h|$ with $h$ replaced by $-h$, then $|a| \le \varepsilon \Leftrightarrow -\varepsilon \le a \le \varepsilon$ with $\varepsilon = |g - h|$
the triangle inequality with $b = g$, $c = h$, i.e. $|g + h| \le |g| + |h|$, then replace $h$ with $|h|$
Explanation. The triangle inequality with $b = g-h$, $c = h$ gives $|g| - |h| \le |g-h|$; swapping $g$ and $h$, $|h| - |g| \le |g-h|$. Hence $-|g-h| \le |g| - |h| \le |g-h|$ and we conclude with $\varepsilon = |g-h|$. It is not true that $|g| - |h| \ge 0$ always.
Which inequality, a form of the triangle inequality, holds for every $d, e, f \in \R$?
$|d - e| \ge |d - f| + |e - f|$
$|d + e| \le |d - f| + |e - f|$
$|d - e| \le |d - f| + |e - f|$
$|d - e| \le |d - f| - |e - f|$
Explanation. Set $b = d - f$, $c = f - e$ in $|b + c| \le |b| + |c|$ and use $|f - e| = |e - f|$: the distance between $d$ and $e$ does not exceed the sum of the distances from a third point $f$.
Which equality on the absolute value holds for every $b, c \in \R$?
$|b - c| = |b| - |c|$
$|-b| = -|b|$
$|b\,c| = |b|\,|c|$
$|b + c| = |b| + |c|$
Explanation. The absolute value is multiplicative. For the sum only the inequality $|b + c| \le |b| + |c|$ holds (for instance $b = 1$, $c = -1$), and $|-b| = |b|$.
Using $|a| \le \varepsilon \Leftrightarrow -\varepsilon \le a \le \varepsilon$, which $x \in \R$ satisfy $|x - 1| \ge 2$?
$-1 \le x \le 3$
$x \le -3$ or $x \ge 1$
$x \le -2$ or $x \ge 2$
$x \le -1$ or $x \ge 3$
Explanation. $|x - 1| \ge 2$ is the negation of $-2 < x - 1 < 2$, i.e. of $-1 < x < 3$: the two half-lines $x \le -1$ and $x \ge 3$ remain. $x \le -3$ or $x \ge 1$ gets the sign of $-1$ wrong.
The absolute value of a real number is always $\ge 0$. Which $x \in \R$ satisfy $|x| \le -1$?
$-1 \le x \le 1$
$x \le -1$
$x \ge 1$
No $x$
Explanation. $|x| \ge 0 > -1$ for every $x$: the inequality has no solution. The rule $-\varepsilon \le x \le \varepsilon$ holds only for $\varepsilon \ge 0$.
The absolute value is $|a| = a$ if $a \ge 0$ and $|a| = -a$ if $a < 0$. For $x < 2$, what does $|x - 2| + x$ equal?
$2 - 2x$
$2$
$2x - 2$
$-2$
Explanation. For $x < 2$ we have $x - 2 < 0$, so $|x - 2| = 2 - x$ and the sum is $2 - x + x = 2$. $2x - 2$ uses $|x - 2| = x - 2$, valid only for $x \ge 2$.
By the triangle inequality with $k$ terms, $\big|\sum_{i=1}^{k} b_i\big| \le \sum_{i=1}^{k} |b_i|$. If $|b_i| \le 2$ for $i = 1, \dots, 5$, what is the largest possible value of $\big|\sum_{i=1}^{5} b_i\big|$?
$32$
$5$
$10$
$2$
Explanation. $\big|\sum_i b_i\big| \le \sum_i |b_i| \le 5 \cdot 2 = 10$, and the value $10$ is reached with $b_i = 2$ for every $i$. $32 = 2^5$ multiplies instead of adding.
By the triangle inequality, $|d - e| \le |d - f| + |e - f|$ (for all $d, e, f \in \R$). Knowing that $|d - f| \le 3$ and $|e - f| \le 4$, what can be concluded about $|d - e|$?
$|d - e| \ge 7$
$|d - e| = 7$
$|d - e| \le 7$
$|d - e| \le 1$
Explanation. $|d - e| \le |d - f| + |e - f| \le 3 + 4 = 7$: the distance between $d$ and $e$ is at most the sum of the distances from $f$. One cannot say it equals $7$ or more.
By the reverse triangle inequality, $\big||g| - |h|\big| \le |g - h|$ for all $g, h \in \R$. Knowing that $|g - h| \le 1$ and $|h| = 5$, which interval surely contains $|g|$?
Explanation. $|x| < 3$ is equivalent to $-3 < x < 3$: the integers are $-2, -1, 0, 1, 2$, that is $5$. $7$ also includes $\pm 3$ (non-strict inequality).
The rule $|a| < \varepsilon \Leftrightarrow -\varepsilon < a < \varepsilon$ holds for $\varepsilon > 0$. A student solves $|x - 3| < -2$ by writing $2 < x - 3 < -2$. What is wrong?
The rule requires $\varepsilon > 0$
The directions had to be reversed
Both sides had to be squared
Nothing: one gets $5 < x < 1$
Explanation. With $\varepsilon = -2 < 0$ the rule does not apply: $|x - 3| \ge 0 > -2$, so the inequality has no solution.
Euclid's division: for integers $n$, $m \neq 0$ there exist integers $q, r$ with $n = q\,m + r$ and $0 \le r < |m|$. In the proof of existence, which result guarantees that the remainder $r$ exists?
the uniqueness of $q$ and $r$, proved before existence
well-ordering: the nonempty set $S = \{n - km \ge 0 : k \in \Z\}$ has a smallest element
the pigeonhole principle applied to the possible remainders $0, 1, \dots, |m| - 1$
the triangle inequality $|n - km| \le |n| + |k|\,|m|$ for every $k \in \Z$
Explanation. $r$ is the minimum of $S$; if $r \ge |m|$, also $r - |m|$ would be in $S$, contradicting minimality: hence $0 \le r < |m|$. Uniqueness is proved separately and does not give existence.
To prove uniqueness in Euclid's division one assumes $n = q_1 m + r_1 = q_2 m + r_2$ with $0 \le r_1, r_2 < |m|$ ($m \neq 0$). Which argument concludes the proof?
$|r_2 - r_1| \le |r_1| + |r_2| < 2|m|$, by the triangle inequality
$m$ is prime, hence it divides $q_1 - q_2$ or $r_2 - r_1$
$r_2 - r_1 = (q_1 - q_2)\,m$ is a multiple of $m$ and $|r_2 - r_1| < |m|$: it is $0$
$r_1$ and $r_2$ are both the minimum of the same set, by well-ordering
Explanation. The only multiple of $m$ with absolute value smaller than $|m|$ is $0$: hence $r_1 = r_2$ and then $q_1 = q_2$. The bound $< 2|m|$ is not enough, and $m$ need not be prime.
$n \text{ mod } m$ is the remainder $r$ of Euclid's division $n = q\,m + r$, with $q$ an integer and $0 \le r < |m|$. What is $-17 \text{ mod } 5$?
$-3$
$3$
$2$
$-2$
Explanation. $-17 = (-4)\cdot 5 + 3$ with $0 \le 3 < 5$. The value $-2$ comes from $-17 = (-3)\cdot 5 - 2$, which has a negative remainder; $2$ is the remainder of $17$.
Let $n, m$ be integers with $m \neq 0$ and let $n \text{ mod } m$ be the remainder of Euclid's division of $n$ by $m$. Which relation always holds?
$0 \le n \text{ mod } m < |m|$
$-|m| < n \text{ mod } m < |m|$
$0 \le n \text{ mod } m \le |m|$
$0 < n \text{ mod } m < |m|$
Explanation. The remainder of Euclid's division satisfies $0 \le r < |m|$: it is non-negative (also for $n < 0$), it can be $0$ (when $m$ divides $n$) and it does not reach $|m|$.
Two natural numbers $n$ and $k$ are congruent modulo $m \ge 1$, $n \equiv k \pmod{m}$, if $n \text{ mod } m = k \text{ mod } m$. Which number is congruent to $38$ modulo $7$?
$4$
$10$
$12$
$5$
Explanation. $38 = 5\cdot 7 + 3$ and $10 = 1\cdot 7 + 3$: same remainder $3$, i.e. $7$ divides $38 - 10 = 28$. $12$, $5$ and $4$ give remainders $5$, $5$ and $4$.
Euclid's division of $n$ by $m \neq 0$ is $n = q\,m + r$ with $q, r$ integers and $0 \le r < |m|$. Why is $-13 = (-3)\cdot 4 - 1$ not Euclid's division of $-13$ by $4$?
The quotient $-3$ is negative
$4$ does not divide $-13$
The remainder exceeds the quotient
The remainder $-1$ is negative
Explanation. The remainder must satisfy $0 \le r < 4$: the right expression is $-13 = (-4)\cdot 4 + 3$. The quotient can be negative, and the remainder is not compared with the quotient.
An integer is a multiple of $m$ if it can be written as $q\cdot m$ with $q$ an integer. If $n$ and $k$ are multiples of $m$, which number is surely a multiple of $m$?
$3n - 2k$
$n + 1$
$n + m + 1$
$n\,k + 1$
Explanation. With $n = q_1 m$ and $k = q_2 m$ we get $3n - 2k = (3q_1 - 2q_2)\,m$. Adding $1$ breaks divisibility (for $m \ge 2$).
In the proof of uniqueness of $q$ and $r$ in Euclidean division, from $q m + r = q' m + r'$ we get $|r - r'| = |q - q'|\,|m|$. What is needed to conclude?
That $m$ is prime
That $n$ is positive
That $q = q' + 1$
That $|r - r'| < |m|$
Explanation. A multiple of $|m|$ smaller than $|m|$ in absolute value is $0$.
$n \text{ mod } m$ is the remainder $r$ of Euclid's division $n = q\,m + r$, with $q$ an integer and $0 \le r < |m|$. If $n \text{ mod } 5 = 3$, what is $(n + 4) \text{ mod } 5$?
$4$
$3$
$2$
$7$
Explanation. $n = 5q + 3$, so $n + 4 = 5q + 7 = 5(q + 1) + 2$ with $0 \le 2 < 5$. $7$ is not a remainder modulo $5$ (it must be $< 5$).
$n \text{ mod } m$ is the remainder $r$ of Euclid's division $n = q\,m + r$, with $q$ an integer and $0 \le r < |m|$. For integers $0 \le n < m$, what is $n \text{ mod } m$?
$0$
$m - n$
$m$
$n$
Explanation. $n = 0 \cdot m + n$ with $0 \le n < m$: quotient $0$ and remainder $n$. The remainder can never equal $m$.
$n \text{ mod } m$ is the remainder $r$ of Euclid's division $n = q\,m + r$, with $q$ an integer and $0 \le r < |m|$. What is $n \text{ mod } 1$ for every integer $n$?
$n$
$-n$
$0$
$1$
Explanation. With $m = 1$ the remainder must satisfy $0 \le r < 1$, so $r = 0$ (and $q = n$): every integer is a multiple of $1$.
The last digit (in base $10$) of a natural number $n$ is $n \text{ mod } 10$, and the remainder of a product is the remainder of the product of the remainders. What is the last digit of $49 \cdot 13$?
$2$
$7$
$3$
$9$
Explanation. $49 \text{ mod } 10 = 9$ and $13 \text{ mod } 10 = 3$; $9 \cdot 3 = 27$ has remainder $7$. Indeed $49 \cdot 13 = 637$.
$n \text{ mod } m$ is the remainder of Euclid's division of $n$ by $m$ ($0 \le$ remainder $< |m|$). An integer $n$ is even if and only if:
$n \text{ mod } 2 = 0$
$n \text{ mod } 2 = 1$
$2 \text{ mod } n = 0$
$n \text{ mod } 4 = 2$
Explanation. $n$ is even when $n = 2q$, i.e. when the remainder of the division by $2$ is $0$. $n \text{ mod } 4 = 2$ describes only some even numbers (not $4$ or $8$).
An integer $n$ is a multiple of the integer $m$ if $n = q\cdot m$ for some integer $q$. How many multiples of $7$ are there between $1$ and $100$ (both included)?
$13$
$7$
$14$
$15$
Explanation. They are $7 \cdot 1, \dots, 7 \cdot 14 = 98$, since $7 \cdot 15 = 105 > 100$: $14$ in all (the quotient of $100$ by $7$).
An integer $m$ is a divisor of the integer $n$ if $n = q\cdot m$ for some integer $q$. If $m$ divides $n$ and $n \neq 0$, which statement is always true?
$m > 0$
$n \text{ mod } m = 1$
$|m| \le |n|$
$m \le n$
Explanation. From $n = q\,m$ with $n \neq 0$ it follows that $q \neq 0$, so $|q| \ge 1$ and $|n| = |q|\,|m| \ge |m|$. $m \le n$ fails for $m = 3$, $n = -3$; $m = -3$ divides $6$.
$n \text{ mod } m$ is the remainder of Euclid's division of $n$ by $m$; the remainder of a product is the remainder of the product of the remainders. What is $2^{10} \text{ mod } 3$?
$2$
$0$
$10$
$1$
Explanation. $2^2 = 4$ has remainder $1$ modulo $3$, so $2^{10} = (2^2)^5$ has remainder $1^5 = 1$. Indeed $1024 = 341 \cdot 3 + 1$.
$n \text{ mod } m$ is the remainder $r$ of Euclid's division $n = q\,m + r$, with $0 \le r < |m|$. If $n \text{ mod } 6 = 4$, what is $n \text{ mod } 3$?
$4$
$2$
$0$
$1$
Explanation. $n = 6q + 4 = 3(2q + 1) + 1$, with $0 \le 1 < 3$: the remainder modulo $3$ is $1$. $4$ cannot be a remainder modulo $3$.
$a \equiv b \pmod{m}$ means that $a$ and $b$ have the same remainder in the division by $m$. If $a \equiv 2 \pmod{7}$ and $b \equiv 6 \pmod{7}$, what is $(a + b) \text{ mod } 7$?
$8$
$4$
$5$
$1$
Explanation. $a + b \equiv 2 + 6 = 8 \equiv 1 \pmod{7}$. $8$ is not a remainder modulo $7$ (it must be $< 7$); $5 = 12 \text{ mod } 7$ comes from the product.
Euclid's division of $n$ by $m \neq 0$ writes $n = q\,m + r$ with $q, r$ integers and $0 \le r < |m|$. Which expression is Euclid's division of $58$ by $7$?
$58 = 9 \cdot 7 - 5$
$58 = 7 \cdot 7 + 9$
$58 = 8 \cdot 7 + 3$
$58 = 8 \cdot 7 + 2$
Explanation. $8 \cdot 7 + 2 = 58$ with $0 \le 2 < 7$. $9 \cdot 7 - 5$ has a negative remainder, $7 \cdot 7 + 9$ has remainder $9 \ge 7$, $8 \cdot 7 + 3 = 59$.
$n \text{ mod } m$ is the remainder of Euclid's division of $n$ by $m \neq 0$ ($0 \le$ remainder $< |m|$). If $n \text{ mod } m = 0$, what can be concluded?
$n$ is a divisor of $m$
$n$ is equal to zero
$n$ is less than $m$
$m$ is a divisor of $n$
Explanation. Remainder $0$ means $n = q\,m$ with $q$ an integer: $m$ divides $n$ ($n$ is a multiple of $m$). For instance $12 \text{ mod } 4 = 0$ with $n = 12 \neq 0$.
We want to prove that «$m$ divides $n - k$» implies $n \text{ mod } m = k \text{ mod } m$ (same remainder in Euclid's division, $0 \le r < |m|$). Which property of Euclid's division is needed?
That $n - k$ is less than $m$
The uniqueness of the remainder
That $m$ is a prime number
That $n$ and $k$ are positive
Explanation. From $k = q\,m + r$ and $n - k = t\,m$ it follows that $n = (q + t)\,m + r$ with the same $r$; by uniqueness, $r$ is exactly the remainder of $n$.
Generated questions (54)
Each generator builds a new instance, with different numbers, at every start: a few examples here.
What is $\sum_{j=5}^{13} (2j-1)$, i.e. the sum of the odd numbers from $9$ to $25$?
$153$
$144$
$81$
$169$
Explanation. By decomposition, $\sum_{j=5}^{13} (2j-1) = \sum_{j=1}^{13} (2j-1) - \sum_{j=1}^{4} (2j-1)$, and the sum of the first $m$ odd numbers is $m^2$: $13^2 - 4^2 = 153$. Subtracting $5^2$ instead of $4^2$ also drops the term $j = 5$.
What is $\sum_{j=4}^{15} (2j-1)$, i.e. the sum of the odd numbers from $7$ to $29$?
$216$
$209$
$144$
$225$
Explanation. By decomposition, $\sum_{j=4}^{15} (2j-1) = \sum_{j=1}^{15} (2j-1) - \sum_{j=1}^{3} (2j-1)$, and the sum of the first $m$ odd numbers is $m^2$: $15^2 - 3^2 = 216$. Subtracting $4^2$ instead of $3^2$ also drops the term $j = 4$.
Explanation. The constant appears in each of the $4$ factors: $\prod_{j=1}^{4} (-2\, j) = (-2)^{4} \prod_{j=1}^{4} j = (-2)^{4}\cdot 4! = 16\cdot 24 = 384$. Taking $-2$ out only once is the typical mistake (it holds for sums).
Explanation. The constant appears in each of the $4$ factors: $\prod_{j=1}^{4} (-3\, j) = (-3)^{4} \prod_{j=1}^{4} j = (-3)^{4}\cdot 4! = 81\cdot 24 = 1944$. Taking $-3$ out only once is the typical mistake (it holds for sums).
Example 1 · la-g-prod-telescopica · level media · notes
What is the product $\prod_{j=1}^{19} \frac{j + 2}{j + 1}$?
$\frac{21}{2}$
$21$
$\frac{19}{2}$
$10$
Explanation. Telescoping: each numerator cancels the next denominator; $\frac{21}{2}$ remains.
Example 2 · la-g-prod-telescopica · level media · notes
What is the product $\prod_{j=1}^{14} \frac{j + 3}{j + 2}$?
$\frac{17}{3}$
$17$
$\frac{14}{3}$
$\frac{16}{3}$
Explanation. Telescoping: each numerator cancels the next denominator; $\frac{17}{3}$ remains.
Given the column vectors $\boldsymbol p = (4,\, -4,\, 4)'$ and $\boldsymbol w = (-3,\, -2,\, -4)'$ of $\R^3$ (the prime $'$ denotes the transpose), what is the linear combination $2\boldsymbol p-\boldsymbol w$?
$(11,\, -6,\, 12)'$
$(5,\, -10,\, 4)'$
$(14,\, -4,\, 16)'$
$(-10,\, 0,\, -12)'$
Explanation. Multiply each entry by its scalar and add the corresponding entries: $2\boldsymbol p-\boldsymbol w = (11,\, -6,\, 12)'$. Watch the sign of the second coefficient: each scalar multiplies only its own vector.
Given the column vectors $\boldsymbol p = (-1,\, 4,\, -1)'$ and $\boldsymbol w = (-4,\, -1,\, 4)'$ of $\R^3$ (the prime $'$ denotes the transpose), what is the linear combination $-3\boldsymbol p-2\boldsymbol w$?
$(11,\, -10,\, -5)'$
$(-5,\, -14,\, 11)'$
$(-21,\, -18,\, 27)'$
$(14,\, -5,\, -10)'$
Explanation. Multiply each entry by its scalar and add the corresponding entries: $-3\boldsymbol p-2\boldsymbol w = (11,\, -10,\, -5)'$. Watch the sign of the second coefficient: each scalar multiplies only its own vector.
Example 1 · la-g-scalar-product · level facile · notes
Compute the scalar product $\boldsymbol p'\,\boldsymbol w$ of the column vectors $\boldsymbol p = (1,\, 4,\, 3,\, 1)'$ and $\boldsymbol w = (3,\, -4,\, 1,\, 4)'$ (the prime $'$ denotes the transpose).
$-6$
$26$
$-1$
$13$
Explanation. $\boldsymbol p'\,\boldsymbol w = \sum_{j=1}^{4} p_j w_j = -6$: multiply the entries with the same index (with their signs) and add the products.
Example 2 · la-g-scalar-product · level facile · notes
Compute the scalar product $\boldsymbol p'\,\boldsymbol w$ of the column vectors $\boldsymbol p = (5,\, 2,\, 3,\, 5)'$ and $\boldsymbol w = (3,\, 4,\, -4,\, 5)'$ (the prime $'$ denotes the transpose).
$36$
$60$
$44$
$23$
Explanation. $\boldsymbol p'\,\boldsymbol w = \sum_{j=1}^{4} p_j w_j = 36$: multiply the entries with the same index (with their signs) and add the products.
For which value of the real parameter $k$ are the column vectors $\boldsymbol v_1 = (-2,\, 2,\, 1)'$, $\boldsymbol v_2 = (3,\, 0,\, 3)'$, $\boldsymbol v_3 = (4,\, 2,\, k)'$ linearly dependent?
$k = 7$
$k = -7$
$k = -5$
$k = 5$
Explanation. From the first two entries, $\boldsymbol v_3 = \boldsymbol v_1+2\boldsymbol v_2$ is the only possible combination; the third entry gives $k = 7$. For the other values the determinant of the matrix with columns $\boldsymbol v_1, \boldsymbol v_2, \boldsymbol v_3$ is nonzero.
For which value of the real parameter $k$ are the column vectors $\boldsymbol v_1 = (-3,\, 2,\, -1)'$, $\boldsymbol v_2 = (-3,\, -2,\, 3)'$, $\boldsymbol v_3 = (-9,\, 2,\, k)'$ linearly dependent?
$k = 1$
$k = -1$
$k = -5$
$k = 5$
Explanation. From the first two entries, $\boldsymbol v_3 = 2\boldsymbol v_1+\boldsymbol v_2$ is the only possible combination; the third entry gives $k = 1$. For the other values the determinant of the matrix with columns $\boldsymbol v_1, \boldsymbol v_2, \boldsymbol v_3$ is nonzero.
The column vectors (the prime $'$ denotes the transpose) $\boldsymbol v_1 = (0,\, 1)'$ and $\boldsymbol v_2 = (2,\, 3)'$ form a basis of $\R^2$. What are the coordinates $(\lambda_1, \lambda_2)$ of $\boldsymbol x = (4,\, 3)'$, i.e. $\boldsymbol x = \lambda_1 \boldsymbol v_1 + \lambda_2 \boldsymbol v_2$?
$(-3,\, 2)$
$(2,\, -3)$
$(4,\, 3)$
$(-3,\, -2)$
Explanation. Solve $\lambda_1 \boldsymbol v_1 + \lambda_2 \boldsymbol v_2 = \boldsymbol x$ (the basis vectors are the columns): $\lambda_1 = -3$, $\lambda_2 = 2$. The coordinates are unique because $\boldsymbol v_1, \boldsymbol v_2$ are linearly independent.
The column vectors (the prime $'$ denotes the transpose) $\boldsymbol v_1 = (-1,\, 2)'$ and $\boldsymbol v_2 = (-1,\, -3)'$ form a basis of $\R^2$. What are the coordinates $(\lambda_1, \lambda_2)$ of $\boldsymbol x = (-2,\, -11)'$, i.e. $\boldsymbol x = \lambda_1 \boldsymbol v_1 + \lambda_2 \boldsymbol v_2$?
$(-1,\, 3)$
$(3,\, -1)$
$(-2,\, -11)$
$(-1,\, -3)$
Explanation. Solve $\lambda_1 \boldsymbol v_1 + \lambda_2 \boldsymbol v_2 = \boldsymbol x$ (the basis vectors are the columns): $\lambda_1 = -1$, $\lambda_2 = 3$. The coordinates are unique because $\boldsymbol v_1, \boldsymbol v_2$ are linearly independent.
The column vectors (the prime $'$ denotes the transpose) $\boldsymbol v_1 = (-1,\, 0,\, 0)'$, $\boldsymbol v_2 = (-2,\, -1,\, -1)'$, $\boldsymbol v_3 = (2,\, 1,\, 0)'$ form a basis of $\R^3$. What are the coordinates $(\lambda_1, \lambda_2, \lambda_3)$ of $\boldsymbol x = (-6,\, -4,\, -3)'$ with respect to this basis, that is $\boldsymbol x = \lambda_1\boldsymbol v_1 + \lambda_2\boldsymbol v_2 + \lambda_3\boldsymbol v_3$?
$(-2,\, 3,\, -1)$
$(-6,\, -4,\, -3)$
$(6,\, -15,\, 7)$
$(-1,\, 3,\, -2)$
Explanation. Solve $\lambda_1 \boldsymbol v_1 + \lambda_2 \boldsymbol v_2 + \lambda_3 \boldsymbol v_3 = \boldsymbol x$, a system whose matrix has the basis vectors as columns (not as rows): $(\lambda_1, \lambda_2, \lambda_3) = (-2,\, 3,\, -1)$. Check: $-2\boldsymbol v_1+3\boldsymbol v_2-\boldsymbol v_3 = \boldsymbol x$.
The column vectors (the prime $'$ denotes the transpose) $\boldsymbol v_1 = (-1,\, -1,\, 2)'$, $\boldsymbol v_2 = (1,\, 2,\, 0)'$, $\boldsymbol v_3 = (1,\, 2,\, -1)'$ form a basis of $\R^3$. What are the coordinates $(\lambda_1, \lambda_2, \lambda_3)$ of $\boldsymbol x = (-1,\, -4,\, -3)'$ with respect to this basis, that is $\boldsymbol x = \lambda_1\boldsymbol v_1 + \lambda_2\boldsymbol v_2 + \lambda_3\boldsymbol v_3$?
$(-2,\, -2,\, -1)$
$(-1,\, -4,\, -3)$
$(2,\, -3,\, -1)$
$(-1,\, -2,\, -2)$
Explanation. Solve $\lambda_1 \boldsymbol v_1 + \lambda_2 \boldsymbol v_2 + \lambda_3 \boldsymbol v_3 = \boldsymbol x$, a system whose matrix has the basis vectors as columns (not as rows): $(\lambda_1, \lambda_2, \lambda_3) = (-2,\, -2,\, -1)$. Check: $-2\boldsymbol v_1-2\boldsymbol v_2-\boldsymbol v_3 = \boldsymbol x$.
4.1. Matrices (6)
Example 1 · la-g-mat-product · level facile · notes
Let $\boldsymbol A = \begin{pmatrix} 1 & 1 \\ 3 & 3 \end{pmatrix}$ and $\boldsymbol B = \begin{pmatrix} -3 & 3 \\ 1 & 1 \end{pmatrix}$. What is $\boldsymbol A\boldsymbol B$?
$\begin{pmatrix} -2 & 4 \\ -6 & 12 \end{pmatrix}$
$\begin{pmatrix} 6 & 6 \\ 4 & 4 \end{pmatrix}$
$\begin{pmatrix} -3 & 3 \\ 3 & 3 \end{pmatrix}$
$\begin{pmatrix} 0 & 2 \\ 0 & 6 \end{pmatrix}$
Explanation. Entry $(i,k)$ of $\boldsymbol A\boldsymbol B$ is the scalar product of row $i$ of $\boldsymbol A$ and column $k$ of $\boldsymbol B$: $\boldsymbol A\boldsymbol B = \begin{pmatrix} -2 & 4 \\ -6 & 12 \end{pmatrix}$. The product is not commutative: $\boldsymbol B\boldsymbol A$ is in general different.
Example 2 · la-g-mat-product · level facile · notes
Let $\boldsymbol A = \begin{pmatrix} 4 & 3 \\ 2 & 3 \end{pmatrix}$ and $\boldsymbol B = \begin{pmatrix} 3 & -2 \\ 4 & 4 \end{pmatrix}$. What is $\boldsymbol A\boldsymbol B$?
$\begin{pmatrix} 24 & 4 \\ 18 & 8 \end{pmatrix}$
$\begin{pmatrix} 8 & 3 \\ 24 & 24 \end{pmatrix}$
$\begin{pmatrix} 12 & -6 \\ 8 & 12 \end{pmatrix}$
$\begin{pmatrix} 6 & 28 \\ 0 & 20 \end{pmatrix}$
Explanation. Entry $(i,k)$ of $\boldsymbol A\boldsymbol B$ is the scalar product of row $i$ of $\boldsymbol A$ and column $k$ of $\boldsymbol B$: $\boldsymbol A\boldsymbol B = \begin{pmatrix} 24 & 4 \\ 18 & 8 \end{pmatrix}$. The product is not commutative: $\boldsymbol B\boldsymbol A$ is in general different.
What is the rank of $\boldsymbol A = \begin{pmatrix} -6 & -2 & 0 & -6 \\ -3 & -1 & 0 & -3 \\ 6 & 2 & 0 & 6 \end{pmatrix}$?
$\mathrm{rank}(\boldsymbol A) = 1$
$\mathrm{rank}(\boldsymbol A) = 2$
$\mathrm{rank}(\boldsymbol A) = 3$
$\mathrm{rank}(\boldsymbol A) = 4$
Explanation. Gaussian elimination gives a row echelon form with 1 nonzero row, hence $\mathrm{rank}(\boldsymbol A) = 1$. In any case $\mathrm{rank}(\boldsymbol A) \le \min\{3,4\} = 3$.
What is the rank of $\boldsymbol A = \begin{pmatrix} 2 & -1 & -3 & -1 \\ 3 & 2 & 1 & 3 \\ 5 & 1 & -2 & 2 \end{pmatrix}$?
$\mathrm{rank}(\boldsymbol A) = 1$
$\mathrm{rank}(\boldsymbol A) = 2$
$\mathrm{rank}(\boldsymbol A) = 3$
$\mathrm{rank}(\boldsymbol A) = 4$
Explanation. Gaussian elimination gives a row echelon form with 2 nonzero rows, hence $\mathrm{rank}(\boldsymbol A) = 2$. In any case $\mathrm{rank}(\boldsymbol A) \le \min\{3,4\} = 3$.
Compute $\det(\boldsymbol A)$ for $\boldsymbol A = \begin{pmatrix} 1 & 2 & 0 & 0 \\ 3 & -2 & 2 & 1 \\ 1 & 3 & -2 & 3 \\ -1 & -1 & -2 & -2 \end{pmatrix}$ by Laplace expansion along the first row (cofactor of $a_{ij}$: $(-1)^{i+j}$ times the determinant of the submatrix without row $i$ and column $j$).
$-70$
$26$
$-22$
$70$
Explanation. Only $a_{11} = 1$ and $a_{12} = 2$ are nonzero: $\det(\boldsymbol A) = a_{11}\det(\boldsymbol A_{11}) - a_{12}\det(\boldsymbol A_{12}) = 1\cdot (-22) - 2\cdot 24 = -70$. The sign of the $(1,2)$ cofactor is $(-1)^{1+2} = -1$: forgetting it gives $26$.
Compute $\det(\boldsymbol A)$ for $\boldsymbol A = \begin{pmatrix} -1 & 2 & 0 & 0 \\ -1 & -2 & 0 & 3 \\ 2 & 1 & 3 & 2 \\ 1 & 3 & 2 & -2 \end{pmatrix}$ by Laplace expansion along the first row (cofactor of $a_{ij}$: $(-1)^{i+j}$ times the determinant of the submatrix without row $i$ and column $j$).
$-25$
$27$
$1$
$25$
Explanation. Only $a_{11} = -1$ and $a_{12} = 2$ are nonzero: $\det(\boldsymbol A) = a_{11}\det(\boldsymbol A_{11}) - a_{12}\det(\boldsymbol A_{12}) = -1\cdot (-1) - 2\cdot 13 = -25$. The sign of the $(1,2)$ cofactor is $(-1)^{1+2} = -1$: forgetting it gives $27$.
Example 1 · la-g-mat-potenza · level complessa · notes
What is $\boldsymbol A^3 = \boldsymbol A\boldsymbol A\boldsymbol A$ for $\boldsymbol A = \begin{pmatrix} 3 & -3 \\ 0 & 2 \end{pmatrix}$?
$\begin{pmatrix} 27 & -57 \\ 0 & 8 \end{pmatrix}$
$\begin{pmatrix} 27 & -9 \\ 0 & 8 \end{pmatrix}$
$\begin{pmatrix} 27 & -27 \\ 0 & 8 \end{pmatrix}$
$\begin{pmatrix} 27 & -15 \\ 0 & 8 \end{pmatrix}$
Explanation. $\boldsymbol A^2 = \begin{pmatrix} 9 & -15 \\ 0 & 4 \end{pmatrix}$ and $\boldsymbol A^3 = \boldsymbol A^2\boldsymbol A$; the off-diagonal entry is neither $b^3$ nor $3b$.
Example 2 · la-g-mat-potenza · level complessa · notes
What is $\boldsymbol A^3 = \boldsymbol A\boldsymbol A\boldsymbol A$ for $\boldsymbol A = \begin{pmatrix} 3 & 2 \\ 0 & -2 \end{pmatrix}$?
$\begin{pmatrix} 27 & 14 \\ 0 & -8 \end{pmatrix}$
$\begin{pmatrix} 27 & 6 \\ 0 & -8 \end{pmatrix}$
$\begin{pmatrix} 27 & 8 \\ 0 & -8 \end{pmatrix}$
$\begin{pmatrix} 27 & 2 \\ 0 & -8 \end{pmatrix}$
Explanation. $\boldsymbol A^2 = \begin{pmatrix} 9 & 2 \\ 0 & 4 \end{pmatrix}$ and $\boldsymbol A^3 = \boldsymbol A^2\boldsymbol A$; the off-diagonal entry is neither $b^3$ nor $3b$.
Let $\boldsymbol A \in \R^{3\times 3}$ with $\det(\boldsymbol A) = 2$. Denoting by $R_i$ row $i$, the elementary operations $R_3 \leftarrow -2R_3$, $R_2 \leftrightarrow R_1$, $R_1 \leftarrow R_1 - 3R_3$ are applied in this order. What is the determinant of the resulting matrix?
$4$
$-4$
$-2$
$-12$
Explanation. The swap changes the sign, multiplying a row by $-2$ multiplies the determinant by $-2$, adding a multiple of another row does not change it: $(-1)\cdot (-2)\cdot 2 = 4$.
Let $\boldsymbol A \in \R^{3\times 3}$ with $\det(\boldsymbol A) = -3$. Denoting by $R_i$ row $i$, the elementary operations $R_2 \leftrightarrow R_3$, $R_3 \leftarrow -3R_3$, $R_1 \leftarrow R_1 + 3R_2$ are applied in this order. What is the determinant of the resulting matrix?
$-9$
$9$
$3$
$-27$
Explanation. The swap changes the sign, multiplying a row by $-3$ multiplies the determinant by $-3$, adding a multiple of another row does not change it: $(-1)\cdot (-3)\cdot (-3) = -9$.
Let $\boldsymbol A = \begin{pmatrix} 1 & -4 & 3 \\ 1 & 1 & 1 \\ -2 & 3 & -4 \end{pmatrix}$ and let $R_i$ be row $i$. The first step of Gaussian elimination with partial pivoting is performed: the entry of the first column with the largest absolute value is brought to position $(1,1)$ by a row swap, then the entries below it are cancelled. Which matrix is obtained?
Explanation. The largest absolute value in the first column is $|-2|$, in row $3$: swap $R_1 \leftrightarrow R_3$, then $R_k \leftarrow R_k - \frac{a_{k1}}{a_{11}} R_1$ for $k = 2, 3$ (with pivot $-2$). We get $\begin{pmatrix} -2 & 3 & -4 \\ 0 & \frac{5}{2} & -1 \\ 0 & -\frac{5}{2} & 1 \end{pmatrix}$. Without the swap the pivot would be $1$; with the wrong sign of the multiplier the first column is not cancelled.
Let $\boldsymbol A = \begin{pmatrix} -1 & -1 & 3 \\ -1 & 3 & 1 \\ 2 & 4 & 2 \end{pmatrix}$ and let $R_i$ be row $i$. The first step of Gaussian elimination with partial pivoting is performed: the entry of the first column with the largest absolute value is brought to position $(1,1)$ by a row swap, then the entries below it are cancelled. Which matrix is obtained?
Explanation. The largest absolute value in the first column is $|2|$, in row $3$: swap $R_1 \leftrightarrow R_3$, then $R_k \leftarrow R_k - \frac{a_{k1}}{a_{11}} R_1$ for $k = 2, 3$ (with pivot $2$). We get $\begin{pmatrix} 2 & 4 & 2 \\ 0 & 5 & 2 \\ 0 & 1 & 4 \end{pmatrix}$. Without the swap the pivot would be $-1$; with the wrong sign of the multiplier the first column is not cancelled.
Compute $\det(\boldsymbol A)$ for $\boldsymbol A = \begin{pmatrix} 1 & 0 & 1 & 1 \\ 1 & 1 & 3 & -1 \\ 1 & 2 & 2 & 1 \\ 0 & -1 & 0 & -1 \end{pmatrix}$ (for instance by reducing $\boldsymbol A$ to triangular form with Gaussian elimination).
$1$
$-1$
$-2$
$2$
Explanation. Adding multiples of rows does not change the determinant, each swap changes its sign. Swapping $R_2 \leftrightarrow R_4$ and then eliminating without further swaps we reach the triangular form with diagonal $1,\ -1,\ 1,\ 1$: $\det(\boldsymbol A) = -(1\cdot (-1)\cdot 1\cdot 1) = 1$. The product of the diagonal of $\boldsymbol A$ gives the determinant only for triangular matrices.
Compute $\det(\boldsymbol A)$ for $\boldsymbol A = \begin{pmatrix} 2 & 1 & 2 & 1 \\ -2 & 1 & -4 & 1 \\ -4 & -4 & 4 & 3 \\ 4 & 0 & 9 & 2 \end{pmatrix}$ (for instance by reducing $\boldsymbol A$ to triangular form with Gaussian elimination).
$-36$
$36$
$16$
$-16$
Explanation. Adding multiples of rows does not change the determinant, each swap changes its sign. Swapping $R_3 \leftrightarrow R_4$ and then eliminating without further swaps we reach the triangular form with diagonal $2,\ 2,\ 3,\ 3$: $\det(\boldsymbol A) = -(2\cdot 2\cdot 3\cdot 3) = -36$. The product of the diagonal of $\boldsymbol A$ gives the determinant only for triangular matrices.
Let $\boldsymbol A = \begin{pmatrix} 1 & 1 \\ 3 & 4 \end{pmatrix}$. What is $\boldsymbol A^{-1}$?
$\begin{pmatrix} 4 & -1 \\ -3 & 1 \end{pmatrix}$
$\begin{pmatrix} 1 & -1 \\ -3 & 4 \end{pmatrix}$
$\begin{pmatrix} 4 & 1 \\ 3 & 1 \end{pmatrix}$
$\begin{pmatrix} 4 & -3 \\ -1 & 1 \end{pmatrix}$
Explanation. $\det(\boldsymbol A) = 1\neq 0$; swap the two diagonal entries, change the sign of the two off-diagonal entries and divide by the determinant: $\boldsymbol A^{-1} = \begin{pmatrix} 4 & -1 \\ -3 & 1 \end{pmatrix}$.
Explanation. $\det(\boldsymbol A) = -3\neq 0$; swap the two diagonal entries, change the sign of the two off-diagonal entries and divide by the determinant: $\boldsymbol A^{-1} = \frac{1}{-3}\begin{pmatrix} 3 & 3 \\ -1 & -2 \end{pmatrix}$.
Example 1 · la-g-gj-inverse3 · level complessa · notes
With the Gauss–Jordan method, $(\boldsymbol A \mid \boldsymbol I)$ is transformed into $(\boldsymbol I \mid \boldsymbol B)$, where $\boldsymbol A = \begin{pmatrix} 1 & 0 & 1 \\ 1 & 2 & -1 \\ 1 & 4 & -1 \end{pmatrix}$. Which is $\boldsymbol B = \boldsymbol A^{-1}$?
Explanation. $\det(\boldsymbol A) = 4$ and $\boldsymbol A^{-1} = \begin{pmatrix} \frac{1}{2} & 1 & -\frac{1}{2} \\ 0 & -\frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & -1 & \frac{1}{2} \end{pmatrix}$. Check: $\boldsymbol A\boldsymbol A^{-1} = \boldsymbol I$. With the adjugate: $\boldsymbol A^{-1} = \frac{1}{\det(\boldsymbol A)}\boldsymbol C'$, cofactors with the sign $(-1)^{i+j}$, transposed; forgetting the sign or the transposition gives the other answers.
Example 2 · la-g-gj-inverse3 · level complessa · notes
With the Gauss–Jordan method, $(\boldsymbol A \mid \boldsymbol I)$ is transformed into $(\boldsymbol I \mid \boldsymbol B)$, where $\boldsymbol A = \begin{pmatrix} -1 & 2 & -1 \\ -1 & 3 & -2 \\ -1 & 4 & -1 \end{pmatrix}$. Which is $\boldsymbol B = \boldsymbol A^{-1}$?
Compute the factorization $\boldsymbol A = \boldsymbol L\boldsymbol U$ of $\boldsymbol A = \begin{pmatrix} 1 & -3 & -1 \\ 3 & -10 & -6 \\ -2 & 8 & 7 \end{pmatrix}$ by Gaussian elimination without row swaps ($\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular). Which is the matrix $\boldsymbol L$?
Explanation. The multipliers of the steps $R_i \leftarrow R_i - \ell_{ij} R_j$ go in position $(i,j)$ of $\boldsymbol L$, with their sign; $\ell_{32}$ is computed on the matrix already updated by the first step. We get $\boldsymbol U = \begin{pmatrix} 1 & -3 & -1 \\ 0 & -1 & -3 \\ 0 & 0 & -1 \end{pmatrix}$ and $\boldsymbol L\boldsymbol U = \boldsymbol A$.
Compute the factorization $\boldsymbol A = \boldsymbol L\boldsymbol U$ of $\boldsymbol A = \begin{pmatrix} 1 & -1 & 3 \\ -1 & -1 & -2 \\ 2 & 0 & 8 \end{pmatrix}$ by Gaussian elimination without row swaps ($\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular). Which is the matrix $\boldsymbol L$?
Explanation. The multipliers of the steps $R_i \leftarrow R_i - \ell_{ij} R_j$ go in position $(i,j)$ of $\boldsymbol L$, with their sign; $\ell_{32}$ is computed on the matrix already updated by the first step. We get $\boldsymbol U = \begin{pmatrix} 1 & -1 & 3 \\ 0 & -2 & 1 \\ 0 & 0 & 3 \end{pmatrix}$ and $\boldsymbol L\boldsymbol U = \boldsymbol A$.
The factorization $\boldsymbol P\boldsymbol A = \boldsymbol L\boldsymbol U$ of $\boldsymbol A = \begin{pmatrix} -1 & 1 & 2 \\ -3 & 3 & 8 \\ 2 & -1 & -3 \end{pmatrix}$ is computed by Gaussian elimination ($\boldsymbol P$ a permutation matrix, $\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular), swapping two rows only when the pivot is zero; it turns out that $\boldsymbol P = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{pmatrix}$. What are $\boldsymbol L$ and $\det(\boldsymbol A)$?
The factorization $\boldsymbol P\boldsymbol A = \boldsymbol L\boldsymbol U$ of $\boldsymbol A = \begin{pmatrix} 2 & 2 & -1 \\ -4 & -4 & 4 \\ 6 & 7 & 0 \end{pmatrix}$ is computed by Gaussian elimination ($\boldsymbol P$ a permutation matrix, $\boldsymbol L$ lower triangular with ones on the diagonal, $\boldsymbol U$ upper triangular), swapping two rows only when the pivot is zero; it turns out that $\boldsymbol P = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{pmatrix}$. What are $\boldsymbol L$ and $\det(\boldsymbol A)$?
What are the eigenvalues of $\boldsymbol Q = \begin{pmatrix} 2 & -5 \\ 3 & -6 \end{pmatrix}$, i.e. the roots of $\det(\boldsymbol Q - \lambda\boldsymbol I) = 0$?
$-3$ and $-1$
$-6$ and $2$
$1$ and $3$
$-3$ and $1$
Explanation. $\det(\boldsymbol Q - \lambda\boldsymbol I) = \lambda^2+4\lambda+3 = (\lambda+3)(\lambda+1)$. Check: the eigenvalues add up to the trace and multiply to the determinant. The diagonal entries are the eigenvalues only for triangular matrices.
What are the eigenvalues of $\boldsymbol Q = \begin{pmatrix} 4 & -1 \\ -1 & 4 \end{pmatrix}$, i.e. the roots of $\det(\boldsymbol Q - \lambda\boldsymbol I) = 0$?
$3$ and $5$
$4$ and $4$
$-5$ and $-3$
$-5$ and $3$
Explanation. $\det(\boldsymbol Q - \lambda\boldsymbol I) = \lambda^2-8\lambda+15 = (\lambda-3)(\lambda-5)$. Check: the eigenvalues add up to the trace and multiply to the determinant. The diagonal entries are the eigenvalues only for triangular matrices.
How is the symmetric matrix $\boldsymbol Q = \begin{pmatrix} 1 & 3 \\ 3 & 5 \end{pmatrix}$ classified according to the sign of the quadratic form $\boldsymbol x'\boldsymbol Q\,\boldsymbol x$?
positive definite
negative definite
indefinite
positive semidefinite but not positive definite
Explanation. $\Delta_1 = 1$, $\Delta_2 = \det(\boldsymbol Q) = -4$. Hence $\boldsymbol Q$ is indefinite (Sylvester's criterion; equivalently, by the signs of the eigenvalues).
How is the symmetric matrix $\boldsymbol Q = \begin{pmatrix} -5 & -2 \\ -2 & -3 \end{pmatrix}$ classified according to the sign of the quadratic form $\boldsymbol x'\boldsymbol Q\,\boldsymbol x$?
positive definite
negative definite
indefinite
positive semidefinite but not positive definite
Explanation. $\Delta_1 = -5$, $\Delta_2 = \det(\boldsymbol Q) = 11$. Hence $\boldsymbol Q$ is negative definite (Sylvester's criterion; equivalently, by the signs of the eigenvalues).
The eigenvalues of $\boldsymbol Q = \begin{pmatrix} 2 & -5 \\ 3 & -6 \end{pmatrix}$ are $-3$ and $-1$. Which column vector ($'$: transpose) is an eigenvector associated with the eigenvalue $\lambda = -1$?
$\boldsymbol v = (5,\, 3)'$
$\boldsymbol v = (1,\, 1)'$
$\boldsymbol v = (3,\, 5)'$
$\boldsymbol v = (1,\, -1)'$
Explanation. The eigenvectors are the nonzero solutions of $(\boldsymbol Q - (-1)\boldsymbol I)\boldsymbol v = \boldsymbol 0$, with $\boldsymbol Q - (-1)\boldsymbol I = \begin{pmatrix} 3 & -5 \\ 3 & -5 \end{pmatrix}$: for example $\boldsymbol v = (5,\, 3)'$. Check: $\boldsymbol Q\boldsymbol v = -1\,\boldsymbol v$.
The eigenvalues of $\boldsymbol Q = \begin{pmatrix} 2 & -4 \\ -1 & -1 \end{pmatrix}$ are $-2$ and $3$. Which column vector ($'$: transpose) is an eigenvector associated with the eigenvalue $\lambda = 3$?
$\boldsymbol v = (4,\, -1)'$
$\boldsymbol v = (1,\, 1)'$
$\boldsymbol v = (1,\, -4)'$
$\boldsymbol v = (1,\, -1)'$
Explanation. The eigenvectors are the nonzero solutions of $(\boldsymbol Q - 3\boldsymbol I)\boldsymbol v = \boldsymbol 0$, with $\boldsymbol Q - 3\boldsymbol I = \begin{pmatrix} -1 & -4 \\ -1 & -4 \end{pmatrix}$: for example $\boldsymbol v = (4,\, -1)'$. Check: $\boldsymbol Q\boldsymbol v = 3\,\boldsymbol v$.
Compute the leading principal minors $\Delta_1, \Delta_2, \Delta_3$ ($\Delta_k$: determinant of the first $k$ rows and columns) of the symmetric matrix $\boldsymbol Q = \begin{pmatrix} -2 & 1 & -1 \\ 1 & -6 & 0 \\ -1 & 0 & -2 \end{pmatrix}$ and classify it with Sylvester's criterion.
Compute the leading principal minors $\Delta_1, \Delta_2, \Delta_3$ ($\Delta_k$: determinant of the first $k$ rows and columns) of the symmetric matrix $\boldsymbol Q = \begin{pmatrix} -4 & 2 & 2 \\ 2 & -6 & -5 \\ 2 & -5 & -6 \end{pmatrix}$ and classify it with Sylvester's criterion.
Example 1 · la-g-eig-blocchi · level complessa · notes
What are the eigenvalues of $\boldsymbol A = \begin{pmatrix} -2 & 1 & 0 \\ 6 & 3 & 0 \\ -3 & -1 & -2 \end{pmatrix}$?
$-3,\; -2,\; 4$
$-2,\; -2,\; 3$
$-3,\; -3,\; 4$
$-4,\; -2,\; 3$
Explanation. Expanding $\det(\boldsymbol A - \lambda\boldsymbol I)$ along the third column: $(-2 - \lambda)\,[(-2 - \lambda)(3 - \lambda) - (1)(6)]$; the $2 \times 2$ block has trace $1$ and determinant $-12$.
Example 2 · la-g-eig-blocchi · level complessa · notes
What are the eigenvalues of $\boldsymbol A = \begin{pmatrix} -3 & -1 & 0 \\ 18 & 6 & 0 \\ 3 & 2 & -1 \end{pmatrix}$?
$-1,\; 0,\; 3$
$-3,\; -1,\; 6$
$0,\; 3,\; 3$
$-3,\; -1,\; 0$
Explanation. Expanding $\det(\boldsymbol A - \lambda\boldsymbol I)$ along the third column: $(-1 - \lambda)\,[(-3 - \lambda)(6 - \lambda) - (-1)(18)]$; the $2 \times 2$ block has trace $3$ and determinant $0$.
Let $\boldsymbol p = (-6,\, 12,\, -4)'$ (a column vector). What is the Euclidean ($\ell_2$) norm (square root of the sum of the squared entries) $\|\boldsymbol p\|_2$?
Let $\boldsymbol p = (-4,\, 1,\, 8)'$ (a column vector). What is the Euclidean ($\ell_2$) norm (square root of the sum of the squared entries) $\|\boldsymbol p\|_2$?
Example 1 · la-g-norm-l1-dist · level facile · notes
With the norm $\|\boldsymbol p\|_1 = \sum_j |p_j|$, what is the distance $\|\boldsymbol p - \boldsymbol w\|_1$ between $\boldsymbol p = (1,\, 1,\, 4)'$ and $\boldsymbol w = (5,\, -5,\, 4)'$?
$10$
$-8$
$18$
$2$
Explanation. $\boldsymbol p - \boldsymbol w = (-4,\, 6,\, 0)'$ and the absolute values are added: $10$.
Example 2 · la-g-norm-l1-dist · level facile · notes
With the norm $\|\boldsymbol p\|_1 = \sum_j |p_j|$, what is the distance $\|\boldsymbol p - \boldsymbol w\|_1$ between $\boldsymbol p = (-2,\, 4,\, -2)'$ and $\boldsymbol w = (-5,\, -1,\, 5)'$?
$15$
$-3$
$13$
$1$
Explanation. $\boldsymbol p - \boldsymbol w = (3,\, 5,\, -7)'$ and the absolute values are added: $15$.
Example 1 · la-g-norm-linf-dist · level facile · notes
With the norm $\|\boldsymbol p\|_\infty = \max_j |p_j|$, what is $\|\boldsymbol p - \boldsymbol w\|_\infty$ for $\boldsymbol p = (1,\, 1,\, 4)'$ and $\boldsymbol w = (5,\, -6,\, 5)'$?
$7$
$2$
$-4$
$12$
Explanation. $\boldsymbol p - \boldsymbol w = (-4,\, 7,\, -1)'$: the largest absolute value is $7$.
Example 2 · la-g-norm-linf-dist · level facile · notes
With the norm $\|\boldsymbol p\|_\infty = \max_j |p_j|$, what is $\|\boldsymbol p - \boldsymbol w\|_\infty$ for $\boldsymbol p = (-2,\, 5,\, -3)'$ and $\boldsymbol w = (-6,\, -2,\, 5)'$?
$8$
$1$
$7$
$19$
Explanation. $\boldsymbol p - \boldsymbol w = (4,\, 7,\, -8)'$: the largest absolute value is $8$.
For $\boldsymbol p = (2,\, -9,\, 6)'$ and the Euclidean norm $\|\boldsymbol p\|_2 = \sqrt{\sum_j p_j^2}$, which $\alpha > 0$ makes $\|\alpha\boldsymbol p\|_2 = 1$?
$\alpha = \frac{1}{11}$
$\alpha = \frac{1}{17}$
$\alpha = \frac{1}{9}$
$\alpha = \frac{1}{121}$
Explanation. $\|\boldsymbol p\|_2 = 11$ and by homogeneity $\alpha = 1/\|\boldsymbol p\|_2$.
For $\boldsymbol p = (-4,\, -4,\, 7)'$ and the Euclidean norm $\|\boldsymbol p\|_2 = \sqrt{\sum_j p_j^2}$, which $\alpha > 0$ makes $\|\alpha\boldsymbol p\|_2 = 1$?
$\alpha = \frac{1}{9}$
$\alpha = \frac{1}{15}$
$\alpha = \frac{1}{7}$
$\alpha = \frac{1}{81}$
Explanation. $\|\boldsymbol p\|_2 = 9$ and by homogeneity $\alpha = 1/\|\boldsymbol p\|_2$.
For $\boldsymbol p = (2,\, -9,\, 6)'$, with $\|\boldsymbol p\|_1 = \sum_j |p_j|$, $\|\boldsymbol p\|_2 = \sqrt{\sum_j p_j^2}$ and $\|\boldsymbol p\|_\infty = \max_j |p_j|$, what are the three norms?
For $\boldsymbol p = (-4,\, -4,\, 7)'$, with $\|\boldsymbol p\|_1 = \sum_j |p_j|$, $\|\boldsymbol p\|_2 = \sqrt{\sum_j p_j^2}$ and $\|\boldsymbol p\|_\infty = \max_j |p_j|$, what are the three norms?
Explanation. $15 \ge 9 \ge 7$, as predicted by $\|\boldsymbol p\|_\infty \le \|\boldsymbol p\|_2 \le \|\boldsymbol p\|_1$.
Example 1 · la-g-norm-palle · level complessa · notes
In $\R^2$ the balls of radius $7$ centred at the origin are $\{\boldsymbol x : \|\boldsymbol x\| \le 7\}$ for the norms $\ell_1$ ($|x_1| + |x_2|$), $\ell_2$ ($\sqrt{x_1^2 + x_2^2}$) and $\ell_\infty$ ($\max\{|x_1|, |x_2|\}$). To which balls does the point $\boldsymbol x = (1,\, 4)'$ belong?
to all three balls
only to the $\ell_2$ and $\ell_\infty$ balls
only to the $\ell_\infty$ ball
to none of the three balls
Explanation. $\|\boldsymbol x\|_1 = 5$, $\|\boldsymbol x\|_2^2 = 17$ (to compare with $49$), $\|\boldsymbol x\|_\infty = 4$. The balls are nested: $\ell_1 \subseteq \ell_2 \subseteq \ell_\infty$.
Example 2 · la-g-norm-palle · level complessa · notes
In $\R^2$ the balls of radius $8$ centred at the origin are $\{\boldsymbol x : \|\boldsymbol x\| \le 8\}$ for the norms $\ell_1$ ($|x_1| + |x_2|$), $\ell_2$ ($\sqrt{x_1^2 + x_2^2}$) and $\ell_\infty$ ($\max\{|x_1|, |x_2|\}$). To which balls does the point $\boldsymbol x = (3,\, 7)'$ belong?
only to the $\ell_2$ and $\ell_\infty$ balls
to all three balls
only to the $\ell_\infty$ ball
to none of the three balls
Explanation. $\|\boldsymbol x\|_1 = 10$, $\|\boldsymbol x\|_2^2 = 58$ (to compare with $64$), $\|\boldsymbol x\|_\infty = 7$. The balls are nested: $\ell_1 \subseteq \ell_2 \subseteq \ell_\infty$.
By Cramer's rule, what is the entry $\tilde x_2$ (value of $x_2$) of the solution of the system $\begin{cases} x_1+x_2 = -7 \\ 3x_1+4x_2 = 6 \end{cases}$?
$27$
$13$
$-34$
$\frac{1}{27}$
Explanation. $\det(\boldsymbol A) = 1$ and $\boldsymbol A_2$ is obtained by replacing column $2$ (not the row) with $\boldsymbol b$: $\det(\boldsymbol A_2) = 27$, hence $\tilde x_2 = 27$.
By Cramer's rule, what is the entry $\tilde x_2$ (value of $x_2$) of the solution of the system $\begin{cases} -x_1+4x_2 = -2 \\ -x_1-4x_2 = 7 \end{cases}$?
$-\frac{9}{8}$
$\frac{1}{8}$
$-\frac{5}{2}$
$-\frac{8}{9}$
Explanation. $\det(\boldsymbol A) = 8$ and $\boldsymbol A_2$ is obtained by replacing column $2$ (not the row) with $\boldsymbol b$: $\det(\boldsymbol A_2) = -9$, hence $\tilde x_2 = -\frac{9}{8}$.
How many solutions does the system $\begin{cases} 2x_1+2x_2+3x_3 = -3 \\ 4x_1+6x_2+7x_3 = -5 \\ -4x_1-4x_3 = 8 \end{cases}$ have?
exactly one solution
no solution
infinitely many solutions, with $1$ free parameter
infinitely many solutions, with $2$ free parameters
Explanation. Gaussian elimination on the augmented matrix $(\boldsymbol A | \boldsymbol b)$ gives $\text{rank}(\boldsymbol A) = 2$ and $\text{rank}(\boldsymbol A | \boldsymbol b) = 2$, with $n = 3$: by the Rouché–Capelli theorem the system has infinitely many solutions, with $1$ free parameter.
How many solutions does the system $\begin{cases} -x_1-x_2-3x_3 = -1 \\ -x_1+x_2-x_3 = 0 \\ -x_1+3x_2+x_3 = 4 \end{cases}$ have?
exactly one solution
no solution
infinitely many solutions, with $1$ free parameter
infinitely many solutions, with $2$ free parameters
Explanation. Gaussian elimination on the augmented matrix $(\boldsymbol A | \boldsymbol b)$ gives $\text{rank}(\boldsymbol A) = 2$ and $\text{rank}(\boldsymbol A | \boldsymbol b) = 3$, with $n = 3$: by the Rouché–Capelli theorem the system has no solution.
Example 1 · la-g-gauss-solve · level media · notes
Solve with Gaussian elimination (forward elimination and backward substitution) the system $\begin{cases} 2x_1+x_2+2x_3 = -7 \\ 2x_1-x_2 = -9 \\ 2x_1-3x_2-4x_3 = -7 \end{cases}$.
$\boldsymbol x = (-3,\, 3,\, -2)'$
$\boldsymbol x = (-\frac{15}{2},\, 1,\, \frac{7}{2})'$
$\boldsymbol x = (-2,\, 3,\, -3)'$
$\boldsymbol x = (-5,\, -1,\, 2)'$
Explanation. Forward elimination, applied to the whole augmented matrix (including the right-hand side column), gives the triangular system $\begin{cases} 2x_1+x_2+2x_3 = -7 \\ -2x_2-2x_3 = -2 \\ -2x_3 = 4 \end{cases}$; backward substitution gives $\boldsymbol x = (-3,\, 3,\, -2)'$. Check: $\boldsymbol A\boldsymbol x = \boldsymbol b$.
Example 2 · la-g-gauss-solve · level media · notes
Solve with Gaussian elimination (forward elimination and backward substitution) the system $\begin{cases} -x_1+3x_2-x_3 = -2 \\ -x_1+4x_2-x_3 = -1 \\ -x_1+5x_2-3x_3 = -6 \end{cases}$.
$\boldsymbol x = (2,\, 1,\, 3)'$
$\boldsymbol x = (-4,\, -1,\, 3)'$
$\boldsymbol x = (3,\, 1,\, 2)'$
$\boldsymbol x = (8,\, 1,\, -3)'$
Explanation. Forward elimination, applied to the whole augmented matrix (including the right-hand side column), gives the triangular system $\begin{cases} -x_1+3x_2-x_3 = -2 \\ x_2 = 1 \\ -2x_3 = -6 \end{cases}$; backward substitution gives $\boldsymbol x = (2,\, 1,\, 3)'$. Check: $\boldsymbol A\boldsymbol x = \boldsymbol b$.
The system $\begin{cases} x_1+x_3 = 1 \\ 2x_1+x_2+4x_3 = 3 \\ -2x_1+2x_2+2x_3 = 0 \end{cases}$ has infinitely many solutions. Setting $x_3 = t$, which description of the solution set is correct?
The system $\begin{cases} x_1-x_2+2x_3 = 1 \\ -2x_1+3x_2-5x_3 = -1 \\ -x_1+3x_2-4x_3 = 1 \end{cases}$ has infinitely many solutions. Setting $x_3 = t$, which description of the solution set is correct?
Explanation. Elimination gives $x_1-x_2+2x_3 = 1$, $x_2-x_3 = 1$ and a zero row: $\text{rank}(\boldsymbol A) = \text{rank}(\boldsymbol A|\boldsymbol b) = 2 < 3$. With $x_3 = t$: $\boldsymbol x_0 = (2,\, 1,\, 0)'$ (for $t = 0$) and $\boldsymbol v = (-1,\, 1,\, 1)'$ with $\boldsymbol A\boldsymbol v = \boldsymbol 0$.
Example 1 · la-g-rouche-k · level complessa · notes
Depending on the real parameter $k$, how many solutions does the system $\begin{cases} x_1+x_2+2x_3 = 3 \\ x_1+2x_2+5x_3 = 4 \\ 2x_1 + (k+2)\,x_3 = k+8 \end{cases}$ have?
exactly one solution if $k \neq -4$; infinitely many solutions (one free parameter) if $k = -4$
exactly one solution if $k \neq -4$; no solution if $k = -4$
exactly one solution if $k \neq 4$; infinitely many solutions (one free parameter) if $k = 4$
exactly one solution for every $k \in \R$
Explanation. Gaussian elimination turns the last row into $(0\;\; 0\;\; k+4 \mid k+4)$. If $k \neq -4$: $\text{rank}(\boldsymbol A) = \text{rank}(\boldsymbol A|\boldsymbol b) = 3$, a unique solution. If $k = -4$: $\text{rank}(\boldsymbol A) = \text{rank}(\boldsymbol A|\boldsymbol b) = 2 < 3$, infinitely many solutions with one free parameter.
Example 2 · la-g-rouche-k · level complessa · notes
Depending on the real parameter $k$, how many solutions does the system $\begin{cases} x_1+3x_2-x_3 = 3 \\ x_1+4x_2-3x_3 = 6 \\ 2x_1+7x_2 + (k-3)\,x_3 = 10 \end{cases}$ have?
exactly one solution if $k \neq -1$; no solution if $k = -1$
exactly one solution if $k \neq -1$; infinitely many solutions (one free parameter) if $k = -1$
exactly one solution if $k \neq 1$; no solution if $k = 1$
exactly one solution for every $k \in \R$
Explanation. Gaussian elimination turns the last row into $(0\;\; 0\;\; k+1 \mid 1)$. If $k \neq -1$: $\text{rank}(\boldsymbol A) = \text{rank}(\boldsymbol A|\boldsymbol b) = 3$, a unique solution. If $k = -1$: $\text{rank}(\boldsymbol A) = 2 < 3 = \text{rank}(\boldsymbol A|\boldsymbol b)$, no solution.
Example 1 · la-g-sys-omog-k · level facile · notes
For which value of $k$ does the homogeneous system $1x_1 + 3x_2 = 0$, $3x_1 + (-4 + k)\,x_2 = 0$ have nonzero solutions?
$k = 13$
$k = -13$
$k = 9$
$k = 14$
Explanation. Nonzero solutions if and only if the determinant is zero: $1(-4 + k) - (3)(3) = 0$, i.e. $k = 13$.
Example 2 · la-g-sys-omog-k · level facile · notes
For which value of $k$ does the homogeneous system $-1x_1 + 3x_2 = 0$, $-1x_1 + (-4 + k)\,x_2 = 0$ have nonzero solutions?
$k = 7$
$k = -7$
$k = 3$
$k = 8$
Explanation. Nonzero solutions if and only if the determinant is zero: $-1(-4 + k) - (3)(-1) = 0$, i.e. $k = 7$.
Gaussian elimination on the augmented matrix $(\boldsymbol A \,|\, \boldsymbol b)$ of a system of $3$ equations in $3$ unknowns gives the echelon form $\left(\begin{array}{rrr|r} 3 & 2 & 3 & -4 \\ 0 & 4 & 1 & 1 \\ 0 & 0 & 0 & 0 \end{array}\right)$. What is concluded (Rouché–Capelli theorem)?
Infinitely many solutions, with $1$ free parameter
No solution
A unique solution
Infinitely many solutions, with $2$ free parameters
Explanation. Compare $\mathrm{rank}(\boldsymbol A)$ and $\mathrm{rank}(\boldsymbol A|\boldsymbol b)$ (nonzero rows); if they coincide, the free parameters are $3 - \mathrm{rank}(\boldsymbol A)$.
Gaussian elimination on the augmented matrix $(\boldsymbol A \,|\, \boldsymbol b)$ of a system of $3$ equations in $3$ unknowns gives the echelon form $\left(\begin{array}{rrr|r} 4 & -1 & -3 & -1 \\ 0 & 4 & 2 & 2 \\ 0 & 0 & 4 & 3 \end{array}\right)$. What is concluded (Rouché–Capelli theorem)?
A unique solution
No solution
Infinitely many solutions, with $1$ free parameter
Infinitely many solutions, with $2$ free parameters
Explanation. Compare $\mathrm{rank}(\boldsymbol A)$ and $\mathrm{rank}(\boldsymbol A|\boldsymbol b)$ (nonzero rows); if they coincide, the free parameters are $3 - \mathrm{rank}(\boldsymbol A)$.
The solutions of the homogeneous system $\begin{cases} -3x_1-x_2-10x_3 = 0 \\ -3x_2-12x_3 = 0 \end{cases}$ are the multiples $t\,\boldsymbol v$ of a vector. Which $\boldsymbol v$, with third component $1$, works?
$\boldsymbol v = (-2,\, -4,\, 1)'$
$\boldsymbol v = (-4,\, -2,\, 1)'$
$\boldsymbol v = (2,\, 4,\, 1)'$
$\boldsymbol v = (-2,\, 4,\, 1)'$
Explanation. Rank $2$ with $3$ unknowns: one parameter. Setting $x_3 = 1$ the two equations are solved: $\boldsymbol v = (-2,\, -4,\, 1)'$ (check $\boldsymbol A\boldsymbol v = \boldsymbol 0$).
The solutions of the homogeneous system $\begin{cases} -x_1-3x_2+8x_3 = 0 \\ -x_1+3x_2-10x_3 = 0 \end{cases}$ are the multiples $t\,\boldsymbol v$ of a vector. Which $\boldsymbol v$, with third component $1$, works?
$\boldsymbol v = (-1,\, 3,\, 1)'$
$\boldsymbol v = (3,\, -1,\, 1)'$
$\boldsymbol v = (1,\, -3,\, 1)'$
$\boldsymbol v = (-1,\, -3,\, 1)'$
Explanation. Rank $2$ with $3$ unknowns: one parameter. Setting $x_3 = 1$ the two equations are solved: $\boldsymbol v = (-1,\, 3,\, 1)'$ (check $\boldsymbol A\boldsymbol v = \boldsymbol 0$).
Example 1 · la-g-cramer3 · level complessa · notes
With Cramer's rule ($x_j = \det(\boldsymbol A_j)/\det(\boldsymbol A)$, where $\boldsymbol A_j$ is $\boldsymbol A$ with column $j$ replaced by $\boldsymbol b$), for the system $\begin{cases} x_2+2x_3 = -1 \\ 3x_1-3x_2+2x_3 = -22 \\ x_1+x_2+3x_3 = -6 \end{cases}$ with $\det(\boldsymbol A) = 5$, what are $\det(\boldsymbol A_{1})$ and $x_{1}$?
Explanation. Column $1$ (not the row) is replaced by $\boldsymbol b$: $\det(\boldsymbol A_{1}) = -15$ and $x_{1} = -3$.
Example 2 · la-g-cramer3 · level complessa · notes
With Cramer's rule ($x_j = \det(\boldsymbol A_j)/\det(\boldsymbol A)$, where $\boldsymbol A_j$ is $\boldsymbol A$ with column $j$ replaced by $\boldsymbol b$), for the system $\begin{cases} -x_1+2x_2-x_3 = -3 \\ -3x_1-x_2+3x_3 = 2 \\ 2x_1+x_2+3x_3 = 14 \end{cases}$ with $\det(\boldsymbol A) = 37$, what are $\det(\boldsymbol A_{3})$ and $x_{3}$?
Which $x \in \R$ satisfy $|3x-3| \le 9$? (Recall: $|y| \le \varepsilon \Leftrightarrow -\varepsilon \le y \le \varepsilon$.)
$-2 \le x \le 4$
$x < -2$ or $x > 4$
$-4 \le x \le 2$
$-8 \le x \le 10$
Explanation. $-9 \le 3x-3 \le 9$, i.e. $-6 \le 3x \le 12$; dividing by $3$ we get $-2 \le x \le 4$. The outer set solves the opposite inequality; forgetting to divide by $3$ widens the interval.
Which $x \in \R$ satisfy $|2x+2| < 8$? (Recall: $|y| < \varepsilon \Leftrightarrow -\varepsilon < y < \varepsilon$.)
$-5 < x < 3$
$x \le -5$ or $x \ge 3$
$-3 < x < 5$
$-9 < x < 7$
Explanation. $-8 < 2x+2 < 8$, i.e. $-10 < 2x < 6$; dividing by $2$ we get $-5 < x < 3$. The outer set solves the opposite inequality; forgetting to divide by $2$ widens the interval.
Which $x \in \R$ satisfy $|x| \le |x - 5|$, i.e. are at least as close to $0$ as to $5$?
$x \le \frac{5}{2}$
$x \ge \frac{5}{2}$
$x \le 0$
$0 \le x \le 5$
Explanation. Both sides are $\ge 0$, so we can square: $(x)^2 \le (x - 5)^2$ gives $2(5)\,x \le 25$, i.e. $x \le \frac{5}{2}$, the midpoint between $0$ and $5$.
Which $x \in \R$ satisfy $|x + 2| \le |x - 6|$, i.e. are at least as close to $-2$ as to $6$?
$x \le 2$
$x \ge 2$
$x \le -2$
$-2 \le x \le 6$
Explanation. Both sides are $\ge 0$, so we can square: $(x + 2)^2 \le (x - 6)^2$ gives $2(8)\,x \le 32$, i.e. $x \le 2$, the midpoint between $-2$ and $6$.
For which real $x$ does $|x - (4)| + |x - (5)| \le 3$ hold?
$3 \le x \le 6$
$4 \le x \le 5$
$1 \le x \le 8$
$2 \le x \le 7$
Explanation. For $4 \le x \le 5$ the sum equals $1 \le 3$; outside it grows with slope $2$, so the endpoints are $3$ and $6$ (where the sum equals $3$).
For which real $x$ does $|x - (-2)| + |x - (4)| \le 10$ hold?
$-4 \le x \le 6$
$-2 \le x \le 4$
$-12 \le x \le 14$
$-5 \le x \le 7$
Explanation. For $-2 \le x \le 4$ the sum equals $6 \le 10$; outside it grows with slope $2$, so the endpoints are $-4$ and $6$ (where the sum equals $10$).
What is $-23 \text{ mod } 8$, i.e. the remainder $r$ of Euclid's division $-23 = q \cdot 8 + r$ with $q$ an integer and $0 \le r < 8$?
$1$
$7$
$-7$
$-3$
Explanation. $-23 = (-3)\cdot 8 + 1$ with $0 \le 1 < 8$: the remainder is always non-negative and smaller than $|m|$, even when the dividend is negative.
In Euclid's division of $n = -23$ by $m = -3$, i.e. $n = q\,m + r$ with $q$ an integer and $0 \le r < |m|$, what are $q$ and $r$?
$q = 8$, $r = 1$
$q = 7$, $r = -2$
$q = -8$, $r = 1$
$q = 8$, $r = 2$
Explanation. $8\cdot (-3) + 1 = -23$ with $0 \le 1 < 3$. Truncating $n/m$ towards zero gives $q = 7$ and $r = -2$, a negative remainder: with the Euclidean convention the remainder is never negative.
In Euclid's division of $n = -50$ by $m = 9$, i.e. $n = q\,m + r$ with $q$ an integer and $0 \le r < |m|$, what are $q$ and $r$?
$q = -6$, $r = 4$
$q = -5$, $r = -5$
$q = 6$, $r = 4$
$q = -6$, $r = 5$
Explanation. $(-6)\cdot 9 + 4 = -50$ with $0 \le 4 < 9$. Truncating $n/m$ towards zero gives $q = -5$ and $r = -5$, a negative remainder: with the Euclidean convention the remainder is never negative.