I'd like to solve the following problem from Chapter 3, "Linear Maps", section 3.C "Matrices", from Axler's Linear Algebra Done Right.
- Suppose $V$ and $W$ are finite-dimensional and $T\in L(V,W)$. Prove that there exist a basis of $V$ and a basis of $W$ such that with respect to these bases, all entries of $M(T)$ are $0$ except that the entries in row $j$, column $j$, equal 1 for $1\leq j\leq$ dim range $T$.
Let dim $V=n$ and dim $W=m$.
It seems to me that there is an easy case that occurs when $m\geq n$ In this case, we can reduce the set of vectors $Tv_1,...,Tv_n \in $ range $T$ to a basis of dimension $l\leq n$.
Without loss of generality, assume this basis is formed by the vectors
$$Tv_1,...,Tv_l$$
Extend these vectors to a basis of $W$
$$Tv_1,...,Tv_l,w_1,...,w_{m-l}$$
Then, the matrix of $T$ is $m$ by $n$ and has the desired properties.
I saw a solution on a website and it only contained this first case. But is there not a second case?
My question is about the second case. Namely, if $m<n$.
$T$ is given.
Again, let's call dim range $T=l$.
We know that
$$\mathrm{dim\ null}\ T +\mathrm{dim\ range}\ T=\mathrm{dim}\ V$$
$$\mathrm{dim\ null}\ T + l = n$$
Thus, since $$l= \text{dim range}\ T\leq m<n=\text{dim}\ V$$
then dim null $T=n-l\geq 1$.
Of the $n$ vectors $v_1, ...,v_n$, $n-l$ are in the nullspace.
Suppose $v_1,...,v_l$ are not in the nullspace and $v_{l+1},...,v_n$ are.
Then, for every vector $v\in V$ we have
$$v=\sum_{i=1}^n c_i v_i$$
and so
$$Tv=\sum_{i=1}^n c_i Tv_i$$
$$=\sum_{i=1}^l c_i Tv_i$$
and so range $T=\text{ span }(Tv_1, ...,Tv_l)$. Since dim range $T=l$ and there are $l$ vectors in $(Tv_1, ..., Tv_l)$ it is a basis for range $T$.
Now we expand this basis into a basis for $W$
$$(Tv_1, ...,Tv_l,u_1,...,u_{m-l})$$
The matrix of $T$ relative to $(v_1,...,v_n)$ and $(Tv_1, ...,Tv_l,u_1,...,u_{m-l})$ has the desired properties.
Is this proof correct?
Based on the comments to the original question, I will try to fix the original proof.
First, however, I would like to try to write the simpler proof suggested by Anne Bauval.
Here it is
Let's first define some variables:
$T:V\to W$
dim range $T=l$
dim $V=n$
dim $W=m$
We know that
$$\text{dim null}\ T=\text{dim} V-\text{dim range}\ T=n-l$$
Let $(u_1,...,u_{n-l})$ be a basis of null $T$.
Expand this to a basis of $V$: $(u_1,...,u_{n-l},v_1,...,v_l)$.
Then, for any $v\in V$, we can write
$$v=\sum_{i=1}^{n-l} a_i u_i +\sum_{i=1}^l b_i v_i$$
$$Tv=\sum_{i=1}^l b_iTv_i=\sum_{i=1}^l b_iw_i$$
Thus, the vectors $(w_1,...,w_l)$ span range $T$. Since dim range $T=l$ then these vectors are a basis for range $T$.
Now, $l\leq m$ and $l\leq n$.
Thus, it is always the case that $l\leq m$, which means that either $(w_1,...,w_l)$ is a basis for $W$ (if $l=m$) or we can expand this basis to become a basis of $W$
$$(w_1,...,w_m)$$
In any case, we end up with a basis of $W$ and when we map the basis $(u_1,...,u_{n-l},v_1,...,v_l)$ using $T$ the resulting vectors in $W$ do not involve multiples of $w_{l+1},...,w_m$.
In other words, as we've seen, the vectors $v_1,...,v_l$ get mapped to $w_1,...,w_l$ and $u_1,...,u_{n-l}$ get mapped to zero.
If we reorder the basis of $V$ to
$$v_1,...,v_l,u_1,...,u_{n-l}$$
then we get the exact matrix that is asked for.